diff --git a/fastpath/docker-compose.yml b/fastpath/docker-compose.yml index feb59118e..beeafc8e9 100644 --- a/fastpath/docker-compose.yml +++ b/fastpath/docker-compose.yml @@ -4,19 +4,24 @@ services: context: . dockerfile: Dockerfile container_name: ooni-fastpath + environment: + STATSD_HOST: statsd_exporter + STATSD_PORT: "9125" ports: - "5000:5000" - "8472:8472" volumes: - - .:/app + - .:/app:Z working_dir: /app - profiles: - - default - - all + depends_on: + statsd_exporter: + condition: service_started + clickhouse-server: + condition: service_healthy # This service is used only for testing, in prod we use the actual clickhouse db clickhouse-server: - image: clickhouse/clickhouse-server:latest + image: docker.io/clickhouse/clickhouse-server:latest container_name: clickhouse-server environment: - CLICKHOUSE_DB=default @@ -27,16 +32,64 @@ services: - "8123:8123" - "9009:9009" volumes: - - ./clickhouse_init.sql:/docker-entrypoint-initdb.d/init.sql + - ./clickhouse_init.sql:/docker-entrypoint-initdb.d/init.sql:Z healthcheck: test: ["CMD", "clickhouse-client", "--query", "select 1;"] interval: 30s retries: 3 start_period: 60s timeout: 10s - profiles: - - all - - clickhouse + + statsd_exporter: + image: docker.io/prom/statsd-exporter:latest + container_name: statsd-exporter + # statsd_exporter listens UDP 9125 by default for statsd; exposes HTTP /metrics on 9102 + environment: + STATS_D_EXPORTER_METRICS_PORT: "9102" + ports: + - "9125:9125/udp" # UDP ingest (alternative) + - "9102:9102" # HTTP /metrics for Prometheus + + healthcheck: + test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:9102/metrics || exit 1"] + interval: 10s + retries: 5 + start_period: 10s + timeout: 2s + + prometheus: + image: docker.io/prom/prometheus:latest + container_name: prometheus + volumes: + - ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:Z + ports: + - "9090:9090" + command: + - "--config.file=/etc/prometheus/prometheus.yml" + healthcheck: + test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:9090/-/ready || exit 1"] + interval: 10s + retries: 5 + start_period: 10s + timeout: 2s + + grafana: + image: docker.io/grafana/grafana:latest + container_name: grafana + environment: + GF_SECURITY_ADMIN_PASSWORD: "admin" + volumes: + - ./grafana/provisioning:/etc/grafana/provisioning:Z + - ./grafana/data:/var/lib/grafana:Z + + ports: + - "3000:3000" + healthcheck: + test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:3000/api/health || exit 1"] + interval: 10s + retries: 5 + start_period: 10s + timeout: 2s volumes: clickhouse-data: diff --git a/fastpath/fastpath/core.py b/fastpath/fastpath/core.py index 08a31a8a2..fbc21d794 100644 --- a/fastpath/fastpath/core.py +++ b/fastpath/fastpath/core.py @@ -1617,6 +1617,7 @@ def msm_processor(queue): metrics.gauge("queue_size", queue.qsize()) + def flag_measurements_with_wrong_date(msm: dict, msmt_uid: str, scores: dict) -> None: if not msmt_uid.startswith("20") or len(msmt_uid) < 20: return diff --git a/fastpath/fastpath/metrics.py b/fastpath/fastpath/metrics.py index 470ec9758..9b8042269 100644 --- a/fastpath/fastpath/metrics.py +++ b/fastpath/fastpath/metrics.py @@ -6,13 +6,21 @@ from os.path import basename, splitext +import os import statsd # debdeps: python3-statsd +import logging +log = logging.getLogger("fastpath") + def setup_metrics(host="localhost", name=None): """Setup metric generation. Use dotted namespaces e.g. "pipeline.centrifugation" """ + statsd_host = os.getenv("STATSD_HOST", host) + statsd_port = os.getenv("STATSD_PORT", 8125) + + log.debug("got {statsd_host}:{statsd_port} for statsd") if name is None: import __main__ @@ -21,4 +29,4 @@ def setup_metrics(host="localhost", name=None): prefix = name prefix = prefix.strip(".") - return statsd.StatsClient(host, 8125, prefix=prefix) + return statsd.StatsClient(statsd_host, statsd_port, prefix=prefix) diff --git a/fastpath/grafana/data/dashboards/simple-stats.json b/fastpath/grafana/data/dashboards/simple-stats.json new file mode 100755 index 000000000..ca9328609 --- /dev/null +++ b/fastpath/grafana/data/dashboards/simple-stats.json @@ -0,0 +1,37 @@ +{ + "dashboard": { + "id": null, + "uid": "simple-stats", + "title": "Simple Metrics", + "schemaVersion": 36, + "version": 1, + "panels": [ + { + "id": 1, + "type": "stat", + "title": "Example: statsd_exporter metric", + "datasource": "Prometheus", + "targets": [ + { + "expr": "statsd_metric_total", + "refId": "A" + } + ], + "gridPos": { "h": 4, "w": 12, "x": 0, "y": 0 } + }, + { + "id": 2, + "type": "graph", + "title": "statsd_exporter: requests over time", + "datasource": "Prometheus", + "targets": [ + { + "expr": "rate(statsd_metric_total[1m])", + "refId": "A" + } + ], + "gridPos": { "h": 8, "w": 12, "x": 0, "y": 4 } + } + ] + } +} diff --git a/fastpath/grafana/data/grafana.db b/fastpath/grafana/data/grafana.db new file mode 100755 index 000000000..8cab533e5 Binary files /dev/null and b/fastpath/grafana/data/grafana.db differ diff --git a/fastpath/grafana/data/plugins/grafana-exploretraces-app/156.js b/fastpath/grafana/data/plugins/grafana-exploretraces-app/156.js new file mode 100755 index 000000000..9c9dd9626 --- /dev/null +++ b/fastpath/grafana/data/plugins/grafana-exploretraces-app/156.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkgrafana_exploretraces_app=self.webpackChunkgrafana_exploretraces_app||[]).push([[156],{94156(e,t,o){o.d(t,{default:()=>i});var r={a:"α",b:"ḅ",c:"ͼ",d:"ḍ",e:"ḛ",f:"ϝ",g:"ḡ",h:"ḥ",i:"ḭ",j:"ĵ",k:"ḳ",l:"ḽ",m:"ṃ",n:"ṇ",o:"ṓ",p:"ṗ",q:"ʠ",r:"ṛ",s:"ṡ",t:"ţ",u:"ṵ",v:"ṽ",w:"ẁ",x:"ẋ",y:"ẏ",z:"ẓ",A:"À",B:"β",C:"Ḉ",D:"Ḍ",E:"Ḛ",F:"Ḟ",G:"Ḡ",H:"Ḥ",I:"Ḭ",J:"Ĵ",K:"Ḱ",L:"Ḻ",M:"Ṁ",N:"Ṅ",O:"Ṏ",P:"Ṕ",Q:"Ǫ",R:"Ṛ",S:"Ṣ",T:"Ṫ",U:"Ṳ",V:"Ṿ",W:"Ŵ",X:"Ẋ",Y:"Ŷ",Z:"Ż"},n=["a","e","i","o","u","y","A","E","I","O","U","Y"],a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},o=t.languageToPseudo,a=void 0===o?"en":o,i=t.letterMultiplier,s=void 0===i?2:i,p=t.repeatedLetters,l=void 0===p?n:p,u=t.uglifedLetterObject,d=void 0===u?r:u,c=t.wrapped,f=void 0!==c&&c,g=t.enabled,h=void 0===g||g;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name="pseudo",this.type="postProcessor",this.options={languageToPseudo:a,letterMultiplier:s,wrapped:f,repeatedLetters:l,letters:d,enabled:h}}return e.prototype.configurePseudo=function(e){this.options=a({},this.options,e)},e.prototype.process=function(e,t,o,r){var n=this;if(r.language&&this.options.languageToPseudo!==r.language||!this.options.enabled)return e;var a,i,s,p=0,l=e.split("").map(function(e){return"}"===e?(p=0,e):"{"===e?(p++,e):2===p?e:-1!==n.options.repeatedLetters.indexOf(e)?n.options.letters[e].repeat(n.options.letterMultiplier):n.options.letters[e]||e}).join("");return a={shouldWrap:this.options.wrapped,string:l},i=a.shouldWrap,s=a.string,i?"["+s+"]":s},e}()}}]); +//# sourceMappingURL=156.js.map?_cache=03c3545b95bc0f0f8914 \ No newline at end of file diff --git a/fastpath/grafana/data/plugins/grafana-exploretraces-app/156.js.map b/fastpath/grafana/data/plugins/grafana-exploretraces-app/156.js.map new file mode 100755 index 000000000..0ac198ebf --- /dev/null +++ b/fastpath/grafana/data/plugins/grafana-exploretraces-app/156.js.map @@ -0,0 +1 @@ +{"version":3,"file":"156.js?_cache=03c3545b95bc0f0f8914","mappings":"0JAAO,IAAIA,EAAmB,CAC5BC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,KAGMC,EAAS,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,KCvDxEC,EAAWC,OAAOC,QAAU,SAAUC,GAAU,IAAK,IAAIhD,EAAI,EAAGA,EAAIiD,UAAUC,OAAQlD,IAAK,CAAE,IAAImD,EAASF,UAAUjD,GAAI,IAAK,IAAIoD,KAAOD,EAAcL,OAAOO,UAAUC,eAAeC,KAAKJ,EAAQC,KAAQJ,EAAOI,GAAOD,EAAOC,GAAU,CAAE,OAAOJ,CAAQ,EAM/P,IAAIQ,EAAS,WACX,SAASA,IACP,IAAIC,EAAOR,UAAUC,OAAS,QAAsBQ,IAAjBT,UAAU,GAAmBA,UAAU,GAAK,CAAC,EAC5EU,EAAwBF,EAAKG,iBAC7BA,OAA6CF,IAA1BC,EAAsC,KAAOA,EAChEE,EAAwBJ,EAAKK,iBAC7BA,OAA6CJ,IAA1BG,EAAsC,EAAIA,EAC7DE,EAAuBN,EAAKO,gBAC5BA,OAA2CN,IAAzBK,EAAqCnB,EAASmB,EAChEE,EAAwBR,EAAKS,oBAC7BA,OAAgDR,IAA1BO,EAAsC1E,EAAmB0E,EAC/EE,EAAeV,EAAKW,QACpBA,OAA2BV,IAAjBS,GAAqCA,EAC/CE,EAAeZ,EAAKa,QACpBA,OAA2BZ,IAAjBW,GAAoCA,GAlBtD,SAAyBE,EAAUC,GAAe,KAAMD,aAAoBC,GAAgB,MAAM,IAAIC,UAAU,oCAAwC,CAoBpJC,CAAgBC,KAAMnB,GAEtBmB,KAAKC,KAAO,SACZD,KAAKE,KAAO,gBACZF,KAAKG,QAAU,CACblB,iBAAkBA,EAClBE,iBAAkBA,EAClBM,QAASA,EACTJ,gBAAiBA,EACjBe,QAASb,EACTI,QAASA,EAEb,CA6BA,OA3BAd,EAAOH,UAAU2B,gBAAkB,SAAyBF,GAC1DH,KAAKG,QAAUjC,EAAS,CAAC,EAAG8B,KAAKG,QAASA,EAC5C,EAEAtB,EAAOH,UAAU4B,QAAU,SAAiBC,EAAO9B,EAAK0B,EAASK,GAC/D,IAAIC,EAAQT,KAEZ,GAAIQ,EAAWE,UAAYV,KAAKG,QAAQlB,mBAAqBuB,EAAWE,WAAaV,KAAKG,QAAQR,QAChG,OAAOY,EAET,IDW8CzB,EAC5C6B,EACAC,ECbEC,EAAe,EACfC,EAAiBP,EAAMQ,MAAM,IAAIC,IAAI,SAAUC,GACjD,MAAe,MAAXA,GACFJ,EAAe,EACRI,GAEM,MAAXA,GACFJ,IACOI,GAEY,IAAjBJ,EAA2BI,GAE2B,IAAnDR,EAAMN,QAAQd,gBAAgB6B,QAAQD,GAAiBR,EAAMN,QAAQC,QAAQa,GAAQE,OAAOV,EAAMN,QAAQhB,kBAAoBsB,EAAMN,QAAQC,QAAQa,IAAWA,CACxK,GAAGG,KAAK,IACR,ODH8CtC,ECGzB,CAAE6B,WAAYX,KAAKG,QAAQV,QAASmB,OAAQE,GDF/DH,EAAa7B,EAAK6B,WAClBC,EAAS9B,EAAK8B,OACXD,EAAa,IAAMC,EAAS,IAAMA,CCCzC,EAEO/B,CACT,CA1Da,E","sources":["webpack://grafana-exploretraces-app/../node_modules/i18next-pseudo/es/utils.js","webpack://grafana-exploretraces-app/../node_modules/i18next-pseudo/es/index.js"],"sourcesContent":["export var uglifiedAlphabet = {\n a: 'α',\n b: 'ḅ',\n c: 'ͼ',\n d: 'ḍ',\n e: 'ḛ',\n f: 'ϝ',\n g: 'ḡ',\n h: 'ḥ',\n i: 'ḭ',\n j: 'ĵ',\n k: 'ḳ',\n l: 'ḽ',\n m: 'ṃ',\n n: 'ṇ',\n o: 'ṓ',\n p: 'ṗ',\n q: 'ʠ',\n r: 'ṛ',\n s: 'ṡ',\n t: 'ţ',\n u: 'ṵ',\n v: 'ṽ',\n w: 'ẁ',\n x: 'ẋ',\n y: 'ẏ',\n z: 'ẓ',\n A: 'À',\n B: 'β',\n C: 'Ḉ',\n D: 'Ḍ',\n E: 'Ḛ',\n F: 'Ḟ',\n G: 'Ḡ',\n H: 'Ḥ',\n I: 'Ḭ',\n J: 'Ĵ',\n K: 'Ḱ',\n L: 'Ḻ',\n M: 'Ṁ',\n N: 'Ṅ',\n O: 'Ṏ',\n P: 'Ṕ',\n Q: 'Ǫ',\n R: 'Ṛ',\n S: 'Ṣ',\n T: 'Ṫ',\n U: 'Ṳ',\n V: 'Ṿ',\n W: 'Ŵ',\n X: 'Ẋ',\n Y: 'Ŷ',\n Z: 'Ż'\n};\n\nexport var vowels = ['a', 'e', 'i', 'o', 'u', 'y', 'A', 'E', 'I', 'O', 'U', 'Y'];\n\nexport var stringWrapper = function stringWrapper(_ref) {\n var shouldWrap = _ref.shouldWrap,\n string = _ref.string;\n return shouldWrap ? '[' + string + ']' : string;\n};","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nimport { uglifiedAlphabet, vowels, stringWrapper } from './utils';\n\nvar Pseudo = function () {\n function Pseudo() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref$languageToPseudo = _ref.languageToPseudo,\n languageToPseudo = _ref$languageToPseudo === undefined ? 'en' : _ref$languageToPseudo,\n _ref$letterMultiplier = _ref.letterMultiplier,\n letterMultiplier = _ref$letterMultiplier === undefined ? 2 : _ref$letterMultiplier,\n _ref$repeatedLetters = _ref.repeatedLetters,\n repeatedLetters = _ref$repeatedLetters === undefined ? vowels : _ref$repeatedLetters,\n _ref$uglifedLetterObj = _ref.uglifedLetterObject,\n uglifedLetterObject = _ref$uglifedLetterObj === undefined ? uglifiedAlphabet : _ref$uglifedLetterObj,\n _ref$wrapped = _ref.wrapped,\n wrapped = _ref$wrapped === undefined ? false : _ref$wrapped,\n _ref$enabled = _ref.enabled,\n enabled = _ref$enabled === undefined ? true : _ref$enabled;\n\n _classCallCheck(this, Pseudo);\n\n this.name = 'pseudo';\n this.type = 'postProcessor';\n this.options = {\n languageToPseudo: languageToPseudo,\n letterMultiplier: letterMultiplier,\n wrapped: wrapped,\n repeatedLetters: repeatedLetters,\n letters: uglifedLetterObject,\n enabled: enabled\n };\n }\n\n Pseudo.prototype.configurePseudo = function configurePseudo(options) {\n this.options = _extends({}, this.options, options);\n };\n\n Pseudo.prototype.process = function process(value, key, options, translator) {\n var _this = this;\n\n if (translator.language && this.options.languageToPseudo !== translator.language || !this.options.enabled) {\n return value;\n }\n var bracketCount = 0;\n var processedValue = value.split('').map(function (letter) {\n if (letter === '}') {\n bracketCount = 0;\n return letter;\n }\n if (letter === '{') {\n bracketCount++;\n return letter;\n }\n if (bracketCount === 2) return letter;\n\n return _this.options.repeatedLetters.indexOf(letter) !== -1 ? _this.options.letters[letter].repeat(_this.options.letterMultiplier) : _this.options.letters[letter] || letter;\n }).join('');\n return stringWrapper({ shouldWrap: this.options.wrapped, string: processedValue });\n };\n\n return Pseudo;\n}();\n\nexport { Pseudo as default };"],"names":["uglifiedAlphabet","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","vowels","_extends","Object","assign","target","arguments","length","source","key","prototype","hasOwnProperty","call","Pseudo","_ref","undefined","_ref$languageToPseudo","languageToPseudo","_ref$letterMultiplier","letterMultiplier","_ref$repeatedLetters","repeatedLetters","_ref$uglifedLetterObj","uglifedLetterObject","_ref$wrapped","wrapped","_ref$enabled","enabled","instance","Constructor","TypeError","_classCallCheck","this","name","type","options","letters","configurePseudo","process","value","translator","_this","language","shouldWrap","string","bracketCount","processedValue","split","map","letter","indexOf","repeat","join"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/fastpath/grafana/data/plugins/grafana-exploretraces-app/202.js b/fastpath/grafana/data/plugins/grafana-exploretraces-app/202.js new file mode 100755 index 000000000..be2a4c3fd --- /dev/null +++ b/fastpath/grafana/data/plugins/grafana-exploretraces-app/202.js @@ -0,0 +1,8 @@ +"use strict";(self.webpackChunkgrafana_exploretraces_app=self.webpackChunkgrafana_exploretraces_app||[]).push([[202],{90202(e,t,n){n.r(t),n.d(t,{default:()=>h,updatePlugin:()=>v});var r=n(85959),a=n.n(r),o=n(82007),i=n(18531),l=n(46089),c=n(31269),u=n(61829);function s(e,t,n,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,a)}function p(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(e){s(o,r,a,i,l,"next",e)}function l(e){s(o,r,a,i,l,"throw",e)}i(void 0)})}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}const m=Array.from({length:24},(e,t)=>({label:`${t+1} hour${t>0?"s":""}`,value:t+1})),b=e=>({colorWeak:l.css` + color: ${e.colors.text.secondary}; + `,marginTop:l.css` + margin-top: ${e.spacing(3)}; + `,marginTopXl:l.css` + margin-top: ${e.spacing(6)}; + `}),y=(e,t)=>p(function*(){try{yield v(e,t),i.locationService.reload()}catch(e){console.error("Error while updating the plugin",e)}})(),f={appConfig:{container:"data-testid ac-container",queryRange:"data-testid ac-query-range",submit:"data-testid ac-submit-form"}},v=(e,t)=>p(function*(){const n=(0,i.getBackendSrv)().fetch({url:`/api/plugins/${e}/settings`,method:"POST",data:t});return(yield(0,c.lastValueFrom)(n)).data})(),h=({plugin:e})=>{var t;const n=(0,o.useStyles2)(b),{enabled:i,pinned:l,jsonData:c}=e.meta,[s,p]=(0,r.useState)({queryRangeHours:null!==(t=null==c?void 0:c.queryRangeHours)&&void 0!==t?t:u.PQ});return a().createElement("div",{"data-testid":f.appConfig.container},a().createElement(o.FieldSet,{label:"Enable / Disable"},!i&&a().createElement(a().Fragment,null,a().createElement("div",{className:n.colorWeak},"The plugin is currently not enabled."),a().createElement(o.Button,{className:n.marginTop,variant:"primary",onClick:()=>y(e.meta.id,{enabled:!0,pinned:!0,jsonData:c})},"Enable plugin")),i&&a().createElement(a().Fragment,null,a().createElement("div",{className:n.colorWeak},"The plugin is currently enabled."),a().createElement(o.Button,{className:n.marginTop,variant:"destructive",onClick:()=>y(e.meta.id,{enabled:!1,pinned:!1,jsonData:c})},"Disable plugin"))),a().createElement(o.FieldSet,{label:"Time Seeker Settings",className:n.marginTopXl},a().createElement(o.Field,{label:"Query Range",description:"The time range for each cached batch in the Time Seeker. Larger values mean fewer queries but more data per query."},a().createElement(o.Combobox,{width:30,id:"query-range-hours","data-testid":f.appConfig.queryRange,options:m,value:s.queryRangeHours,onChange:e=>{(null==e?void 0:e.value)&&p(g(function(e){for(var t=1;ty(e.meta.id,{enabled:i,pinned:l,jsonData:{queryRangeHours:s.queryRangeHours}})},"Save settings"))))}}}]); +//# sourceMappingURL=202.js.map?_cache=bb26480c410d6356cba8 \ No newline at end of file diff --git a/fastpath/grafana/data/plugins/grafana-exploretraces-app/202.js.map b/fastpath/grafana/data/plugins/grafana-exploretraces-app/202.js.map new file mode 100755 index 000000000..41152b7b5 --- /dev/null +++ b/fastpath/grafana/data/plugins/grafana-exploretraces-app/202.js.map @@ -0,0 +1 @@ +{"version":3,"file":"202.js?_cache=bb26480c410d6356cba8","mappings":"ynCAmBA,MAAMA,EAAeC,MAAMC,KAAK,CAAEC,OAAQ,IAAM,CAACC,EAAGC,KAAO,CACzDC,MAAO,GAAGD,EAAI,SAASA,EAAI,EAAI,IAAM,KACrCE,MAAOF,EAAI,KAqGPG,EAAaC,IAA0B,CAC3CC,UAAWC,EAAAA,GAAG;aACHF,EAAMG,OAAOC,KAAKC;IAE7BC,UAAWJ,EAAAA,GAAG;kBACEF,EAAMO,QAAQ;IAE9BC,YAAaN,EAAAA,GAAG;kBACAF,EAAMO,QAAQ;MAI1BE,EAAwB,CAAOC,EAAkBC,IAAAA,EAAAA,YACrD,UACQC,EAAaF,EAAUC,GAI7BE,EAAAA,gBAAgBC,QAClB,CAAE,MAAOC,GACPC,QAAQC,MAAM,kCAAmCF,EACnD,CACF,EAVuDJ,GAYjDO,EAAU,CACdC,UAAW,CACTC,UAAW,2BACXC,WAAY,6BACZC,OAAQ,+BASCV,EAAe,CAAOF,EAAkBC,IAAAA,EAAAA,YACnD,MAAMY,GAAWC,EAAAA,EAAAA,iBAAgBC,MAAM,CACrCC,IAAK,gBAAgBhB,aACrBiB,OAAQ,OACRhB,SAKF,aAF2BiB,EAAAA,EAAAA,eAAcL,IAErBZ,IACtB,EAVqDA,GAYrD,EAnJkB,EAAGkB,a,MACnB,MAAMC,GAAIC,EAAAA,EAAAA,YAAWhC,IACf,QAAEiC,EAAO,OAAEC,EAAM,SAAEC,GAAaL,EAAOM,MACtCC,EAAOC,IAAYC,EAAAA,EAAAA,UAAgB,CACxCC,gBAA0C,QAA3B,EAAEL,aAAAA,EAAAA,EAAUK,uBAAe,QAAIC,EAAAA,KAYhD,OACE,kBAACC,MAAAA,CAAIC,cAAaxB,EAAQC,UAAUC,WAElC,kBAACuB,EAAAA,SAAQA,CAAC9C,MAAM,qBACZmC,GACA,oCACE,kBAACS,MAAAA,CAAIG,UAAWd,EAAE7B,WAAW,wCAC7B,kBAAC4C,EAAAA,OAAMA,CACLD,UAAWd,EAAExB,UACbwC,QAAQ,UACRC,QAAS,IACPtC,EAAsBoB,EAAOM,KAAKa,GAAI,CACpChB,SAAS,EACTC,QAAQ,EACRC,cAGL,kBAOJF,GACC,oCACE,kBAACS,MAAAA,CAAIG,UAAWd,EAAE7B,WAAW,oCAC7B,kBAAC4C,EAAAA,OAAMA,CACLD,UAAWd,EAAExB,UACbwC,QAAQ,cACRC,QAAS,IACPtC,EAAsBoB,EAAOM,KAAKa,GAAI,CACpChB,SAAS,EACTC,QAAQ,EACRC,cAGL,oBAQP,kBAACS,EAAAA,SAAQA,CAAC9C,MAAM,uBAAuB+C,UAAWd,EAAEtB,aAClD,kBAACyC,EAAAA,MAAKA,CACJpD,MAAM,cACNqD,YAAY,sHAEZ,kBAACC,EAAAA,SAAQA,CACPC,MAAO,GACPJ,GAAG,oBACHN,cAAaxB,EAAQC,UAAUE,WAC/BgC,QAAS9D,EACTO,MAAOsC,EAAMG,gBACbe,SAjEkBC,KACtBA,aAAAA,EAAAA,EAAQzD,QACVuC,EAAS,E,kUAAA,IACJD,GAAAA,CACHG,gBAAiBgB,EAAOzD,aAiExB,kBAAC2C,MAAAA,CAAIG,UAAWd,EAAExB,WAChB,kBAACuC,EAAAA,OAAMA,CACLW,KAAK,SACLd,cAAaxB,EAAQC,UAAUG,OAC/ByB,QAAS,IACPtC,EAAsBoB,EAAOM,KAAKa,GAAI,CACpChB,UACAC,SACAC,SAAU,CACRK,gBAAiBH,EAAMG,oBAI9B,oB","sources":["webpack://grafana-exploretraces-app/./components/AppConfig/AppConfig.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport { Button, Field, useStyles2, FieldSet, Combobox } from '@grafana/ui';\nimport { PluginConfigPageProps, AppPluginMeta, PluginMeta, GrafanaTheme2 } from '@grafana/data';\nimport { FetchResponse, getBackendSrv, locationService } from '@grafana/runtime';\nimport { css } from '@emotion/css';\nimport { lastValueFrom, Observable } from 'rxjs';\nimport { DEFAULT_QUERY_RANGE_HOURS } from 'utils/shared';\n\nexport type JsonData = {\n queryRangeHours?: number;\n};\n\ntype State = {\n // The time range for each cached batch (in hours)\n queryRangeHours: number;\n};\n\ninterface Props extends PluginConfigPageProps> {}\n\nconst HOUR_OPTIONS = Array.from({ length: 24 }, (_, i) => ({\n label: `${i + 1} hour${i > 0 ? 's' : ''}`,\n value: i + 1,\n}));\n\nconst AppConfig = ({ plugin }: Props) => {\n const s = useStyles2(getStyles);\n const { enabled, pinned, jsonData } = plugin.meta;\n const [state, setState] = useState({\n queryRangeHours: jsonData?.queryRangeHours ?? DEFAULT_QUERY_RANGE_HOURS,\n });\n\n const onChangeQueryRange = (option: { label?: string; value?: number } | null) => {\n if (option?.value) {\n setState({\n ...state,\n queryRangeHours: option.value,\n });\n }\n };\n\n return (\n
\n {/* ENABLE / DISABLE PLUGIN */}\n
\n {!enabled && (\n <>\n
The plugin is currently not enabled.
\n \n updatePluginAndReload(plugin.meta.id, {\n enabled: true,\n pinned: true,\n jsonData,\n })\n }\n >\n Enable plugin\n \n \n )}\n\n {/* Disable the plugin */}\n {enabled && (\n <>\n
The plugin is currently enabled.
\n \n updatePluginAndReload(plugin.meta.id, {\n enabled: false,\n pinned: false,\n jsonData,\n })\n }\n >\n Disable plugin\n \n \n )}\n
\n\n {/* CUSTOM SETTINGS */}\n
\n \n \n width={30}\n id=\"query-range-hours\"\n data-testid={testIds.appConfig.queryRange}\n options={HOUR_OPTIONS}\n value={state.queryRangeHours}\n onChange={onChangeQueryRange}\n />\n \n\n
\n \n updatePluginAndReload(plugin.meta.id, {\n enabled,\n pinned,\n jsonData: {\n queryRangeHours: state.queryRangeHours,\n },\n })\n }\n >\n Save settings\n \n
\n
\n
\n );\n};\n\nconst getStyles = (theme: GrafanaTheme2) => ({\n colorWeak: css`\n color: ${theme.colors.text.secondary};\n `,\n marginTop: css`\n margin-top: ${theme.spacing(3)};\n `,\n marginTopXl: css`\n margin-top: ${theme.spacing(6)};\n `,\n});\n\nconst updatePluginAndReload = async (pluginId: string, data: Partial>) => {\n try {\n await updatePlugin(pluginId, data);\n\n // Reloading the page as the changes made here wouldn't be propagated to the actual plugin otherwise.\n // This is not ideal, however unfortunately currently there is no supported way for updating the plugin state.\n locationService.reload();\n } catch (e) {\n console.error('Error while updating the plugin', e);\n }\n};\n\nconst testIds = {\n appConfig: {\n container: 'data-testid ac-container',\n queryRange: 'data-testid ac-query-range',\n submit: 'data-testid ac-submit-form',\n },\n};\n\n/**\n * Save plugin settings to Grafana backend.\n * Follows the recommended approach from:\n * https://grafana.com/developers/plugin-tools/tutorials/build-an-app-plugin#configuration-page\n */\nexport const updatePlugin = async (pluginId: string, data: Partial) => {\n const response = getBackendSrv().fetch({\n url: `/api/plugins/${pluginId}/settings`,\n method: 'POST',\n data,\n }) as unknown as Observable;\n\n const dataResponse = await lastValueFrom(response);\n\n return dataResponse.data;\n};\n\nexport default AppConfig;\n"],"names":["HOUR_OPTIONS","Array","from","length","_","i","label","value","getStyles","theme","colorWeak","css","colors","text","secondary","marginTop","spacing","marginTopXl","updatePluginAndReload","pluginId","data","updatePlugin","locationService","reload","e","console","error","testIds","appConfig","container","queryRange","submit","response","getBackendSrv","fetch","url","method","lastValueFrom","plugin","s","useStyles2","enabled","pinned","jsonData","meta","state","setState","useState","queryRangeHours","DEFAULT_QUERY_RANGE_HOURS","div","data-testid","FieldSet","className","Button","variant","onClick","id","Field","description","Combobox","width","options","onChange","option","type"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/fastpath/grafana/data/plugins/grafana-exploretraces-app/205.js b/fastpath/grafana/data/plugins/grafana-exploretraces-app/205.js new file mode 100755 index 000000000..9553bc2c2 --- /dev/null +++ b/fastpath/grafana/data/plugins/grafana-exploretraces-app/205.js @@ -0,0 +1,3 @@ +/*! For license information please see 205.js.LICENSE.txt */ +(self.webpackChunkgrafana_exploretraces_app=self.webpackChunkgrafana_exploretraces_app||[]).push([[205],{177(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n(e.Ascending="Ascending",e.Descending="Descending",e))(n||{}),r=(e=>(e.Always="always",e.Auto="auto",e.Never="never",e))(r||{}),a=(e=>(e.Hue="hue",e.None="none",e.Opacity="opacity",e.Scheme="scheme",e))(a||{}),i=(e=>(e.None="none",e.Normal="normal",e.Percent="percent",e))(i||{});var o=(e=>(e.Auto="auto",e.Horizontal="horizontal",e.Vertical="vertical",e))(o||{});var s=(e=>(e.Background="background",e.BackgroundSolid="background_solid",e.None="none",e.Value="value",e))(s||{}),l=(e=>(e.Area="area",e.Line="line",e.None="none",e))(l||{}),u=(e=>(e.Auto="auto",e.Center="center",e))(u||{}),c=(e=>(e.Auto="auto",e.Name="name",e.None="none",e.Value="value",e.ValueAndName="value_and_name",e))(c||{}),d=(e=>(e.Inverted="inverted",e.SameAsValue="same_as_value",e.Standard="standard",e))(d||{}),p=(e=>(e.Multi="multi",e.None="none",e.Single="single",e))(p||{});var f=(e=>(e.Basic="basic",e.Gradient="gradient",e.Lcd="lcd",e))(f||{}),h=(e=>(e.Color="color",e.Hidden="hidden",e.Text="text",e))(h||{}),m=(e=>(e.Auto="auto",e.Hidden="hidden",e.Left="left",e.Top="top",e))(m||{}),g=(e=>(e.Auto="auto",e.Manual="manual",e))(g||{}),v=(e=>(e.Actions="actions",e.Auto="auto",e.BasicGauge="basic",e.ColorBackground="color-background",e.ColorBackgroundSolid="color-background-solid",e.ColorText="color-text",e.Custom="custom",e.DataLinks="data-links",e.Gauge="gauge",e.Geo="geo",e.GradientGauge="gradient-gauge",e.Image="image",e.JSONView="json-view",e.LcdGauge="lcd-gauge",e.Markdown="markdown",e.Pill="pill",e.Sparkline="sparkline",e))(v||{});v.Auto;t.BarGaugeDisplayMode=f,t.BarGaugeNamePlacement=m,t.BarGaugeSizing=g,t.BarGaugeValueMode=h,t.BigValueColorMode=s,t.BigValueGraphMode=l,t.BigValueJustifyMode=u,t.BigValueTextMode=c,t.GraphGradientMode=a,t.LogsSortOrder=n,t.PercentChangeColorMode=d,t.StackingMode=i,t.TooltipDisplayMode=p,t.VisibilityMode=r,t.VizOrientation=o},919(e,t){"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Editar filtro com a chave {{keyLabel}}","managed-filter":"Filtro gerido de {{origin}}","non-applicable":"","remove-filter-with-key":"Remover filtro com a chave {{keyLabel}} "},"adhoc-filters-combobox":{"remove-filter-value":"Remover o valor do filtro - {{itemLabel}} ","use-custom-value":"Utilizar valor personalizado: {{itemLabel}}"},"fallback-page":{content:"Se chegou aqui através de um link, pode existir um erro nesta aplicação.",subTitle:"O URL não corresponde a nenhuma página",title:"Não encontrado"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Recolher cena","expand-button-label":"Expandir cena","remove-button-label":"Remover cena"},"scene-debugger":{"object-details":"Detalhes do objeto","scene-graph":"Gráfico de cena","title-scene-debugger":"Depurador de cena"},"scene-grid-row":{"collapse-row":"Recolher linha","expand-row":"Expandir linha"},"scene-refresh-picker":{"text-cancel":"Cancelar","text-refresh":"Atualizar","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Comparação","button-tooltip":"Ativar a comparação de intervalos de tempo"},splitter:{"aria-label-pane-resize-widget":"Widget de redimensionamento de painel"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Título"}},"viz-panel-explore-button":{explore:"Explorar"},"viz-panel-renderer":{"loading-plugin-panel":"A carregar o painel de plugins...","panel-plugin-has-no-panel-component":"O plugin do painel não tem componente de painel"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"A renderização de demasiadas séries num único painel pode afetar o desempenho e dificultar a leitura dos dados. ","warning-message":"A mostrar apenas {{seriesLimit}} séries"}},utils:{"controls-label":{"tooltip-remove":"Remover"},"loading-indicator":{"content-cancel-query":"Cancelar consulta"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Editar operador de filtro"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Adicionar filtro","title-add-filter":"Adicionar filtro"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Remover filtro","key-select":{"placeholder-select-label":"Selecione etiqueta"},"label-select-label":"Selecione etiqueta","title-remove-filter":"Remover filtro","value-select":{"placeholder-select-value":"Selecionar valor"}},"data-source-variable":{label:{default:"padrão"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"limpar",tooltip:"Aplicado por predefinição neste painel de controlo. Em caso de edição, é transferido para outros painéis de controlo.","tooltip-restore-groupby-set-by-this-dashboard":"Restaurar grupo definido por este painel de controlo."},"format-registry":{formats:{description:{"commaseparated-values":"Valores separados por vírgulas","double-quoted-values":"Valores entre aspas duplas","format-date-in-different-ways":"Formatar a data de diferentes formas","format-multivalued-variables-using-syntax-example":"Formatar variáveis de valores múltiplos com a sintaxe glob, exemplo {value1,value2}","html-escaping-of-values":"Escape de valores HTML","join-values-with-a-comma":"","json-stringify-value":"Valor no formato JSON (stringify)","keep-value-as-is":"Manter o valor como está","multiple-values-are-formatted-like-variablevalue":"Os valores múltiplos são formatados como variável=valor","single-quoted-values":"Valores entre aspas simples","useful-escaping-values-taking-syntax-characters":"Útil para valores de escape de URL, tendo em conta carateres de sintaxe URI","useful-for-url-escaping-values":"Útil para valores de escape de URL","values-are-separated-by-character":"Os valores são separados pelo caráter |"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Agrupar por seletor","placeholder-group-by-label":"Agrupar por etiqueta"},"interval-variable":{"placeholder-select-value":"Selecionar valor"},"loading-options-placeholder":{"loading-options":"A carregar opções..."},"multi-value-apply-button":{apply:"Aplicar"},"no-options-placeholder":{"no-options-found":"Nenhuma opção encontrada"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Ocorreu um erro ao obter as etiquetas. Clique para tentar novamente"},"test-object-with-variable-dependency":{title:{hello:"Olá"}},"test-variable":{text:{text:"Texto"}},"variable-value-input":{"placeholder-enter-value":"Introduza o valor"},"variable-value-select":{"placeholder-select-value":"Selecionar valor"}}}}},977(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function a(e){return s(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function o(e){var t;return null==(t=(s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function s(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function l(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function u(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function c(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function d(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=M(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==a&&"contents"!==a}function p(e){return/^(table|td|th)$/.test(a(e))}function f(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}n.d(t,{$4:()=>k,CP:()=>S,L9:()=>M,Lv:()=>p,Ng:()=>c,Tc:()=>_,Tf:()=>f,ZU:()=>d,_m:()=>D,ep:()=>o,eu:()=>w,gJ:()=>b,mq:()=>a,sQ:()=>y,sb:()=>u,v9:()=>x,vq:()=>l,zk:()=>i});const h=/transform|translate|scale|rotate|perspective|filter/,m=/paint|layout|strict|content/,g=e=>!!e&&"none"!==e;let v;function y(e){const t=l(e)?M(e):e;return g(t.transform)||g(t.translate)||g(t.scale)||g(t.rotate)||g(t.perspective)||!_()&&(g(t.backdropFilter)||g(t.filter))||h.test(t.willChange||"")||m.test(t.contain||"")}function b(e){let t=k(e);for(;u(t)&&!w(t);){if(y(t))return t;if(f(t))return null;t=k(t)}return null}function _(){return null==v&&(v="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),v}function w(e){return/^(html|body|#document)$/.test(a(e))}function M(e){return i(e).getComputedStyle(e)}function S(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function k(e){if("html"===a(e))return e;const t=e.assignedSlot||e.parentNode||c(e)&&e.host||o(e);return c(t)?t.host:t}function L(e){const t=k(e);return w(t)?e.ownerDocument?e.ownerDocument.body:e.body:u(t)&&d(t)?t:L(t)}function x(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=L(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),s=i(a);if(o){const e=D(s);return t.concat(s,s.visualViewport||[],d(a)?a:[],e&&n?x(e):[])}return t.concat(a,x(a,[],n))}function D(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},1080(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAction=void 0;var i=n(77638),o=n(52320),s=n(7394),l=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return a(t,e),t.prototype.schedule=function(e,t){var n;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,a=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(a,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(a,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),o.intervalProvider.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&o.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,s.arrRemove(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(i.Action);t.AsyncAction=l},1152(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(42689))},1266(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorSubscriber=t.createOperatorSubscriber=void 0;var i=n(4512);t.createOperatorSubscriber=function(e,t,n,r,a){return new o(e,t,n,r,a)};var o=function(e){function t(t,n,r,a,i,o){var s=e.call(this,t)||this;return s.onFinalize=i,s.shouldUnsubscribe=o,s._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=a?function(e){try{a(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return a(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(i.Subscriber);t.OperatorSubscriber=o},1812(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;nr});var r=(e=>(e[e.dontHide=0]="dontHide",e[e.hideLabel=1]="hideLabel",e[e.hideVariable=2]="hideVariable",e[e.inControlsMenu=3]="inControlsMenu",e))(r||{})},2801(e,t,n){"use strict";const r=n(37944);e.exports=(e,t,n)=>{const a=new r(e,n),i=new r(t,n);return a.compare(i)||a.compareBuild(i)}},2802(e,t){"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Edit filter with key {{keyLabel}}","managed-filter":"{{origin}} managed filter","non-applicable":"Filter is not applicable","remove-filter-with-key":"Remove filter with key {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Remove filter value - {{itemLabel}}","use-custom-value":"Use custom value: {{itemLabel}}"},"drilldown-recommendations":{recent:"Recent","recent-empty":"No recent values",recommended:"Recommended","recommended-empty":"No recommended values",tooltip:"Show recommendations"},"fallback-page":{content:"If you found your way here using a link then there might be a bug in this application.",subTitle:"The url did not match any page",title:"Not found"},"lazy-loader":{placeholder:" "},"nested-scene-renderer":{"collapse-button-label":"Collapse scene","expand-button-label":"Expand scene","remove-button-label":"Remove scene"},"scene-debugger":{"object-details":"Object details","scene-graph":"Scene graph","title-scene-debugger":"Scene debugger"},"scene-grid-row":{"collapse-row":"Collapse row","expand-row":"Expand row"},"scene-refresh-picker":{"text-cancel":"Cancel","text-refresh":"Refresh","tooltip-cancel":"Cancel all queries"},"scene-time-range-compare-renderer":{"button-label":"Comparison","button-tooltip":"Enable time frame comparison"},splitter:{"aria-label-pane-resize-widget":"Pane resize widget"},"time-picker":{"move-backward-tooltip":"Move {{moveBackwardDuration}} backward","move-forward-tooltip":"Move {{moveForwardDuration}} forward"},"viz-panel":{title:{title:"Title"}},"viz-panel-explore-button":{explore:"Explore"},"viz-panel-renderer":{"loading-plugin-panel":"Loading plugin panel...","panel-plugin-has-no-panel-component":"Panel plugin has no panel component"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Rendering too many series in a single panel may impact performance and make data harder to read.","warning-message":"Showing only {{seriesLimit}} series"}},utils:{"controls-label":{"tooltip-remove":"Remove"},"loading-indicator":{"content-cancel-query":"Cancel query"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Edit filter operator"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Add filter","title-add-filter":"Add filter"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Remove filter","key-select":{"placeholder-select-label":"Select label"},"label-select-label":"Select label","title-remove-filter":"Remove filter","value-select":{"placeholder-select-value":"Select value"}},"adhoc-filters-combobox-renderer":{collapse:"Collapse","collapse-filters":"Collapse filters"},"data-source-variable":{label:{default:"default"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"clear",tooltip:"Applied by default in this dashboard. If edited, it carries over to other dashboards.","tooltip-restore-groupby-set-by-this-dashboard":"Restore groupby set by this dashboard."},"format-registry":{formats:{description:{"commaseparated-values":"Comma-separated values","double-quoted-values":"Double quoted values","format-date-in-different-ways":"Format date in different ways","format-multivalued-variables-using-syntax-example":"Format multi-valued variables using glob syntax, example {value1,value2}","html-escaping-of-values":"HTML escaping of values","join-values-with-a-comma":"Join values with a comma","json-stringify-value":"JSON stringify value","keep-value-as-is":"Keep value as is","multiple-values-are-formatted-like-variablevalue":"Multiple values are formatted like variable=value","single-quoted-values":"Single quoted values","useful-escaping-values-taking-syntax-characters":"Useful for URL escaping values, taking into URI syntax characters","useful-for-url-escaping-values":"Useful for URL escaping values","values-are-separated-by-character":"Values are separated by | character"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Group by selector","placeholder-group-by-label":"Group by label"},"interval-variable":{"placeholder-select-value":"Select value"},"loading-options-placeholder":{"loading-options":"Loading options..."},"multi-value-apply-button":{apply:"Apply"},"no-options-placeholder":{"no-options-found":"No options found"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"An error has occurred fetching labels. Click to retry"},"test-object-with-variable-dependency":{title:{hello:"Hello"}},"test-variable":{text:{text:"Text"}},"variable-value-input":{"placeholder-enter-value":"Enter value"},"variable-value-select":{"placeholder-select-value":"Select value"}}}}},2934(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(42689))},3002(e,t,n){!function(e){"use strict";var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],r=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],a=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],i=["Do","Lu","Má","Cé","Dé","A","Sa"];e.defineLocale("ga",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:a,weekdaysMin:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(42689))},3003(e,t,n){"use strict";n.d(t,{N:()=>a});var r=n(85959);const a="undefined"!=typeof document?r.useLayoutEffect:()=>{}},3023(e,t){"use strict";var n=(e=>(e.Circle="circle",e.Square="square",e))(n||{}),r=(e=>(e.Auto="auto",e.Manual="manual",e))(r||{}),a=(e=>(e.Lines="lines",e.Points="points",e.PointsAndLines="points+lines",e))(a||{});t.PointShape=n,t.SeriesMapping=r,t.XYShowMode=a,t.defaultFieldConfig={fillOpacity:50,show:"points"},t.defaultMatcherConfig={id:""},t.defaultOptions={series:[]},t.pluginVersion="12.4.1"},3123(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromSubscribable=void 0;var r=n(92023);t.fromSubscribable=function(e){return new r.Observable(function(t){return e.subscribe(t)})}},3310(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(42689))},3367(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=void 0;var r=n(35416),a=n(52819);t.findIndex=function(e,t){return r.operate(a.createFind(e,t,"index"))}},3489(e,t,n){"use strict";const r=n(37944),a=n(68395),i=n(60144);e.exports=(e,t)=>{e=new a(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!i(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}),!o||n&&!i(n,o)||(n=o)}return n&&e.test(n)?n:null}},3818(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;var r=n(47071),a=n(35416);t.reduce=function(e,t){return a.operate(r.scanInternals(e,t,arguments.length>=2,!1,!0))}},4382(e,t){"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Edit filter dengan kunci {{keyLabel}}","managed-filter":"Filter {{origin}} yang dikelola","non-applicable":"","remove-filter-with-key":"Hapus filter dengan kunci {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Hapus nilai filter - {{itemLabel}}","use-custom-value":"Gunakan nilai kustom: {{itemLabel}}"},"fallback-page":{content:"Jika Anda diarahkan ke sini menggunakan tautan, mungkin ada bug dalam aplikasi ini.",subTitle:"URL tidak cocok dengan halaman mana pun",title:"Tidak ditemukan"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Ciutkan tampilan","expand-button-label":"Perluas tampilan","remove-button-label":"Hapus tampilan"},"scene-debugger":{"object-details":"Detail objek","scene-graph":"Grafik tampilan","title-scene-debugger":"Debugger tampilan"},"scene-grid-row":{"collapse-row":"Ciutkan baris","expand-row":"Perbesar baris"},"scene-refresh-picker":{"text-cancel":"Batalkan","text-refresh":"Muat ulang","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Perbandingan","button-tooltip":"Aktifkan perbandingan kerangka waktu"},splitter:{"aria-label-pane-resize-widget":"Widget pengubah ukuran panel"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Judul"}},"viz-panel-explore-button":{explore:"Jelajahi"},"viz-panel-renderer":{"loading-plugin-panel":"Memuat panel plugin...","panel-plugin-has-no-panel-component":"Plugin panel tidak memiliki komponen panel"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Menampilkan terlalu banyak seri data dalam satu panel dapat memengaruhi kinerja dan membuat data lebih sulit dibaca.","warning-message":"Menampilkan {{seriesLimit}} seri data saja"}},utils:{"controls-label":{"tooltip-remove":"Hapus"},"loading-indicator":{"content-cancel-query":"Batalkan kueri"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Edit operator filter"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Tambahkan filter","title-add-filter":"Tambahkan filter"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Hapus filter","key-select":{"placeholder-select-label":"Pilih label"},"label-select-label":"Pilih label","title-remove-filter":"Hapus filter","value-select":{"placeholder-select-value":"Pilih nilai"}},"data-source-variable":{label:{default:"default"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"hapus",tooltip:"Diterapkan secara default di dasbor ini. Jika diedit, ini akan diteruskan ke dasbor lain.","tooltip-restore-groupby-set-by-this-dashboard":"Pulihkan 'kelompokkan berdasarkan' yang ditetapkan oleh dasbor ini."},"format-registry":{formats:{description:{"commaseparated-values":"Nilai yang dipisahkan koma","double-quoted-values":"Nilai dalam tanda kutip ganda","format-date-in-different-ways":"Format tanggal dengan berbagai cara yang berbeda","format-multivalued-variables-using-syntax-example":"Format variabel multi-nilai menggunakan sintaks glob, contoh {value1, value2}","html-escaping-of-values":"Nilai HTML escaping","join-values-with-a-comma":"","json-stringify-value":"Nilai stringify JSON","keep-value-as-is":"Pertahankan nilai apa adanya","multiple-values-are-formatted-like-variablevalue":"Beberapa nilai diformat seperti variabel=nilai","single-quoted-values":"Nilai dalam tanda kutip tunggal","useful-escaping-values-taking-syntax-characters":"Berguna untuk nilai escaping URL, memperhitungkan karakter sintaks URI","useful-for-url-escaping-values":"Berguna untuk nilai URL escaping","values-are-separated-by-character":"Nilai dipisahkan oleh karakter |"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Kelompokkan berdasarkan selektor","placeholder-group-by-label":"Kelompokkan berdasarkan label"},"interval-variable":{"placeholder-select-value":"Pilih nilai"},"loading-options-placeholder":{"loading-options":"Memuat opsi..."},"multi-value-apply-button":{apply:"Terapkan"},"no-options-placeholder":{"no-options-found":"Opsi tidak ditemukan"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Terjadi kesalahan saat mengambil label. Klik untuk mencoba lagi"},"test-object-with-variable-dependency":{title:{hello:"Halo"}},"test-variable":{text:{text:"Teks"}},"variable-value-input":{"placeholder-enter-value":"Masukkan nilai"},"variable-value-select":{"placeholder-select-value":"Pilih nilai"}}}}},4386(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.async=t.asyncScheduler=void 0;var r=n(1080),a=n(61017);t.asyncScheduler=new a.AsyncScheduler(r.AsyncAction),t.async=t.asyncScheduler},4452(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e="",t=0;t=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowToggle=void 0;var a=n(20020),i=n(27491),o=n(35416),s=n(52296),l=n(1266),u=n(16129),c=n(7394);t.windowToggle=function(e,t){return o.operate(function(n,o){var d=[],p=function(e){for(;0=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(42689))},5606(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zipAll=void 0;var r=n(61763),a=n(10587);t.zipAll=function(e){return a.joinAllInternals(r.zip,e)}},5662(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(42689))},5831(e,t){"use strict";var n=(e=>(e.Details="details",e.None="none",e))(n||{}),r=(e=>(e.Coords="coords",e.Fit="fit",e.Zero="zero",e))(r||{});t.MapCenterID=r,t.TooltipMode=n,t.defaultMapViewConfig={allLayers:!0,id:"zero",lat:0,lon:0,noRepeat:!1,zoom:1},t.defaultOptions={layers:[]},t.pluginVersion="12.4.1"},6105(e,t){"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function r(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,a,i,o){return r((s=r(r(t,e),r(a,o)))<<(l=i)|s>>>32-l,n);var s,l}function i(e,t,n,r,i,o,s){return a(t&n|~t&r,e,t,i,o,s)}function o(e,t,n,r,i,o,s){return a(t&r|n&~r,e,t,i,o,s)}function s(e,t,n,r,i,o,s){return a(t^n^r,e,t,i,o,s)}function l(e,t,n,r,i,o,s){return a(n^(t|~r),e,t,i,o,s)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n>5]>>>a%32&255,i=parseInt(r.charAt(n>>>4&15)+r.charAt(15&n),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[n/8])<=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(42689))},6682(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=n},6776(e){!function(){"use strict";var t="undefined"!=typeof window&&void 0!==window.document?window.document:{},n=e.exports,r=function(){for(var e,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,a=n.length,i={};r(e[e.dontHide=0]="dontHide",e[e.hideLabel=1]="hideLabel",e[e.hideVariable=2]="hideVariable",e[e.inControlsMenu=3]="inControlsMenu",e))(a||{});const i=r.defaultDashboard,o={...r.defaultVariableModel},s=r.defaultTimePickerConfig,l=r.defaultPanel,u=r.defaultRowPanel,c=r.defaultFieldConfig,d=r.defaultFieldConfigSource,p=r.defaultMatcherConfig,f=r.defaultAnnotationQuery,h=r.defaultAnnotationContainer;t.VariableHide=a,t.defaultAnnotationContainer=h,t.defaultAnnotationQuery=f,t.defaultDashboard=i,t.defaultFieldConfig=c,t.defaultFieldConfigSource=d,t.defaultMatcherConfig=p,t.defaultPanel=l,t.defaultRowPanel=u,t.defaultTimePickerConfig=s,t.defaultVariableModel=o},7394(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrRemove=void 0,t.arrRemove=function(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}},7396(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?a[n][0]:a[n][1]}function n(e){return a(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function r(e){return a(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function a(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return a(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return a(e)}return a(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:r,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(42689))},7775(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeat=void 0;var r=n(47209),a=n(35416),i=n(1266),o=n(52296),s=n(35461);t.repeat=function(e){var t,n,l=1/0;return null!=e&&("object"==typeof e?(t=e.count,l=void 0===t?1/0:t,n=e.delay):l=e),l<=0?function(){return r.EMPTY}:a.operate(function(e,t){var r,a=0,u=function(){if(null==r||r.unsubscribe(),r=null,null!=n){var e="number"==typeof n?s.timer(n):o.innerFrom(n(a)),l=i.createOperatorSubscriber(t,function(){l.unsubscribe(),c()});e.subscribe(l)}else c()},c=function(){var n=!1;r=e.subscribe(i.createOperatorSubscriber(t,void 0,function(){++a{let i=null,o=null,s=null;try{s=new a(t,n)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(i&&1!==o.compare(e)||(i=e,o=new r(i,n)))}),i}},8026(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?a[n][0]:a[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(42689))},8083(e,t,n){"use strict";n.d(t,{UE:()=>R,RK:()=>E,ll:()=>D,rD:()=>F,__:()=>T,UU:()=>C,jD:()=>A,mG:()=>j,ER:()=>I,cY:()=>O,iD:()=>L,BN:()=>P,Ej:()=>Y});var r=n(58015);function a(e,t,n){let{reference:a,floating:i}=e;const o=(0,r.TV)(t),s=(0,r.Dz)(t),l=(0,r.sq)(s),u=(0,r.C0)(t),c="y"===o,d=a.x+a.width/2-i.width/2,p=a.y+a.height/2-i.height/2,f=a[l]/2-i[l]/2;let h;switch(u){case"top":h={x:d,y:a.y-i.height};break;case"bottom":h={x:d,y:a.y+a.height};break;case"right":h={x:a.x+a.width,y:p};break;case"left":h={x:a.x-i.width,y:p};break;default:h={x:a.x,y:a.y}}switch((0,r.Sg)(t)){case"start":h[s]-=f*(n&&c?-1:1);break;case"end":h[s]+=f*(n&&c?-1:1)}return h}async function i(e,t){var n;void 0===t&&(t={});const{x:a,y:i,platform:o,rects:s,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:h=0}=(0,r._3)(t,e),m=(0,r.nI)(h),g=l[f?"floating"===p?"reference":"floating":p],v=(0,r.B1)(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),y="floating"===p?{x:a,y:i,width:s.floating.width,height:s.floating.height}:s.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),_=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},w=(0,r.B1)(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:b,strategy:u}):y);return{top:(v.top-w.top+m.top)/_.y,bottom:(w.bottom-v.bottom+m.bottom)/_.y,left:(v.left-w.left+m.left)/_.x,right:(w.right-v.right+m.right)/_.x}}function o(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function s(e){return r.r_.some(t=>e[t]>=0)}function l(e){const t=(0,r.jk)(...e.map(e=>e.left)),n=(0,r.jk)(...e.map(e=>e.top));return{x:t,y:n,width:(0,r.T9)(...e.map(e=>e.right))-t,height:(0,r.T9)(...e.map(e=>e.bottom))-n}}const u=new Set(["left","top"]);var c=n(977);function d(e){const t=(0,c.L9)(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const i=(0,c.sb)(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:a,l=(0,r.LI)(n)!==o||(0,r.LI)(a)!==s;return l&&(n=o,a=s),{width:n,height:a,$:l}}function p(e){return(0,c.vq)(e)?e:e.contextElement}function f(e){const t=p(e);if(!(0,c.sb)(t))return(0,r.Jx)(1);const n=t.getBoundingClientRect(),{width:a,height:i,$:o}=d(t);let s=(o?(0,r.LI)(n.width):n.width)/a,l=(o?(0,r.LI)(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}const h=(0,r.Jx)(0);function m(e){const t=(0,c.zk)(e);return(0,c.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:h}function g(e,t,n,a){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=p(e);let s=(0,r.Jx)(1);t&&(a?(0,c.vq)(a)&&(s=f(a)):s=f(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,c.zk)(e))&&t}(o,n,a)?m(o):(0,r.Jx)(0);let u=(i.left+l.x)/s.x,d=(i.top+l.y)/s.y,h=i.width/s.x,g=i.height/s.y;if(o){const e=(0,c.zk)(o),t=a&&(0,c.vq)(a)?(0,c.zk)(a):a;let n=e,r=(0,c._m)(n);for(;r&&a&&t!==n;){const e=f(r),t=r.getBoundingClientRect(),a=(0,c.L9)(r),i=t.left+(r.clientLeft+parseFloat(a.paddingLeft))*e.x,o=t.top+(r.clientTop+parseFloat(a.paddingTop))*e.y;u*=e.x,d*=e.y,h*=e.x,g*=e.y,u+=i,d+=o,n=(0,c.zk)(r),r=(0,c._m)(n)}}return(0,r.B1)({width:h,height:g,x:u,y:d})}function v(e,t){const n=(0,c.CP)(e).scrollLeft;return t?t.left+n:g((0,c.ep)(e)).left+n}function y(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-v(e,n),y:n.top+t.scrollTop}}function b(e,t,n){let a;if("viewport"===t)a=function(e,t){const n=(0,c.zk)(e),r=(0,c.ep)(e),a=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const e=(0,c.Tc)();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}const u=v(r);if(u<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-a);o<=25&&(i-=o)}else u<=25&&(i+=u);return{width:i,height:o,x:s,y:l}}(e,n);else if("document"===t)a=function(e){const t=(0,c.ep)(e),n=(0,c.CP)(e),a=e.ownerDocument.body,i=(0,r.T9)(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),o=(0,r.T9)(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let s=-n.scrollLeft+v(e);const l=-n.scrollTop;return"rtl"===(0,c.L9)(a).direction&&(s+=(0,r.T9)(t.clientWidth,a.clientWidth)-i),{width:i,height:o,x:s,y:l}}((0,c.ep)(e));else if((0,c.vq)(t))a=function(e,t){const n=g(e,!0,"fixed"===t),a=n.top+e.clientTop,i=n.left+e.clientLeft,o=(0,c.sb)(e)?f(e):(0,r.Jx)(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:a*o.y}}(t,n);else{const n=m(e);a={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,r.B1)(a)}function _(e,t){const n=(0,c.$4)(e);return!(n===t||!(0,c.vq)(n)||(0,c.eu)(n))&&("fixed"===(0,c.L9)(n).position||_(n,t))}function w(e,t,n){const a=(0,c.sb)(t),i=(0,c.ep)(t),o="fixed"===n,s=g(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const u=(0,r.Jx)(0);function d(){u.x=v(i)}if(a||!a&&!o)if(("body"!==(0,c.mq)(t)||(0,c.ZU)(i))&&(l=(0,c.CP)(t)),a){const e=g(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&d();o&&!a&&i&&d();const p=!i||a||o?(0,r.Jx)(0):y(i,l);return{x:s.left+l.scrollLeft-u.x-p.x,y:s.top+l.scrollTop-u.y-p.y,width:s.width,height:s.height}}function M(e){return"static"===(0,c.L9)(e).position}function S(e,t){if(!(0,c.sb)(e)||"fixed"===(0,c.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,c.ep)(e)===n&&(n=n.ownerDocument.body),n}function k(e,t){const n=(0,c.zk)(e);if((0,c.Tf)(e))return n;if(!(0,c.sb)(e)){let t=(0,c.$4)(e);for(;t&&!(0,c.eu)(t);){if((0,c.vq)(t)&&!M(t))return t;t=(0,c.$4)(t)}return n}let r=S(e,t);for(;r&&(0,c.Lv)(r)&&M(r);)r=S(r,t);return r&&(0,c.eu)(r)&&M(r)&&!(0,c.sQ)(r)?n:r||(0,c.gJ)(e)||n}const L={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:a,strategy:i}=e;const o="fixed"===i,s=(0,c.ep)(a),l=!!t&&(0,c.Tf)(t.floating);if(a===s||l&&o)return n;let u={scrollLeft:0,scrollTop:0},d=(0,r.Jx)(1);const p=(0,r.Jx)(0),h=(0,c.sb)(a);if((h||!h&&!o)&&(("body"!==(0,c.mq)(a)||(0,c.ZU)(s))&&(u=(0,c.CP)(a)),h)){const e=g(a);d=f(a),p.x=e.x+a.clientLeft,p.y=e.y+a.clientTop}const m=!s||h||o?(0,r.Jx)(0):y(s,u);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+p.x+m.x,y:n.y*d.y-u.scrollTop*d.y+p.y+m.y}},getDocumentElement:c.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:a,strategy:i}=e;const o=[..."clippingAncestors"===n?(0,c.Tf)(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=(0,c.v9)(e,[],!1).filter(e=>(0,c.vq)(e)&&"body"!==(0,c.mq)(e)),a=null;const i="fixed"===(0,c.L9)(e).position;let o=i?(0,c.$4)(e):e;for(;(0,c.vq)(o)&&!(0,c.eu)(o);){const t=(0,c.L9)(o),n=(0,c.sQ)(o);n||"fixed"!==t.position||(a=null),(i?!n&&!a:!n&&"static"===t.position&&a&&("absolute"===a.position||"fixed"===a.position)||(0,c.ZU)(o)&&!n&&_(e,o))?r=r.filter(e=>e!==o):a=t,o=(0,c.$4)(o)}return t.set(e,r),r}(t,this._c):[].concat(n),a],s=b(t,o[0],i);let l=s.top,u=s.right,d=s.bottom,p=s.left;for(let e=1;e{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});const h=d&&l?function(e,t){let n,a=null;const i=(0,c.ep)(e);function o(){var e;clearTimeout(n),null==(e=a)||e.disconnect(),a=null}return function s(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),o();const c=e.getBoundingClientRect(),{left:d,top:p,width:f,height:h}=c;if(l||t(),!f||!h)return;const m={rootMargin:-(0,r.RI)(p)+"px "+-(0,r.RI)(i.clientWidth-(d+f))+"px "+-(0,r.RI)(i.clientHeight-(p+h))+"px "+-(0,r.RI)(d)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,u))||1};let g=!0;function v(t){const r=t[0].intersectionRatio;if(r!==u){if(!g)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||x(c,e.getBoundingClientRect())||s(),g=!1}try{a=new IntersectionObserver(v,{...m,root:i.ownerDocument})}catch(e){a=new IntersectionObserver(v,m)}a.observe(e)}(!0),o}(d,n):null;let m,v=-1,y=null;s&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===d&&y&&t&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),d&&!u&&y.observe(d),t&&y.observe(t));let b=u?g(e):null;return u&&function t(){const r=g(e);b&&!x(b,r)&&n();b=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=y)||e.disconnect(),y=null,u&&cancelAnimationFrame(m)}}const T=i,O=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:i,y:o,placement:s,middlewareData:l}=t,c=await async function(e,t){const{placement:n,platform:a,elements:i}=e,o=await(null==a.isRTL?void 0:a.isRTL(i.floating)),s=(0,r.C0)(n),l=(0,r.Sg)(n),c="y"===(0,r.TV)(n),d=u.has(s)?-1:1,p=o&&c?-1:1,f=(0,r._3)(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:g}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof g&&(m="end"===l?-1*g:g),c?{x:m*p,y:h*d}:{x:h*d,y:m*p}}(t,e);return s===(null==(n=l.offset)?void 0:n.placement)&&null!=(a=l.arrow)&&a.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:s}}}}},E=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,a,i;const{rects:o,middlewareData:s,placement:l,platform:u,elements:c}=t,{crossAxis:d=!1,alignment:p,allowedPlacements:f=r.DD,autoAlignment:h=!0,...m}=(0,r._3)(e,t),g=void 0!==p||f===r.DD?function(e,t,n){return(e?[...n.filter(t=>(0,r.Sg)(t)===e),...n.filter(t=>(0,r.Sg)(t)!==e)]:n.filter(e=>(0,r.C0)(e)===e)).filter(n=>!e||(0,r.Sg)(n)===e||!!t&&(0,r.aD)(n)!==n)}(p||null,h,f):f,v=await u.detectOverflow(t,m),y=(null==(n=s.autoPlacement)?void 0:n.index)||0,b=g[y];if(null==b)return{};const _=(0,r.w7)(b,o,await(null==u.isRTL?void 0:u.isRTL(c.floating)));if(l!==b)return{reset:{placement:g[0]}};const w=[v[(0,r.C0)(b)],v[_[0]],v[_[1]]],M=[...(null==(a=s.autoPlacement)?void 0:a.overflows)||[],{placement:b,overflows:w}],S=g[y+1];if(S)return{data:{index:y+1,overflows:M},reset:{placement:S}};const k=M.map(e=>{const t=(0,r.Sg)(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),L=(null==(i=k.filter(e=>e[2].slice(0,(0,r.Sg)(e[0])?2:3).every(e=>e<=0))[0])?void 0:i[0])||k[0][0];return L!==l?{data:{index:y+1,overflows:M},reset:{placement:L}}:{}}}},P=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:i,platform:o}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,r._3)(e,t),d={x:n,y:a},p=await o.detectOverflow(t,c),f=(0,r.TV)((0,r.C0)(i)),h=(0,r.PG)(f);let m=d[h],g=d[f];if(s){const e="y"===h?"bottom":"right",t=m+p["y"===h?"top":"left"],n=m-p[e];m=(0,r.qE)(t,m,n)}if(l){const e="y"===f?"bottom":"right",t=g+p["y"===f?"top":"left"],n=g-p[e];g=(0,r.qE)(t,g,n)}const v=u.fn({...t,[h]:m,[f]:g});return{...v,data:{x:v.x-n,y:v.y-a,enabled:{[h]:s,[f]:l}}}}}},C=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:i,middlewareData:o,rects:s,initialPlacement:l,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...v}=(0,r._3)(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=(0,r.C0)(i),b=(0,r.TV)(l),_=(0,r.C0)(l)===l,w=await(null==u.isRTL?void 0:u.isRTL(c.floating)),M=f||(_||!g?[(0,r.bV)(l)]:(0,r.WJ)(l)),S="none"!==m;!f&&S&&M.push(...(0,r.lP)(l,g,m,w));const k=[l,...M],L=await u.detectOverflow(t,v),x=[];let D=(null==(a=o.flip)?void 0:a.overflows)||[];if(d&&x.push(L[y]),p){const e=(0,r.w7)(i,s,w);x.push(L[e[0]],L[e[1]])}if(D=[...D,{placement:i,overflows:x}],!x.every(e=>e<=0)){var T,O;const e=((null==(T=o.flip)?void 0:T.index)||0)+1,t=k[e];if(t){if(!("alignment"===p&&b!==(0,r.TV)(t))||D.every(e=>(0,r.TV)(e.placement)!==b||e.overflows[0]>0))return{data:{index:e,overflows:D},reset:{placement:t}}}let n=null==(O=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:O.placement;if(!n)switch(h){case"bestFit":{var E;const e=null==(E=D.filter(e=>{if(S){const t=(0,r.TV)(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:E[0];e&&(n=e);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}},Y=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,a;const{placement:i,rects:o,platform:s,elements:l}=t,{apply:u=()=>{},...c}=(0,r._3)(e,t),d=await s.detectOverflow(t,c),p=(0,r.C0)(i),f=(0,r.Sg)(i),h="y"===(0,r.TV)(i),{width:m,height:g}=o.floating;let v,y;"top"===p||"bottom"===p?(v=p,y=f===(await(null==s.isRTL?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(y=p,v="end"===f?"top":"bottom");const b=g-d.top-d.bottom,_=m-d.left-d.right,w=(0,r.jk)(g-d[v],b),M=(0,r.jk)(m-d[y],_),S=!t.middlewareData.shift;let k=w,L=M;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(L=_),null!=(a=t.middlewareData.shift)&&a.enabled.y&&(k=b),S&&!f){const e=(0,r.T9)(d.left,0),t=(0,r.T9)(d.right,0),n=(0,r.T9)(d.top,0),a=(0,r.T9)(d.bottom,0);h?L=m-2*(0!==e||0!==t?e+t:(0,r.T9)(d.left,d.right)):k=g-2*(0!==n||0!==a?n+a:(0,r.T9)(d.top,d.bottom))}await u({...t,availableWidth:L,availableHeight:k});const x=await s.getDimensions(l.floating);return m!==x.width||g!==x.height?{reset:{rects:!0}}:{}}}},A=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:a}=t,{strategy:i="referenceHidden",...l}=(0,r._3)(e,t);switch(i){case"referenceHidden":{const e=o(await a.detectOverflow(t,{...l,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:s(e)}}}case"escaped":{const e=o(await a.detectOverflow(t,{...l,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:s(e)}}}default:return{}}}}},R=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:i,rects:o,platform:s,elements:l,middlewareData:u}=t,{element:c,padding:d=0}=(0,r._3)(e,t)||{};if(null==c)return{};const p=(0,r.nI)(d),f={x:n,y:a},h=(0,r.Dz)(i),m=(0,r.sq)(h),g=await s.getDimensions(c),v="y"===h,y=v?"top":"left",b=v?"bottom":"right",_=v?"clientHeight":"clientWidth",w=o.reference[m]+o.reference[h]-f[h]-o.floating[m],M=f[h]-o.reference[h],S=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let k=S?S[_]:0;k&&await(null==s.isElement?void 0:s.isElement(S))||(k=l.floating[_]||o.floating[m]);const L=w/2-M/2,x=k/2-g[m]/2-1,D=(0,r.jk)(p[y],x),T=(0,r.jk)(p[b],x),O=D,E=k-g[m]-T,P=k/2-g[m]/2+L,C=(0,r.qE)(O,P,E),Y=!u.arrow&&null!=(0,r.Sg)(i)&&P!==C&&o.reference[m]/2-(Pe.y-t.y),n=[];let a=null;for(let e=0;ea.height/2?n.push([r]):n[n.length-1].push(r),a=r}return n.map(e=>(0,r.B1)(l(e)))}(p),h=(0,r.B1)(l(p)),m=(0,r.nI)(u);const g=await o.getElementRects({reference:{getBoundingClientRect:function(){if(2===f.length&&f[0].left>f[1].right&&null!=c&&null!=d)return f.find(e=>c>e.left-m.left&&ce.top-m.top&&d=2){if("y"===(0,r.TV)(n)){const e=f[0],t=f[f.length-1],a="top"===(0,r.C0)(n),i=e.top,o=t.bottom,s=a?e.left:t.left,l=a?e.right:t.right;return{top:i,bottom:o,left:s,right:l,width:l-s,height:o-i,x:s,y:i}}const e="left"===(0,r.C0)(n),t=(0,r.T9)(...f.map(e=>e.right)),a=(0,r.jk)(...f.map(e=>e.left)),i=f.filter(n=>e?n.left===a:n.right===t),o=i[0].top,s=i[i.length-1].bottom;return{top:o,bottom:s,left:a,right:t,width:t-a,height:s-o,x:a,y:o}}return h}},floating:a.floating,strategy:s});return i.reference.x!==g.reference.x||i.reference.y!==g.reference.y||i.reference.width!==g.reference.width||i.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}},I=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:a,placement:i,rects:o,middlewareData:s}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=(0,r._3)(e,t),p={x:n,y:a},f=(0,r.TV)(i),h=(0,r.PG)(f);let m=p[h],g=p[f];const v=(0,r._3)(l,t),y="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+y.mainAxis,n=o.reference[h]+o.reference[e]-y.mainAxis;mn&&(m=n)}if(d){var b,_;const e="y"===h?"width":"height",t=u.has((0,r.C0)(i)),n=o.reference[f]-o.floating[e]+(t&&(null==(b=s.offset)?void 0:b[f])||0)+(t?0:y.crossAxis),a=o.reference[f]+o.reference[e]+(t?0:(null==(_=s.offset)?void 0:_[f])||0)-(t?y.crossAxis:0);ga&&(g=a)}return{[h]:m,[f]:g}}}},F=(e,t,n)=>{const r=new Map,o={platform:L,...n},s={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:l}=n,u=l.detectOverflow?l:{...l,detectOverflow:i},c=await(null==l.isRTL?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:f}=a(d,r,c),h=r,m=0;const g={};for(let n=0;n{(0,d.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,l.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})}),h(this,"onDrag",(e,t)=>{if(!this.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",t);const n=(0,l.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[a,i]=(0,l.getBoundPosition)(this,r.x,r.y);r.x=a,r.y=i,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)}),h(this,"onDragStop",(e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,l.createDraggableData)(this,t)))return!1;(0,d.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)}),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??i.default.findDOMNode(this)}render(){const{axis:e,bounds:t,children:n,defaultPosition:a,defaultClassName:i,defaultClassNameDragging:u,defaultClassNameDragged:d,position:p,positionOffset:h,scale:m,...g}=this.props;let v={},y=null;const b=!Boolean(p)||this.state.dragging,_=p||a,w={x:(0,l.canDragX)(this)&&b?this.state.x:_.x,y:(0,l.canDragY)(this)&&b?this.state.y:_.y};this.state.isElementSVG?y=(0,s.createSVGTransform)(w,h):v=(0,s.createCSSTransform)(w,h);const M=(0,o.clsx)(n.props.className||"",i,{[u]:this.state.dragging,[d]:this.state.dragged});return r.createElement(c.default,f({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(n),{className:M,style:{...n.props.style,...v},transform:y}))}}t.default=m,h(m,"displayName","Draggable"),h(m,"propTypes",{...c.default.propTypes,axis:a.default.oneOf(["both","x","y","none"]),bounds:a.default.oneOfType([a.default.shape({left:a.default.number,right:a.default.number,top:a.default.number,bottom:a.default.number}),a.default.string,a.default.oneOf([!1])]),defaultClassName:a.default.string,defaultClassNameDragging:a.default.string,defaultClassNameDragged:a.default.string,defaultPosition:a.default.shape({x:a.default.number,y:a.default.number}),positionOffset:a.default.shape({x:a.default.oneOfType([a.default.number,a.default.string]),y:a.default.oneOfType([a.default.number,a.default.string])}),position:a.default.shape({x:a.default.number,y:a.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),h(m,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})},9383(e){"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},9527(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeScan=void 0;var r=n(35416),a=n(13754);t.mergeScan=function(e,t,n){return void 0===n&&(n=1/0),r.operate(function(r,i){var o=t;return a.mergeInternals(r,i,function(t,n){return e(o,t,n)},n,function(e){o=e},!1,void 0,function(){return o=null})})}},9570(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(42689))},10183(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilKeyChanged=void 0;var r=n(29939);t.distinctUntilKeyChanged=function(e,t){return r.distinctUntilChanged(function(n,r){return t?t(n[e],r[e]):n[e]===r[e]})}},10402(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,n){const a=!(0,r.isNum)(e.lastX),o=i(e);return a?{node:o,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:o,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}},t.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:o}=e.props;o="string"==typeof o?o:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(o);const s=i(e);if("string"==typeof o){const{ownerDocument:e}=s,t=e.defaultView;let n;if("parent"===o)n=s.parentNode;else{n=s.getRootNode().querySelector(o)}if(!(n instanceof t.HTMLElement))throw new Error('Bounds selector "'+o+'" could not find an element.');const i=n,l=t.getComputedStyle(s),u=t.getComputedStyle(i);o={left:-s.offsetLeft+(0,r.int)(u.paddingLeft)+(0,r.int)(l.marginLeft),top:-s.offsetTop+(0,r.int)(u.paddingTop)+(0,r.int)(l.marginTop),right:(0,a.innerWidth)(i)-(0,a.outerWidth)(s)-s.offsetLeft+(0,r.int)(u.paddingRight)-(0,r.int)(l.marginRight),bottom:(0,a.innerHeight)(i)-(0,a.outerHeight)(s)-s.offsetTop+(0,r.int)(u.paddingBottom)-(0,r.int)(l.marginBottom)}}(0,r.isNum)(o.right)&&(t=Math.min(t,o.right));(0,r.isNum)(o.bottom)&&(n=Math.min(n,o.bottom));(0,r.isNum)(o.left)&&(t=Math.max(t,o.left));(0,r.isNum)(o.top)&&(n=Math.max(n,o.top));return[t,n]},t.getControlPosition=function(e,t,n){const r="number"==typeof t?(0,a.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;const o=i(n),s=n.props.offsetParent||o.offsetParent||o.ownerDocument.body;return(0,a.offsetXYFromParent)(r||e,s,n.props.scale)},t.snapToGrid=function(e,t,n){const r=Math.round(t/e[0])*e[0],a=Math.round(n/e[1])*e[1];return[r,a]};var r=n(26732),a=n(32837);function i(e){const t=e.findDOMNode();if(!t)throw new Error(": Unmounted during event!");return t}},10587(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinAllInternals=void 0;var r=n(79391),a=n(88240),i=n(72393),o=n(11282),s=n(22984);t.joinAllInternals=function(e,t){return i.pipe(s.toArray(),o.mergeMap(function(t){return e(t)}),t?a.mapOneOrManyArgs(t):r.identity)}},10651(e,t,n){"use strict";const r=n(68395);e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},11060(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(a=t?r:n){if(a.has(e))return a.get(e);a.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?a(o,t,i):o[t]=e[t]);return o}(e,t)}(n(85959)),a=c(n(62688)),i=c(n(48398)),o=n(32837),s=n(10402),l=n(26732),u=c(n(57988));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={start:"touchstart",move:"touchmove",stop:"touchend"},f={start:"mousedown",move:"mousemove",stop:"mouseup"};let h=f;class m extends r.Component{constructor(){super(...arguments),d(this,"dragging",!1),d(this,"lastX",NaN),d(this,"lastY",NaN),d(this,"touchIdentifier",null),d(this,"mounted",!1),d(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,o.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,o.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();const r=(0,o.getTouchIdentifier)(e);this.touchIdentifier=r;const a=(0,s.getControlPosition)(e,r,this);if(null==a)return;const{x:i,y:l}=a,c=(0,s.createCoreData)(this,i,l);(0,u.default)("DraggableCore: handleDragStart: %j",c),(0,u.default)("calling",this.props.onStart);!1!==this.props.onStart(e,c)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,o.addUserSelectStyles)(n),this.dragging=!0,this.lastX=i,this.lastY=l,(0,o.addEvent)(n,h.move,this.handleDrag),(0,o.addEvent)(n,h.stop,this.handleDragStop))}),d(this,"handleDrag",e=>{const t=(0,s.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,s.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const a=(0,s.createCoreData)(this,n,r);(0,u.default)("DraggableCore: handleDrag: %j",a);if(!1!==this.props.onDrag(e,a)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}}),d(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,s.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,s.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}const a=(0,s.createCoreData)(this,n,r);if(!1===this.props.onStop(e,a)||!1===this.mounted)return!1;const i=this.findDOMNode();i&&this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(i.ownerDocument),(0,u.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,i&&((0,u.default)("DraggableCore: Removing handlers"),(0,o.removeEvent)(i.ownerDocument,h.move,this.handleDrag),(0,o.removeEvent)(i.ownerDocument,h.stop,this.handleDragStop))}),d(this,"onMouseDown",e=>(h=f,this.handleDragStart(e))),d(this,"onMouseUp",e=>(h=f,this.handleDragStop(e))),d(this,"onTouchStart",e=>(h=p,this.handleDragStart(e))),d(this,"onTouchEnd",e=>(h=p,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,o.addEvent)(e,p.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,o.removeEvent)(t,f.move,this.handleDrag),(0,o.removeEvent)(t,p.move,this.handleDrag),(0,o.removeEvent)(t,f.stop,this.handleDragStop),(0,o.removeEvent)(t,p.stop,this.handleDragStop),(0,o.removeEvent)(e,p.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:i.default.findDOMNode(this)}render(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}t.default=m,d(m,"displayName","DraggableCore"),d(m,"propTypes",{allowAnyClick:a.default.bool,allowMobileScroll:a.default.bool,children:a.default.node.isRequired,disabled:a.default.bool,enableUserSelectHack:a.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:a.default.arrayOf(a.default.number),handle:a.default.string,cancel:a.default.string,nodeRef:a.default.object,onStart:a.default.func,onDrag:a.default.func,onStop:a.default.func,onMouseDown:a.default.func,scale:a.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),d(m,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},11258(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(42689))},11282(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMap=void 0;var r=n(74828),a=n(52296),i=n(35416),o=n(13754),s=n(44717);t.mergeMap=function e(t,n,l){return void 0===l&&(l=1/0),s.isFunction(n)?e(function(e,i){return r.map(function(t,r){return n(e,t,i,r)})(a.innerFrom(t(e,i)))},l):("number"==typeof n&&(l=n),i.operate(function(e,n){return o.mergeInternals(e,n,t,l)}))}},11566(e,t){"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Upravit filtr pomocí klíče {{keyLabel}}","managed-filter":"Spravovaný filtr: {{origin}}","non-applicable":"","remove-filter-with-key":"Odebrat filtr pomocí klíče {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Odebrat hodnotu filtru – {{itemLabel}}","use-custom-value":"Použít vlastní hodnotu: {{itemLabel}}"},"fallback-page":{content:"Pokud jste se sem dostali pomocí odkazu, může se jednat o chybu v této aplikaci.",subTitle:"Adresa URL neodpovídá žádné stránce",title:"Nenalezeno"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Sbalit scénu","expand-button-label":"Rozbalit scénu","remove-button-label":"Odebrat scénu"},"scene-debugger":{"object-details":"Podrobnosti objektu","scene-graph":"Graf scény","title-scene-debugger":"Ladicí program scény"},"scene-grid-row":{"collapse-row":"Sbalit řádek","expand-row":"Rozbalit řádek"},"scene-refresh-picker":{"text-cancel":"Zrušit","text-refresh":"Obnovit","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Srovnání","button-tooltip":"Povolit porovnání časového rámce"},splitter:{"aria-label-pane-resize-widget":"Widget pro změnu velikosti panelu"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Název"}},"viz-panel-explore-button":{explore:"Prozkoumat"},"viz-panel-renderer":{"loading-plugin-panel":"Načítání panelu pluginu…","panel-plugin-has-no-panel-component":"Plugin panelu nemá žádnou komponentu panelu"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Renderování příliš mnoha řad v rámci jednoho panelu může ovlivnit výkon a zhoršit čitelnost dat.","warning-message":"Zobrazují se pouze {{seriesLimit}} série/sérií"}},utils:{"controls-label":{"tooltip-remove":"Odebrat"},"loading-indicator":{"content-cancel-query":"Zrušit dotaz"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Upravit operátor filtru"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Přidat filtr","title-add-filter":"Přidat filtr"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Odebrat filtr","key-select":{"placeholder-select-label":"Vybrat štítek"},"label-select-label":"Vybrat štítek","title-remove-filter":"Odebrat filtr","value-select":{"placeholder-select-value":"Vybrat hodnotu"}},"data-source-variable":{label:{default:"výchozí"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"vymazat",tooltip:"Použito ve výchozím nastavení na této nástěnce. Pokud je upraveno, přenese se na jiné nástěnky.","tooltip-restore-groupby-set-by-this-dashboard":"Obnovit skupinu nastavenou touto nástěnkou."},"format-registry":{formats:{description:{"commaseparated-values":"Hodnoty oddělené čárkou","double-quoted-values":"Hodnoty v dvojitých uvozovkách","format-date-in-different-ways":"Formátovat datum různými způsoby","format-multivalued-variables-using-syntax-example":"Formátovat vícehodnotové proměnné pomocí globální syntaxe, například {value1,value2}","html-escaping-of-values":"HTML escapování hodnot","join-values-with-a-comma":"","json-stringify-value":"Hodnota JSON stringify","keep-value-as-is":"Ponechat hodnotu tak, jak je","multiple-values-are-formatted-like-variablevalue":"Více hodnot je formátováno jako proměnná=hodnota","single-quoted-values":"Hodnoty v jednoduchých uvozovkách","useful-escaping-values-taking-syntax-characters":"Užitečné pro hodnoty HTML escapování, přičemž se bere v úvahu syntaxe URL","useful-for-url-escaping-values":"Užitečné pro hodnoty adresy URL escapování","values-are-separated-by-character":"Hodnoty jsou odděleny znakem |"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Seřadit podle voliče","placeholder-group-by-label":"Seřadit podle štítku"},"interval-variable":{"placeholder-select-value":"Vybrat hodnotu"},"loading-options-placeholder":{"loading-options":"Načítání možností…"},"multi-value-apply-button":{apply:"Použít"},"no-options-placeholder":{"no-options-found":"Nebyly nalezeny žádné možnosti"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Při načítání štítků došlo k chybě. Klikněte pro opakování"},"test-object-with-variable-dependency":{title:{hello:"Dobrý den"}},"test-variable":{text:{text:"Text"}},"variable-value-input":{"placeholder-enter-value":"Zadat hodnotu"},"variable-value-select":{"placeholder-select-value":"Vybrat hodnotu"}}}}},11625(e,t,n){"use strict";n.d(t,{$N:()=>i,GR:()=>a,yL:()=>r});var r=(e=>(e.Always="always",e.Auto="auto",e.Never="never",e))(r||{}),a=(e=>(e.Bars="bars",e.Line="line",e.Points="points",e))(a||{});var i=(e=>(e.Multi="multi",e.None="none",e.Single="single",e))(i||{})},11738(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shareReplay=void 0;var r=n(35129),a=n(83329);t.shareReplay=function(e,t,n){var i,o,s,l,u=!1;return e&&"object"==typeof e?(i=e.bufferSize,l=void 0===i?1/0:i,o=e.windowTime,t=void 0===o?1/0:o,u=void 0!==(s=e.refCount)&&s,n=e.scheduler):l=null!=e?e:1/0,a.share({connector:function(){return new r.ReplaySubject(l,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})}},11794(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(a=t?r:n){if(a.has(e))return a.get(e);a.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?a(o,t,i):o[t]=e[t]);return o}(e,t)}(n(85959)),a=n(38230),i=n(39954),o=n(16333);const s=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.abs(a*n)?t=e/n:e=t*n}const[i,o]=[e,t];let[s,l]=this.slack||[0,0];return e+=s,t+=l,n&&(e=Math.max(n[0],e),t=Math.max(n[1],t)),r&&(e=Math.min(r[0],e),t=Math.min(r[1],t)),this.slack=[s+(i-e),l+(o-t)],[e,t]}resizeHandler(e,t){return(n,r)=>{let{node:a,deltaX:i,deltaY:o}=r;"onResizeStart"===e&&this.resetData();const s=("both"===this.props.axis||"x"===this.props.axis)&&"n"!==t&&"s"!==t,l=("both"===this.props.axis||"y"===this.props.axis)&&"e"!==t&&"w"!==t;if(!s&&!l)return;const u=t[0],c=t[t.length-1],d=a.getBoundingClientRect();if(null!=this.lastHandleRect){if("w"===c){i+=d.left-this.lastHandleRect.left}if("n"===u){o+=d.top-this.lastHandleRect.top}}this.lastHandleRect=d,"w"===c&&(i=-i),"n"===u&&(o=-o);let p=this.props.width+(s?i/this.props.transformScale:0),f=this.props.height+(l?o/this.props.transformScale:0);[p,f]=this.runConstraints(p,f),"onResizeStop"===e&&this.lastSize&&({width:p,height:f}=this.lastSize);const h=p!==this.props.width||f!==this.props.height;"onResizeStop"!==e&&(this.lastSize={width:p,height:f});const m="function"==typeof this.props[e]?this.props[e]:null;m&&!("onResize"===e&&!h)&&(n.persist?.(),m(n,{node:a,size:{width:p,height:f},handle:t})),"onResizeStop"===e&&this.resetData()}}renderResizeHandle(e,t){const{handle:n}=this.props;if(!n)return r.createElement("span",{className:`react-resizable-handle react-resizable-handle-${e}`,ref:t});if("function"==typeof n)return n(e,t);const a=c({ref:t},"string"==typeof n.type?{}:{handleAxis:e});return r.cloneElement(n,a)}render(){const e=this.props,{children:t,className:n,draggableOpts:o,width:u,height:d,handle:p,handleSize:f,lockAspectRatio:h,axis:m,minConstraints:g,maxConstraints:v,onResize:y,onResizeStop:b,onResizeStart:_,resizeHandles:w,transformScale:M}=e,S=function(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r{const t=this.handleRefs[e]??(this.handleRefs[e]=r.createRef());return r.createElement(a.DraggableCore,l({},o,{nodeRef:t,key:`resizableHandle-${e}`,onStop:this.resizeHandler("onResizeStop",e),onStart:this.resizeHandler("onResizeStart",e),onDrag:this.resizeHandler("onResize",e)}),this.renderResizeHandle(e,t))})]}))}}t.default=p,p.propTypes=o.resizableProps,p.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}},11824(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.popNumber=t.popScheduler=t.popResultSelector=void 0;var r=n(44717),a=n(64568);function i(e){return e[e.length-1]}t.popResultSelector=function(e){return r.isFunction(i(e))?e.pop():void 0},t.popScheduler=function(e){return a.isScheduler(i(e))?e.pop():void 0},t.popNumber=function(e,t){return"number"==typeof i(e)?e.pop():t}},12091(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>M});const{slice:r,forEach:a}=[];const i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,o={create(e,t,n,r){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+60*n*1e3)),r&&(a.domain=r),document.cookie=function(e,t){const n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"};let r=`${e}=${encodeURIComponent(t)}`;if(n.maxAge>0){const e=n.maxAge-0;if(Number.isNaN(e))throw new Error("maxAge should be a Number");r+=`; Max-Age=${Math.floor(e)}`}if(n.domain){if(!i.test(n.domain))throw new TypeError("option domain is invalid");r+=`; Domain=${n.domain}`}if(n.path){if(!i.test(n.path))throw new TypeError("option path is invalid");r+=`; Path=${n.path}`}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw new TypeError("option expires is invalid");r+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(r+="; HttpOnly"),n.secure&&(r+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(r+="; Partitioned"),r}(e,t,a)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let e=0;e-1&&(e=window.location.hash.substring(window.location.hash.indexOf("?")));const r=e.substring(1).split("&");for(let e=0;e0){r[e].substring(0,a)===n&&(t=r[e].substring(a+1))}}}return t}},u={name:"hash",lookup(e){let t,{lookupHash:n,lookupFromHashIndex:r}=e;if("undefined"!=typeof window){const{hash:e}=window.location;if(e&&e.length>2){const a=e.substring(1);if(n){const e=a.split("&");for(let r=0;r0){e[r].substring(0,a)===n&&(t=e[r].substring(a+1))}}}if(t)return t;if(!t&&r>-1){const t=e.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(t))return;const n="number"==typeof r?r:0;return t[n]?.replace("/","")}}}return t}};let c=null;const d=()=>{if(null!==c)return c;try{if(c="undefined"!=typeof window&&null!==window.localStorage,!c)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){c=!1}return c};var p={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&d())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&d()&&window.localStorage.setItem(n,e)}};let f=null;const h=()=>{if(null!==f)return f;try{if(f="undefined"!=typeof window&&null!==window.sessionStorage,!f)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){f=!1}return f};var m={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&h())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&h()&&window.sessionStorage.setItem(n,e)}},g={name:"navigator",lookup(e){const t=[];if("undefined"!=typeof navigator){const{languages:e,userLanguage:n,language:r}=navigator;if(e)for(let n=0;n0?t:void 0}},v={name:"htmlTag",lookup(e){let t,{htmlTag:n}=e;const r=n||("undefined"!=typeof document?document.documentElement:null);return r&&"function"==typeof r.getAttribute&&(t=r.getAttribute("lang")),t}},y={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if("undefined"==typeof window)return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(n))return;const r="number"==typeof t?t:0;return n[r]?.replace("/","")}},b={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n="number"==typeof t?t+1:1,r="undefined"!=typeof window&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let _=!1;try{document.cookie,_=!0}catch(e){}const w=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];_||w.splice(1,1);class M{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{languageUtils:{}},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return a.call(r.call(arguments,1),t=>{if(t)for(const n in t)void 0===e[n]&&(e[n]=t[n])}),e}(t,this.options||{},{order:w,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=e=>e.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(s),this.addDetector(l),this.addDetector(p),this.addDetector(m),this.addDetector(g),this.addDetector(v),this.addDetector(y),this.addDetector(b),this.addDetector(u)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.order,t=[];return e.forEach(e=>{if(this.detectors[e]){let n=this.detectors[e].lookup(this.options);n&&"string"==typeof n&&(n=[n]),n&&(t=t.concat(n))}}),t=t.filter(e=>{return null!=e&&!("string"==typeof(t=e)&&[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(e=>e.test(t)));var t}).map(e=>this.options.convertDetectedLanguage(e)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)}))}}M.type="languageDetector"},12366(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePromise=void 0;var r=n(52296),a=n(82803),i=n(44027);t.schedulePromise=function(e,t){return r.innerFrom(e).pipe(i.subscribeOn(t),a.observeOn(t))}},12405(e,t,n){"use strict";n.d(t,{e:()=>M});var r=n(19985),a=n(85959);let i=null;function o(e,t){return!!e&&(!!t&&t.some(t=>(0,r.sD)(t,e)))}function s(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of c.traverse(c.getTreeNode(t)))if(n&&o(e,n.current))return!0;return!1}class l{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let a=new u({scopeRef:e});r.addChild(a),a.parent=r,this.fastMap.set(e,a),n&&(a.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&o(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new l;var n;for(let r of this.traverse())t.addTreeNode(r.scopeRef,null!==(n=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,r.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new u({scopeRef:null}),this.fastMap.set(null,this.root)}}class u{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let c=new l;var d,p=n(3003);const f=null!==(d=a.useInsertionEffect)&&void 0!==d?d:p.N;function h(e){const t=(0,a.useRef)(null);return f(()=>{t.current=e},[e]),(0,a.useCallback)((...e)=>{const n=t.current;return null==n?void 0:n(...e)},[])}var m=n(71570);function g(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,o=(0,a.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=h(e=>{n&&v(e,t)&&(i&&i(e),o.current.isPointerDown=!0)}),l=h(e=>{n&&n(e)});(0,a.useEffect)(()=>{let e=o.current;if(r)return;const n=t.current,a=(0,m.TW)(n);if("undefined"!=typeof PointerEvent){let n=n=>{e.isPointerDown&&v(n,t)&&l(n),e.isPointerDown=!1};return a.addEventListener("pointerdown",s,!0),a.addEventListener("click",n,!0),()=>{a.removeEventListener("pointerdown",s,!0),a.removeEventListener("click",n,!0)}}},[t,r])}function v(e,t){if(e.button>0)return!1;let n=(0,r.wt)(e);if(n){const e=n.ownerDocument;if(!e||!(0,r.sD)(e.documentElement,n))return!1;if(n.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}var y=n(18952);function b(){let e=(0,a.useRef)(new Map),t=(0,a.useCallback)((t,n,r,a)=>{let i=(null==a?void 0:a.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:a}),t.addEventListener(n,i,a)},[]),n=(0,a.useCallback)((t,n,r,a)=>{var i;let o=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,o,a),e.current.delete(r)},[]),r=(0,a.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,a.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function _(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:i,onFocusWithinChange:o}=e,s=(0,a.useRef)({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:u}=b(),c=(0,a.useCallback)(e=>{(0,r.sD)(e.currentTarget,(0,r.wt)(e))&&s.current.isFocusWithin&&!(0,r.sD)(e.currentTarget,e.relatedTarget)&&(s.current.isFocusWithin=!1,u(),n&&n(e),o&&o(!1))},[n,o,s,u]),d=(0,y.yB)(c),p=(0,a.useCallback)(e=>{if(!(0,r.sD)(e.currentTarget,(0,r.wt)(e)))return;let t=(0,r.wt)(e);const n=(0,m.TW)(t),a=(0,r.bq)(n);if(!s.current.isFocusWithin&&a===t){i&&i(e),o&&o(!0),s.current.isFocusWithin=!0,d(e);let t=e.currentTarget;l(n,"focus",e=>{let a=(0,r.wt)(e);if(s.current.isFocusWithin&&!(0,r.sD)(t,a)){let e=new n.defaultView.FocusEvent("blur",{relatedTarget:a});(0,y.o1)(e,t);let r=(0,y.eg)(e);c(r)}},{capture:!0})}},[i,o,d,l,c]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:p,onBlur:c}}}const w=[];function M(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:l=!1,isKeyboardDismissDisabled:u=!1,shouldCloseOnInteractOutside:c}=e;(0,a.useEffect)(()=>{if(o&&!w.includes(t))return w.push(t),()=>{let e=w.indexOf(t);e>=0&&w.splice(e,1)}},[o,t]);let d=()=>{w[w.length-1]===t&&n&&n()};g({ref:t,onInteractOutside:l&&o?e=>{c&&!c(e.target)||(w[w.length-1]===t&&(e.stopPropagation(),e.preventDefault()),d())}:void 0,onInteractOutsideStart:e=>{c&&!c(e.target)||w[w.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:p}=_({isDisabled:!r,onBlurWithin:e=>{e.relatedTarget&&!s(e.relatedTarget,i)&&(c&&!c(e.relatedTarget)||null==n||n())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||u||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),d())},...p},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}},12548(e,t,n){e.exports=n(59482).default,e.exports.utils=n(20414),e.exports.Responsive=n(74636).default,e.exports.Responsive.utils=n(50544),e.exports.WidthProvider=n(36805).default},12655(e,t,n){!function(e){"use strict";function t(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(e,n){var r=this._calendarEl[e],a=n&&n.hours();return t(r)&&(r=r.apply(n)),r.replace("{}",a%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(42689))},13518(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(85959);const a=function(e){(0,r.useEffect)(e,[])};const i=function(e){a(function(){e()})}},13568(e,t,n){"use strict";const r={fillOpacity:80,gradientMode:n(181).GraphGradientMode.None,lineWidth:1};t.defaultFieldConfig=r,t.defaultOptions={bucketCount:30,bucketOffset:0},t.pluginVersion="12.4.1"},13754(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeInternals=void 0;var r=n(52296),a=n(75031),i=n(1266);t.mergeInternals=function(e,t,n,o,s,l,u,c){var d=[],p=0,f=0,h=!1,m=function(){!h||d.length||p||t.complete()},g=function(e){return p{if("number"==typeof e&&"number"==typeof n)return e===n?0:en(t,e)}},14411(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skip=void 0;var r=n(72914);t.skip=function(e){return r.filter(function(t,n){return e<=n})}},14502(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleObservable=void 0;var r=n(52296),a=n(82803),i=n(44027);t.scheduleObservable=function(e,t){return r.innerFrom(e).pipe(i.subscribeOn(t),a.observeOn(t))}},14740(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retry=void 0;var r=n(35416),a=n(1266),i=n(79391),o=n(35461),s=n(52296);t.retry=function(e){var t;void 0===e&&(e=1/0);var n=(t=e&&"object"==typeof e?e:{count:e}).count,l=void 0===n?1/0:n,u=t.delay,c=t.resetOnSuccess,d=void 0!==c&&c;return l<=0?i.identity:r.operate(function(e,t){var n,r=0,i=function(){var c=!1;n=e.subscribe(a.createOperatorSubscriber(t,function(e){d&&(r=0),t.next(e)},void 0,function(e){if(r++{const t=e.activate();return i(e=>e+1),t},[e]),e.isActive||e.renderBeforeActivation?F.default.createElement(r,{...t,model:e}):null});function U(e){return null}class B extends a.BusEventWithPayload{}B.type="scene-object-state-change";class q extends a.BusEventWithPayload{}q.type="scene-object-user-action";var G,K=e=>{throw TypeError(e)},J=(e,t,n)=>t.has(e)||K("Cannot "+n);class Q{constructor(e){var t,n,r;t=this,(n=G).has(t)?K("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),((e,t,n)=>{J(e,t,"write to private field"),t.set(e,n)})(this,G,e)}resolve(){return J(e=this,t=G,"read from private field"),n?n.call(e):t.get(e);var e,t,n}}G=new WeakMap;class Z{constructor(e){this._isActive=!1,this._activationHandlers=[],this._deactivationHandlers=new Map,this._subs=new s.Subscription,this._refCount=0,this._renderBeforeActivation=!1,e.key||(e.key=l.v4()),this._events=new a.EventBusSrv,this._state=Object.freeze(e),this._setParent(this._state)}get state(){return this._state}get isActive(){return this._isActive}get renderBeforeActivation(){return this._renderBeforeActivation}get parent(){return this._parent}get variableDependency(){return this._variableDependency}get urlSync(){return this._urlSync}get Component(){return $}_setParent(e){ee(e,e=>{e._parent&&e._parent!==this&&console.warn("SceneObject already has a parent set that is different from the new parent. You cannot share the same SceneObject instance in multiple scenes or in multiple different places of the same scene graph. Use SceneObject.clone() to duplicate a SceneObject or store a state key reference and use sceneGraph.findObject to locate it.",e,this),e._parent=this})}clearParent(){this._parent=void 0}subscribeToState(e){return this._events.subscribe(B,t=>{t.payload.changedObject===this&&e(t.payload.newState,t.payload.prevState)})}subscribeToEvent(e,t){return this._events.subscribe(e,t)}setState(e){const t=this._state,n={...this._state,...e};this._state=Object.freeze(n),this._setParent(e),this._handleActivationOfChangedStateProps(t,n),this.publishEvent(new B({prevState:t,newState:n,partialUpdate:e,changedObject:this}),!0)}_handleActivationOfChangedStateProps(e,t){this.isActive&&(e.$behaviors!==t.$behaviors&&this._handleChangedBehaviors(e.$behaviors,t.$behaviors),e.$data!==t.$data&&this._handleChangedStateActivation(e.$data,t.$data),e.$variables!==t.$variables&&this._handleChangedStateActivation(e.$variables,t.$variables),e.$timeRange!==t.$timeRange&&this._handleChangedStateActivation(e.$timeRange,t.$timeRange))}_handleChangedStateActivation(e,t){if(e){const t=this._deactivationHandlers.get(e);t&&(t(),this._deactivationHandlers.delete(e))}t&&this._deactivationHandlers.set(t,t.activate())}_handleChangedBehaviors(e,t){if(e)for(const n of e)if(!t||!t.includes(n)){const e=this._deactivationHandlers.get(n);e&&(e(),this._deactivationHandlers.delete(n))}if(t)for(const n of t)e&&e.includes(n)||this._activateBehavior(n)}publishEvent(e,t){this._events.publish(e),t&&this.parent&&this.parent.publishEvent(e,t)}getRoot(){return this._parent?this._parent.getRoot():this}_internalActivate(){this._isActive=!0;const{$data:e,$variables:t,$timeRange:n,$behaviors:r}=this.state;if(this._activationHandlers.forEach(e=>{const t=e();t&&this._deactivationHandlers.set(t,t)}),n&&!n.isActive&&this._deactivationHandlers.set(n,n.activate()),t&&!t.isActive&&this._deactivationHandlers.set(t,t.activate()),e&&!e.isActive&&this._deactivationHandlers.set(e,e.activate()),r)for(const e of r)this._activateBehavior(e)}_activateBehavior(e){if(e instanceof Z)this._deactivationHandlers.set(e,e.activate());else if("function"==typeof e){const t=e(this);t&&this._deactivationHandlers.set(e,t)}}activate(){this.isActive||this._internalActivate(),this._refCount++;let e=!1;return()=>{if(this._refCount--,e){throw new Error("SceneObject cancelation handler returned by activate() called a second time")}e=!0,0===this._refCount&&this._internalDeactivate()}}_internalDeactivate(){this._isActive=!1;for(let e of this._deactivationHandlers.values())e();this._deactivationHandlers.clear(),this._events.removeAllListeners(),this._subs.unsubscribe(),this._subs=new s.Subscription}useState(){return X(this)}forceRender(){this.setState({})}clone(e){return function(e,t){const n=te(e.state,t);return new e.constructor(n)}(this,e)}addActivationHandler(e){this._activationHandlers.push(e)}forEachChild(e){ee(this.state,e)}getRef(){return this._ref||(this._ref=new Q(this)),this._ref}toJSON(){return{type:Object.getPrototypeOf(this).constructor.name,isActive:this.isActive,state:this.state}}}function X(e,t){var n;const[r,a]=o.useState(e.state),i=e.state,s=null!=(n=null==t?void 0:t.shouldActivateOrKeepAlive)&&n;return o.useEffect(()=>{let t;s&&(t=e.activate());const n=e.subscribeToState(e=>{a(e)});return e.state!==i&&a(e.state),()=>{n.unsubscribe(),t&&t()}},[e,s]),e.state}function ee(e,t){for(const n of Object.values(e)){if(n instanceof Z){if(!1===t(n))break}if(Array.isArray(n)){let e=!1;for(const r of n)if(r instanceof Z){if(!1===t(r)){e=!0;break}}if(e)break}}}function te(e,t){const n={...e};Object.assign(n,t);for(const e in n){if(t&&void 0!==t[e])continue;const r=n[e];if(r instanceof Q)console.warn("Cloning object with SceneObjectRef");else if(r instanceof Z)n[e]=r.clone();else if(Array.isArray(r)){const t=[];for(const e of r)e instanceof Z?t.push(e.clone()):"object"==typeof e?t.push(u.cloneDeep(e)):t.push(e);n[e]=t}else n[e]="object"==typeof r?u.cloneDeep(r):r}return n}class ne extends a.DataSourceApi{constructor(e,t){super({name:"RuntimeDataSource-"+e,uid:t,type:e,id:1,readOnly:!0,jsonData:{},access:"direct",meta:{id:e,name:"RuntimeDataSource-"+e,type:a.PluginType.datasource,info:{author:{name:""},description:"",links:[],logos:{large:"",small:""},screenshots:[],updated:"",version:""},module:"",baseUrl:""}})}testDatasource(){return Promise.resolve({})}}const re=new Map;function ae({dataSource:e}){if(re.has(e.uid))throw new Error(`A runtime data source with uid ${e.uid} has already been registered`);re.set(e.uid,e)}const ie=["from","to","timezone"];class oe{constructor(e){this.index=new Map,this.options={namespace:(null==e?void 0:e.namespace)||"",excludeFromNamespace:(null==e?void 0:e.excludeFromNamespace)||ie}}getOptions(){return this.options}getNamespacedKey(e){return this.options.namespace&&!this.options.excludeFromNamespace.includes(e)?`${this.options.namespace}-${e}`:e}getUniqueKey(e,t){const n=this.getNamespacedKey(e),r=this.index.get(n);if(!r)return this.index.set(n,[t]),n;let a=r.findIndex(e=>e===t);return-1===a&&(!function(e){for(let t=0;t0?`${n}-${a+1}`:n}clear(){this.index.clear()}}function se(e,t){if(!e.parent)return!1;let n=!1;return e.parent.forEachChild(t=>{if(t===e)return n=!0,!1}),!n||se(e.parent)}function le(e,t){const n=new oe(t),r={},a=e=>{if(e.urlSync){const t=e.urlSync.getUrlState();for(const[a,i]of Object.entries(t))if(null!=i){const t=n.getUniqueKey(a,e);r[t]=i}}e.forEachChild(a)};return a(e),r}function ue(e,t,n,r){r||ce(e,t,n),e.forEachChild(e=>{ce(e,t,n)}),e.forEachChild(e=>ue(e,t,n,!0))}function ce(e,t,n){if(e.urlSync){const r={},a=e.urlSync.getUrlState();for(const i of e.urlSync.getKeys()){const o=n.getUniqueKey(i,e),s=t.getAll(o),l=a[i];de(s,l)||(s.length>0?Array.isArray(l)?r[i]=s:r[i]=s[0]:r[i]=null)}Object.keys(r).length>0&&e.urlSync.updateFromUrl(r)}}function de(e,t){return 0===e.length&&null==t||(Array.isArray(t)||1!==(null==e?void 0:e.length)?0===(null==t?void 0:t.length)&&null===e||u.isEqual(e,t):t===e[0])}function pe(e,t){const n=t.state.$variables;if(!n)return t.parent?pe(e,t.parent):null;const r=n.getByName(e);return r||(t.parent?pe(e,t.parent):null)}function fe(e,t,...n){let r=!1;"undefined"!=typeof window&&(r="true"===localStorage.getItem("grafana.debug.scenes"))}var he,me,ge=e=>{throw TypeError(e)},ve=(e,t,n)=>t.has(e)||ge("Cannot "+n),ye=(e,t,n)=>(ve(e,t,"read from private field"),n?n.call(e):t.get(e)),be=(e,t,n)=>t.has(e)?ge("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);function _e(e){return"isQueryController"in e}function we(e){let t=e;for(;t;){if(t.state.$behaviors)for(const e of t.state.$behaviors)if(_e(e))return e;t=t.parent}}he=new WeakMap,me=new WeakMap;class Me extends Z{constructor(e){super({data:Se,...e})}getResultsStream(){const e={origin:this,data:this.state.data};return s.of(e)}}const Se={state:c.LoadingState.Done,series:[],timeRange:a.getDefaultTimeRange()};class ke{constructor(e,t){this._sceneObject=e,this._nextChangeShouldAddHistoryStep=!1,this._keys=t.keys}getKeys(){return"function"==typeof this._keys?this._keys():this._keys}getUrlState(){return this._sceneObject.getUrlState()}updateFromUrl(e){this._sceneObject.updateFromUrl(e)}shouldCreateHistoryStep(e){return this._nextChangeShouldAddHistoryStep}performBrowserHistoryAction(e){this._nextChangeShouldAddHistoryStep=!0,e(),this._nextChangeShouldAddHistoryStep=!1}}function Le(e,t){let n,r=e;for(;r&&!n;)n=t(r),r=r.parent;return n}const xe=/^\d+[yYmMsSwWhHdD]$/;function De(e){if("string"!=typeof e)return null;if(-1!==e.indexOf("now"))return e;if(xe.test(e))return e;if(8===e.length){const t=a.toUtc(e,"YYYYMMDD");if(t.isValid())return t.toISOString()}else if(15===e.length){const t=a.toUtc(e,"YYYYMMDDTHHmmss");if(t.isValid())return t.toISOString()}else if(19===e.length){const t=a.toUtc(e,"YYYY-MM-DD HH:mm:ss");if(t.isValid())return t.toISOString()}else if(24===e.length){return a.toUtc(e).toISOString()}const t=parseInt(e,10);return isNaN(t)?null:a.toUtc(t).toISOString()}function Te(e,t,n,r,i,o){const s=i&&"now"===t,l=Date.now();o&&function(e){e!==Oe&&(Oe=e,a.setWeekStart(e))}(o);const u=(e,t)=>a.dateMath.toDateTime?a.dateMath.toDateTime(e,t):a.dateMath.parse(e,t.roundUp,t.timezone,t.fiscalYearStartMonth);return{to:u(s?"now-"+i:t,{roundUp:!0,timezone:n,fiscalYearStartMonth:r,now:l}),from:u(e,{roundUp:!1,timezone:n,fiscalYearStartMonth:r,now:l}),raw:{from:e,to:t}}}let Oe;function Ee(e,t,n){if(a.isDateTime(e))return e.isValid();if(a.dateMath.isMathString(e))return a.dateMath.isValid(e);return a.dateTimeParse(e,{roundUp:t,timeZone:n}).isValid()}const Pe="refresh",Ce="filter_removed",Ye="filter_changed",Ae="variable_value_changed",Re="groupby_dimensions";class je extends Z{constructor(e={}){var t;const n=e.from&&Ee(e.from)?e.from:"now-6h",r=e.to&&Ee(e.to)?e.to:"now",o=Ie(e.timeZone);super({from:n,to:r,timeZone:o,value:Te(n,r,o||a.getTimeZone(),e.fiscalYearStartMonth,e.UNSAFE_nowDelay,e.weekStart),refreshOnActivate:null!=(t=e.refreshOnActivate)?t:{percent:10},...e}),this._urlSync=new ke(this,{keys:["from","to","timezone","time","time.window"]}),this.onTimeRangeChange=e=>{const t={};if("string"==typeof e.raw.from?t.from=e.raw.from:t.from=e.raw.from.toISOString(),"string"==typeof e.raw.to?t.to=e.raw.to:t.to=e.raw.to.toISOString(),t.value=Te(t.from,t.to,this.getTimeZone(),this.state.fiscalYearStartMonth,this.state.UNSAFE_nowDelay,this.state.weekStart),t.from!==this.state.from||t.to!==this.state.to){const e=we(this);null==e||e.startProfile("time_range_change"),this._urlSync.performBrowserHistoryAction(()=>{this.setState(t)})}},this.onTimeZoneChange=e=>{this._urlSync.performBrowserHistoryAction(()=>{var t;const n=null!=(t=Ie(e))?t:c.defaultTimeZone,r=Te(this.state.from,this.state.to,n,this.state.fiscalYearStartMonth,this.state.UNSAFE_nowDelay,this.state.weekStart);this.setState({timeZone:n,value:r})})},this.onRefresh=()=>{this.refreshRange(0),this.publishEvent(new i.RefreshEvent,!0)},this.addActivationHandler(this._onActivate.bind(this))}_onActivate(){if(!this.state.timeZone){const e=this.getTimeZoneSource();e!==this&&this._subs.add(e.subscribeToState((e,t)=>{void 0!==e.timeZone&&e.timeZone!==t.timeZone&&this.refreshRange(0)}))}return a.rangeUtil.isRelativeTimeRange(this.state.value.raw)&&this.refreshIfStale(),()=>{this.state.weekStart&&a.setWeekStart(i.config.bootData.user.weekStart)}}refreshIfStale(){var e,t,n,r;let a;void 0!==(null==(t=null==(e=this.state)?void 0:e.refreshOnActivate)?void 0:t.percent)&&(a=this.calculatePercentOfInterval(this.state.refreshOnActivate.percent)),void 0!==(null==(r=null==(n=this.state)?void 0:n.refreshOnActivate)?void 0:r.afterMs)&&(a=Math.min(this.state.refreshOnActivate.afterMs,null!=a?a:1/0)),void 0!==a&&this.refreshRange(a)}getTimeZoneSource(){if(!this.parent||!this.parent.parent)return this;const e=Le(this.parent.parent,e=>{if(e.state.$timeRange&&e.state.$timeRange.state.timeZone)return e.state.$timeRange});return e||this}refreshRange(e){var t;const n=Te(this.state.from,this.state.to,null!=(t=this.state.timeZone)?t:a.getTimeZone(),this.state.fiscalYearStartMonth,this.state.UNSAFE_nowDelay,this.state.weekStart);n.to.diff(this.state.value.to,"milliseconds")>=e&&this.setState({value:n})}calculatePercentOfInterval(e){const t=this.state.value.to.diff(this.state.value.from,"milliseconds");return Math.ceil(t/100*e)}getTimeZone(){if(this.state.timeZone&&Ie(this.state.timeZone))return this.state.timeZone;const e=this.getTimeZoneSource();return e!==this&&Ie(e.state.timeZone)?e.state.timeZone:a.getTimeZone()}getUrlState(){const e=i.locationService.getSearchObject(),t={from:this.state.from,to:this.state.to,timezone:this.getTimeZone()};return e.time&&e["time.window"]&&(t.time=null,t["time.window"]=null),t}updateFromUrl(e){var t,n,r;const i={};let o=De(e.from),s=De(e.to);if(e.time&&e["time.window"]){const t=function(e,t){const n=isNaN(Date.parse(e))?parseInt(e,10):Date.parse(e);let r;r=t.match(/^\d+$/)&&parseInt(t,10)?parseInt(t,10):a.rangeUtil.intervalToMs(t);return{from:a.toUtc(n-r/2).toISOString(),to:a.toUtc(n+r/2).toISOString()}}(Array.isArray(e.time)?e.time[0]:e.time,Array.isArray(e["time.window"])?e["time.window"][0]:e["time.window"]);t.from&&Ee(t.from)&&(o=t.from),t.to&&Ee(t.to)&&(s=t.to)}if(o&&Ee(o)&&(i.from=o),s&&Ee(s)&&(i.to=s),"string"==typeof e.timezone&&(i.timeZone=""!==e.timezone?e.timezone:void 0),0!==Object.keys(i).length)return i.value=Te(null!=(t=i.from)?t:this.state.from,null!=(n=i.to)?n:this.state.to,null!=(r=i.timeZone)?r:this.getTimeZone(),this.state.fiscalYearStartMonth,this.state.UNSAFE_nowDelay,this.state.weekStart),this.setState(i)}}function Ie(e){if(void 0!==e)return u.isEmpty(e)?i.config.bootData.user.timezone:e===c.defaultTimeZone||a.getZone(e)?e:void fe()}const Fe=new Me,He=new je;const Ne=new class extends Z{constructor(){super({variables:[]})}getByName(e){}isVariableLoadingOrWaitingToUpdate(e){return!1}};function ze(e){var t;return null!=(t=Le(e,e=>e.state.$timeRange))?t:He}class Ve extends a.BusEventWithPayload{}function We(e){return"object"==typeof e&&"formatter"in e}Ve.type="scene-variable-changed-value";let $e,Ue={};function Be(e){const t=Ue[e];return t||(Ue[e]=u.property(e))}class qe{constructor(e,t){this.state={name:e,value:t,type:"scopedvar"}}getValue(e){let{value:t}=this.state,n=t.value;return n=e?Be(e)(t.value):t.value,"string"===n||"number"===n||"boolean"===n?n:String(n)}getValueText(){const{value:e}=this.state;return null!=e.text?String(e.text):String(e)}}const Ge="All",Ke="$__all",Je="$__auto",Qe=/\$(\w+)|\[\[(\w+?)(?::(\w+))?\]\]|\${(\w+)(?:\.([^:^\}]+))?(?::([^\}]+))?}/g,Ze="__searchFilter",Xe="__scopes",et=new a.Registry(()=>{const e=[{id:c.VariableFormatID.Lucene,name:"Lucene",description:"Values are lucene escaped and multi-valued variables generate an OR expression",formatter:e=>{if("string"==typeof e)return tt(e);if(Array.isArray(e)){if(0===e.length)return"__empty__";return"("+u.map(e,e=>'"'+tt(e)+'"').join(" OR ")+")"}return tt(`${e}`)}},{id:c.VariableFormatID.Raw,name:"raw",description:d.t("grafana-scenes.variables.format-registry.formats.description.keep-value-as-is","Keep value as is"),formatter:e=>String(e)},{id:c.VariableFormatID.Regex,name:"Regex",description:"Values are regex escaped and multi-valued variables generate a (|) expression",formatter:e=>{if("string"==typeof e)return a.escapeRegex(e);if(Array.isArray(e)){const t=e.map(e=>"string"==typeof e?a.escapeRegex(e):a.escapeRegex(String(e)));return 1===t.length?t[0]:"("+t.join("|")+")"}return a.escapeRegex(`${e}`)}},{id:c.VariableFormatID.Pipe,name:"Pipe",description:d.t("grafana-scenes.variables.format-registry.formats.description.values-are-separated-by-character","Values are separated by | character"),formatter:e=>"string"==typeof e?e:Array.isArray(e)?e.join("|"):`${e}`},{id:c.VariableFormatID.Distributed,name:"Distributed",description:d.t("grafana-scenes.variables.format-registry.formats.description.multiple-values-are-formatted-like-variablevalue","Multiple values are formatted like variable=value"),formatter:(e,t,n)=>"string"==typeof e?e:Array.isArray(e)?(e=u.map(e,(e,t)=>0!==t?n.state.name+"="+e:e),e.join(",")):`${e}`},{id:c.VariableFormatID.CSV,name:"Csv",description:d.t("grafana-scenes.variables.format-registry.formats.description.commaseparated-values","Comma-separated values"),formatter:e=>"string"==typeof e?e:u.isArray(e)?e.join(","):String(e)},{id:c.VariableFormatID.HTML,name:"HTML",description:d.t("grafana-scenes.variables.format-registry.formats.description.html-escaping-of-values","HTML escaping of values"),formatter:e=>"string"==typeof e?a.textUtil.escapeHtml(e):u.isArray(e)?a.textUtil.escapeHtml(e.join(", ")):a.textUtil.escapeHtml(String(e))},{id:c.VariableFormatID.JSON,name:"JSON",description:d.t("grafana-scenes.variables.format-registry.formats.description.json-stringify-value","JSON stringify value"),formatter:e=>"string"==typeof e?e:JSON.stringify(e)},{id:c.VariableFormatID.PercentEncode,name:"Percent encode",description:d.t("grafana-scenes.variables.format-registry.formats.description.useful-for-url-escaping-values","Useful for URL escaping values"),formatter:e=>u.isArray(e)?nt("{"+e.join(",")+"}"):nt(e)},{id:c.VariableFormatID.SingleQuote,name:"Single quote",description:d.t("grafana-scenes.variables.format-registry.formats.description.single-quoted-values","Single quoted values"),formatter:e=>{const t=new RegExp("'","g");if(u.isArray(e))return u.map(e,e=>`'${u.replace(e,t,"\\'")}'`).join(",");let n="string"==typeof e?e:String(e);return`'${u.replace(n,t,"\\'")}'`}},{id:c.VariableFormatID.DoubleQuote,name:"Double quote",description:d.t("grafana-scenes.variables.format-registry.formats.description.double-quoted-values","Double quoted values"),formatter:e=>{const t=new RegExp('"',"g");if(u.isArray(e))return u.map(e,e=>`"${u.replace(e,t,'\\"')}"`).join(",");let n="string"==typeof e?e:String(e);return`"${u.replace(n,t,'\\"')}"`}},{id:c.VariableFormatID.SQLString,name:"SQL string",description:"SQL string quoting and commas for use in IN statements and other scenarios",formatter:lt},{id:"join",name:"Join",description:d.t("grafana-scenes.variables.format-registry.formats.description.join-values-with-a-comma","Join values with a comma"),formatter:(e,t)=>{var n;if(u.isArray(e)){const r=null!=(n=t[0])?n:",";return e.join(r)}return String(e)}},{id:c.VariableFormatID.Date,name:"Date",description:d.t("grafana-scenes.variables.format-registry.formats.description.format-date-in-different-ways","Format date in different ways"),formatter:(e,t)=>{var n;let r=NaN;if("number"==typeof e?r=e:"string"==typeof e&&(r=parseInt(e,10)),isNaN(r))return"NaN";const i=null!=(n=t[0])?n:"iso";switch(i){case"ms":return String(e);case"seconds":return`${Math.round(r/1e3)}`;case"iso":return a.dateTime(r).toISOString();default:return(t||[]).length>1?a.dateTime(r).format(t.join(":")):a.dateTime(r).format(i)}}},{id:c.VariableFormatID.Glob,name:"Glob",description:d.t("grafana-scenes.variables.format-registry.formats.description.format-multivalued-variables-using-syntax-example","Format multi-valued variables using glob syntax, example {value1,value2}"),formatter:e=>u.isArray(e)&&e.length>1?"{"+e.join(",")+"}":String(e)},{id:c.VariableFormatID.Text,name:"Text",description:"Format variables in their text representation. Example in multi-variable scenario A + B + C.",formatter:(e,t,n,r)=>n.getValueText?n.getValueText(r):String(e)},{id:c.VariableFormatID.QueryParam,name:"Query parameter",description:"Format variables as URL parameters. Example in multi-variable scenario A + B + C => var-foo=A&var-foo=B&var-foo=C.",formatter:(e,t,n,r)=>{if(n.urlSync&&!r){const e=n.urlSync.getUrlState();return a.urlUtil.toUrlParams(e)}return Array.isArray(e)?e.map(e=>it(n.state.name,e)).join("&"):it(n.state.name,e)}},{id:"customqueryparam",name:"Custom query parameter",description:"Format variables as URL parameters with custom name and value prefix. Example in multi-variable scenario A + B + C => p-foo=x-A&p-foo=x-B&p-foo=x-C.",formatter:(e,t,n)=>{const r=nt(t[0]||n.state.name),a=nt(t[1]||"");return Array.isArray(e)?e.map(e=>ot(r,e,a)).join("&"):ot(r,e,a)}},{id:c.VariableFormatID.UriEncode,name:"Percent encode as URI",description:d.t("grafana-scenes.variables.format-registry.formats.description.useful-escaping-values-taking-syntax-characters","Useful for URL escaping values, taking into URI syntax characters"),formatter:e=>u.isArray(e)?rt("{"+e.join(",")+"}"):rt(e)}];return e});function tt(e){return!1===isNaN(+e)?e:e.replace(/([\!\*\+\-\=<>\s\&\|\(\)\[\]\{\}\^\~\?\:\\/"])/g,"\\$1")}function nt(e){return"object"==typeof e&&(e=String(e)),at(encodeURIComponent(e))}const rt=e=>at(encodeURI(String(e))),at=e=>e.replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase());function it(e,t){return`var-${e}=${nt(t)}`}function ot(e,t,n=""){return`${e}=${n}${nt(t)}`}const st={"'":"''",'"':'\\"'};function lt(e){const t=new RegExp("'|\"","g");if(u.isArray(e))return u.map(e,e=>`'${u.replace(e,t,e=>{var t;return null!=(t=st[e])?t:""})}'`).join(",");let n="string"==typeof e?e:String(e);return`'${u.replace(n,t,e=>{var t;return null!=(t=st[e])?t:""})}'`}class ut{constructor(e){this._value=e}formatter(){return this._value}}class ct{constructor(e,t){this.state={name:e,type:"time_macro"},this._sceneObject=t}getValue(){const e=ze(this._sceneObject);return"__from"===this.state.name?e.state.value.from.valueOf():e.state.value.to.valueOf()}getValueText(){const e=ze(this._sceneObject);return"__from"===this.state.name?a.dateTimeFormat(e.state.value.from,{timeZone:e.getTimeZone()}):a.dateTimeFormat(e.state.value.to,{timeZone:e.getTimeZone()})}}class dt{constructor(e,t,n){this.state={name:e,type:"time_macro",match:n},this._sceneObject=t}getValue(){var e;const t=ri(this._sceneObject);if(t){const n=null==(e=t.state.data)?void 0:e.request;return n?"__interval_ms"===this.state.name?n.intervalMs:n.interval:this.state.match}return this.state.match}}function pt(e,t){e.setState(t)}function ft(){return i.useLocationService?i.useLocationService():i.locationService}function ht(e){let t=e;do{if("repeatSourceKey"in t.state&&t.state.repeatSourceKey)return!0;t=t.parent}while(t);return!1}const mt=class e extends Z{constructor(){super(...arguments),this._urlSync=new vt(this)}validateAndUpdate(){return this.getValueOptions({}).pipe(s.map(e=>(this.updateValueGivenNewOptions(e),{})))}onCancel(){this.setStateHelper({loading:!1});const e=this.parent;null==e||e.cancel(this)}updateValueGivenNewOptions(e){const{value:t,text:n,options:r}=this.state,a=this.getStateUpdateGivenNewOptions(e,t,n);this.interceptStateUpdateAfterValidation(a),this.setStateHelper(a),(a.value!==t||a.text!==n||this.hasAllValue()&&!u.isEqual(e,r))&&this.publishEvent(new Ve(this),!0)}getStateUpdateGivenNewOptions(e,t,n){const r={options:e,loading:!1,value:t,text:n};if(0===e.length)return this.state.defaultToAll||this.state.includeAll?(r.value=Ke,r.text=Ge):this.state.isMulti?(r.value=[],r.text=[]):(r.value="",r.text=""),r;if(this.hasAllValue())return this.state.includeAll?r.text=Ge:(r.value=e[0].value,r.text=e[0].label,this.state.isMulti&&(r.value=[r.value],r.text=[r.text])),r;if(this.state.isMulti){const a=(Array.isArray(t)?t:[t]).filter(t=>e.find(e=>e.value===t)),i=a.map(t=>e.find(e=>e.value===t).label);if(0===a.length){const t=this.getDefaultMultiState(e);r.value=t.value,r.text=t.text}else u.isEqual(a,t)||(r.value=a),u.isEqual(i,n)||(r.text=i);return r}let a=function(e,t,n){let r;for(const a of n){if(a.value===e)return a;a.label===t&&(r=a)}return r}(t,n,e);if(a)r.text=a.label,r.value=a.value;else{const t=this.getDefaultSingleState(e);r.value=t.value,r.text=t.label}return r}interceptStateUpdateAfterValidation(e){const t=e.value===Ke&&this.state.text===Ge;this.skipNextValidation&&e.value!==this.state.value&&e.text!==this.state.text&&!t&&(e.value=this.state.value,e.text=this.state.text),this.skipNextValidation=!1}getValue(e){let t=this.state.value;if(this.hasAllValue()){if(this.state.allValue)return new yt(this.state.allValue,this);t=this.state.options.map(e=>e.value)}return null!=e?this.getFieldAtPath(t,e):t}getValueText(e){if(this.hasAllValue())return Ge;const t=null!=e?this.getFieldAtPath(this.state.value,e,!0):this.state.text;return Array.isArray(t)?t.join(" + "):String(t)}getFieldAtPath(e,t,n=!1){const r=this.getFieldAccessor(t);if(Array.isArray(e)){const a=parseInt(t,10);if(!isNaN(a)&&a>=0&&ae.value===t);return r?r.label:String(t)}return e.map(e=>{const t=this.state.options.find(t=>t.value===e);return t?r(t.properties):e})}const a=this.state.options.find(t=>t.value===e);return a?r(a.properties):n?this.state.text:e}getFieldAccessor(t){const n=e.fieldAccessorCache[t];return n||(e.fieldAccessorCache[t]=u.property(t))}hasAllValue(){const e=this.state.value;return e===Ke||Array.isArray(e)&&e[0]===Ke}getDefaultMultiState(e){return this.state.defaultToAll?{value:[Ke],text:[Ge]}:e.length>0?{value:[e[0].value],text:[e[0].label],properties:[e[0].properties]}:{value:[],text:[]}}getDefaultSingleState(e){return this.state.defaultToAll?{value:Ke,label:Ge}:e.length>0?{value:e[0].value,label:e[0].label,properties:e[0].properties}:{value:"",label:""}}changeValueTo(e,t,n=!1){var r,a;if(e===this.state.value&&t===this.state.text)return;if(t||(t=Array.isArray(e)?e.map(e=>this.findLabelTextForValue(e)):this.findLabelTextForValue(e)),Array.isArray(e)){if(0===e.length){const n=this.getDefaultMultiState(this.state.options);e=n.value,t=n.text}e[e.length-1]===Ke?(e=[Ke],t=[Ge]):e[0]===Ke&&e.length>1&&(e.shift(),Array.isArray(t)&&t.shift())}if(u.isEqual(e,this.state.value)&&u.isEqual(t,this.state.text))return;const i=()=>this.setStateHelper({value:e,text:t,loading:!1});if(n){const e=we(this);null==e||e.startProfile(Ae),null==(a=(r=this._urlSync).performBrowserHistoryAction)||a.call(r,i)}else i();this.publishEvent(new Ve(this),!0)}findLabelTextForValue(e){if(e===Ke)return Ge;const t=this.state.options.find(t=>t.value===e);if(t)return t.label;const n=this.state.options.find(t=>t.label===e);return n?n.label:e}setStateHelper(e){pt(this,e)}getOptionsForSelect(e=!0){let t=this.state.options;if(this.state.includeAll&&(t=[{value:Ke,label:Ge},...t]),e&&!Array.isArray(this.state.value)){t.find(e=>e.value===this.state.value)||(t=[{value:this.state.value,label:String(this.state.text)},...t])}return t}refreshOptions(){this.getValueOptions({}).subscribe(e=>{this.updateValueGivenNewOptions(e)})}};mt.fieldAccessorCache={};let gt=mt;class vt{constructor(e){this._sceneObject=e,this._nextChangeShouldAddHistoryStep=!1}getKey(){return`var-${this._sceneObject.state.name}`}getKeys(){return this._sceneObject.state.skipUrlSync?[]:[this.getKey()]}getUrlState(){if(this._sceneObject.state.skipUrlSync)return{};let e=null,t=this._sceneObject.state.value;return e=Array.isArray(t)&&t.length>1?t.map(String):this._sceneObject.state.isMulti?[String(t)]:String(t),{[this.getKey()]:e}}updateFromUrl(e){let t=e[this.getKey()];null!=t&&(this._sceneObject.state.includeAll&&(t=function(e){if(u.isArray(e)&&e[0]===Ge)return[Ke];if(e===Ge)return Ke;return e}(t)),this._sceneObject.state.allValue&&this._sceneObject.state.allValue===t&&(t=Ke),this._sceneObject.isActive||(this._sceneObject.skipNextValidation=!0),this._sceneObject.changeValueTo(t))}performBrowserHistoryAction(e){this._nextChangeShouldAddHistoryStep=!0,e(),this._nextChangeShouldAddHistoryStep=!1}shouldCreateHistoryStep(e){return this._nextChangeShouldAddHistoryStep}}class yt{constructor(e,t){this._value=e,this._variable=t}formatter(e){return e===c.VariableFormatID.Text?Ge:e===c.VariableFormatID.PercentEncode?et.get(c.VariableFormatID.PercentEncode).formatter(this._value,[],this._variable):e===c.VariableFormatID.QueryParam?et.get(c.VariableFormatID.QueryParam).formatter(Ge,[],this._variable):this._value}}function bt(e,t={}){if(e.state.$variables)for(const n of e.state.$variables.state.variables)n.state.skipUrlSync||t[n.state.name]||(t[n.state.name]=n);return e.parent&&bt(e.parent,t),t}function _t(e,t,n){return new Proxy({},{get:(r,i)=>"name"===i?e.name:"displayName"===i?a.getFieldDisplayName(e,t,n):"labels"===i||"formattedLabels"===i?e.labels?{...e.labels,__values:Object.values(e.labels).sort().join(", "),toString:()=>a.formatLabels(e.labels,"",!0)}:"":void 0})}const wt=a.getDisplayProcessor();class Mt{constructor(e){this._urlQueryParams=e}formatter(e){if(!e)return this._urlQueryParams;const t=e.split(":");if("exclude"===t[0]&&t.length>1){const e=new URLSearchParams(this._urlQueryParams);for(const n of t[1].split(","))e.delete(n);return`?${e}`}if("include"===t[0]&&t.length>1){const e=new URLSearchParams(this._urlQueryParams),n=t[1].split(",");for(const t of e.keys())n.includes(t)||e.delete(t);return`?${e}`}return this._urlQueryParams}}const St=new Map([[a.DataLinkBuiltInVars.includeVars,class{constructor(e,t){this.state={name:e,type:"url_variable"},this._sceneObject=t}getValue(){const e=bt(this._sceneObject),t=et.get(c.VariableFormatID.QueryParam),n=[];for(const r of Object.keys(e)){const a=e[r];if(a instanceof gt&&a.hasAllValue()&&!a.state.allValue){n.push(t.formatter(Ke,[],a));continue}const i=a.getValue();i&&(We(i)?n.push(i.formatter(c.VariableFormatID.QueryParam)):n.push(t.formatter(i,[],a)))}return new ut(n.join("&"))}getValueText(){return""}}],[a.DataLinkBuiltInVars.keepTime,class{constructor(e,t){this.state={name:e,type:"url_variable"},this._sceneObject=t}getValue(){var e;const t=null==(e=ze(this._sceneObject).urlSync)?void 0:e.getUrlState();return new ut(a.urlUtil.toUrlParams(t))}getValueText(){return""}}],["__value",class{constructor(e,t,n,r){this._match=n,this._scopedVars=r,this.state={name:e,type:"__value"}}getValue(e){var t,n;const r=null==(t=this._scopedVars)?void 0:t.__dataContext;if(!r)return this._match;const{frame:i,rowIndex:o,field:s,calculatedValue:l}=r.value;if(l)switch(e){case"numeric":case"raw":return l.numeric;case"time":return"";default:return a.formattedValueToString(l)}if(null==o)return this._match;if("time"===e){const e=i.fields.find(e=>e.type===a.FieldType.time);return e?e.values.get(o):void 0}if(!s)return this._match;const u=s.values.get(o);if("raw"===e)return u;const c=(null!=(n=s.display)?n:wt)(u);return"numeric"===e?c.numeric:a.formattedValueToString(c)}getValueText(){return""}}],["__data",class{constructor(e,t,n,r){this._match=n,this._scopedVars=r,this.state={name:e,type:"__data"}}getValue(e){var t,n;const r=null==(t=this._scopedVars)?void 0:t.__dataContext;if(!r||!e)return this._match;const{frame:i,rowIndex:o}=r.value;if(void 0===o||void 0===e)return this._match;const s={name:i.name,refId:i.refId,fields:a.getFieldDisplayValuesProxy({frame:i,rowIndex:o})};return null!=(n=Be(e)(s))?n:""}getValueText(){return""}}],["__series",class{constructor(e,t,n,r){this._match=n,this._scopedVars=r,this.state={name:e,type:"__series"}}getValue(e){var t;const n=null==(t=this._scopedVars)?void 0:t.__dataContext;if(!n||!e)return this._match;if("name"!==e)return this._match;const{frame:r,frameIndex:i}=n.value;return a.getFrameDisplayName(r,i)}getValueText(){return""}}],["__field",class{constructor(e,t,n,r){this._match=n,this._scopedVars=r,this.state={name:e,type:"__field"}}getValue(e){var t,n;const r=null==(t=this._scopedVars)?void 0:t.__dataContext;if(!r||!e)return this._match;if(void 0===e||""===e)return this._match;const{frame:a,field:i,data:o}=r.value,s=_t(i,a,o);return null!=(n=Be(e)(s))?n:""}getValueText(){return""}}],["__url",class{constructor(e,t){this.state={name:e,type:"url_macro"}}getValue(e){var t;const n=i.locationService.getLocation(),r=null!=(t=i.config.appSubUrl)?t:"";switch(null!=e?e:""){case"params":return new Mt(n.search);case"path":return r+n.pathname;default:return r+n.pathname+n.search}}getValueText(){return""}}],["__from",ct],["__to",ct],["__timezone",class{constructor(e,t){this.state={name:e,type:"time_macro"},this._sceneObject=t}getValue(){const e=ze(this._sceneObject).getTimeZone();return"browser"===e?Intl.DateTimeFormat().resolvedOptions().timeZone:e}getValueText(){return this.getValue()}}],["__user",class{constructor(e,t){this.state={name:e,type:"user_macro"}}getValue(e){const t=i.config.bootData.user;switch(e){case"login":return t.login;case"email":return t.email;default:return String(t.id)}}getValueText(){return""}}],["__org",class{constructor(e,t){this.state={name:e,type:"org_macro"}}getValue(e){const t=i.config.bootData.user;return"name"===e?t.orgName:String(t.orgId)}getValueText(){return""}}],["__interval",dt],["__interval_ms",dt]]);function kt(e,t,n,r,a){return t&&"string"==typeof t?(Qe.lastIndex=0,t.replace(Qe,(t,i,o,s,l,u,d)=>{const p=i||o||l,f=s||d||r,h=function(e,t,n,r){if(n&&n.hasOwnProperty(e)){const t=n[e];if(t)return function(e,t){return $e?($e.state.name=e,$e.state.value=t):$e=new qe(e,t),$e}(e,t)}const a=pe(e,r);if(a)return a;const i=St.get(e);if(i)return new i(e,r,t,n);return null}(p,t,n,e);if(!h)return a&&a.push({match:t,variableName:p,fieldPath:u,format:f,value:t,found:!1}),t;const m=function(e,t,n,r,a){if(null==n)return"";if(We(n))return kt(e,n.formatter(r));Array.isArray(n)||"object"!=typeof n||(n=`${n}`);if("function"==typeof r)return r(n,{name:t.state.name,type:t.state.type,multi:t.state.isMulti,includeAll:t.state.includeAll});let i=[];r?(i=r.split(":"),i.length>1?(r=i[0],i=i.slice(1)):i=[]):r=c.VariableFormatID.Glob;let o=et.getIfExists(r);o||(console.error(`Variable format ${r} not found. Using glob format as fallback.`),o=et.get(c.VariableFormatID.Glob));return o.formatter(n,i,t,a)}(e,h,h.getValue(u),f,u);return a&&a.push({match:t,variableName:p,fieldPath:u,format:f,value:m,found:m!==t}),m})):null!=t?t:""}function Lt(e){return void 0!==e.useState}function xt(e){return"enrichDataRequest"in e}function Dt(e){return"enrichFiltersRequest"in e}function Tt(e){return"isDataLayer"in e}function Ot(e="op"){if("undefined"!=typeof crypto&&crypto.randomUUID){return`${e}-${crypto.randomUUID()}`}return`${e}-${Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}`}const Et=class e{constructor(){this.observers=[]}static getInstance(){return e.instance||(e.instance=new e),e.instance}addObserver(e){return this.observers.push(e),()=>{const t=this.observers.indexOf(e);t>-1&&this.observers.splice(t,1)}}clearObservers(){this.observers=[]}getObserverCount(){return this.observers.length}notifyObservers(e,t,n){this.observers.forEach(r=>{try{const n=r[e];null==n||n(t)}catch(e){console.warn(`Error in ${n} observer:`,e)}})}notifyDashboardInteractionStart(e){this.notifyObservers("onDashboardInteractionStart",e,"dashboard interaction start")}notifyDashboardInteractionMilestone(e){this.notifyObservers("onDashboardInteractionMilestone",e,"dashboard interaction milestone")}notifyDashboardInteractionComplete(e){this.notifyObservers("onDashboardInteractionComplete",e,"dashboard interaction complete")}notifyPanelOperationStart(e){this.notifyObservers("onPanelOperationStart",e,"panel operation start")}notifyPanelOperationComplete(e){this.notifyObservers("onPanelOperationComplete",e,"panel operation complete")}notifyQueryStart(e){this.notifyObservers("onQueryStart",e,"query start")}notifyQueryComplete(e){this.notifyObservers("onQueryComplete",e,"query complete")}};Et.instance=null;let Pt=Et;function Ct(){return Pt.getInstance()}function Yt(e,t){return n=>{const r=li.getQueryController(e.origin);return r?new s.Observable(a=>{var i;e.cancel||(e.cancel=()=>a.complete());const o=(null==(i=e.request)?void 0:i.requestId)||`${e.type}-${Math.floor(performance.now()).toString(36)}`,s=performance.now();let l=null;if(t)l=t.onQueryStarted(s,e,o);else{const t=Ot("query");Ct().notifyQueryStart({operationId:t,queryId:o,queryType:e.type,origin:e.origin.constructor.name,timestamp:s}),l=(n,r)=>{Ct().notifyQueryComplete({operationId:t,queryId:o,queryType:e.type,origin:e.origin.constructor.name,timestamp:n,duration:n-s,error:r?(null==r?void 0:r.message)||String(r)||"Unknown error":void 0})}}r.queryStarted(e);let u=!1;const d=n.subscribe({next:t=>{u||t.state===c.LoadingState.Loading||(u=!0,r.queryCompleted(e),null==l||l(performance.now())),a.next(t)},error:t=>{u||(u=!0,r.queryCompleted(e),null==l||l(performance.now(),t)),a.error(t)},complete:()=>{a.complete()}});return()=>{d.unsubscribe(),u||(r.queryCompleted(e),null==l||l(performance.now()))}}):n}}function At(e){return new s.Observable(t=>{t.next({state:c.LoadingState.Loading});s.from(e).pipe(s.map(()=>({state:c.LoadingState.Done})),s.catchError(()=>(t.next({state:c.LoadingState.Error}),[]))).subscribe({next:e=>t.next(e),complete:()=>t.complete()})})}async function Rt(e,t){var n;if(null==e?void 0:e.uid){const t=re.get(e.uid);if(t)return t}if(e&&e.query)return e;const r=i.getDataSourceSrv().get(e,t);if(t.__sceneObject&&t.__sceneObject.value.valueOf()){const a=li.getQueryController(t.__sceneObject.value.valueOf());a&&a.state.enableProfiling&&At(r).pipe(Yt({type:`getDataSource/${null!=(n=null==e?void 0:e.type)?n:"unknown"}`,origin:t.__sceneObject.value.valueOf()})).subscribe(()=>{})}return await r}class jt{constructor(){this._values=new Map}recordCurrentDependencyValuesForSceneObject(e){if(this.clearValues(),e.variableDependency)for(const t of e.variableDependency.getNames()){const n=li.lookupVariable(t,e);n&&this._values.set(n.state.name,n.getValue())}}cloneAndRecordCurrentValuesForSceneObject(e){const t=new jt;return t.recordCurrentDependencyValuesForSceneObject(e),t}clearValues(){this._values.clear()}hasValues(){return!!this._values}recordCurrentValue(e){this._values.set(e.state.name,e.getValue())}hasRecordedValue(e){return this._values.has(e.state.name)}hasValueChanged(e){if(this._values.has(e.state.name)){if(!Ma(this._values.get(e.state.name),e.getValue()))return!0}return!1}hasDependenciesChanged(e){if(!this._values)return!1;if(!e.variableDependency)return!1;for(const t of e.variableDependency.getNames()){const n=li.lookupVariable(t,e);if(!n)continue;const r=n.state.name;if(n&&this._values.has(r)){if(!Ma(this._values.get(r),n.getValue()))return!0}}return!1}}function It(e){return"object"==typeof e&&"getExtraQueries"in e}const Ft=(e,t)=>s.of(t),Ht=0;function Nt(e){const t=e.getRoot();return xt(t)?t.enrichDataRequest(e):null}const zt=new Set;function Vt(e){return Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vt(e)}function Wt(e){var t=function(e,t){if("object"!=Vt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Vt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vt(t)?t:t+""}function $t(e,t,n){return(t=Wt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bt(){return Bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t25||rn.split(n).length>5)for(let a=0;ae[i.idx[t]]):a.map(t=>e[t]))}return r}function on(e,t=!1){let n=e;t&&(n=[{value:Ke,label:Ge},...n]);const r=n.map(e=>e.label);return e=>an(n,r,e)}const sn=()=>!0,ln=e=>"$__all"!==e.value,un=(e,t)=>e.length===t.filter(ln).length?p.ToggleAllState.allSelected:0===e.length||1===e.length&&e[0]&&"$__all"===e[0].value?p.ToggleAllState.noneSelected:p.ToggleAllState.indeterminate;function cn({model:e,state:t}){const{value:n,text:r,key:a,options:i,includeAll:s,isReadOnly:l,allowCustomValue:u=!0}=t,[c,h]=o.useState(""),[m,g]=o.useState(!1),v=function(e,t){return{value:e,label:null!=t?t:String(e)}}(n,String(r)),y=li.getQueryController(e),b=o.useMemo(()=>on(i,s),[i,s])(c);return F.default.createElement(p.Select,{id:a,isValidNewOption:e=>e.trim().length>0,placeholder:d.t("grafana-scenes.variables.variable-value-select.placeholder-select-value","Select value"),width:"auto",disabled:l,value:v,inputValue:c,allowCustomValue:u,virtualized:!0,filterOption:sn,tabSelectsValue:!1,onInputChange:(t,{action:n})=>"input-change"===n?(h(t),e.onSearchChange&&e.onSearchChange(t),t):t,onOpenMenu:()=>{m&&h(String(r))},onCloseMenu:()=>{h("")},options:b,"data-testid":f.selectors.pages.Dashboard.SubMenu.submenuItemValueDropDownValueLinkTexts(`${n}`),onChange:t=>{e.changeValueTo(t.value,t.label,!0),null==y||y.startProfile(Ae),m!==t.__isNew__&&g(t.__isNew__)}})}function dn({model:e,state:t}){const{value:n,options:r,key:a,maxVisibleValues:i,noValueOnClear:s,includeAll:l,isReadOnly:c,allowCustomValue:d=!0}=t,h=o.useMemo(()=>u.isArray(n)?n:[n],[n]),[m,g]=o.useState(h),[v,y]=o.useState(""),b=o.useMemo(()=>on(r,l),[r,l]);o.useEffect(()=>{g(h)},[h]);const _=r.length>0?"Select value":"",w=b(v);return F.default.createElement(p.MultiSelect,{id:a,placeholder:_,width:"auto",inputValue:v,disabled:c,value:m,noMultiValueWrap:!0,maxVisibleValues:null!=i?i:5,tabSelectsValue:!1,virtualized:!0,allowCustomValue:d,toggleAllOptions:{enabled:!0,optionsFilter:ln,determineToggleAllState:un},options:w,closeMenuOnSelect:!1,components:{Option:pn},isClearable:!0,hideSelectedOptions:!1,onInputChange:(t,{action:n})=>"input-change"===n?(y(t),e.onSearchChange&&e.onSearchChange(t),t):"input-blur"===n?(y(""),""):v,onBlur:()=>{e.changeValueTo(m,void 0,!0)},filterOption:sn,"data-testid":f.selectors.pages.Dashboard.SubMenu.submenuItemValueDropDownValueLinkTexts(`${m}`),onChange:(t,n)=>{"clear"===n.action&&s&&e.changeValueTo([],void 0,!0),g(t.map(e=>e.value))}})}const pn=({children:e,data:t,innerProps:n,innerRef:r,isFocused:a,isSelected:i,indeterminate:o,renderOptionLabel:s})=>{var l;const{onMouseMove:u,onMouseOver:c,...d}=n,m=p.useTheme2(),g=p.getSelectStyles(m),v=p.useStyles2(fn);return F.default.createElement("div",{ref:r,className:h.cx(g.option,a&&g.optionFocused),...d,"data-testid":"data-testid Select option",title:t.title},F.default.createElement("div",{className:v.checkbox},F.default.createElement(p.Checkbox,{indeterminate:o,value:i})),F.default.createElement("div",{className:g.optionBody,"data-testid":f.selectors.pages.Dashboard.SubMenu.submenuItemValueDropDownOptionTexts(null!=(l=t.label)?l:String(t.value))},F.default.createElement("span",null,e)))};pn.displayName="SelectMenuOptions";const fn=e=>({checkbox:h.css({marginRight:e.spacing(2)})});function hn({model:e}){const t=e.useState();return t.isMulti?F.default.createElement(dn,{model:e,state:t}):F.default.createElement(cn,{model:e,state:t})}class mn{constructor(e){this._sceneObject=e,this._nextChangeShouldAddHistoryStep=!1}getRestorableKey(){return`restorable-var-${this._sceneObject.state.name}`}getKey(){return`var-${this._sceneObject.state.name}`}getKeys(){return this._sceneObject.state.skipUrlSync?[]:[this.getKey(),this.getRestorableKey()]}getUrlState(){return this._sceneObject.state.skipUrlSync?{}:{[this.getKey()]:this._sceneObject.state.defaultValue&&!this._sceneObject.state.restorable?[""]:gn(this._sceneObject.state.value,this._sceneObject.state.text),[this.getRestorableKey()]:this._sceneObject.state.defaultValue?this._sceneObject.state.restorable?"true":"false":null}}updateFromUrl(e){let t=e[this.getKey()],n=e[this.getRestorableKey()];if(null!=t){this._sceneObject.isActive||(this._sceneObject.skipNextValidation=!0);const{values:e,texts:a}=(r=t,(r=Array.isArray(r)?r:[r]).reduce((e,t)=>{const[n,r]=(null!=t?t:"").split(",");return e.values.push(Ca(n)),e.texts.push(Ca(null!=r?r:n)),e},{values:[],texts:[]}));if(this._sceneObject.state.defaultValue&&("false"===n||void 0===n))return;if("false"===n)return void this._sceneObject.changeValueTo([],[],!1);this._sceneObject.changeValueTo(e,a)}var r}performBrowserHistoryAction(e){this._nextChangeShouldAddHistoryStep=!0,e(),this._nextChangeShouldAddHistoryStep=!1}shouldCreateHistoryStep(e){return this._nextChangeShouldAddHistoryStep}}function gn(e,t){return e=Array.isArray(e)?e:[e],t=Array.isArray(t)?t:[t],e.map((e,n)=>{if(null==e)return"";e=String(e);let r=t[n];return r=null==r?e:String(r),Ya(e,r)})}function vn(e){const t=e.getRoot();return Dt(t)?t.enrichFiltersRequest(e):null}var yn,bn=e=>{throw TypeError(e)},_n=(e,t,n)=>t.has(e)||bn("Cannot "+n);class wn{constructor(e){((e,t,n)=>{t.has(e)?bn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n)})(this,yn),this.text="__sceneObject",this.valueOf=()=>{return _n(e=this,t=yn,"read from private field"),n?n.call(e):t.get(e);var e,t,n},((e,t,n)=>{_n(e,t,"write to private field"),t.set(e,n)})(this,yn,e)}toString(){}get value(){return this}}function Mn(e){return function(e){const t=e.match(/^(\d+)\.(\d+)\.(\d+)/);if(!t)return!1;const n=parseInt(t[1],10),r=parseInt(t[2],10),a=parseInt(t[3],10);return 11===n?0===r&&a>=4||1===r&&a>=2||r>1:10===n?4===r&&a>=8||r>=5:n>11}(i.config.buildInfo.version)?new wn(e):{value:e,text:"__sceneObject"}}function Sn(e){const{model:t}=e,n=p.useTheme2(),r=kn(n),a=p.getInputStyles({theme:n,invalid:!1}),i=u.isArray(t.state.value)?t.state.value:t.state.value?[t.state.value]:[];let o=[];return i&&i.length&&o.push(F.default.createElement(p.IconButton,{"aria-label":d.t("grafana-scenes.variables.default-group-by-custom-indicator-container.aria-label-clear","clear"),key:"clear",name:"times",size:"md",className:r.clearIcon,onClick:e=>{t.changeValueTo([],void 0,!0),t.checkIfRestorable([])&&t.setState({restorable:!0})}})),t.state.restorable&&o.push(F.default.createElement(p.IconButton,{onClick:t=>{e.model.restoreDefaultValues()},onKeyDownCapture:t=>{"Enter"===t.key&&e.model.restoreDefaultValues()},key:"restore",name:"history",size:"md",className:r.clearIcon,tooltip:d.t("grafana-scenes.variables.default-group-by-custom-indicator-container.tooltip-restore-groupby-set-by-this-dashboard","Restore groupby set by this dashboard.")})),t.state.restorable||o.push(F.default.createElement(p.Tooltip,{key:"tooltip",content:d.t("grafana-scenes.variables.default-group-by-custom-indicator-container.tooltip","Applied by default in this dashboard. If edited, it carries over to other dashboards."),placement:"bottom"},F.default.createElement(p.Icon,{name:"info-circle",size:"md"}))),F.default.createElement("div",{onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},className:h.cx(a.suffix,h.css({position:"relative"}))},o)}yn=new WeakMap;const kn=e=>({clearIcon:h.css({color:e.colors.action.disabledText,cursor:"pointer","&:hover:before":{backgroundColor:"transparent"},"&:hover":{color:e.colors.text.primary}})}),Ln=({keysApplicability:e,children:t})=>{var n,r;const a=p.useTheme2(),i=p.getSelectStyles(a),{disabledPill:o,strikethrough:s}=Ia(a),l=F.default.Children.toArray(t)[0];let u=!0;if(F.default.isValidElement(l)&&(null==(r=null==(n=l.props)?void 0:n.data)?void 0:r.value)){const t=l.props.data.value,n=null==e?void 0:e.find(e=>e.key===t);n&&!n.applicable&&(u=!1)}return F.default.createElement("div",{className:h.cx(i.multiValueContainer,!u&&h.cx(o,s))},t)};function xn(e){return"isInteractionTracker"in e}function Dn(e){let t=e;for(;t;){if(t.state.$behaviors)for(const e of t.state.$behaviors)if(xn(e))return e;t=t.parent}}function Tn({recentDrilldowns:e,recommendedDrilldowns:t}){const n=p.useStyles2(On),[r,a]=o.useState(!1),i=o.useRef(null),s=e=>{e(),a(!1)},l=F.default.createElement(p.ClickOutsideWrapper,{onClick:()=>a(!1),useCapture:!0},F.default.createElement("div",{className:n.menuContainer,onClick:e=>e.stopPropagation()},F.default.createElement(p.Stack,{direction:"column"},F.default.createElement(p.Text,{weight:"bold",variant:"bodySmall",color:"secondary"},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.drilldown-recommendations.recent"},"Recent")),e&&e.length>0?e.map(e=>F.default.createElement("div",{key:e.label,className:h.cx(n.combinedFilterPill),onClick:()=>s(e.onClick)},e.label)):F.default.createElement("div",{className:n.emptyMessage},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.drilldown-recommendations.recent-empty"},"No recent values")),F.default.createElement(p.Text,{weight:"bold",variant:"bodySmall",color:"secondary"},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.drilldown-recommendations.recommended"},"Recommended")),t&&t.length>0?t.map(e=>F.default.createElement("div",{key:e.label,className:h.cx(n.combinedFilterPill),onClick:()=>s(e.onClick)},e.label)):F.default.createElement("div",{className:n.emptyMessage},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.drilldown-recommendations.recommended-empty"},"No recommended values")))));return F.default.createElement(F.default.Fragment,null,F.default.createElement(p.IconButton,{name:"plus",tooltip:d.t("grafana-scenes.components.drilldown-recommendations.tooltip","Show recommendations"),ref:i,className:h.cx(r&&n.iconActive),onClick:e=>{a(!0),e.stopPropagation()}}),r&&i.current&&F.default.createElement(p.Popover,{content:l,onKeyDown:e=>{" "===e.key&&e.stopPropagation()},placement:"bottom-start",referenceElement:i.current,show:!0}))}const On=e=>({menuContainer:h.css({display:"flex",flexDirection:"column",background:e.colors.background.elevated,border:`1px solid ${e.colors.border.weak}`,borderRadius:e.shape.radius.default,boxShadow:e.shadows.z3,padding:e.spacing(2)}),combinedFilterPill:h.css({alignItems:"center",background:e.colors.action.selected,borderRadius:e.shape.radius.default,border:`1px solid ${e.colors.border.weak}`,padding:e.spacing(.2,1),color:e.colors.text.primary,overflow:"hidden",whiteSpace:"nowrap",minHeight:e.spacing(2.75),...e.typography.bodySmall,fontWeight:e.typography.fontWeightBold,cursor:"pointer","&:hover":{background:e.colors.action.hover}}),iconActive:h.css({"&:before":{backgroundColor:e.colors.action.hover,opacity:1}}),emptyMessage:h.css({padding:e.spacing(.5,0),color:e.colors.text.secondary,...e.typography.bodySmall})});class En extends Z{constructor(e){super({skipUrlSync:!0,loading:!0,scopes:[],...e,type:"system",name:Xe,hide:c.VariableHide.hideVariable}),this._renderBeforeActivation=!0,this.UNSAFE_renderAsHidden=!0}getValue(){var e;const t=null!=(e=this.state.scopes)?e:[];return new Pn(t.map(e=>e.metadata.name))}getScopes(){return this.state.scopes}setContext(e){if(!e)return;this._context=e;const t=e.state;null!=this.state.enable&&e.setEnabled(this.state.enable);const n=e.stateObservable.subscribe(e=>{this.updateStateFromContext(e)});return()=>{n.unsubscribe(),null!=this.state.enable&&e.setEnabled(t.enabled)}}updateStateFromContext(e){const t=0!==e.value.length&&e.loading,n=this.state.scopes.map(e=>e.metadata.name),r=e.value.map(e=>e.metadata.name),a=!u.isEqual(n,r);if(t||!a&&0!==r.length)this.setState({loading:t});else{const n=we(this);null==n||n.startProfile("scopes_changed"),this.setState({scopes:e.value,loading:t}),this.publishEvent(new Ve(this),!0)}}}En.Component=function({model:e}){const t=o.useContext(i.ScopesContext);return o.useEffect(()=>e.setContext(t),[t,e]),null};class Pn{constructor(e){this._value=e}formatter(e){return e===c.VariableFormatID.QueryParam?this._value.map(e=>`scope=${encodeURIComponent(e)}`).join("&"):this._value.join(", ")}}let Cn;const Yn=new Set;function An(e){return F.default.createElement(p.Tooltip,{content:d.t("grafana-scenes.utils.loading-indicator.content-cancel-query","Cancel query")},F.default.createElement(p.Icon,{className:"spin-clockwise",name:"sync",size:"xs",role:"button",onMouseDown:t=>{e.onCancel(t)}}))}function Rn(e){const t=p.useStyles2(jn),n=p.useTheme2(),r="vertical"===e.layout,a=Boolean(e.isLoading)?F.default.createElement("div",{style:{marginLeft:n.spacing(1),marginTop:"-1px"},"aria-label":f.selectors.components.LoadingIndicator.icon},F.default.createElement(An,{onCancel:t=>{var n;t.preventDefault(),t.stopPropagation(),null==(n=e.onCancel)||n.call(e)}})):null;let i=null;e.error&&(i=F.default.createElement(p.Tooltip,{content:e.error,placement:"bottom"},F.default.createElement(p.Icon,{className:t.errorIcon,name:"exclamation-triangle"})));let o=null;e.description&&(o=F.default.createElement(p.Tooltip,{content:e.description,placement:r?"top":"bottom"},F.default.createElement(p.Icon,{className:t.normalIcon,name:"info-circle"})));const s="string"==typeof e.label?f.selectors.pages.Dashboard.SubMenu.submenuItemLabels(e.label):"";let l;return l=r?F.default.createElement("label",{className:h.cx(t.verticalLabel,e.className),"data-testid":s,htmlFor:e.htmlFor},e.prefix,e.label,o,i,e.icon&&F.default.createElement(p.Icon,{name:e.icon,className:t.normalIcon}),a,e.onRemove&&F.default.createElement(p.IconButton,{variant:"secondary",size:"xs",name:"times",onClick:e.onRemove,tooltip:d.t("grafana-scenes.utils.controls-label.tooltip-remove","Remove")}),e.suffix):F.default.createElement("label",{className:h.cx(t.horizontalLabel,e.className),"data-testid":s,htmlFor:e.htmlFor},e.prefix,i,e.icon&&F.default.createElement(p.Icon,{name:e.icon,className:t.normalIcon}),e.label,o,a,e.suffix),l}const jn=e=>({horizontalLabel:h.css({background:e.isDark?e.colors.background.primary:e.colors.background.secondary,display:"flex",alignItems:"center",padding:e.spacing(0,1),fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.bodySmall.fontSize,height:e.spacing(e.components.height.md),lineHeight:e.spacing(e.components.height.md),borderRadius:`${e.shape.radius.default} 0 0 ${e.shape.radius.default}`,border:`1px solid ${e.components.input.borderColor}`,position:"relative",right:-1,whiteSpace:"nowrap",gap:e.spacing(.5)}),verticalLabel:h.css({display:"flex",alignItems:"center",fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.bodySmall.fontSize,lineHeight:e.typography.bodySmall.lineHeight,whiteSpace:"nowrap",marginBottom:e.spacing(.5),gap:e.spacing(1)}),errorIcon:h.css({color:e.colors.error.text}),normalIcon:h.css({color:e.colors.text.secondary})});function In(e){const t=e.map(e=>{var t;return null!=(t=e.label)?t:String(e.value)});return n=>an(e,t,n)}function Fn(e,t){return""!==e?{value:e,label:t||e}:null}const Hn=()=>!0;function Nn({filter:e,model:t}){var n,r,a,i,s;const l=p.useStyles2(zn),[u,c]=o.useState([]),[f,m]=o.useState([]),[g,v]=o.useState(!1),[y,b]=o.useState(!1),[_,w]=o.useState(!1),[M,S]=o.useState(!1),[k,L]=o.useState(!1),[x,D]=o.useState(""),[T,O]=o.useState(!1),[E,P]=o.useState(e.values?e.values.map((t,n)=>{var r;return Fn(t,null==(r=e.valueLabels)?void 0:r[n])}):[]),C=Er(e.operator),Y=Fn(e.key,e.keyLabel),A=Fn(e.value,null==(n=e.valueLabels)?void 0:n[0]),R=o.useMemo(()=>In(f),[f]),j=t.state.onAddCustomValue,I=o.useMemo(()=>ja(R(x)),[R,x]),H={isMulti:!0,value:E,components:{Option:pn},hideSelectedOptions:!1,closeMenuOnSelect:!1,openMenuOnFocus:!1,onChange:e=>{P(e),e.some(e=>e.__isNew__)&&D("")},onBlur:()=>{var n,r;t._updateFilter(e,{value:null!=(r=null==(n=E[0])?void 0:n.value)?r:"",values:E.map(e=>e.value),valueLabels:E.map(e=>e.label)})}},N=Mr.find(t=>e.operator===t.value),z=F.default.createElement(p.Select,{virtualized:!0,allowCustomValue:null==(r=t.state.allowCustomValue)||r,createOptionPosition:(null==N?void 0:N.isRegex)?"first":"last",isValidNewOption:e=>e.trim().length>0,allowCreateWhileLoading:!0,formatCreateLabel:e=>`Use custom value: ${e}`,disabled:t.state.readOnly,className:h.cx(l.value,M?l.widthWhenOpen:void 0),width:"auto",value:A,filterOption:Hn,placeholder:d.t("grafana-scenes.variables.ad-hoc-filter-renderer.value-select.placeholder-select-value","Select value"),options:I,inputValue:x,onInputChange:(e,{action:t})=>("input-change"===t&&D(e),e),onChange:n=>{j&&n.__isNew__?t._updateFilter(e,j(n,e)):t._updateFilter(e,{value:n.value,valueLabels:n.label?[n.label]:[n.value]}),T!==n.__isNew__&&O(n.__isNew__)},isOpen:M&&!y,isLoading:y,openMenuOnFocus:!0,onOpenMenu:async()=>{var n;b(!0),S(!0);const r=await t._getValuesFor(e);b(!1),m(r),T&&D(null!=(n=null==A?void 0:A.label)?n:"")},onCloseMenu:()=>{S(!1),D("")},...C&&H}),V=F.default.createElement(p.Select,{key:""+(y?"loading":"loaded"),disabled:t.state.readOnly,className:h.cx(l.key,_?l.widthWhenOpen:void 0),width:"auto",allowCustomValue:null==(a=t.state.allowCustomValue)||a,createOptionPosition:(null==N?void 0:N.isRegex)?"first":"last",value:Y,placeholder:d.t("grafana-scenes.variables.ad-hoc-filter-renderer.key-select.placeholder-select-label","Select label"),options:ja(u),onChange:n=>{t._updateFilter(e,{key:n.value,keyLabel:n.label,value:"",valueLabels:[""],values:void 0}),P([])},autoFocus:""===e.key,isOpen:_&&!g,isLoading:g,onOpenMenu:async()=>{w(!0),v(!0);const n=await t._getKeys(e.key);v(!1),c(n)},onCloseMenu:()=>{w(!1)},onBlur:()=>{""===e.key&&t._removeFilter(e)},openMenuOnFocus:!0}),W=F.default.createElement(p.Select,{className:h.cx(l.operator,{[l.widthWhenOpen]:k}),value:e.operator,disabled:t.state.readOnly,options:t._getOperators(),onChange:n=>{var r,a;const i=e.operator,o=n.value,s={operator:o};Er(i)&&!Er(o)?(s.value="",s.valueLabels=[""],s.values=void 0,P([])):!Er(i)&&Er(o)&&e.value&&(s.values=[e.value],P([{value:e.value,label:null!=(a=null==(r=e.valueLabels)?void 0:r[0])?a:e.value}])),t._updateFilter(e,s)},onOpenMenu:()=>{L(!0)},onCloseMenu:()=>{L(!1)}});if("vertical"===t.state.layout){if(e.key){const n=F.default.createElement(Rn,{layout:"vertical",label:null!=(i=e.key)?i:"",onRemove:()=>t._removeFilter(e)});return F.default.createElement(p.Field,{label:n,"data-testid":`AdHocFilter-${e.key}`,className:l.field},F.default.createElement("div",{className:l.wrapper},W,z))}return F.default.createElement(p.Field,{label:d.t("grafana-scenes.variables.ad-hoc-filter-renderer.label-select-label","Select label"),"data-testid":`AdHocFilter-${e.key}`,className:l.field},V)}return F.default.createElement("div",{className:l.wrapper,"data-testid":`AdHocFilter-${e.key}`},V,W,z,F.default.createElement(p.Button,{variant:"secondary","aria-label":d.t("grafana-scenes.variables.ad-hoc-filter-renderer.aria-label-remove-filter","Remove filter"),title:d.t("grafana-scenes.variables.ad-hoc-filter-renderer.title-remove-filter","Remove filter"),className:l.removeButton,icon:"times","data-testid":`AdHocFilter-remove-${null!=(s=e.key)?s:""}`,onClick:()=>t._removeFilter(e)}))}const zn=e=>({field:h.css({marginBottom:0}),wrapper:h.css({display:"flex","&:first-child":{"> :first-child":{borderBottomLeftRadius:0,borderTopLeftRadius:0}},"> *":{"&:not(:first-child)":{marginLeft:-1},"&:first-child":{borderTopRightRadius:0,borderBottomRightRadius:0},"&:last-child":{borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:first-child):not(:last-child)":{borderRadius:0},position:"relative",zIndex:0,"&:hover":{zIndex:1},"&:focus-within":{zIndex:2}}}),widthWhenOpen:h.css({minWidth:e.spacing(16)}),value:h.css({flexBasis:"content",flexShrink:1,minWidth:"90px"}),key:h.css({flexBasis:"content",minWidth:"90px",flexShrink:1}),operator:h.css({flexShrink:0,flexBasis:"content"}),removeButton:h.css({paddingLeft:e.spacing(1.5),paddingRight:e.spacing(1.5),borderLeft:"none",width:e.spacing(3),marginRight:e.spacing(1),boxSizing:"border-box",position:"relative",left:"1px"})});function Vn({model:e,addFilterButtonText:t}){const{_wip:n}=e.useState(),r=p.useStyles2(Wn);return n?F.default.createElement(Nn,{filter:n,model:e}):F.default.createElement(p.Button,{variant:"secondary",icon:"plus",title:d.t("grafana-scenes.variables.ad-hoc-filter-builder.title-add-filter","Add filter"),"aria-label":d.t("grafana-scenes.variables.ad-hoc-filter-builder.aria-label-add-filter","Add filter"),"data-testid":"AdHocFilter-add",onClick:()=>e._addWip(),className:r.addButton},t)}const Wn=e=>({addButton:h.css({"&:first-child":{borderBottomLeftRadius:0,borderTopLeftRadius:0}})});class $n{constructor(e){this._variable=e}getKey(){return`var-${this._variable.state.name}`}getKeys(){return[this.getKey()]}getUrlState(){const e=this._variable.state.filters,t=this._variable.state.originFilters;let n=[];return 0===e.length&&0===(null==t?void 0:t.length)?{[this.getKey()]:[""]}:(e.length&&n.push(...e.filter(Tr).filter(e=>!e.hidden).map(e=>Un(e).map(Pa).join("|"))),(null==t?void 0:t.length)&&n.push(...null==t?void 0:t.filter(Tr).filter(e=>!e.hidden&&e.origin&&e.restorable).map(e=>Un(e).map(Pa).join("|").concat(`#${e.origin}#restorable`))),{[this.getKey()]:n.length?n:[""]})}updateFromUrl(e){const t=e[this.getKey()];if(null==t)return;const n=function(e){if(Array.isArray(e)){return e.map(Bn).filter(qn)}const t=Bn(e);return null===t?[]:[t]}(t),r=function(e,t){const n=[...e];for(let r=0;re.key===t[r].key);a>-1&&t[r].origin===e[a].origin?(Dr(t[r])&&(t[r].matchAllFilter=!0),n[a]=t[r]):"dashboard"===t[r].origin?(delete t[r].origin,delete t[r].restorable):-1===a&&"scope"===t[r].origin&&t[r].restorable&&n.push(t[r])}return n}([...this._variable.state.originFilters||[]],n);this._variable.setState({filters:n.filter(e=>!e.origin),originFilters:r})}}function Un(e){var t;const n=[Ya(e.key,e.keyLabel),e.operator];return Er(e.operator)?e.values.forEach((t,r)=>{var a;n.push(Ya(t,null==(a=e.valueLabels)?void 0:a[r]))}):n.push(Ya(e.value,null==(t=e.valueLabels)?void 0:t[0])),n}function Bn(e){if("string"!=typeof e||0===e.length)return null;const[t,n,r]=e.split("#"),[a,i,o,s,...l]=t.split("|").reduce((e,t)=>{const[n,r]=t.split(",");return e.push(n,null!=r?r:n),e},[]).map(Ca);return{key:a,keyLabel:i,operator:o,value:l[0],values:Er(o)?l.filter((e,t)=>t%2==0):void 0,valueLabels:l.filter((e,t)=>t%2==1),condition:"",...(u=n,("scope"===u||"dashboard"===u)&&{origin:n}),...!!r&&{restorable:!0}};var u}function qn(e){return null!==e&&"string"==typeof e.key&&"string"==typeof e.value}const Gn=o.forwardRef(function({children:e,active:t,addGroupBottomBorder:n,isMultiValueEdit:r,checked:a,...i},s){const l=p.useStyles2(Kn),u=o.useId();return F.default.createElement("div",{ref:s,role:"option",id:u,"aria-selected":t,className:h.cx(l.option,t&&l.optionFocused,n&&l.groupBottomBorder),...i},F.default.createElement("div",{className:l.optionBody,"data-testid":`data-testid ad hoc filter option value ${e}`},F.default.createElement("span",null,r?F.default.createElement(p.Checkbox,{tabIndex:-1,checked:a,className:l.checkbox}):null,e)))}),Kn=e=>({option:h.css({label:"grafana-select-option",top:0,left:0,width:"100%",position:"absolute",padding:e.spacing(1),display:"flex",alignItems:"center",flexDirection:"row",flexShrink:0,whiteSpace:"nowrap",cursor:"pointer","&:hover":{background:e.colors.action.hover,"@media (forced-colors: active), (prefers-contrast: more)":{border:`1px solid ${e.colors.primary.border}`}}}),optionFocused:h.css({label:"grafana-select-option-focused",background:e.colors.action.focus,"@media (forced-colors: active), (prefers-contrast: more)":{border:`1px solid ${e.colors.primary.border}`}}),optionBody:h.css({label:"grafana-select-option-body",display:"flex",fontWeight:e.typography.fontWeightMedium,flexDirection:"column",flexGrow:1}),groupBottomBorder:h.css({borderBottom:`1px solid ${e.colors.border.weak}`}),checkbox:h.css({paddingRight:e.spacing(.5)}),multiValueApplyWrapper:h.css({position:"fixed",top:0,left:0,display:"flex",backgroundColor:e.colors.background.primary,color:e.colors.text.primary,boxShadow:e.shadows.z2,overflowY:"auto",zIndex:e.zIndex.dropdown,gap:e.spacing(1.5),padding:`${e.spacing(1.5)} ${e.spacing(1)}`})}),Jn=()=>F.default.createElement(Gn,{onClick:e=>e.stopPropagation()},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.variables.loading-options-placeholder.loading-options"},"Loading options...")),Qn=()=>F.default.createElement(Gn,{onClick:e=>e.stopPropagation()},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.variables.no-options-placeholder.no-options-found"},"No options found")),Zn=({handleFetchOptions:e})=>F.default.createElement(Gn,{onClick:e},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.variables.options-error-placeholder.error-occurred-fetching-labels-click-retry"},"An error has occurred fetching labels. Click to retry")),Xn=({onApply:e,floatingElement:t,maxOptionWidth:n,menuHeight:r})=>{const a=p.useStyles2(Kn),i=null==t?void 0:t.getBoundingClientRect();return F.default.createElement("div",{className:a.multiValueApplyWrapper,style:{width:`${n}px`,transform:`translate(${null==i?void 0:i.left}px,${i?i.top+r:0}px)`}},F.default.createElement(p.Button,{onClick:e,size:"sm",tabIndex:-1},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.variables.multi-value-apply-button.apply"},"Apply")))},er={key:"operator",operator:"value",value:"key"},tr=(e,t,n,r,a)=>nr(er[e],t,"value"===e?n:void 0,r,a),nr=(e,t,n,r,a)=>{t(e),null==n||n(void 0,a),setTimeout(()=>null==r?void 0:r.focus())},rr=({filterInputType:e,item:t,filter:n,setFilterMultiValues:r,onAddCustomValue:a})=>{var i,o,s,l,u;if("key"===e)return{key:t.value,keyLabel:t.label?t.label:t.value,meta:null==t?void 0:t.meta};if("value"===e)return t.isCustom&&a?a(t,n):{value:t.value,valueLabels:[t.label?t.label:t.value]};if("operator"===e){if(Er(n.operator)&&!Er(t.value))return r([]),{operator:t.value,valueLabels:[(null==(i=n.valueLabels)?void 0:i[0])||(null==(o=n.values)?void 0:o[0])||n.value],values:void 0};if(Er(t.value)&&!Er(n.operator)){const e=[(null==(s=n.valueLabels)?void 0:s[0])||(null==(l=n.values)?void 0:l[0])||n.value],a=[n.value];return a[0]&&r([{value:a[0],label:null!=(u=null==e?void 0:e[0])?u:a[0]}]),{operator:t.value,valueLabels:e,values:a}}}return{[e]:t.value}},ar="Filter by label values",ir=(e,t,n,r,a)=>{var i;return"key"===t?a||ar:"value"===t?n?"Edit values":(null==(i=e.valueLabels)?void 0:i[0])||"":r&&"operator"===t?"":e[t]&&!r?`${e[t]}`:a||ar},or=({populateInputOnEdit:e,item:t,filterInputType:n,setInputValue:r,filter:a})=>{var i,o,s;e&&!Er(t.value||"")&&"value"===er[n]?r(null!=(s=null!=(o=null==(i=null==a?void 0:a.valueLabels)?void 0:i[0])?o:null==a?void 0:a.value)?s:""):r("")},sr=({item:e,handleRemoveMultiValue:t,index:n,handleEditMultiValuePill:r})=>{var a,i;const s=p.useStyles2(lr),l=o.useCallback(t=>{t.stopPropagation(),t.preventDefault(),r(e)},[r,e]),u=o.useCallback(e=>{"Enter"===e.key&&l(e)},[l]),c=o.useCallback(n=>{n.stopPropagation(),n.preventDefault(),t(e)},[t,e]),f=o.useCallback(e=>{"Enter"===e.key&&c(e)},[c]);return F.default.createElement("div",{className:h.cx(s.basePill,s.valuePill),onClick:l,onKeyDown:u,tabIndex:0,id:`${e.value}-${n}`},null!=(a=e.label)?a:e.value,F.default.createElement(p.Button,{onClick:c,onKeyDownCapture:f,fill:"text",size:"sm",variant:"secondary",className:s.removeButton,tooltip:d.t("grafana-scenes.components.adhoc-filters-combobox.remove-filter-value","Remove filter value - {{itemLabel}}",{itemLabel:null!=(i=e.label)?i:e.value})},F.default.createElement(p.Icon,{name:"times",size:"md",id:`${e.value}-${n}-close-icon`})))},lr=e=>({basePill:h.css({display:"flex",alignItems:"center",background:e.colors.action.disabledBackground,border:`1px solid ${e.colors.border.weak}`,padding:e.spacing(.125,1,.125,1),color:e.colors.text.primary,overflow:"hidden",whiteSpace:"nowrap",minHeight:e.spacing(2.75),...e.typography.bodySmall,cursor:"pointer"}),valuePill:h.css({background:e.colors.action.selected,padding:e.spacing(.125,0,.125,1)}),removeButton:h.css({marginInline:e.spacing(.5),height:"100%",padding:0,cursor:"pointer","&:hover":{color:e.colors.text.primary}})}),ur=o.forwardRef(function({filter:e,controller:t,isAlwaysWip:n,handleChangeViewMode:r,focusOnWipInputRef:a,populateInputOnEdit:i,onInputClick:s},l){var u,c,f;const[m,g]=o.useState(!1),[b,_]=o.useState([]),[w,M]=o.useState(!1),[S,k]=o.useState(!1),[L,x]=o.useState(""),[D,T]=o.useState(null),[O,E]=o.useState(n?"key":"value"),[P,C]=o.useState(!n&&"value"===O),Y=p.useStyles2(cr),[A,R]=o.useState([]),[j,I]=o.useState({}),{allowCustomValue:H=!0,onAddCustomValue:N,filters:z,inputPlaceholder:V}=t.useState(),W=o.useRef(null),$=Er((null==e?void 0:e.operator)||""),U=$&&"value"===O,B=o.useId(),q=o.useRef([]),G=o.useRef([]),K=o.useRef(n?"key":"value"),J=o.useMemo(()=>In(b),[b]),Q=o.useMemo(()=>!n&&z.at(-1)===e,[e,n,z]),Z=o.useCallback(()=>{n&&(t.addWip(),E("key"),x(""))},[t,n]),X=o.useCallback((e,t,n,r)=>{var a;if(!n.length&&t.origin&&e.updateToMatchAll(t),n.length){const r=[],i=[];n.forEach(e=>{var t;r.push(null!=(t=e.label)?t:e.value),i.push(e.value)});let o=!0;Array.isArray(t.values)&&t.values.length===i.length&&(o=!t.values.every((e,t)=>e===i[t])),o&&(null==(a=e.startProfile)||a.call(e,Ye)),e.updateFilter(t,{valueLabels:r,values:i,value:i[0]}),R([])}r||setTimeout(()=>{var e;return null==(e=re.domReference.current)?void 0:e.focus()})},[]),ee=o.useCallback(e=>{R(t=>t.some(t=>t.value===e.value)?t.filter(t=>t.value!==e.value):[...t,e])},[]),te=o.useCallback((n,a,i)=>{g(n),i&&["outside-press","escape-key"].includes(i)&&(U?X(t,e,A):e&&e.origin&&""===L&&t.updateToMatchAll(e),Z(),null==r||r())},[e,A,r,X,Z,L,U,t]),ne=o.useMemo(()=>[B,...A.reduce((e,t,n)=>[...e,`${t.value}-${n}`,`${t.value}-${n}-close-icon`],[])],[B,A]),{refs:re,floatingStyles:ae,context:ie,getReferenceProps:oe,getFloatingProps:se,getItemProps:le}=(({open:e,onOpenChange:t,activeIndex:n,setActiveIndex:r,outsidePressIdsToIgnore:a,listRef:i,disabledIndicesRef:o})=>{const{refs:s,floatingStyles:l,context:u}=v.useFloating({whileElementsMounted:v.autoUpdate,open:e,onOpenChange:t,placement:"bottom-start",middleware:[v.offset(10),v.flip({padding:10}),v.size({apply({availableHeight:e,availableWidth:t,elements:n}){n.floating.style.maxHeight=`${Math.min(300,e)}px`,n.floating.style.maxWidth=`${t}px`},padding:10})],strategy:"fixed"}),c=v.useRole(u,{role:"listbox"}),d=v.useDismiss(u,{outsidePress:e=>{var t;if(e.currentTarget instanceof Element){const n=e.currentTarget;let r=n.id;if("path"===n.nodeName&&(r=(null==(t=n.parentElement)?void 0:t.id)||""),a.includes(r))return!1}return!0}}),p=v.useListNavigation(u,{listRef:i,activeIndex:n,onNavigate:r,virtual:!0,loop:!0,disabledIndices:o.current}),{getReferenceProps:f,getFloatingProps:h,getItemProps:m}=v.useInteractions([c,d,p]);return{refs:s,floatingStyles:l,context:u,getReferenceProps:f,getFloatingProps:h,getItemProps:m}})({open:m,onOpenChange:te,activeIndex:D,setActiveIndex:T,outsidePressIdsToIgnore:ne,listRef:q,disabledIndicesRef:G});o.useImperativeHandle(l,()=>()=>{var e;return null==(e=re.domReference.current)?void 0:e.focus()},[re.domReference]);const ue=o.useCallback(e=>{R(t=>t.filter(t=>t.value!==e.value)),setTimeout(()=>{var e;return null==(e=re.domReference.current)?void 0:e.focus()})},[re.domReference]),ce=(e=>e.flatMap(e=>e.options?[e,...e.options]:[e]))(ja(J(P?"":L)));if(H&&"operator"!==O&&L){const t=Mr.find(t=>(null==e?void 0:e.operator)===t.value),n={value:L.trim(),label:L.trim(),isCustom:!0};(null==t?void 0:t.isRegex)?ce.unshift(n):ce.push(n)}const de=((e,t,n)=>{var r,a,i,o;let s=182;const l=[],u=[];for(let t=0;ts&&(s=d)}return t.current=[...l],n.current=[...u],s})(ce,q,G),pe=o.useCallback(async n=>{var r,a,i,o;const s="key"===n?"adhoc_keys_dropdown":"adhoc_values_dropdown";"operator"!==n&&(null==(r=t.startInteraction)||r.call(t,s)),k(!1),M(!0),_([]);let l=[];try{if("key"===n?l=await t.getKeys(null):"operator"===n?l=t.getOperators():"value"===n&&(l=await t.getValuesFor(e)),K.current!==n)return void(null==(a=t.stopInteraction)||a.call(t));_(l),(null==(i=l[0])?void 0:i.group)?T(1):T(0)}catch(e){k(!0)}M(!1),null==(o=t.stopInteraction)||o.call(t)},[e,t]),fe=y.useVirtualizer({count:ce.length,getScrollElement:()=>re.floating.current,estimateSize:e=>ce[e].description?60:38,overscan:5}),he=o.useCallback((r,i)=>{var o;if("Backspace"===r.key&&!L){if("value"===O){if(i&&A.length)return void R(e=>{const t=[...e];return t.splice(-1,1),t});if(null==e?void 0:e.origin)return;return void E("operator")}null==a||a(),Tr(e)&&(null==(o=t.startProfile)||o.call(t,Ce)),t.handleComboboxBackspace(e),n&&Z()}},[L,O,t,e,n,A.length,Z,a]),me=o.useCallback((n,a)=>{var i;"Tab"!==n.key||n.shiftKey||(a&&(n.preventDefault(),X(t,e,A),null==(i=re.domReference.current)||i.focus()),null==r||r(),Z())},[e,A,r,X,Z,t,re.domReference]),ge=o.useCallback((n,a)=>{"Tab"===n.key&&n.shiftKey&&(a&&(n.preventDefault(),X(t,e,A,!0)),null==r||r(),Z())},[e,A,r,X,Z,t]),ve=o.useCallback((n,o)=>{var s;if("Enter"===n.key&&null!=D){if(!ce[D])return;const n=ce[D];if(o)ee(n),x("");else{const o=rr({filterInputType:O,item:n,filter:e,setFilterMultiValues:R,onAddCustomValue:N});"value"===O&&o.value!==(null==e?void 0:e.value)&&(null==(s=t.startProfile)||s.call(t,Ye)),t.updateFilter(e,o),or({populateInputOnEdit:i,item:n,filterInputType:O,setInputValue:x,filter:e}),tr(O,E,r,re.domReference.current,!Q&&void 0),T(null),Q&&(null==a||a())}}},[D,ce,ee,t,e,O,i,r,re.domReference,Q,a,N]),ye=o.useCallback(e=>{var t;const n=e.label||e.value;R(t=>t.filter(t=>t.value!==e.value)),C(!0),x(n),null==(t=re.domReference.current)||t.focus(),setTimeout(()=>{var e;null==(e=re.domReference.current)||e.select()})},[re.domReference]);o.useEffect(()=>{m&&pe(O)},[m,O]),o.useEffect(()=>{var t,r,a,o;if(!n){if($&&(null==(t=null==e?void 0:e.values)?void 0:t.length)){const t=e.values.reduce((t,n,r)=>{var a;return[...t,{label:(null==(a=e.valueLabels)?void 0:a[r])||n,value:n}]},[]);R(t)}!$&&i&&(x(null!=(a=null==(r=null==e?void 0:e.valueLabels)?void 0:r[0])?a:(null==e?void 0:e.value)||""),setTimeout(()=>{var e;null==(e=re.domReference.current)||e.select()})),null==(o=re.domReference.current)||o.focus()}},[]),o.useEffect(()=>{U&&A&&setTimeout(()=>I({}))},[A,U]),o.useLayoutEffect(()=>{K.current&&(K.current=O)},[O]),o.useLayoutEffect(()=>{var e,t;null!==D&&fe.range&&(D>(null==(e=fe.range)?void 0:e.endIndex)||D<(null==(t=fe.range)?void 0:t.startIndex))&&fe.scrollToIndex(D)},[D,fe]);const be=null!=(u=null==e?void 0:e.keyLabel)?u:null==e?void 0:e.key;return F.default.createElement("div",{className:Y.comboboxWrapper},e?F.default.createElement("div",{className:Y.pillWrapper},(null==e?void 0:e.key)?F.default.createElement("div",{className:h.cx(Y.basePill,Y.keyPill)},be):null,(null==e?void 0:e.key)&&(null==e?void 0:e.operator)&&"operator"!==O?F.default.createElement("div",{id:B,className:h.cx(Y.basePill,!e.origin&&Y.operatorPill,e.origin&&Y.keyPill,B),"aria-label":d.t("grafana-scenes.variables.ad-hoc-combobox.aria-label-edit-filter-operator","Edit filter operator"),tabIndex:e.origin?-1:0,onClick:t=>{e.origin?null==r||r():(t.stopPropagation(),x(""),nr("operator",E,void 0,re.domReference.current))},onKeyDown:t=>{e.origin||(ge(t,$),"Enter"===t.key&&(x(""),nr("operator",E,void 0,re.domReference.current)))},...!e.origin&&{role:"button"}},e.operator):null,F.default.createElement("div",{ref:W}),U?A.map((e,t)=>F.default.createElement(sr,{key:`${e.value}-${t}`,item:e,index:t,handleRemoveMultiValue:ue,handleEditMultiValuePill:ye})):null):null,F.default.createElement("input",{...oe({ref:re.setReference,onChange:function(e){const t=e.target.value;x(t),T(0),P&&C(!1)},value:L,placeholder:ir(e,O,U,n,V),"aria-autocomplete":"list",onKeyDown(e){m?("operator"===O&&ge(e),he(e,U),me(e,U),ve(e,U)):g(!0)}}),className:h.cx(Y.inputStyle,{[Y.loadingInputPadding]:!w}),onClick:e=>{e.stopPropagation(),null==s||s(),g(!0)},onFocus:()=>{g(!0)}}),w?F.default.createElement(p.Spinner,{className:Y.loadingIndicator,inline:!0}):null,F.default.createElement(v.FloatingPortal,null,m&&F.default.createElement(v.FloatingFocusManager,{context:ie,initialFocus:-1,visuallyHiddenDismiss:!0,modal:!0},F.default.createElement(F.default.Fragment,null,F.default.createElement("div",{style:{...ae,width:`${S?366:de}px`,transform:U?`translate(${(null==(c=W.current)?void 0:c.getBoundingClientRect().left)||0}px, ${((null==(f=re.domReference.current)?void 0:f.getBoundingClientRect().bottom)||0)+10}px )`:ae.transform},ref:re.setFloating,className:Y.dropdownWrapper,tabIndex:-1},F.default.createElement("div",{style:{height:`${fe.getTotalSize()||38}px`},...se(),tabIndex:-1},w?F.default.createElement(Jn,null):S?F.default.createElement(Zn,{handleFetchOptions:()=>pe(O)}):ce.length||H&&"operator"!==O&&L?fe.getVirtualItems().map(n=>{var a;const o=ce[n.index],s=n.index;if(o.options)return F.default.createElement("div",{key:`${o.label}+${s}`,className:h.cx(Y.optionGroupLabel,Y.groupTopBorder),style:{height:`${n.size}px`,transform:`translateY(${n.start}px)`}},F.default.createElement(p.Text,{weight:"bold",variant:"bodySmall",color:"secondary"},o.label));const l=ce[n.index+1],u=l&&!l.group&&!l.options&&o.group,c=null!=(a=o.label)?a:o.value;return F.default.createElement(Gn,{...le({key:`${o.value}-${s}`,ref(e){q.current[s]=e},onClick(n){var a,s;if("value"!==O&&n.stopPropagation(),U)n.preventDefault(),n.stopPropagation(),ee(o),x(""),null==(a=re.domReference.current)||a.focus();else{const n=rr({filterInputType:O,item:o,filter:e,setFilterMultiValues:R,onAddCustomValue:N});"value"===O&&n.value!==(null==e?void 0:e.value)&&(null==(s=t.startProfile)||s.call(t,Ye)),t.updateFilter(e,n),or({populateInputOnEdit:i,item:o,filterInputType:O,setInputValue:x,filter:e}),tr(O,E,r,re.domReference.current,!1)}}}),active:D===s,addGroupBottomBorder:u,style:{height:`${n.size}px`,transform:`translateY(${n.start}px)`},"aria-setsize":ce.length,"aria-posinset":n.index+1,isMultiValueEdit:U,checked:A.some(e=>e.value===o.value)},F.default.createElement("span",null,o.isCustom?d.t("grafana-scenes.components.adhoc-filters-combobox.use-custom-value","Use custom value: {{itemLabel}}",{itemLabel:c}):c),o.description?F.default.createElement("div",{className:Y.descriptionText},o.description):null)}):F.default.createElement(Qn,null))),U&&!w&&!S&&ce.length?F.default.createElement(Xn,{onApply:()=>{X(t,e,A),Z(),null==r||r(),g(!1)},floatingElement:re.floating.current,maxOptionWidth:de,menuHeight:Math.min(fe.getTotalSize(),300)}):null))))}),cr=e=>({comboboxWrapper:h.css({display:"flex",flexWrap:"wrap"}),pillWrapper:h.css({display:"flex",alignItems:"center",flexWrap:"wrap"}),basePill:h.css({display:"flex",alignItems:"center",background:e.colors.action.disabledBackground,border:`1px solid ${e.colors.border.weak}`,padding:e.spacing(.125,1,.125,1),color:e.colors.text.primary,overflow:"hidden",whiteSpace:"nowrap",minHeight:e.spacing(2.75),...e.typography.bodySmall,cursor:"pointer"}),keyPill:h.css({fontWeight:e.typography.fontWeightBold,cursor:"default"}),operatorPill:h.css({"&:hover":{background:e.colors.action.hover}}),dropdownWrapper:h.css({backgroundColor:e.colors.background.primary,color:e.colors.text.primary,boxShadow:e.shadows.z2,overflowY:"auto",zIndex:e.zIndex.portal}),inputStyle:h.css({paddingBlock:0,"&:focus":{outline:"none"}}),loadingIndicator:h.css({color:e.colors.text.secondary,marginLeft:e.spacing(.5)}),loadingInputPadding:h.css({paddingRight:e.spacing(2.5)}),optionGroupLabel:h.css({padding:e.spacing(1),position:"absolute",top:0,left:0,width:"100%"}),groupTopBorder:h.css({"&:not(:first-child)":{borderTop:`1px solid ${e.colors.border.weak}`}}),descriptionText:h.css({...e.typography.bodySmall,color:e.colors.text.secondary,paddingTop:e.spacing(.5)})});function dr({filter:e,controller:t,readOnly:n,focusOnWipInputRef:r}){var a,i,s,l;const u=p.useStyles2(pr),[c,f]=o.useState(!0),[m,g]=o.useState(!1),v=o.useRef(null),[y,b]=o.useState(!1),_=null!=(a=e.keyLabel)?a:e.key,w=(null==(i=e.valueLabels)?void 0:i.join(", "))||(null==(s=e.values)?void 0:s.join(", "))||e.value,M=o.useCallback((e,t)=>{null==e||e.stopPropagation(),n||(g(null!=t?t:!c),f(!c))},[n,c]);o.useEffect(()=>{var e;m&&(null==(e=v.current)||e.focus(),g(!1))},[m]),o.useEffect(()=>{e.forceEdit&&c&&(f(!1),t.updateFilter(e,{forceEdit:void 0}))},[e,t,c]),o.useEffect(()=>{c&&b(e=>!e&&e)},[c]);const S=e=>"dashboard"===e?{info:"Applied by default in this dashboard. If edited, it carries over to other dashboards.",restore:"Restore the value set by this dashboard."}:"scope"===e?{info:"Applied automatically from your selected scope.",restore:"Restore the value set by your selected scope."}:{info:`This is a ${e} injected filter.`,restore:"Restore filter to its original value."},k=!e.restorable&&!e.readOnly&&!e.nonApplicable;if(c){const a=`${_} ${e.operator} ${w}`,i=F.default.createElement("span",{className:h.cx(u.pillText,e.nonApplicable&&u.strikethrough)},a);return F.default.createElement("div",{className:h.cx(u.combinedFilterPill,n&&u.readOnlyCombinedFilter,(Dr(e)||e.nonApplicable)&&u.disabledPill,e.readOnly&&u.filterReadOnly),onClick:e=>{e.stopPropagation(),b(!0),M()},onKeyDown:e=>{"Enter"===e.key&&(b(!0),M())},role:n?void 0:"button","aria-label":d.t("grafana-scenes.components.adhoc-filter-pill.edit-filter-with-key","Edit filter with key {{keyLabel}}",{keyLabel:_}),tabIndex:0,ref:v},a.length<20?i:F.default.createElement(p.Tooltip,{content:F.default.createElement("div",{className:u.tooltipText},a),placement:"top"},i),n||e.matchAllFilter||e.origin&&"dashboard"!==e.origin?null:F.default.createElement(p.IconButton,{onClick:n=>{n.stopPropagation(),e.origin&&"dashboard"===e.origin?t.updateToMatchAll(e):t.removeFilter(e),setTimeout(()=>null==r?void 0:r())},onKeyDownCapture:n=>{"Enter"===n.key&&(n.preventDefault(),n.stopPropagation(),e.origin&&"dashboard"===e.origin?t.updateToMatchAll(e):t.removeFilter(e),setTimeout(()=>null==r?void 0:r()))},name:"times",size:"md",className:h.cx(u.pillIcon,e.nonApplicable&&u.disabledPillIcon),tooltip:d.t("grafana-scenes.components.adhoc-filter-pill.remove-filter-with-key","Remove filter with key {{keyLabel}}",{keyLabel:_})}),e.origin&&e.readOnly&&F.default.createElement(p.Tooltip,{content:d.t("grafana-scenes.components.adhoc-filter-pill.managed-filter","{{origin}} managed filter",{origin:e.origin}),placement:"bottom"},F.default.createElement(p.Icon,{name:"lock",size:"md",className:u.readOnlyPillIcon})),e.origin&&k&&F.default.createElement(p.Tooltip,{content:S(e.origin).info,placement:"bottom"},F.default.createElement(p.Icon,{name:"info-circle",size:"md",className:u.infoPillIcon})),e.origin&&e.restorable&&!e.readOnly&&F.default.createElement(p.IconButton,{onClick:n=>{n.stopPropagation(),t.restoreOriginalFilter(e)},onKeyDownCapture:n=>{"Enter"===n.key&&(n.preventDefault(),n.stopPropagation(),t.restoreOriginalFilter(e))},name:"history",size:"md",className:Dr(e)?u.matchAllPillIcon:u.pillIcon,tooltip:S(e.origin).restore}),e.nonApplicable&&F.default.createElement(p.Tooltip,{content:null!=(l=e.nonApplicableReason)?l:d.t("grafana-scenes.components.adhoc-filter-pill.non-applicable","Filter is not applicable"),placement:"bottom"},F.default.createElement(p.Icon,{name:"info-circle",size:"md",className:u.infoPillIcon})))}return F.default.createElement(ur,{filter:e,controller:t,handleChangeViewMode:M,focusOnWipInputRef:r,populateInputOnEdit:y})}const pr=e=>({combinedFilterPill:h.css({display:"flex",alignItems:"center",background:e.colors.action.selected,borderRadius:e.shape.radius.default,border:`1px solid ${e.colors.border.weak}`,padding:e.spacing(.125,0,.125,1),color:e.colors.text.primary,overflow:"hidden",whiteSpace:"nowrap",minHeight:e.spacing(2.75),...e.typography.bodySmall,fontWeight:e.typography.fontWeightBold,cursor:"pointer","&:hover":{background:e.colors.action.hover}}),readOnlyCombinedFilter:h.css({paddingRight:e.spacing(1),cursor:"text","&:hover":{background:e.colors.action.selected}}),filterReadOnly:h.css({background:e.colors.background.canvas,cursor:"text","&:hover":{background:e.colors.background.canvas}}),pillIcon:h.css({marginInline:e.spacing(.5),cursor:"pointer","&:hover":{color:e.colors.text.primary}}),pillText:h.css({maxWidth:"200px",width:"100%",textOverflow:"ellipsis",overflow:"hidden"}),tooltipText:h.css({textAlign:"center"}),infoPillIcon:h.css({marginInline:e.spacing(.5),cursor:"pointer"}),readOnlyPillIcon:h.css({marginInline:e.spacing(.5)}),matchAllPillIcon:h.css({marginInline:e.spacing(.5),cursor:"pointer",color:e.colors.text.disabled}),disabledPillIcon:h.css({marginInline:e.spacing(.5),cursor:"pointer",color:e.colors.text.disabled,"&:hover":{color:e.colors.text.disabled}}),...Ia(e)}),fr=o.forwardRef(function({controller:e,onInputClick:t},n){const{wip:r}=e.useState();return o.useLayoutEffect(()=>{r||e.addWip()},[r]),F.default.createElement(ur,{controller:e,filter:r,isAlwaysWip:!0,ref:n,onInputClick:t})}),hr=o.memo(function({controller:e}){var t;const{originFilters:n,filters:r,readOnly:a,collapsible:i,valueRecommendations:s}=e.useState(),l=p.useStyles2(mr),u=p.useTheme2(),[c,f]=o.useState(!0),[m,{height:v}]=g.useMeasure(),y=o.useRef(),b=5*u.spacing.gridSize,_=i&&v>b,w=[...null!=(t=null==n?void 0:n.filter(e=>e.origin))?t:[],...r.filter(e=>!e.hidden)],M=w.length,S=i&&c&&M>0,k=S?w.slice(0,5):w;o.useEffect(()=>{i&&0===M&&c&&f(!1)},[i,M,c]);const L=i&&_&&!c;return F.default.createElement("div",{ref:m,className:h.cx(l.comboboxWrapper,{[l.comboboxFocusOutline]:!a,[l.collapsed]:S,[l.clickableCollapsed]:S}),onClick:()=>{var e,t;i?c?f(!1):null==(t=y.current)||t.call(y):null==(e=y.current)||e.call(y)}},F.default.createElement(p.Icon,{name:"filter",className:l.filterIcon,size:"lg"}),s&&F.default.createElement(s.Component,{model:s}),k.map((t,n)=>F.default.createElement(dr,{key:`${t.origin?"origin-":""}${n}-${t.key}`,filter:t,controller:e,readOnly:a||t.readOnly,focusOnWipInputRef:y.current})),a||S?null:F.default.createElement(fr,{controller:e,ref:y}),F.default.createElement("div",{className:l.rightControls},L&&F.default.createElement(p.Button,{className:l.collapseButton,fill:"text",onClick:e=>{e.stopPropagation(),i&&f(!0)},"aria-label":d.t("grafana-scenes.variables.adhoc-filters-combobox-renderer.collapse-filters","Collapse filters"),"aria-expanded":!c},d.t("grafana-scenes.variables.adhoc-filters-combobox-renderer.collapse","Collapse"),F.default.createElement(p.Icon,{name:"angle-up",size:"md"})),F.default.createElement("div",{className:l.clearAllButton},F.default.createElement(p.Icon,{name:"times",size:"md",onClick:()=>{var t;null==(t=e.clearAll)||t.call(e)}})),S&&F.default.createElement(F.default.Fragment,null,M>5&&F.default.createElement("span",{className:l.moreIndicator},"(+",M-5,")"),F.default.createElement(p.Icon,{name:"angle-down",className:l.dropdownIndicator}))))}),mr=e=>({comboboxWrapper:h.css({display:"flex",flexWrap:"wrap",alignItems:"center",columnGap:e.spacing(1),rowGap:e.spacing(.5),minHeight:e.spacing(4),backgroundColor:e.components.input.background,border:`1px solid ${e.colors.border.strong}`,borderRadius:e.shape.radius.default,paddingInline:e.spacing(1),paddingBlock:e.spacing(.5),flexGrow:1,width:"100%"}),comboboxFocusOutline:h.css({"&:focus-within":{outline:"2px dotted transparent",outlineOffset:"2px",boxShadow:`0 0 0 2px ${e.colors.background.canvas}, 0 0 0px 4px ${e.colors.primary.main}`,transitionTimingFunction:"cubic-bezier(0.19, 1, 0.22, 1)",transitionDuration:"0.2s",transitionProperty:"outline, outline-offset, box-shadow",zIndex:2}}),filterIcon:h.css({color:e.colors.text.secondary,alignSelf:"center"}),collapsed:h.css({flexWrap:"nowrap",overflow:"hidden"}),clickableCollapsed:h.css({cursor:"pointer","&:hover":{borderColor:e.colors.border.medium}}),rightControls:h.css({display:"flex",alignItems:"center",marginLeft:"auto",flexShrink:0}),moreIndicator:h.css({color:e.colors.text.secondary,whiteSpace:"nowrap"}),dropdownIndicator:h.css({color:e.colors.text.secondary,flexShrink:0}),collapseButton:h.css({color:e.colors.text.secondary,padding:0,fontSize:e.typography.bodySmall.fontSize,border:"none","&:hover":{background:"transparent",color:e.colors.text.primary}}),clearAllButton:h.css({fontSize:e.typography.bodySmall.fontSize,cursor:"pointer",color:e.colors.text.secondary,"&:hover":{color:e.colors.text.primary}})}),gr=Object.fromEntries(Object.entries(a.scopeFilterOperatorMap).map(([e,t])=>[t,e]));function vr(e){return new Set(["equals","not-equals","one-of","not-one-of"]).has(e)}function yr(e){return new Set(["regex-match","regex-not-match"]).has(e)}function br(e,t,n){var r,i;if(!n)return;const o=e.get(n.key);o&&function(e,t){const n=a.scopeFilterOperatorMap[e];if(!vr(n)||!vr(t))return!1;return _r(n,t)}(o.operator,n.operator)?function(e,t){var n,r,a,i;const o=null!=(n=t.values)?n:[t.value];for(const t of o)(null==(r=e.values)?void 0:r.includes(t))||null==(a=e.values)||a.push(t);if(1===(null==(i=e.values)?void 0:i.length))return;"equals"===t.operator&&e.operator===gr.equals?e.operator=gr["one-of"]:"not-equals"===t.operator&&e.operator===gr["not-equals"]&&(e.operator=gr["not-one-of"])}(o,n):o&&function(e,t){const n=a.scopeFilterOperatorMap[e];if(!yr(n)||!yr(t))return!1;return _r(n,t)}(o.operator,n.operator)?(o.value+=`|${n.value}`,o.values=[o.value]):o?t.push({key:n.key,operator:gr[n.operator],value:n.value,values:null!=(i=n.values)?i:[n.value],origin:"scope"}):e.set(n.key,{key:n.key,operator:gr[n.operator],value:n.value,values:null!=(r=n.values)?r:[n.value],origin:"scope"})}function _r(e,t){return!(e.includes("not")&&!t.includes("not")||!e.includes("not")&&t.includes("not"))}class wr{constructor(e){this.model=e}useState(){const e=this.model.useState();return{filters:e.filters,originFilters:e.originFilters,readOnly:e.readOnly,allowCustomValue:e.allowCustomValue,supportsMultiValueOperators:e.supportsMultiValueOperators,onAddCustomValue:e.onAddCustomValue,wip:e._wip,collapsible:e.collapsible,valueRecommendations:this.model.getRecommendations(),drilldownRecommendationsEnabled:e.drilldownRecommendationsEnabled}}async getKeys(e){return this.model._getKeys(e)}async getValuesFor(e){return this.model._getValuesFor(e)}getOperators(){return this.model._getOperators()}updateFilter(e,t){this.model._updateFilter(e,t)}updateFilters(e,t){this.model.updateFilters(e,t)}updateToMatchAll(e){this.model.updateToMatchAll(e)}removeFilter(e){this.model._removeFilter(e)}removeLastFilter(){this.model._removeLastFilter()}handleComboboxBackspace(e){this.model._handleComboboxBackspace(e)}addWip(){this.model._addWip()}restoreOriginalFilter(e){this.model.restoreOriginalFilter(e)}clearAll(){this.model.clearAll()}startProfile(e){const t=we(this.model);null==t||t.startProfile(e)}startInteraction(e){const t=Dn(this.model);null==t||t.startInteraction(e)}stopInteraction(){const e=Dn(this.model);null==e||e.stopInteraction()}}const Mr=[{value:"=",description:"Equals"},{value:"!=",description:"Not equal"},{value:"=|",description:"One of. Use to filter on multiple values.",isMulti:!0},{value:"!=|",description:"Not one of. Use to exclude multiple values.",isMulti:!0},{value:"=~",description:"Matches regex",isRegex:!0},{value:"!~",description:"Does not match regex",isRegex:!0},{value:"<",description:"Less than"},{value:"<=",description:"Less than or equal to"},{value:">",description:"Greater than"},{value:">=",description:"Greater than or equal to"}];class Sr extends Z{constructor(e){var t,n,r,a,o,s;const l=null!=(t=e.$behaviors)?t:[],c=e.drilldownRecommendationsEnabled?new Pr:void 0;c&&l.push(c),super({type:"adhoc",name:null!=(n=e.name)?n:"Filters",filters:[],datasource:null,applyMode:"auto",filterExpression:null!=(o=e.filterExpression)?o:kr(e.expressionBuilder,[...null!=(r=e.originFilters)?r:[],...null!=(a=e.filters)?a:[]]),...e,$behaviors:l.length>0?l:void 0}),this._scopedVars={__sceneObject:Mn(this)},this._dataSourceSrv=i.getDataSourceSrv(),this._originalValues=new Map,this._prevScopes=[],this._variableDependency=new Ha(this,{dependsOnScopes:!0,onReferencedVariableValueChanged:()=>this._updateScopesFilters()}),this._urlSync=new $n(this),this._debouncedVerifyApplicability=u.debounce(this._verifyApplicability,100),this._activationHandler=()=>(this._debouncedVerifyApplicability(),()=>{var e;null==(e=this.state.originFilters)||e.forEach(e=>{e.restorable&&this.restoreOriginalFilter(e)}),this.setState({applicabilityEnabled:!1})}),this._recommendations=c,"auto"===this.state.applyMode&&function(e){if(e.addActivationHandler(()=>(Yn.add(e),()=>Yn.delete(e))),Cn)return;const t=i.getTemplateSrv();(null==t?void 0:t.getAdhocFilters)&&(Cn=t.getAdhocFilters,t.getAdhocFilters=function(e){var n;if(0===Yn.size)return Cn.call(t,e);const r=i.getDataSourceSrv().getInstanceSettings(e);if(!r)return[];for(const e of Yn.values())if((null==(n=e.state.datasource)?void 0:n.uid)===r.uid)return e.state.filters;return[]}.bind(t))}(this),null==(s=this.state.originFilters)||s.forEach(e=>{var t;this._originalValues.set(`${e.key}-${e.origin}`,{operator:e.operator,value:null!=(t=e.values)?t:[e.value]})}),this.addActivationHandler(this._activationHandler)}getRecommendations(){return this._recommendations}_updateScopesFilters(){var e,t;const n=li.getScopes(this);if(!n||!n.length)return void this.setState({originFilters:null==(e=this.state.originFilters)?void 0:e.filter(e=>"scope"!==e.origin)});const r=function(e){const t=new Map,n=[],r=e.flatMap(e=>e.spec.filters);for(const e of r)br(t,n,e);return[...t.values(),...n]}(n);if(!r.length)return;let a=r;const i=[],o=[];if(a.forEach(e=>{var t;this._originalValues.set(`${e.key}-${e.origin}`,{value:null!=(t=e.values)?t:[e.value],operator:e.operator})}),null==(t=this.state.originFilters)||t.forEach(e=>{"scope"===e.origin?i.push(e):o.push(e)}),this._prevScopes.length)return this.setState({originFilters:[...a,...o]}),this._prevScopes=n,void this._debouncedVerifyApplicability();const s=i.filter(e=>e.restorable),l=s.map(e=>e.key),u=r.map(e=>e.key);a=[...s.filter(e=>u.includes(e.key)),...r.filter(e=>!l.includes(e.key))],this.setState({originFilters:[...a,...o]}),this._prevScopes=n,this._debouncedVerifyApplicability()}async verifyApplicabilityAndStoreRecentFilter(e){var t;await this._verifyApplicability(),null==(t=this._recommendations)||t.storeRecentFilter(e)}setState(e){var t,n;let r=!1;if((e.filters&&e.filters!==this.state.filters||e.originFilters&&e.originFilters!==this.state.originFilters)&&!e.filterExpression){const a=null!=(t=e.filters)?t:this.state.filters,i=null!=(n=e.originFilters)?n:this.state.originFilters;e.filterExpression=kr(this.state.expressionBuilder,[...null!=i?i:[],...a]),r=e.filterExpression!==this.state.filterExpression}super.setState(e),r&&this.publishEvent(new Ve(this),!0)}updateFilters(e,t){var n;let r,a=!1;e&&e!==this.state.filters&&(r=kr(this.state.expressionBuilder,[...null!=(n=this.state.originFilters)?n:[],...e]),a=r!==this.state.filterExpression),super.setState({filters:e,filterExpression:r}),(a&&!0!==(null==t?void 0:t.skipPublish)||(null==t?void 0:t.forcePublish))&&this.publishEvent(new Ve(this),!0)}restoreOriginalFilter(e){const t={matchAllFilter:!1,restorable:!1};if(e.restorable){const n=this._originalValues.get(`${e.key}-${e.origin}`);if(!n)return;t.value=null==n?void 0:n.value[0],t.values=null==n?void 0:n.value,t.valueLabels=null==n?void 0:n.value,t.operator=null==n?void 0:n.operator,t.nonApplicable=null==n?void 0:n.nonApplicable;const r=we(this);null==r||r.startProfile("filter_restored"),this._updateFilter(e,t)}}clearAll(){var e;null==(e=this.state.originFilters)||e.forEach(e=>{e.restorable&&this.restoreOriginalFilter(e)}),this.setState({filters:[]})}getValue(e){if("originFilters"===e){const e=this.state.originFilters;return e&&0!==(null==e?void 0:e.length)?[...e.map(e=>Un(e).map(Pa).join("|").concat(`#${e.origin}`))]:[]}return this.state.filterExpression}_updateFilter(e,t){var n,r;const{originFilters:a,filters:i,_wip:o}=this.state;if(e.origin){const r=this._originalValues.get(`${e.key}-${e.origin}`),i=t.values||(t.value?[t.value]:void 0);i&&!u.isEqual(i,null==r?void 0:r.value)||t.operator&&t.operator!==(null==r?void 0:r.operator)?t.restorable=!0:i&&u.isEqual(i,null==r?void 0:r.value)&&(t.restorable=!1);const o=null!=(n=null==a?void 0:a.map(n=>n===e?{...n,...t}:n))?n:[];return void this.setState({originFilters:o})}if(e===o)return void("value"in t&&""!==t.value?(this.setState({filters:[...i,{...o,...t}],_wip:void 0}),this.verifyApplicabilityAndStoreRecentFilter({...o,...t})):this.setState({_wip:{...e,...t}}));const s=this.state.filters.map(n=>n===e?{...n,...t}:n);this.setState({filters:s}),null==(r=this._recommendations)||r.storeRecentFilter({...e,...t})}updateToMatchAll(e){this._updateFilter(e,{operator:"=~",value:".*",values:[".*"],valueLabels:["All"],matchAllFilter:!0,nonApplicable:!1,restorable:!0})}_removeFilter(e){if(e===this.state._wip)return void this.setState({_wip:void 0});const t=we(this);null==t||t.startProfile(Ce),this.setState({filters:this.state.filters.filter(t=>t!==e)}),this._debouncedVerifyApplicability()}_removeLastFilter(){const e=this.state.filters.at(-1);e&&this._removeFilter(e)}_handleComboboxBackspace(e){var t;if(this.state.filters.length){let t=this.state.filters.length-1;e!==this.state._wip&&(t=-1),this.setState({filters:this.state.filters.reduce((n,r,a)=>a!==t||r.readOnly?r===e?n:[...n,r]:[...n,{...r,forceEdit:!0}],[])})}else if(null==(t=this.state.originFilters)?void 0:t.length){let t=this.state.originFilters.length-1;e!==this.state._wip&&(t=-1),this.setState({originFilters:this.state.originFilters.reduce((n,r,a)=>a!==t||r.readOnly?r===e?n:[...n,r]:[...n,{...r,forceEdit:!0}],[])})}}async getFiltersApplicabilityForQueries(e,t){const n=await this._dataSourceSrv.get(this.state.datasource,this._scopedVars);if(!n||!n.getDrilldownsApplicability)return;const r=li.getTimeRange(this).state.value;return await n.getDrilldownsApplicability({filters:e,queries:t,timeRange:r,scopes:li.getScopes(this),...vn(this)})}async _verifyApplicability(){var e,t,n;const r=[...this.state.filters,...null!=(e=this.state.originFilters)?e:[]],a=this.state.useQueriesAsFilterForOptions?Ta(this):void 0,i=await this.getFiltersApplicabilityForQueries(r,null!=a?a:[]);if(!i)return;const o=new Map;i.forEach(e=>{o.set(`${e.key}${e.origin?`-${e.origin}`:""}`,e)});const s={applicabilityEnabled:!0,filters:[...this.state.filters],originFilters:[...null!=(t=this.state.originFilters)?t:[]]};s.filters.forEach(e=>{const t=o.get(e.key);t&&(e.nonApplicable=!t.applicable,e.nonApplicableReason=t.reason)}),null==(n=s.originFilters)||n.forEach(e=>{const t=o.get(`${e.key}-${e.origin}`);if(t){e.matchAllFilter||(e.nonApplicable=!t.applicable,e.nonApplicableReason=t.reason);const n=this._originalValues.get(`${e.key}-${e.origin}`);n&&(n.nonApplicable=!t.applicable,n.nonApplicableReason=null==t?void 0:t.reason)}}),this.setState(s)}async _getKeys(e){var t,n,r,a,i;const o=await(null==(n=(t=this.state).getTagKeysProvider)?void 0:n.call(t,this,e));if(o&&o.replace)return Aa(o.values).map(xr);if(this.state.defaultKeys)return this.state.defaultKeys.map(xr);const s=await this._dataSourceSrv.get(this.state.datasource,this._scopedVars);if(!s||!s.getTagKeys)return[];const l=null!=(a=null==(r=this.state.originFilters)?void 0:r.filter(e=>!e.nonApplicable))?a:[],u=this.state.filters.filter(t=>t.key!==e&&!t.nonApplicable).concat(null!=(i=this.state.baseFilters)?i:[]).concat(l),c=li.getTimeRange(this).state.value,d=this.state.useQueriesAsFilterForOptions?Ta(this):void 0,p=await s.getTagKeys({filters:u,queries:d,timeRange:c,scopes:li.getScopes(this),...vn(this)});Ra(p)&&this.setState({error:p.error.message});let f=Aa(p);o&&(f=f.concat(Aa(o.values)));const h=this.state.tagKeyRegexFilter;return h&&(f=f.filter(e=>e.text.match(h))),f.map(xr)}async _getValuesFor(e){var t,n,r,a;const i=await(null==(n=(t=this.state).getTagValuesProvider)?void 0:n.call(t,this,e));if(i&&i.replace)return Aa(i.values).map(xr);const o=await this._dataSourceSrv.get(this.state.datasource,this._scopedVars);if(!o||!o.getTagValues)return[];const s=null!=(a=null==(r=this.state.originFilters)?void 0:r.filter(t=>t.key!==e.key))?a:[],l=this.state.filters.filter(t=>t.key!==e.key).concat(s),u=li.getTimeRange(this).state.value,c=this.state.useQueriesAsFilterForOptions?Ta(this):void 0;let d=li.getScopes(this);"scope"===e.origin&&(d=null==d?void 0:d.map(t=>{var n;return{...t,spec:{...t.spec,filters:null==(n=t.spec.filters)?void 0:n.filter(t=>t.key!==e.key)}}}));const p=await o.getTagValues({key:e.key,filters:l,timeRange:u,queries:c,scopes:d,...vn(this)});Ra(p)&&this.setState({error:p.error.message});let f=Aa(p);return i&&(f=f.concat(Aa(i.values))),f.map(xr)}_addWip(){this.setState({_wip:{key:"",value:"",operator:"=",condition:""}})}_getOperators(){const{supportsMultiValueOperators:e,allowCustomValue:t=!0}=this.state;return Mr.filter(({isMulti:n,isRegex:r})=>!(!e&&n)&&!(!t&&r)).map(({value:e,description:t})=>({label:e,value:e,description:t}))}}function kr(e,t){var n;return(null!=e?e:ka)(null!=(n=null==t?void 0:t.filter(e=>Or(e)))?n:[])}Sr.Component=function({model:e}){const{filters:t,readOnly:n,addFilterButtonText:r}=e.useState(),a=p.useStyles2(Lr),i=o.useMemo(()=>"combobox"===e.state.layout?new wr(e):void 0,[e]);if(i)return F.default.createElement(hr,{controller:i});return F.default.createElement("div",{className:a.wrapper},t.filter(e=>!e.hidden).map((t,n)=>F.default.createElement(F.default.Fragment,{key:n},F.default.createElement(Nn,{filter:t,model:e}))),!n&&F.default.createElement(Vn,{model:e,key:"'builder",addFilterButtonText:r}))};const Lr=e=>({wrapper:h.css({display:"flex",flexWrap:"wrap",alignItems:"flex-end",columnGap:e.spacing(2),rowGap:e.spacing(1)})});function xr(e){const{text:t,value:n}=e,r={label:String(t),value:String(null!=n?n:t)};return"group"in e&&(r.group=e.group),"meta"in e&&(r.meta=e.meta),r}function Dr(e){return"=~"===e.operator&&".*"===e.value}function Tr(e){return""!==e.key&&""!==e.operator&&""!==e.value}function Or(e){return!e.nonApplicable}function Er(e){const t=Mr.find(t=>t.value===e);return!!t&&Boolean(t.isMulti)}class Pr extends Z{constructor(e={}){super(e),this._activationHandler=()=>{const e=a.store.get(this._getStorageKey()),t=e?JSON.parse(e):[];t.length>0?this._verifyRecentFiltersApplicability(t):this.setState({recentFilters:[]}),this._fetchRecommendedDrilldowns();const n=li.lookupVariable(Xe,this._adHocFilter);let r;return n instanceof En&&this._subs.add(r=n.subscribeToState((e,t)=>{if(e.scopes!==t.scopes){const e=a.store.get(this._getStorageKey()),t=e?JSON.parse(e):[];t.length>0&&this._verifyRecentFiltersApplicability(t),this._fetchRecommendedDrilldowns()}})),()=>{null==r||r.unsubscribe()}},this.addActivationHandler(this._activationHandler)}get _adHocFilter(){if(!(this.parent instanceof Sr))throw new Error("AdHocFiltersRecommendations must be a child of AdHocFiltersVariable");return this.parent}get _scopedVars(){return{__sceneObject:Mn(this._adHocFilter)}}_getStorageKey(){var e,t;return`grafana.filters.recent.${null!=(t=null==(e=this._adHocFilter.state.datasource)?void 0:e.uid)?t:"default"}`}async _fetchRecommendedDrilldowns(){var e;const t=this._adHocFilter,n=await Rt(t.state.datasource,this._scopedVars);if(!n||!n.getRecommendedDrilldowns)return;const r=t.state.useQueriesAsFilterForOptions?Ta(t):void 0,a=li.getTimeRange(t).state.value,i=li.getScopes(t),o=[...null!=(e=t.state.originFilters)?e:[],...t.state.filters],s=Nt(t),l=null==s?void 0:s.dashboardUID;try{const e=await n.getRecommendedDrilldowns({timeRange:a,dashboardUid:l,queries:null!=r?r:[],filters:o,scopes:i});(null==e?void 0:e.filters)&&this.setState({recommendedFilters:e.filters})}catch(e){console.error("Failed to fetch recommended drilldowns:",e)}}async _verifyRecentFiltersApplicability(e){const t=this._adHocFilter,n=t.state.useQueriesAsFilterForOptions?Ta(t):void 0,r=await t.getFiltersApplicabilityForQueries(e,null!=n?n:[]);if(!r)return void this.setState({recentFilters:e.slice(-3)});const a=new Map;r.forEach(e=>{a.set(e.key,!1!==e.applicable)});const i=e.filter(e=>{const t=a.get(e.key);return void 0===t||!0===t}).slice(-3);this.setState({recentFilters:i})}storeRecentFilter(e){const t=this._getStorageKey(),n=a.store.get(t),r=[...n?JSON.parse(n):[],e].slice(-10);a.store.set(t,JSON.stringify(r));const i=this._adHocFilter.state.filters.find(t=>t.key===e.key&&!Boolean(t.nonApplicable));i&&!Boolean(i.nonApplicable)&&this.setState({recentFilters:r.slice(-3)})}addFilterToParent(e){this._adHocFilter.updateFilters([...this._adHocFilter.state.filters,e])}}Pr.Component=function({model:e}){const{recentFilters:t,recommendedFilters:n}=e.useState(),{filters:r}=e._adHocFilter.useState(),a=null==t?void 0:t.map(t=>({label:`${t.key} ${t.operator} ${t.value}`,onClick:()=>{r.some(e=>e.key===t.key&&e.value===t.value)||e.addFilterToParent(t)}})),i=null==n?void 0:n.map(t=>({label:`${t.key} ${t.operator} ${t.value}`,onClick:()=>{r.some(e=>e.key===t.key&&e.value===t.value)||e.addFilterToParent(t)}}));return F.default.createElement(Tn,{recentDrilldowns:a,recommendedDrilldowns:i})};class Cr extends Z{constructor(e={}){super(e),this._activationHandler=()=>{const e=a.store.get(this._getStorageKey()),t=e?JSON.parse(e):[];t.length>0?this._verifyRecentGroupingsApplicability(t):this.setState({recentGrouping:[]}),this._fetchRecommendedDrilldowns();const n=li.lookupVariable(Xe,this._groupBy);let r;return n instanceof En&&this._subs.add(r=n.subscribeToState((e,t)=>{if(e.scopes!==t.scopes){const e=a.store.get(this._getStorageKey()),t=e?JSON.parse(e):[];t.length>0&&this._verifyRecentGroupingsApplicability(t),this._fetchRecommendedDrilldowns()}})),()=>{null==r||r.unsubscribe()}},this.addActivationHandler(this._activationHandler)}get _groupBy(){if(!(this.parent instanceof Yr))throw new Error("GroupByRecommendations must be a child of GroupByVariable");return this.parent}get _scopedVars(){return{__sceneObject:Mn(this._groupBy)}}_getStorageKey(){var e,t;return`grafana.grouping.recent.${null!=(t=null==(e=this._groupBy.state.datasource)?void 0:e.uid)?t:"default"}`}async _fetchRecommendedDrilldowns(){const e=await Rt(this._groupBy.state.datasource,this._scopedVars);if(!e||!e.getRecommendedDrilldowns)return;const t=Ta(this._groupBy),n=li.getTimeRange(this._groupBy).state.value,r=li.getScopes(this._groupBy),a=Array.isArray(this._groupBy.state.value)?this._groupBy.state.value.map(e=>String(e)):this._groupBy.state.value?[String(this._groupBy.state.value)]:[],i=Nt(this._groupBy),o=null==i?void 0:i.dashboardUID;try{const i=await e.getRecommendedDrilldowns({timeRange:n,dashboardUid:o,queries:t,groupByKeys:a,scopes:r});(null==i?void 0:i.groupByKeys)&&this.setState({recommendedGrouping:i.groupByKeys.map(e=>({value:e,text:e}))})}catch(e){console.error("Failed to fetch recommended drilldowns:",e)}}async _verifyRecentGroupingsApplicability(e){const t=Ta(this._groupBy),n=e.map(e=>String(e.value)),r=await this._groupBy.getGroupByApplicabilityForQueries(n,t);if(!r)return void this.setState({recentGrouping:e.slice(-3)});const a=new Map;r.forEach(e=>{a.set(e.key,!1!==e.applicable)});const i=e.filter(e=>{const t=a.get(String(e.value));return void 0===t||!0===t}).slice(-3);this.setState({recentGrouping:i})}storeRecentGrouping(e){if(0===e.length)return;const t=this._getStorageKey(),n=a.store.get(t),r=[...(n?JSON.parse(n):[]).filter(t=>!e.includes(String(t.value))),...e.map(e=>({value:e,text:e}))].slice(-10);a.store.set(t,JSON.stringify(r)),this.setState({recentGrouping:r.slice(-3)})}addValueToParent(e,t){const n=u.isArray(this._groupBy.state.value)?this._groupBy.state.value:[this._groupBy.state.value],r=u.isArray(this._groupBy.state.text)?this._groupBy.state.text.map(String):[String(this._groupBy.state.text)];n.includes(e)||this._groupBy.changeValueTo([...n.filter(e=>""!==e),e],[...r.filter(e=>""!==e),null!=t?t:String(e)],!0)}}Cr.Component=function({model:e}){const{recentGrouping:t,recommendedGrouping:n}=e.useState(),r=null==t?void 0:t.map(t=>({label:`${t.value}`,onClick:()=>{var n;e.addValueToParent(t.value,null!=(n=t.text)?n:String(t.value))}})),a=null==n?void 0:n.map(t=>({label:`${t.value}`,onClick:()=>{var n;e.addValueToParent(t.value,null!=(n=t.text)?n:String(t.value))}}));return F.default.createElement(Tn,{recentDrilldowns:r,recommendedDrilldowns:a})};class Yr extends gt{constructor(e){var t;const n=null!=(t=e.$behaviors)?t:[],r=e.drilldownRecommendationsEnabled?new Cr:void 0;r&&n.push(r),super({isMulti:!0,name:"",value:[],text:[],options:[],datasource:null,baseFilters:[],applyMode:"auto",layout:"horizontal",type:"groupby",...e,noValueOnClear:!0,$behaviors:n.length>0?n:void 0}),this.isLazy=!0,this._urlSync=new mn(this),this._scopedVars={__sceneObject:Mn(this)},this._activationHandler=()=>(this._verifyApplicability(),this.state.defaultValue&&this.checkIfRestorable(this.state.value)&&this.setState({restorable:!0}),()=>{this.state.defaultValue&&this.restoreDefaultValues(),this.setState({applicabilityEnabled:!1})}),this._getKeys=async e=>{var t,n,r;const a=await(null==(n=(t=this.state).getTagKeysProvider)?void 0:n.call(t,this,null));if(a&&a.replace)return a.values;if(this.state.defaultOptions)return this.state.defaultOptions.concat(Aa(null!=(r=null==a?void 0:a.values)?r:[]));if(!e.getTagKeys)return[];const i=Ta(this),o=this.state.baseFilters||[],s=li.getTimeRange(this).state.value,l=await e.getTagKeys({filters:o,queries:i,timeRange:s,scopes:li.getScopes(this),...vn(this)});Ra(l)&&this.setState({error:l.error.message});let u=Aa(l);a&&(u=u.concat(Aa(a.values)));const c=this.state.tagKeyRegexFilter;return c&&(u=u.filter(e=>e.text.match(c))),u},this._recommendations=r,this.state.defaultValue&&this.changeValueTo(this.state.defaultValue.value,this.state.defaultValue.text,!1),"auto"===this.state.applyMode&&this.addActivationHandler(()=>(zt.add(this),()=>zt.delete(this))),this.addActivationHandler(this._activationHandler)}validateAndUpdate(){return this.getValueOptions({}).pipe(s.map(e=>(this._updateValueGivenNewOptions(e),{})))}_updateValueGivenNewOptions(e){const{value:t,text:n}=this.state,r={options:e,loading:!1,value:null!=t?t:[],text:null!=n?n:[]};this.setState(r)}getValueOptions(e){return this.state.defaultOptions?s.of(this.state.defaultOptions.map(e=>({label:e.text,value:String(e.value),group:e.group}))):(this.setState({loading:!0,error:null}),s.from(Rt(this.state.datasource,this._scopedVars)).pipe(s.mergeMap(e=>s.from(this._getKeys(e)).pipe(s.tap(e=>{Ra(e)&&this.setState({error:e.error.message})}),s.map(e=>Aa(e)),s.take(1),s.mergeMap(e=>{const t=e.map(e=>({label:e.text,value:e.value?String(e.value):e.text,group:e.group}));return s.of(t)})))))}getRecommendations(){return this._recommendations}getApplicableKeys(){const{value:e,keysApplicability:t}=this.state,n=u.isArray(e)?e.map(String):e?[String(e)]:[];if(!t||0===t.length)return n;return n.filter(e=>{const n=t.find(t=>t.key===e);return!n||!1!==n.applicable})}async getGroupByApplicabilityForQueries(e,t){const n=await Rt(this.state.datasource,this._scopedVars);if(!n.getDrilldownsApplicability)return;const r=li.getTimeRange(this).state.value;return await n.getDrilldownsApplicability({groupByKeys:Array.isArray(e)?e.map(e=>String(e)):e?[String(e)]:[],queries:t,timeRange:r,scopes:li.getScopes(this),...vn(this)})}async _verifyApplicability(){const e=Ta(this),t=this.state.value,n=await this.getGroupByApplicabilityForQueries(t,e);n&&(u.isEqual(n,this.state.keysApplicability)?this.setState({applicabilityEnabled:!0}):(this.setState({keysApplicability:null!=n?n:void 0,applicabilityEnabled:!0}),this.publishEvent(new Ve(this),!0)))}checkIfRestorable(e){var t,n,r,a;const i=u.isArray(null==(t=this.state.defaultValue)?void 0:t.value)?null==(n=this.state.defaultValue)?void 0:n.value:(null==(r=this.state.defaultValue)?void 0:r.value)?[null==(a=this.state.defaultValue)?void 0:a.value]:[],o=u.isArray(e)?e:[e];return o.length!==i.length||!u.isEqual(o,i)}restoreDefaultValues(){this.setState({restorable:!1}),this.state.defaultValue&&this.changeValueTo(this.state.defaultValue.value,this.state.defaultValue.text,!0)}async _verifyApplicabilityAndStoreRecentGrouping(){if(await this._verifyApplicability(),!this._recommendations)return;const e=this.getApplicableKeys();0!==e.length&&this._recommendations.storeRecentGrouping(e)}getDefaultMultiState(e){return{value:[],text:[]}}}Yr.Component=function({model:e}){var t,n;const{value:r,text:a,key:i,isMulti:l=!0,maxVisibleValues:c,noValueOnClear:f,options:m,includeAll:g,allowCustomValue:v=!0,defaultValue:y,keysApplicability:b,drilldownRecommendationsEnabled:_}=e.useState(),w=e.getRecommendations(),M=p.useStyles2(Fr),S=o.useMemo(()=>{const e=u.isArray(r)?r:[r],t=u.isArray(a)?a:[a];return e.map((e,n)=>{var r;return{value:e,label:String(null!=(r=t[n])?r:e)}})},[r,a]),[k,L]=o.useState(!1),[x,D]=o.useState(!1),[T,O]=o.useState(""),[E,P]=o.useState(S),C=o.useMemo(()=>on(m,g),[m,g]),Y=void 0!==y;o.useEffect(()=>{P(S)},[S]);const A=(t,{action:n})=>"input-change"===n?(O(t),e.onSearchChange&&e.onSearchChange(t),t):"input-blur"===n?(O(""),""):T,R=o.useMemo(()=>ja(C(T).map(Ir)),[C,T]),j=e=>F.default.createElement("div",{className:M.selectWrapper},e),I=l?F.default.createElement(Ar,{condition:null!=(t=e.state.wideInput)&&t,wrapper:j},F.default.createElement(p.MultiSelect,{"aria-label":d.t("grafana-scenes.variables.group-by-variable-renderer.aria-label-group-by-selector","Group by selector"),"data-testid":`GroupBySelect-${i}`,id:i,placeholder:d.t("grafana-scenes.variables.group-by-variable-renderer.placeholder-group-by-label","Group by label"),width:"auto",className:h.cx(_&&M.selectStylesInWrapper),allowCustomValue:v,inputValue:T,value:E,noMultiValueWrap:!0,maxVisibleValues:null!=c?c:5,tabSelectsValue:!1,virtualized:!0,options:R,filterOption:Rr,closeMenuOnSelect:!1,isOpen:x,isClearable:!0,hideSelectedOptions:!1,isLoading:k,components:{Option:pn,Menu:jr,...Y?{IndicatorsContainer:()=>F.default.createElement(Sn,{model:e})}:{},MultiValueContainer:({innerProps:e,children:t})=>F.default.createElement(Ln,{innerProps:e,keysApplicability:b},t)},onInputChange:A,onBlur:()=>{e.changeValueTo(E.map(e=>e.value),E.map(e=>e.label),!0);const t=e.checkIfRestorable(E.map(e=>e.value));t!==e.state.restorable&&e.setState({restorable:t}),e._verifyApplicabilityAndStoreRecentGrouping()},onChange:(t,n)=>{"clear"===n.action&&f&&e.changeValueTo([],void 0,!0),P(t),O("")},onOpenMenu:async()=>{const t=Dn(e);null==t||t.startInteraction(Re),L(!0),await s.lastValueFrom(e.validateAndUpdate()),L(!1),D(!0),null==t||t.stopInteraction()},onCloseMenu:()=>{D(!1)}})):F.default.createElement(Ar,{condition:null!=(n=e.state.wideInput)&&n,wrapper:j},F.default.createElement(p.Select,{"aria-label":d.t("grafana-scenes.variables.group-by-variable-renderer.aria-label-group-by-selector","Group by selector"),"data-testid":`GroupBySelect-${i}`,id:i,placeholder:d.t("grafana-scenes.variables.group-by-variable-renderer.placeholder-group-by-label","Group by label"),width:"auto",inputValue:T,value:E&&E.length>0?E:null,allowCustomValue:v,noMultiValueWrap:!0,maxVisibleValues:null!=c?c:5,tabSelectsValue:!1,virtualized:!0,options:R,filterOption:Rr,closeMenuOnSelect:!0,isOpen:x,isClearable:!0,hideSelectedOptions:!1,noValueOnClear:!0,isLoading:k,components:{Menu:jr},onInputChange:A,onChange:(t,n)=>{if("clear"===n.action)return P([]),void(f&&e.changeValueTo([]));(null==t?void 0:t.value)&&(P([t]),e.changeValueTo([t.value],t.label?[t.label]:void 0))},onOpenMenu:async()=>{const t=Dn(e);null==t||t.startInteraction(Re),L(!0),await s.lastValueFrom(e.validateAndUpdate()),L(!1),D(!0),null==t||t.stopInteraction()},onCloseMenu:()=>{D(!1)}}));if(!w)return I;return F.default.createElement("div",{className:M.wrapper},F.default.createElement("div",{className:M.recommendations},F.default.createElement(w.Component,{model:w})),I)};const Ar=({condition:e,wrapper:t,children:n})=>e?t(n):F.default.createElement(F.default.Fragment,null,n),Rr=()=>!0;function jr(e){return F.default.createElement(en.Menu,{...e},F.default.createElement("div",{style:{minWidth:"220px"}},e.children))}function Ir(e){const{label:t,value:n,group:r}=e,a={label:t,value:n};return r&&(a.group=r),a}const Fr=e=>({selectWrapper:h.css({display:"flex",minWidth:0,width:"100%"}),fullWidthMultiSelect:h.css({width:"100%","& [data-testid]":{gridAutoColumns:"max-content",justifyItems:"start"}}),wrapper:h.css({display:"flex"}),selectStylesInWrapper:h.css({borderTopLeftRadius:0,borderBottomLeftRadius:0,border:`1px solid ${e.colors.border.strong}`,borderLeft:"none"}),recommendations:h.css({display:"flex",alignItems:"center",paddingInline:e.spacing(.5),borderTop:`1px solid ${e.colors.border.strong}`,borderBottom:`1px solid ${e.colors.border.strong}`,backgroundColor:e.components.input.background,"& button":{borderRadius:0,height:"100%",margin:0,paddingInline:e.spacing(.5)}})});function Hr({data:e,showAll:t,seriesLimit:n,onShowAllSeries:r}){const a=p.useStyles2(Nr),i=null==e?void 0:e.series.length;if(void 0===i||i({timeSeriesDisclaimer:h.css({label:"time-series-disclaimer",display:"flex",alignItems:"center",gap:e.spacing(1)}),warningMessage:h.css({display:"flex",alignItems:"center",gap:e.spacing(.5),color:e.colors.warning.main,fontSize:e.typography.bodySmall.fontSize})});function zr(){const e=o.useRef(void 0);return null!=e.current||(e.current=u.uniqueId()),e.current}const Vr=F.default.forwardRef(({children:e,onLoad:t,onChange:n,className:r,...a},i)=>{const s=zr(),{hideEmpty:l}=p.useStyles2(Wr),[u,c]=o.useState(!1),[f,h]=o.useState(!1),m=o.useRef(null);return o.useImperativeHandle(i,()=>m.current),g.useEffectOnce(()=>{Vr.addCallback(s,e=>{!u&&e.isIntersecting&&(c(!0),null==t||t()),h(e.isIntersecting),null==n||n(e.isIntersecting)});const e=m.current;return e&&Vr.observer.observe(e),()=>{e&&Vr.observer.unobserve(e),delete Vr.callbacks[s],0===Object.keys(Vr.callbacks).length&&Vr.observer.disconnect()}}),F.default.createElement("div",{id:s,ref:m,className:`${l} ${r}`,...a},u?F.default.createElement($r.Provider,{value:f},e):d.t("grafana-scenes.components.lazy-loader.placeholder"," "))});function Wr(){return{hideEmpty:h.css({"&:empty":{display:"none"}})}}Vr.displayName="LazyLoader",Vr.callbacks={},Vr.addCallback=(e,t)=>Vr.callbacks[e]=t,Vr.observer=new IntersectionObserver(e=>{for(const t of e)"function"==typeof Vr.callbacks[t.target.id]&&Vr.callbacks[t.target.id](t)},{rootMargin:"100px"});const $r=F.default.createContext(!0);function Ur(e,t){if(t)return t;let n=e.error?e.error.message:void 0;return e.errors&&(n=e.errors.map(e=>e.message).join(", ")),n}const Br=h.css({position:"relative",width:"100%",height:"100%"}),qr=h.css({position:"absolute",width:"100%",height:"100%"}),Gr=e=>({ok:h.css({color:e.colors.success.text}),pending:h.css({color:e.colors.warning.text}),alerting:h.css({color:e.colors.error.text})}),Kr="hideSeriesFrom",Jr=a.isSystemOverrideWithRef(Kr);function Qr(e,t=a.ByNamesMatcherMode.exclude,n){return n=null!=n?n:{id:"custom.hideFrom",value:{viz:!0,legend:!1,tooltip:!0}},{__systemRef:Kr,matcher:{id:a.FieldMatcherID.byNames,options:{mode:t,names:e,prefix:t===a.ByNamesMatcherMode.exclude?"All except:":void 0,readOnly:!0}},properties:[{...n,value:{viz:!0,legend:!1,tooltip:!0}}]}}const Zr=(e,t,n=a.ByNamesMatcherMode.exclude)=>{const r=e.properties.find(e=>"custom.hideFrom"===e.id),i=Xr(e),o=i.findIndex(e=>e===t);return o<0?i.push(t):i.splice(o,1),Qr(i,n,r)},Xr=e=>{var t;const n=null==(t=e.matcher.options)?void 0:t.names;return Array.isArray(n)?[...n]:[]},ea=(e,t)=>Xr(e).length===ta(t).length,ta=(e,t)=>{const n=new Set;for(const r of e)for(const i of r.fields){if(i.type!==a.FieldType.number)continue;const o=a.getFieldDisplayName(i,r,e);o!==t&&n.add(o)}return Array.from(n)},na=(e,t)=>{var n;let r=[];for(const i of e){const e=i.properties.find(e=>"custom.hideFrom"===e.id);if(void 0!==e&&!0===(null==(n=e.value)?void 0:n.legend)){const e=a.fieldMatchers.get(i.matcher.id).get(i.matcher.options);for(const n of t)for(const i of n.fields){if(i.type!==a.FieldType.number)continue;const o=a.getFieldDisplayName(i,n,t);e(i,n,t)&&r.push(o)}}}return r},ra=(e,t)=>({matcher:{id:a.FieldMatcherID.byName,options:e},properties:[aa(t)]}),aa=e=>({id:"color",value:{mode:a.FieldColorModeId.Fixed,fixedColor:e}});class ia extends Z{constructor(e){super({...e,sync:e.sync||c.DashboardCursorSync.Off}),this.getEventsBus=e=>{if(!this.parent)throw new Error("EnableCursorSync cannot be used as a standalone scene object");return new oa(this.parent,e)}}getEventsScope(){if(!this.parent)throw new Error("EnableCursorSync cannot be used as a standalone scene object");return this.state.key}}class oa{constructor(e,t){this._source=e,this._eventsOrigin=t}publish(e){e.origin=this,this._eventsOrigin.publishEvent(e,!0)}getStream(e){return new s.Observable(t=>{const n=this._source.subscribeToEvent(e,e=>{t.next(e)});return()=>n.unsubscribe()})}subscribe(e,t){return this.getStream(e).pipe().subscribe(t)}removeAllListeners(){}newScopedBus(e,t){throw new Error("For internal use only")}}const sa=class e extends Z{constructor({enabled:e=!1}){super({enabled:e}),this.timerId=void 0,this._activationHandler=()=>(this.state.enabled&&this.enable(),()=>{window.clearInterval(this.timerId),this.timerId=void 0}),this.addActivationHandler(this._activationHandler)}enable(){window.clearInterval(this.timerId),this.timerId=void 0,this.timerId=window.setInterval(()=>{const e=li.findAllObjects(this.getRoot(),e=>e instanceof ha);for(const t of e)t.forceRender()},e.REFRESH_RATE),this.setState({enabled:!0})}disable(){window.clearInterval(this.timerId),this.timerId=void 0,this.setState({enabled:!1})}get isEnabled(){return this.state.enabled}};sa.REFRESH_RATE=100;let la=sa;class ua extends Z{constructor(e={}){super({...e}),this._isTracking=!1,this._activeQueries=new Map,this.addActivationHandler(()=>this._onActivate())}_onActivate(){var e,t;let n;try{n=li.getAncestor(this,ha)}catch(e){return void fe(0,0)}if(!n)return void fe();if(!n.state.key)return void fe();this._panelKey=n.state.key,this._panelId=String(n.getLegacyPanelId()),this._pluginId=n.state.pluginId;const r=n.getPlugin();return this._pluginVersion=null==(t=null==(e=null==r?void 0:r.meta)?void 0:e.info)?void 0:t.version,this._subs.add(n.subscribeToState((e,t)=>{this._handlePanelStateChange(n,e,t)})),()=>{this._cleanup()}}_handlePanelStateChange(e,t,n){t.pluginId!==n.pluginId&&this._onPluginChange(e,t.pluginId)}onQueryStarted(e,t,n){if(!this._panelKey)return null;this._activeQueries.set(n,{entry:t,startTime:e});const r=Ot("query");return Ct().notifyPanelOperationStart({operationId:r,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,pluginVersion:this._pluginVersion,operation:"query",timestamp:e,metadata:{queryId:n,queryType:t.type}}),(e,a)=>{if(!this._panelKey)return;const i=this._activeQueries.get(n);if(!i)return;const o=e-i.startTime;this._activeQueries.delete(n),Ct().notifyPanelOperationComplete({operationId:r,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,pluginVersion:this._pluginVersion,operation:"query",timestamp:e,duration:o,metadata:{queryId:n,queryType:t.type},error:a?(null==a?void 0:a.message)||String(a)||"Unknown error":void 0})}}onPluginLoadStart(e){if(!this._panelKey){let t;try{t=li.getAncestor(this,ha)}catch(e){return null}t&&!this._panelKey&&t.state.key&&(this._panelKey=t.state.key,this._panelId=String(t.getLegacyPanelId()),this._pluginId=e)}if(!this._panelKey)return null;this._isTracking||this._startTracking(),this._loadPluginStartTime=performance.now();const t=Ot("pluginLoad");return Ct().notifyPanelOperationStart({operationId:t,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,operation:"plugin-load",timestamp:this._loadPluginStartTime,metadata:{pluginId:e}}),(e,n=!1)=>{if(!this._panelKey||!this._loadPluginStartTime)return;const r=performance.now()-this._loadPluginStartTime;Ct().notifyPanelOperationComplete({operationId:t,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,operation:"plugin-load",timestamp:performance.now(),duration:r,metadata:{pluginId:this._pluginId,fromCache:n,pluginLoadTime:r}}),this._loadPluginStartTime=void 0}}onFieldConfigStart(e){if(!this._panelKey)return null;this._applyFieldConfigStartTime=e;const t=Ot("fieldConfig");return Ct().notifyPanelOperationStart({operationId:t,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,operation:"fieldConfig",timestamp:this._applyFieldConfigStartTime,metadata:{}}),(e,n,r)=>{if(!this._panelKey||!this._applyFieldConfigStartTime)return;const a=e-this._applyFieldConfigStartTime;Ct().notifyPanelOperationComplete({operationId:t,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,operation:"fieldConfig",timestamp:e,duration:a,metadata:{}}),this._applyFieldConfigStartTime=void 0}}_getPanelInfo(){let e;try{e=li.getAncestor(this,ha)}catch(e){}let t=(null==e?void 0:e.state.title)||this._panelKey||"No-key panel";return t.length>30&&(t=t.substring(0,27)+"..."),`VizPanelRenderProfiler [${t}]`}onSimpleRenderStart(e){if(!this._panelKey)return;const t=Ot("render");return Ct().notifyPanelOperationStart({operationId:t,panelId:this._panelId||"unknown",panelKey:this._panelKey,pluginId:this._pluginId||"unknown",pluginVersion:this._pluginVersion,operation:"render",timestamp:e,metadata:{}}),(e,n)=>{this._panelKey&&Ct().notifyPanelOperationComplete({operationId:t,panelId:this._panelId||"unknown",panelKey:this._panelKey,pluginId:this._pluginId||"unknown",pluginVersion:this._pluginVersion,operation:"render",duration:n,timestamp:e,metadata:{}})}}_onPluginChange(e,t){var n,r;this._pluginId=t;const a=e.getPlugin();this._pluginVersion=null==(r=null==(n=null==a?void 0:a.meta)?void 0:n.info)?void 0:r.version,fe(this._getPanelInfo())}_startTracking(){this._panelKey&&this._pluginId&&!this._isTracking&&(this._isTracking=!0)}_cleanup(){this._activeQueries.clear(),this._isTracking=!1,fe(this._getPanelInfo())}onDataTransformStart(e,t,n){if(!this._panelKey)return null;const r=Ot("transform");return Ct().notifyPanelOperationStart({operationId:r,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,operation:"transform",timestamp:e,metadata:{transformationId:t,transformationCount:n.transformationCount,seriesTransformationCount:n.seriesTransformationCount,annotationTransformationCount:n.annotationTransformationCount}}),(e,a,i,o)=>{this._panelKey&&Ct().notifyPanelOperationComplete({operationId:r,panelId:this._panelId,panelKey:this._panelKey,pluginId:this._pluginId,operation:"transform",timestamp:e,duration:a,metadata:{transformationId:t,transformationCount:n.transformationCount,seriesTransformationCount:n.seriesTransformationCount,annotationTransformationCount:n.annotationTransformationCount,success:i,error:(null==o?void 0:o.error)||(i?void 0:"Transform operation failed")}})}}}class ca{constructor(){this._resultsMap=new Map,this._prevLayers=[]}getMergedStream(e){(function(e,t){if(e.length!==t.length)return!0;for(let n=0;ne.getResultsStream()),n=[];for(const t of e)n.push(t.activate());return s.merge(t).pipe(s.mergeAll(),s.filter(e=>this._resultsMap.get(e.origin.state.key)!==e),s.map(e=>(this._resultsMap.set(e.origin.state.key,e),this._resultsMap.values())),s.finalize(()=>{n.forEach(e=>e())}))}}class da extends Z{constructor(){super(...arguments),this.isDataLayer=!0,this._results=new s.ReplaySubject(1),this._dataLayersMerger=new ca}subscribeToAllLayers(e){e.length>0?this.querySub=this._dataLayersMerger.getMergedStream(e).subscribe(this._onLayerUpdateReceived.bind(this)):(this._results.next({origin:this,data:Se}),this.setStateHelper({data:Se}))}_onLayerUpdateReceived(e){var t;let n=[];for(const r of e)(null==(t=r.data)?void 0:t.series)&&(n=n.concat(r.data.series));const r={...Se,series:n};this._results.next({origin:this,data:r}),this.setStateHelper({data:r})}getResultsStream(){return this._results}cancelQuery(){var e;null==(e=this.querySub)||e.unsubscribe()}setStateHelper(e){pt(this,e)}}class pa extends da{constructor(e){var t,n;super({name:null!=(t=e.name)?t:"Data layers",layers:null!=(n=e.layers)?n:[]}),this.addActivationHandler(()=>this._onActivate())}_onActivate(){return this._subs.add(this.subscribeToState((e,t)=>{var n;e.layers!==t.layers&&(null==(n=this.querySub)||n.unsubscribe(),this.subscribeToAllLayers(e.layers))})),this.subscribeToAllLayers(this.state.layers),()=>{var e;null==(e=this.querySub)||e.unsubscribe()}}}pa.Component=({model:e})=>{const{layers:t}=e.useState();return F.default.createElement(F.default.Fragment,null,t.map(e=>F.default.createElement(e.Component,{model:e,key:e.state.key})))};class fa extends Z{constructor(e){super(e),this._results=new s.ReplaySubject(1),this._variableDependency=new Ha(this,{statePaths:["transformations"],onReferencedVariableValueChanged:()=>this.reprocessTransformations()}),this.addActivationHandler(()=>this.activationHandler())}activationHandler(){const e=this.getSourceData();return this._subs.add(e.subscribeToState(e=>this.transform(e.data))),e.state.data&&this.transform(e.state.data),()=>{this._transformSub&&this._transformSub.unsubscribe()}}getSourceData(){if(this.state.$data){if(this.state.$data instanceof pa)throw new Error("SceneDataLayerSet can not be used as data provider for SceneDataTransformer.");return this.state.$data}if(!this.parent||!this.parent.parent)throw new Error("SceneDataTransformer must either have $data set on it or have a parent.parent with $data");return li.getData(this.parent.parent)}setContainerWidth(e){this.state.$data&&this.state.$data.setContainerWidth&&this.state.$data.setContainerWidth(e)}isDataReadyToDisplay(){const e=this.getSourceData();return!e.isDataReadyToDisplay||e.isDataReadyToDisplay()}reprocessTransformations(){this.transform(this.getSourceData().state.data,!0)}_calculateTransformationMetrics(e,t){return{transformationCount:t.length,seriesTransformationCount:t.filter(e=>!("options"in e)&&!("topic"in e)||(null==e.topic||e.topic===a.DataTopic.Series)).length,annotationTransformationCount:t.filter(e=>("options"in e||"topic"in e)&&e.topic===a.DataTopic.Annotations).length}}cancelQuery(){var e,t;null==(t=(e=this.getSourceData()).cancelQuery)||t.call(e)}getResultsStream(){return this._results}clone(e){const t=super.clone(e);return this._prevDataFromSource&&(t._prevDataFromSource=this._prevDataFromSource),t}isInViewChanged(e){var t,n;null==(n=null==(t=this.state.$data)?void 0:t.isInViewChanged)||n.call(t,e)}bypassIsInViewChanged(e){var t,n;null==(n=null==(t=this.state.$data)?void 0:t.bypassIsInViewChanged)||n.call(t,e)}haveAlreadyTransformedData(e){if(!this._prevDataFromSource)return!1;if(e===this._prevDataFromSource)return!0;const{series:t,annotations:n}=this._prevDataFromSource;return e.series===t&&e.annotations===n&&(this.state.data&&e.state!==this.state.data.state&&this.setState({data:{...this.state.data,state:e.state}}),!0)}transform(e,t=!1){var n;const r=performance.now(),o=ma(this),l=performance.now();let u,c=null;if(0===this.state.transformations.length||!e)return this._prevDataFromSource=e,this.setState({data:e}),void(e&&this._results.next({origin:this,data:e}));if(!t&&this.haveAlreadyTransformedData(e))return;if(o){const t=this.state.transformations.map(e=>"id"in e?e.id:"customTransformation").join("+");u=t||"no-transforms";const n=this._calculateTransformationMetrics(e,this.state.transformations);c=o.onDataTransformStart(r,u,n)}const d=this._interpolateVariablesInTransformationConfigs(e),p=this._filterAndPrepareTransformationsByTopic(d,e=>!("options"in e)&&!("topic"in e)||(null==e.topic||e.topic===a.DataTopic.Series)),f=this._filterAndPrepareTransformationsByTopic(d,e=>("options"in e||"topic"in e)&&e.topic===a.DataTopic.Annotations);this._transformSub&&this._transformSub.unsubscribe();const h={interpolate:(t,n)=>{var r;return li.interpolate(this,t,{...null==(r=e.request)?void 0:r.scopedVars,...n})}},m=a.transformDataFrame(p,e.series,h),g=a.transformDataFrame(f,null!=(n=e.annotations)?n:[]);let v=[],y=[];this._transformSub=s.forkJoin([m,g]).pipe(s.map(t=>(t.forEach(e=>{var t;for(const n of e)(null==(t=n.meta)?void 0:t.dataTopic)===a.DataTopic.Annotations?y.push(n):v.push(n)}),{...e,series:v,annotations:y})),s.catchError(t=>{var n;const r=performance.now();c&&c(r,r-l,!1,{error:t.message||t}),console.error("Error transforming data: ",t);const o=(null==(n=this.getSourceData().state.data)?void 0:n.errors)||[],u=i.toDataQueryError(t);u.message=`Error transforming data: ${u.message}`;const d={...e,state:a.LoadingState.Error,errors:[...o,u]};return s.of(d)})).subscribe(t=>{var n;const r=performance.now();c&&c(r,r-l,!0,{outputSeriesCount:t.series.length,outputAnnotationsCount:(null==(n=t.annotations)?void 0:n.length)||0}),this.setState({data:t}),this._results.next({origin:this,data:t}),this._prevDataFromSource=e})}_interpolateVariablesInTransformationConfigs(e){var t;const n=this.state.transformations;if(0===this._variableDependency.getNames().size)return n;const r=n.every(e=>"object"==typeof e);return r?JSON.parse(li.interpolate(this,JSON.stringify(n),null==(t=e.request)?void 0:t.scopedVars)):n.map(t=>{var n;return"object"==typeof t?JSON.parse(li.interpolate(this,JSON.stringify(t),null==(n=e.request)?void 0:n.scopedVars)):t})}_filterAndPrepareTransformationsByTopic(e,t){return e.filter(t).map(e=>"operator"in e?e.operator:e)}}class ha extends Z{constructor(e){var t;super({options:{},fieldConfig:{defaults:{},overrides:[]},title:d.t("grafana-scenes.components.viz-panel.title.title","Title"),pluginId:"timeseries",_renderCounter:0,...e}),this._variableDependency=new Ha(this,{statePaths:["title","options","fieldConfig"]}),this._structureRev=0,this.onTimeRangeChange=e=>{li.getTimeRange(this).onTimeRangeChange({raw:{from:a.toUtc(e.from),to:a.toUtc(e.to)},from:a.toUtc(e.from),to:a.toUtc(e.to)})},this.getTimeRange=e=>{const t=li.findObject(this,e=>e instanceof la),n=li.getTimeRange(this);if(t instanceof la&&t.isEnabled)return Te(n.state.from,n.state.to,n.getTimeZone(),n.state.fiscalYearStartMonth,n.state.UNSAFE_nowDelay,n.state.weekStart);const r=this.getPlugin();return r&&!r.meta.skipDataQuery&&e&&e.timeRange?e.timeRange:n.state.value},this.onTitleChange=e=>{this.setState({title:e})},this.onDescriptionChange=e=>{this.setState({description:e})},this.onDisplayModeChange=e=>{this.setState({displayMode:e})},this.onToggleCollapse=e=>{this.setState({collapsed:e})},this.onOptionsChange=(e,t=!1,n=!1)=>{var r;const{fieldConfig:i,options:o}=this.state,s=t?e:u.mergeWith(u.cloneDeep(o),e,(e,t,n,r)=>{if(u.isArray(t))return t;e===t||void 0!==t||(r[n]=t)}),l=a.getPanelOptionsWithDefaults({plugin:this._plugin,currentOptions:s,currentFieldConfig:i,isAfterPluginChange:n});this.setState({options:l.options,_renderCounter:(null!=(r=this.state._renderCounter)?r:0)+1})},this.onFieldConfigChange=(e,t)=>{const{fieldConfig:n,options:r}=this.state,i=t?e:u.merge(u.cloneDeep(n),e),o=a.getPanelOptionsWithDefaults({plugin:this._plugin,currentOptions:r,currentFieldConfig:i,isAfterPluginChange:!1});this._dataWithFieldConfig=void 0,this.setState({fieldConfig:o.fieldConfig})},this.interpolate=(e,t,n)=>li.interpolate(this,e,t,n),this.getDescription=()=>{this.publishEvent(new q({origin:this,interaction:"panel-description-shown"}),!0);const{description:e}=this.state;if(e){const t=this.interpolate(e);return a.renderMarkdown(t)}return""},this.onCancelQuery=()=>{var e;this.publishEvent(new q({origin:this,interaction:"panel-cancel-query-clicked"}),!0);const t=li.getData(this);null==(e=t.cancelQuery)||e.call(t)},this.onStatusMessageClick=()=>{this.publishEvent(new q({origin:this,interaction:"panel-status-message-clicked"}),!0)},this._onSeriesColorChange=(e,t)=>{this.onFieldConfigChange(((e,t,n)=>{const{overrides:r}=n,i=n.overrides.findIndex(t=>t.matcher.id===a.FieldMatcherID.byName&&t.matcher.options===e);if(i<0)return{...n,overrides:[...n.overrides,ra(e,t)]};const o=Array.from(r),s=o[i],l=s.properties.findIndex(e=>"color"===e.id);if(l<0)return o[i]={...s,properties:[...s.properties,aa(t)]},{...n,overrides:o};const u=Array.from(s.properties);return u[l]=aa(t),o[i]={...s,properties:u},{...n,overrides:o}})(e,t,this.state.fieldConfig))},this._onSeriesVisibilityChange=(e,t)=>{this._dataWithFieldConfig&&this.onFieldConfigChange(function(e,t,n,r){const{overrides:a}=n,i=e,o=a.findIndex(Jr);if(o<0){if(t===p.SeriesVisibilityChangeMode.ToggleSelection){const e=Qr([i,...na(a,r)]);return{...n,overrides:[...n.overrides,e]}}const e=Qr(ta(r,i));return{...n,overrides:[...n.overrides,e]}}const s=Array.from(a),[l]=s.splice(o,1);if(t===p.SeriesVisibilityChangeMode.ToggleSelection){let e=Xr(l);const t=na(s,r);if(t.length>0&&(e=e.filter(e=>t.indexOf(e)<0)),e[0]===i&&1===e.length)return{...n,overrides:s};const a=Qr([i,...t]);return{...n,overrides:[...s,a]}}const u=Zr(l,i);return ea(u,r)?{...n,overrides:s}:{...n,overrides:[...s,u]}}(e,t,this.state.fieldConfig,this._dataWithFieldConfig.series),!0)},this._onInstanceStateChange=e=>{this._panelContext&&(this._panelContext={...this._panelContext,instanceState:e}),this.setState({_pluginInstanceState:e})},this._onToggleLegendSort=e=>{const t=this.state.options.legend;if(!t)return;let n=t.sortDesc,r=t.sortBy;e!==r&&(n=void 0),!1===n?(r=void 0,n=void 0):(n=!n,r=e),this.onOptionsChange({...this.state.options,legend:{...t,sortBy:r,sortDesc:n}},!0)},this.addActivationHandler(()=>{this._onActivate()}),null==(t=e.menu)||t.addActivationHandler(()=>{this.publishEvent(new q({origin:this,interaction:"panel-menu-shown"}),!0)})}getProfiler(){if(this.state.$behaviors)for(const e of this.state.$behaviors)if(e instanceof ua)return e}_onActivate(){this._plugin||this._loadPlugin(this.state.pluginId)}forceRender(){var e;this.setState({_renderCounter:(null!=(e=this.state._renderCounter)?e:0)+1})}async _loadPlugin(e,t,n,r){const o=this.getProfiler(),s=function(e){var t;const{getPanelPluginFromCache:n}=i.getPluginImportUtils();return null!=(t=n(e))?t:W.get(e)}(e);if(s){const a=null==o?void 0:o.onPluginLoadStart(e);null==a||a(s,!0),this._pluginLoaded(s,t,n,r)}else{const{importPanelPlugin:s}=i.getPluginImportUtils();try{const a=null==o?void 0:o.onPluginLoadStart(e),i=s(e),l=li.getQueryController(this);l&&l.state.enableProfiling&&At(i).pipe(Yt({type:`VizPanel/loadPlugin/${e}`,origin:this})).subscribe(()=>{});const u=await i;null==a||a(u,!1),this._pluginLoaded(u,t,n,r)}catch(t){this._pluginLoaded(function(e){const t=new a.PanelPlugin(()=>null);return t.meta={id:e,name:e,sort:100,type:a.PluginType.panel,module:"",baseUrl:"",info:{author:{name:""},description:"",links:[],logos:{large:"",small:"public/img/grafana_icon.svg"},screenshots:[],updated:"",version:""}},t}(e)),t instanceof Error&&this.setState({_pluginLoadError:t.message})}}}getLegacyPanelId(){var e,t;const n=null!=(t=null==(e=this.state.key)?void 0:e.split("/"))?t:[];if(0===n.length)return 0;const r=n[n.length-1],a=parseInt(r.replace("panel-",""),10);return isNaN(a)?0:a}getPathId(){return di(this)}async _pluginLoaded(e,t,n,r){var i;const{options:o,fieldConfig:s,title:l,pluginVersion:u,_UNSAFE_customMigrationHandler:c}=this.state,d={title:l,options:o,fieldConfig:s,id:this.getLegacyPanelId(),type:e.meta.id,pluginVersion:u};t&&(d.options=t),n&&(d.fieldConfig=n);const p=this._getPluginVersion(e);null==c||c(d,e);const f=p!==u||(null==(i=e.shouldMigrate)?void 0:i.call(e,d));e.onPanelMigration&&f&&!r&&(d.options=await e.onPanelMigration(d));let h=this.state.$data;d.transformations&&h&&(h instanceof fa?h.setState({transformations:d.transformations}):h instanceof ba&&(h.clearParent(),h=new fa({transformations:d.transformations,$data:h})));const m=a.getPanelOptionsWithDefaults({plugin:e,currentOptions:d.options,currentFieldConfig:d.fieldConfig,isAfterPluginChange:null!=r&&r});if(this._plugin=e,this.setState({$data:h,options:m.options,fieldConfig:m.fieldConfig,pluginVersion:p,pluginId:e.meta.id}),e.meta.skipDataQuery){const e=li.getTimeRange(this);this._subs.add(e.subscribeToState(()=>this.forceRender()))}}_getPluginVersion(e){return e&&e.meta.info.version?e.meta.info.version:i.config.buildInfo.version}getPlugin(){return this._plugin}getPanelContext(){return null!=this._panelContext||(this._panelContext=this.buildPanelContext()),this._panelContext}async changePluginType(e,t,n){var r,a;const{options:i,fieldConfig:o,pluginId:s}=this.state;this._dataWithFieldConfig=void 0;const l=this.state.pluginId!==e;await this._loadPlugin(e,null!=t?t:{},n,l);const c={title:this.state.title,options:this.state.options,fieldConfig:this.state.fieldConfig,id:1,type:e},d=null==(a=null==(r=this._plugin)?void 0:r.onPanelTypeChanged)?void 0:a.call(r,c,s,i,o);d&&!u.isEmpty(d)&&this.onOptionsChange(d,!0,!0)}clearFieldConfigCache(){this._dataWithFieldConfig=void 0}applyFieldConfig(e){var t,n,r,o;const s=performance.now(),l=this._plugin,u=this.getProfiler();if(!l||l.meta.skipDataQuery||!e)return Se;if(this._prevData===e&&this._dataWithFieldConfig)return this._dataWithFieldConfig;const c=null==u?void 0:u.onFieldConfigStart(s),d=l.dataSupport||{alertStates:!1,annotations:!1},p=l.fieldConfigRegistry,f=null!=(n=null==(t=this._dataWithFieldConfig)?void 0:t.series)?n:[],h=a.applyFieldOverrides({data:e.series,fieldConfig:this.state.fieldConfig,fieldConfigRegistry:p,replaceVariables:this.interpolate,theme:i.config.theme2,timeZone:null==(r=e.request)?void 0:r.timezone});return a.compareArrayValues(h,f,a.compareDataFrameStructures)||this._structureRev++,this._dataWithFieldConfig={...e,structureRev:this._structureRev,series:h},this._dataWithFieldConfig.annotations&&(this._dataWithFieldConfig.annotations=a.applyFieldOverrides({data:this._dataWithFieldConfig.annotations,fieldConfig:{defaults:{},overrides:[]},fieldConfigRegistry:p,replaceVariables:this.interpolate,theme:i.config.theme2,timeZone:null==(o=e.request)?void 0:o.timezone})),d.alertStates||(this._dataWithFieldConfig.alertState=void 0),d.annotations||(this._dataWithFieldConfig.annotations=void 0),this._prevData=e,u&&(null==c||c(performance.now())),this._dataWithFieldConfig}clone(e){return super.clone({_pluginInstanceState:void 0,_pluginLoadError:void 0,...e})}buildPanelContext(){const e=(t=this,li.findObject(t,e=>e instanceof ia));var t;const n={eventsScope:e?e.getEventsScope():"__global_",eventBus:e?e.getEventsBus(this):i.getAppEvents(),app:a.CoreApp.Unknown,sync:()=>e?e.state.sync:a.DashboardCursorSync.Off,onSeriesColorChange:this._onSeriesColorChange,onToggleSeriesVisibility:this._onSeriesVisibilityChange,onToggleLegendSort:this._onToggleLegendSort,onInstanceStateChange:this._onInstanceStateChange};return this.state.extendPanelContext&&this.state.extendPanelContext(this,n),n}}function ma(e){try{const t=li.getAncestor(e,ha);if(t){return(t.state.$behaviors||[]).find(e=>e instanceof ua)}}catch(e){}}ha.Component=function({model:e}){var t;const{title:n,options:r,fieldConfig:s,_pluginLoadError:l,displayMode:c,hoverHeader:f,showMenuAlways:m,hoverHeaderOffset:v,menu:y,headerActions:b,subHeader:_,titleItems:w,seriesLimit:M,seriesLimitShowAll:S,description:k,collapsible:L,collapsed:x,_renderCounter:D=0}=e.useState(),[T,{width:O,height:E}]=g.useMeasure(),P=o.useMemo(()=>i.getAppEvents(),[]),C=o.useCallback(()=>{e.state.key&&P.publish(new a.SetPanelAttentionEvent({panelId:e.getPathId()}))},[e,P]),Y=o.useMemo(()=>u.debounce(C,100,{leading:!0,trailing:!1}),[C]),A=o.useMemo(()=>e.getProfiler(),[e]),R=performance.now(),j=F.default.useRef(null);o.useLayoutEffect(()=>{if(A){const e=A.onSimpleRenderStart(R);j.current=e||null}}),o.useEffect(()=>{if(j.current){const e=performance.now(),t=e-R;j.current(e,t),j.current=null}});const I=e.getPlugin(),{dragClass:H,dragClassCancel:N}=function(e){var t,n;const r=li.getLayout(e),a=null==r?void 0:r.isDraggable();if(!r||!a||function(e,t){let n=e;for(;n&&n!==t;){if("isDraggable"in n.state&&!1===n.state.isDraggable)return!0;if("repeatSourceKey"in n.state&&n.state.repeatSourceKey)return!0;n=n.parent}return!1}(e,r))return{dragClass:"",dragClassCancel:""};return{dragClass:null==(t=r.getDragClass)?void 0:t.call(r),dragClassCancel:null==(n=null==r?void 0:r.getDragClassCancel)?void 0:n.call(r)}}(e),z=function(e){var t,n;const r=li.getLayout(e);return null!=(n=null==(t=null==r?void 0:r.getDragHooks)?void 0:t.call(r))?n:{}}(e),V=li.getData(e),W=V.useState(),$=function(e,t,n){return o.useMemo(()=>(null==e?void 0:e.series)&&t&&!n?{...e,series:e.series.slice(0,t)}:e,[e,t,n])}(W.data,M,S),U=e.applyFieldConfig($),B=li.getTimeRange(e).getTimeZone(),q=e.getTimeRange(U),G=F.default.useContext($r);o.useEffect(()=>{V.isInViewChanged&&V.isInViewChanged(G)},[G,V]);const K=e.interpolate(n,void 0,"text"),J=p.useStyles2(Gr);if(!I)return F.default.createElement("div",null,F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.viz-panel-renderer.loading-plugin-panel"},"Loading plugin panel..."));if(!I.panel)return F.default.createElement("div",null,F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.viz-panel-renderer.panel-plugin-has-no-panel-component"},"Panel plugin has no panel component"));const Q=I.panel;V&&V.setContainerWidth&&V.setContainerWidth(Math.round(O));let Z=[];_&&(Array.isArray(_)?Z=Z.concat(_.map(e=>F.default.createElement(e.Component,{model:e,key:`${e.state.key}`}))):Lt(_)?Z.push(F.default.createElement(_.Component,{model:_,key:`${_.state.key}`})):Z.push(_));let X,ee,te=[];w&&(Array.isArray(w)?te=te.concat(w.map(e=>F.default.createElement(e.Component,{model:e,key:`${e.state.key}`}))):Lt(w)?te.push(F.default.createElement(w.Component,{model:w})):te.push(w)),M&&te.push(F.default.createElement(Hr,{key:"series-limit",data:W.data,seriesLimit:M,showAll:S,onShowAllSeries:()=>e.setState({seriesLimitShowAll:!S})})),e.state.$timeRange&&te.push(F.default.createElement(e.state.$timeRange.Component,{model:e.state.$timeRange,key:e.state.key})),U.alertState&&te.push(F.default.createElement(p.Tooltip,{content:null!=(t=U.alertState.state)?t:"unknown",key:`alert-states-icon-${e.state.key}`},F.default.createElement(p.PanelChrome.TitleItem,{className:h.cx({[J.ok]:U.alertState.state===a.AlertState.OK,[J.pending]:U.alertState.state===a.AlertState.Pending,[J.alerting]:U.alertState.state===a.AlertState.Alerting})},F.default.createElement(p.Icon,{name:"alerting"===U.alertState.state?"heart-break":"heart",className:"panel-alert-icon",size:"md"})))),y&&(X=F.default.createElement(y.Component,{model:y})),b&&(ee=Array.isArray(b)?F.default.createElement(F.default.Fragment,null,b.map(e=>F.default.createElement(e.Component,{model:e,key:`${e.state.key}`}))):Lt(b)?F.default.createElement(b.Component,{model:b}):b);const ne=U,re=!V.isDataReadyToDisplay||V.isDataReadyToDisplay(),ae=e.getPanelContext(),ie=e.getLegacyPanelId();return F.default.createElement("div",{className:Br},F.default.createElement("div",{ref:T,className:qr,"data-viz-panel-key":e.state.key},O>0&&E>0&&F.default.createElement(p.PanelChrome,{title:K,description:(null==k?void 0:k.trim())?e.getDescription:void 0,loadingState:ne.state,statusMessage:Ur(ne,l),statusMessageOnClick:e.onStatusMessageClick,width:O,height:E,selectionId:e.state.key,displayMode:c,titleItems:te.length>0?te:void 0,dragClass:H,actions:ee,dragClassCancel:N,padding:I.noPadding?"none":"md",menu:X,onCancelQuery:e.onCancelQuery,onFocus:C,onMouseEnter:C,onMouseMove:Y,subHeaderContent:Z.length?Z:void 0,onDragStart:t=>{var n;null==(n=z.onDragStart)||n.call(z,t,e)},showMenuAlways:m,...L?{collapsible:Boolean(L),collapsed:x,onToggleCollapse:e.onToggleCollapse}:{hoverHeader:f,hoverHeaderOffset:v}},(t,i)=>F.default.createElement(F.default.Fragment,null,F.default.createElement(p.ErrorBoundaryAlert,{dependencies:[I,ne]},F.default.createElement(a.PluginContextProvider,{meta:I.meta},F.default.createElement(p.PanelContextProvider,{value:ae},re&&F.default.createElement(Q,{id:ie,data:ne,title:n,timeRange:q,timeZone:B,options:r,fieldConfig:s,transparent:"transparent"===c,width:t,height:i,renderCounter:D,replaceVariables:e.interpolate,onOptionsChange:e.onOptionsChange,onFieldConfigChange:e.onFieldConfigChange,onChangeTimeRange:e.onTimeRangeChange,eventBus:ae.eventBus}))))))))};class ga{constructor(e){this._variableDependency=e}findAndSubscribeToDrilldowns(e){const t=function(e){var t;for(const n of Yn.values())if(ai(n,null==(t=n.state.datasource)?void 0:t.uid)===e)return n}(e),n=function(e){var t;for(const n of zt.values())if(ai(n,null==(t=n.state.datasource)?void 0:t.uid)===e)return n}(e);let r=!1;this._adhocFiltersVar!==t&&(this._adhocFiltersVar=t,r=!0),this._groupByVar!==n&&(this._groupByVar=n,r=!0),r&&this._updateExplicitDrilldownVariableDependencies()}_updateExplicitDrilldownVariableDependencies(){const e=[];this._adhocFiltersVar&&e.push(this._adhocFiltersVar.state.name),this._groupByVar&&e.push(this._groupByVar.state.name),this._variableDependency.setVariableNames(e)}get adHocFiltersVar(){return this._adhocFiltersVar}get groupByVar(){return this._groupByVar}getFilters(){var e;return this._adhocFiltersVar?[...null!=(e=this._adhocFiltersVar.state.originFilters)?e:[],...this._adhocFiltersVar.state.filters].filter(e=>Tr(e)&&Or(e)):void 0}getGroupByKeys(){return this._groupByVar?this._groupByVar.getApplicableKeys():void 0}cleanup(){this._adhocFiltersVar=void 0,this._groupByVar=void 0}}let va=100;function ya(){return"SQR"+va++}class ba extends Z{constructor(e){super(e),this._dataLayersMerger=new ca,this._variableValueRecorder=new jt,this._results=new s.ReplaySubject(1),this._scopedVars={__sceneObject:Mn(this)},this._isInView=!0,this._bypassIsInView=!1,this._queryNotExecutedWhenOutOfView=!1,this._variableDependency=new Ha(this,{statePaths:["queries","datasource","minInterval"],onVariableUpdateCompleted:this.onVariableUpdatesCompleted.bind(this),onAnyVariableChanged:this.onAnyVariableChanged.bind(this),dependsOnScopes:!0}),this._drilldownDependenciesManager=new ga(this._variableDependency),this.onDataReceived=e=>{const t=a.preProcessPanelData(e,this.state.data);this._resultAnnotations=e.annotations;const n=this._combineDataLayers(t);let r=this.state._hasFetchedData;r||t.state===c.LoadingState.Loading||(r=!0),this.setState({data:n,_hasFetchedData:r}),this._results.next({origin:this,data:n})},this.addActivationHandler(()=>this._onActivate())}getResultsStream(){return this._results}_onActivate(){if(this.isQueryModeAuto()){const e=li.getTimeRange(this),t=this.getClosestExtraQueryProviders();for(const e of t)this._subs.add(e.subscribeToState((t,n)=>{e.shouldRerun(n,t,this.state.queries)&&this.runQueries()}));this.subscribeToTimeRangeChanges(e),this.shouldRunQueriesOnActivate()&&this.runQueries()}return this._dataLayersSub||this._handleDataLayers(),()=>this._onDeactivate()}_handleDataLayers(){const e=li.getDataLayers(this);0!==e.length&&(this._dataLayersSub=this._dataLayersMerger.getMergedStream(e).subscribe(this._onLayersReceived.bind(this)))}_onLayersReceived(e){var t,n,r,i,o;const s=li.getTimeRange(this),{dataLayerFilter:l}=this.state;let c,d=[],p=[];for(const r of e)for(let e of r.data.series)(null==(t=e.meta)?void 0:t.dataTopic)===a.DataTopic.Annotations&&(d=d.concat(e)),(null==(n=e.meta)?void 0:n.dataTopic)===a.DataTopic.AlertStates&&(p=p.concat(e));if((null==l?void 0:l.panelId)&&(d.length>0&&(d=function(e,t){var n;if(!Array.isArray(e)||0===e.length)return e;const r=Array.from({length:e.length},()=>new Set);let a=0;for(const i of e){for(let e=0;e"panelId"===e.name),l=i.fields.find(e=>"source"===e.name);if(l){s&&"dashboard"===l.values[e].type&&(o=[t.panelId,Ht].includes(s.values[e]));const r=l.values[e].filter;if(r){const e=[...null!=(n=r.ids)?n:[],Ht].includes(t.panelId);r.exclude?e&&(o=!1):e||(o=!1)}}o&&r[a].add(e)}a++}const i=[];a=0;for(const t of e){const e=r[a].size,n=[];for(const e of t.fields){const i=[];for(let n=0;n0))for(const e of p){const t=new a.DataFrameView(e);for(const e of t)if(e.panelId===l.panelId){c=e;break}}if(wa(d)&&wa(this._layerAnnotations)&&u.isEqual(c,null==(r=this.state.data)?void 0:r.alertState))return;this._layerAnnotations=d;const f=this.state.data?this.state.data:{...Se,timeRange:s.state.value};this.setState({data:{...f,annotations:[...null!=(i=this._resultAnnotations)?i:[],...d],alertState:null!=c?c:null==(o=this.state.data)?void 0:o.alertState}})}onVariableUpdatesCompleted(){this.isQueryModeAuto()&&this.runQueries()}onAnyVariableChanged(e){this._drilldownDependenciesManager.adHocFiltersVar!==e&&this._drilldownDependenciesManager.groupByVar!==e&&this.isQueryModeAuto()&&(e instanceof Sr&&this._isRelevantAutoVariable(e)&&this.runQueries(),e instanceof Yr&&this._isRelevantAutoVariable(e)&&this.runQueries())}_isRelevantAutoVariable(e){var t,n;const r=null!=(t=this.state.datasource)?t:_a(this.state.queries);return"auto"===e.state.applyMode&&(null==r?void 0:r.uid)===(null==(n=e.state.datasource)?void 0:n.uid)}shouldRunQueriesOnActivate(){return this._variableValueRecorder.hasDependenciesChanged(this)?(fe(),!0):!this.state.data||!!this._isDataTimeRangeStale(this.state.data)}_isDataTimeRangeStale(e){const t=li.getTimeRange(this).state.value,n=e.timeRange;return(t.from.unix()!==n.from.unix()||t.to.unix()!==n.to.unix())&&(fe(),!0)}_onDeactivate(){var e;this._querySub&&(this._querySub.unsubscribe(),this._querySub=void 0),this._dataLayersSub&&(this._dataLayersSub.unsubscribe(),this._dataLayersSub=void 0),null==(e=this._timeSub)||e.unsubscribe(),this._timeSub=void 0,this._timeSubRange=void 0,this._drilldownDependenciesManager.cleanup()}setContainerWidth(e){!this._containerWidth&&e>0?(this._containerWidth=e,this.state.maxDataPointsFromWidth&&!this.state.maxDataPoints&&setTimeout(()=>{this.isActive&&!this.state._hasFetchedData&&this.runQueries()},0)):e>0&&(this._containerWidth=e)}isDataReadyToDisplay(){return Boolean(this.state._hasFetchedData)}subscribeToTimeRangeChanges(e){this._timeSubRange!==e&&(this._timeSub&&this._timeSub.unsubscribe(),this._timeSubRange=e,this._timeSub=e.subscribeToState(()=>{this.runWithTimeRange(e)}))}runQueries(){const e=li.getTimeRange(this);this.isQueryModeAuto()&&this.subscribeToTimeRangeChanges(e),this.runWithTimeRange(e)}getMaxDataPoints(){var e;return this.state.maxDataPoints?this.state.maxDataPoints:this.state.maxDataPointsFromWidth&&null!=(e=this._containerWidth)?e:500}cancelQuery(){var e;null==(e=this._querySub)||e.unsubscribe(),this._dataLayersSub&&(this._dataLayersSub.unsubscribe(),this._dataLayersSub=void 0),this.setState({data:{...this.state.data,state:c.LoadingState.Done}})}async runWithTimeRange(e){var t,n,r;if(!this.state.maxDataPoints&&this.state.maxDataPointsFromWidth&&!this._containerWidth)return;if(this.isQueryModeAuto()&&!this._isInView&&!this._bypassIsInView)return void(this._queryNotExecutedWhenOutOfView=!0);if(this._queryNotExecutedWhenOutOfView=!1,this._dataLayersSub||this._handleDataLayers(),null==(t=this._querySub)||t.unsubscribe(),this._variableDependency.hasDependencyInLoadingState())return fe(),void this.setState({data:{...null!=(n=this.state.data)?n:Se,state:c.LoadingState.Loading}});this._variableValueRecorder.recordCurrentDependencyValuesForSceneObject(this);const{queries:a}=this.state;if(null==a?void 0:a.length)try{const t=null!=(r=this.state.datasource)?r:_a(a),n=await Rt(t,this._scopedVars);this._drilldownDependenciesManager.findAndSubscribeToDrilldowns(n.uid);const o=i.getRunRequest(),{primary:l,secondaries:u,processors:c}=this.prepareRequests(e,n);fe(0,0,this.state.key);let d=o(n,l);if(u.length>0){const e=u.map(e=>o(n,e)),t=(e=>t=>t.pipe(s.mergeMap(([t,...n])=>{const r=n.flatMap(n=>{var r,a;return null!=(a=null==(r=e.get(n.request.requestId))?void 0:r(t,n))?a:s.of(n)});return s.forkJoin([s.of(t),...r])}),s.map(([e,...t])=>{var n;return{...e,series:[...e.series,...t.flatMap(e=>e.series)],annotations:[...null!=(n=e.annotations)?n:[],...t.flatMap(e=>{var t;return null!=(t=e.annotations)?t:[]})]}})))(c);d=s.forkJoin([d,...e]).pipe(t)}const p=ma(this);d=d.pipe(Yt({type:"SceneQueryRunner/runQueries",request:l,origin:this,cancel:()=>this.cancelQuery()},p)),this._querySub=d.subscribe(this.onDataReceived)}catch(e){console.error("PanelQueryRunner Error",e),this.onDataReceived({...Se,...this.state.data,state:c.LoadingState.Error,errors:[i.toDataQueryError(e)]})}else this._setNoDataState()}clone(e){var t;const n=super.clone(e);return this._resultAnnotations&&(n._resultAnnotations=this._resultAnnotations.map(e=>({...e}))),this._layerAnnotations&&(n._layerAnnotations=this._layerAnnotations.map(e=>({...e}))),n._variableValueRecorder=this._variableValueRecorder.cloneAndRecordCurrentValuesForSceneObject(this),n._containerWidth=this._containerWidth,n._results.next({origin:this,data:null!=(t=this.state.data)?t:Se}),n}prepareRequests(e,t){var n;const{minInterval:r,queries:o}=this.state;let s={app:"scenes",requestId:ya(),timezone:e.getTimeZone(),range:e.state.value,interval:"1s",intervalMs:1e3,targets:u.cloneDeep(o),maxDataPoints:this.getMaxDataPoints(),scopedVars:this._scopedVars,startTime:Date.now(),liveStreaming:this.state.liveStreaming,rangeRaw:{from:e.state.from,to:e.state.to},cacheTimeout:this.state.cacheTimeout,queryCachingTTL:this.state.queryCachingTTL,scopes:li.getScopes(this),...Nt(this)};const l=this._drilldownDependenciesManager.getFilters(),c=this._drilldownDependenciesManager.getGroupByKeys();l&&(s.filters=l),c&&(s.groupByKeys=c),s.targets=s.targets.map(e=>{var n;return e.datasource&&(e.datasource.uid===t.uid||(null==(n=t.meta)?void 0:n.mixed)||!i.isExpressionReference||i.isExpressionReference(e.datasource))||(e.datasource=t.getRef()),e});const d=r?ai(this,r):t.interval,p=a.rangeUtil.calculateInterval(e.state.value,s.maxDataPoints,d);s.scopedVars=Object.assign({},s.scopedVars,{__interval:{text:p.interval,value:p.interval},__interval_ms:{text:p.intervalMs.toString(),value:p.intervalMs}}),s.interval=p.interval,s.intervalMs=p.intervalMs;const f=e.state.value;let h=[],m=new Map;for(const e of null!=(n=this.getClosestExtraQueryProviders())?n:[])for(const{req:t,processor:n}of e.getExtraQueries(s)){const e=ya();h.push({...t,requestId:e}),m.set(e,null!=n?n:Ft)}return s.range=f,{primary:s,secondaries:h,processors:m}}_combineDataLayers(e){return this._layerAnnotations&&this._layerAnnotations.length>0&&(e.annotations=(e.annotations||[]).concat(this._layerAnnotations)),this.state.data&&this.state.data.alertState&&(e.alertState=this.state.data.alertState),e}_setNoDataState(){this.state.data!==Se&&this.setState({data:Se})}getClosestExtraQueryProviders(){const e=new Map;return this.parent?(Le(this.parent,t=>(It(t)&&!e.has(t.constructor)&&e.set(t.constructor,t),t.forEachChild(t=>{It(t)&&!e.has(t.constructor)&&e.set(t.constructor,t)}),null)),Array.from(e.values())):[]}isQueryModeAuto(){var e;return"auto"===(null!=(e=this.state.runQueriesMode)?e:"auto")}isInViewChanged(e){fe(0,0,this.state.key),this._isInView=e,e&&this._queryNotExecutedWhenOutOfView&&this.runQueries()}bypassIsInViewChanged(e){fe(0,0,this.state.key),this._bypassIsInView=e,e&&this._queryNotExecutedWhenOutOfView&&this.runQueries()}}function _a(e){var t,n;return null!=(n=null==(t=e.find(e=>null!==e.datasource))?void 0:t.datasource)?n:void 0}function wa(e){if(!e)return!0;for(let t=0;t0)return!1;return!0}function Ma(e,t){return e===t||u.isEqual(e,t)}function Sa(e){try{return JSON.stringify(e,(()=>{const e=new WeakSet;return(t,n)=>{if("object"==typeof n&&null!==n){if(e.has(n))return;e.add(n)}return n}})())}catch(e){console.error(e)}return""}function ka(e){return e.map(e=>function(e){var t,n;let r="",a=e.operator;"=|"===a?(a="=~",r=null==(t=e.values)?void 0:t.map(xa).join("|")):"!=|"===a?(a="!~",r=null==(n=e.values)?void 0:n.map(xa).join("|")):r="=~"===a||"!~"===a?xa(e.value):La(e.value);return`${e.key}${a}"${r}"`}(e)).join(",")}function La(e){return e.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/"/g,'\\"')}function xa(e){return La(e.replace(Da,"\\$&"))}const Da=/[*+?()|\\.\[\]{}^$]/g;function Ta(e){var t;const n=li.findAllObjects(e.getRoot(),e=>e instanceof ba),r=li.interpolate(e,null==(t=e.state.datasource)?void 0:t.uid),a=function(e){const t={};for(const n of e)n.state.key&&(n.state.key in t||(t[n.state.key]=[]),t[n.state.key].push(n));return Object.values(t).flatMap(e=>{const t=e.filter(e=>e.isActive);return 0===t.length&&1===e.length?e:t})}(n).filter(t=>{var n;return li.interpolate(e,null==(n=t.state.datasource)?void 0:n.uid)===r});if(0===a.length)return[];const i=[];return a.forEach(t=>{i.push(...t.state.queries.filter(t=>{if(!t.datasource||!t.datasource.uid)return!0;return li.interpolate(e,t.datasource.uid)===r}))}),i}function Oa(e){return null==e?"":/\|/g[Symbol.replace](e,"__gfp__")}function Ea(e){return null==e?"":/,/g[Symbol.replace](e,"__gfc__")}function Pa(e){return function(e){return null==e?"":/#/g[Symbol.replace](e,"__gfh__")}(Oa(e))}function Ca(e){return null==e?"":(e=/__gfp__/g[Symbol.replace](e,"|"),e=/__gfc__/g[Symbol.replace](e,","),e=/__gfh__/g[Symbol.replace](e,"#"))}function Ya(e,t){return t&&e!==t?[e,t].map(Ea).join(","):Ea(e)}function Aa(e){return Array.isArray(e)?e:e.data}function Ra(e){return!Array.isArray(e)&&Boolean(e.error)}function ja(e){const t=[],n=new Map;for(const r of e){const e=r.group;if(e){let a=n.get(e);a||(a=[],n.set(e,a),t.push({label:e,options:a})),a.push(r)}else t.push(r)}return t}function Ia(e){return{disabledPill:h.css({background:e.colors.action.selected,color:e.colors.text.disabled,border:0,"&:hover":{background:e.colors.action.selected}}),strikethrough:h.css({textDecoration:"line-through"})}}class Fa extends Z{constructor(e){super({type:"constant",value:"",name:"",...e,skipUrlSync:!0}),this._variableDependency=new Ha(this,{statePaths:["value"]}),this._prevValue=""}validateAndUpdate(){const e=this.getValue();return this._prevValue!==e&&(this._prevValue=e,this.publishEvent(new Ve(this),!0)),s.of({})}getValue(){return"string"==typeof this.state.value?li.interpolate(this,this.state.value):this.state.value}}class Ha{constructor(e,t){this._sceneObject=e,this._options=t,this._dependencies=new Set,this._isWaitingForVariables=!1,this.scanCount=0,this._statePaths=t.statePaths,this._options.handleTimeMacros&&this.handleTimeMacros()}hasDependencyOn(e){return this.getNames().has(e)}variableUpdateCompleted(e,t){var n,r,i,o;const s=this.getNames(),l=(s.has(e.state.name)||s.has(a.DataLinkBuiltInVars.includeVars))&&t;fe(0,0,e.state.name,this._isWaitingForVariables),null==(r=(n=this._options).onAnyVariableChanged)||r.call(n,e),this._options.onVariableUpdateCompleted&&(this._isWaitingForVariables||l)&&this._options.onVariableUpdateCompleted(),l&&(null==(o=(i=this._options).onReferencedVariableValueChanged)||o.call(i,e),this._options.onReferencedVariableValueChanged||this._options.onVariableUpdateCompleted||this._sceneObject.forceRender())}hasDependencyInLoadingState(){return this._isWaitingForVariables=li.hasVariableDependencyInLoadingState(this._sceneObject),this._isWaitingForVariables}getNames(){const e=this._state,t=this._state=this._sceneObject.state;return(!e||t!==e&&(!this._statePaths||this._statePaths.some(n=>"*"===n||t[n]!==e[n])))&&this.scanStateForDependencies(t),this._dependencies}setVariableNames(e){this._options.variableNames=e,this.scanStateForDependencies(this._state)}setPaths(e){this._statePaths=e}scanStateForDependencies(e){if(this._dependencies.clear(),this.scanCount++,this._options.variableNames)for(const e of this._options.variableNames)this._dependencies.add(e);if(this._options.dependsOnScopes&&this._dependencies.add(Xe),this._statePaths)for(const t of this._statePaths){if("*"===t){this.extractVariablesFrom(e);break}{const n=e[t];n&&this.extractVariablesFrom(n)}}}extractVariablesFrom(e){Qe.lastIndex=0;const t=("string"!=typeof e?Sa(e):e).matchAll(Qe);if(t)for(const e of t){const[,t,n,,r]=e,a=t||n||r;this._dependencies.add(a)}}handleTimeMacros(){this._sceneObject.addActivationHandler(()=>{const e=li.getTimeRange(this._sceneObject).subscribeToState((e,t)=>{const n=this.getNames(),r=n.has("__from"),a=n.has("__to"),i=n.has("__timezone");if(e.value!==t.value)if(r){const t=new Fa({name:"__from",value:e.from});this.variableUpdateCompleted(t,!0)}else if(a){const t=new Fa({name:"__to",value:e.to});this.variableUpdateCompleted(t,!0)}if(e.timeZone!==t.timeZone&&i){const t=new Fa({name:"__timezone",value:e.timeZone});this.variableUpdateCompleted(t,!0)}});return()=>e.unsubscribe()})}}const Na=e=>Boolean(e.metricFindQuery)&&!Boolean(e.variables),za=e=>{if(!e.variables)return!1;if(e.variables.getType()!==a.VariableSupportType.Standard)return!1;const t=e.variables;return"toDataQuery"in t&&Boolean(t.toDataQuery)},Va=e=>{if(!e.variables)return!1;if(e.variables.getType()!==a.VariableSupportType.Custom)return!1;const t=e.variables;return"query"in t&&"editor"in t&&Boolean(t.query)&&Boolean(t.editor)},Wa=e=>!!e.variables&&e.variables.getType()===a.VariableSupportType.Datasource;class $a{constructor(e,t=i.getRunRequest()){this.datasource=e,this._runRequest=t}getTarget(e){if(za(this.datasource))return this.datasource.variables.toDataQuery(function(e){var t;const n=null!=(t=e.state.query)?t:"";if("string"==typeof n)return{query:n,refId:`variable-${e.state.name}`};if(null==n.refId)return{...n,refId:`variable-${e.state.name}`};return e.state.query}(e));throw new Error("Couldn't create a target with supplied arguments.")}runRequest(e,t){return za(this.datasource)?this.datasource.variables.query?this._runRequest(this.datasource,t,this.datasource.variables.query.bind(this.datasource.variables)):this._runRequest(this.datasource,t):Ga()}}class Ua{constructor(e){this.datasource=e}getTarget(e){if(Na(this.datasource))return e.state.query;throw new Error("Couldn't create a target with supplied arguments.")}runRequest({variable:e,searchFilter:t},n){return Na(this.datasource)?s.from(this.datasource.metricFindQuery(e.state.query,{...n,variable:{name:e.state.name,type:e.state.type},searchFilter:t})).pipe(s.mergeMap(e=>{if(!e||!e.length)return Ga();const t=e;return s.of({series:t,state:a.LoadingState.Done,timeRange:n.range})})):Ga()}}class Ba{constructor(e,t=i.getRunRequest()){this.datasource=e,this._runRequest=t}getTarget(e){if(Va(this.datasource))return e.state.query;throw new Error("Couldn't create a target with supplied arguments.")}runRequest(e,t){return Va(this.datasource)?this.datasource.variables.query?this._runRequest(this.datasource,t,this.datasource.variables.query.bind(this.datasource.variables)):this._runRequest(this.datasource,t):Ga()}}class qa{constructor(e,t=i.getRunRequest()){this.datasource=e,this._runRequest=t}getTarget(e){var t;if(Wa(this.datasource))return"string"==typeof e.state.query?e.state.query:{...e.state.query,refId:null!=(t=e.state.query.refId)?t:"variable-query"};throw new Error("Couldn't create a target with supplied arguments.")}runRequest(e,t){return Wa(this.datasource)?this._runRequest(this.datasource,t):Ga()}}function Ga(){return s.of({state:a.LoadingState.Done,series:[],timeRange:a.getDefaultTimeRange()})}let Ka=function(e){if(za(e))return new $a(e,i.getRunRequest());if(Na(e))return new Ua(e);if(Va(e))return new Ba(e);if(Wa(e))return new qa(e);throw new Error(`Couldn't create a query runner for datasource ${e.type}`)};const Ja=(e,t)=>{const n=[];let r=null;t.lastIndex=0;do{r=t.exec(e),r&&n.push(r)}while(t.global&&r&&""!==r[0]&&void 0!==r[0]);return n},Qa=(e,t)=>{if(t===a.VariableSort.disabled)return e;switch(t){case a.VariableSort.alphabeticalAsc:e=u.sortBy(e,"label");break;case a.VariableSort.alphabeticalDesc:e=u.sortBy(e,"label").reverse();break;case a.VariableSort.numericalAsc:e=u.sortBy(e,Za);break;case a.VariableSort.numericalDesc:e=(e=u.sortBy(e,Za)).reverse();break;case a.VariableSort.alphabeticalCaseInsensitiveAsc:e=u.sortBy(e,e=>u.toLower(e.label));break;case a.VariableSort.alphabeticalCaseInsensitiveDesc:e=(e=u.sortBy(e,e=>u.toLower(e.label))).reverse();break;case a.VariableSort.naturalAsc:e=ei(e);break;case a.VariableSort.naturalDesc:e=(e=ei(e)).reverse()}return e};function Za(e){if(!e.label)return-1;const t=e.label.match(/.*?(\d+).*/);return!t||t.length<2?-1:parseInt(t[1],10)}const Xa=new Intl.Collator(void 0,{sensitivity:"accent",numeric:!0});function ei(e){return e.slice().sort((e,t)=>Xa.compare(e.label,t.label))}function ti(e,t){return e=>e.pipe(s.map(e=>{const t=e.series;if(!t||!t.length)return[];if(function(e){if(!e)return!1;if(!e.length)return!0;const t=e[0];if(a.isDataFrame(t))return!1;for(const e in t){if(!t.hasOwnProperty(e))continue;const n=t[e];if(null!==n&&"string"!=typeof n&&"number"!=typeof n)continue;const r=e.toLowerCase();if("text"===r||"value"===r)return!0}return!1}(t))return t;if(0===t[0].fields.length)return[];const n=function(e){const t=-1===e.value&&-1===e.text;if(!e.properties.length)throw new Error("Couldn't find any field of type string in the results");t&&(e.value=e.properties[0].index,e.text=e.properties[0].index);-1===e.value&&-1!==e.text&&(e.value=e.text);-1===e.text&&-1!==e.value&&(e.text=e.value);return e}(function(e){const t={value:-1,text:-1,expandable:-1,properties:[]};for(const n of a.getProcessedDataFrames(e))for(let r=0;r-1!==n?e.fields[n].values.get(t):void 0,i=a(n.value),o=a(n.text),s=a(n.expandable),l={};for(const e of n.properties)l[e.name]=a(e.index);const u={value:i,text:o,properties:l};void 0!==s&&(u.expandable=Boolean(s)),r.push(u)}return r}))}class ni extends gt{constructor(e){super({type:"query",name:"",value:"",text:"",options:[],datasource:null,regex:"",query:"",regexApplyTo:"value",refresh:a.VariableRefresh.onDashboardLoad,sort:a.VariableSort.disabled,...e}),this._variableDependency=new Ha(this,{statePaths:["regex","regexApplyTo","query","datasource"]}),this.onSearchChange=e=>{Sa(this.state.query).indexOf(Ze)>-1&&this._updateOptionsBasedOnSearchFilter(e)},this._updateOptionsBasedOnSearchFilter=u.debounce(async e=>{const t=await s.lastValueFrom(this.getValueOptions({searchFilter:e}));this.setState({options:t,loading:!1})},400)}getValueOptions(e){return this.state.query?(this.setState({loading:!0,error:null}),s.from(Rt(this.state.datasource,{__sceneObject:Mn(this)})).pipe(s.mergeMap(t=>{const n=Ka(t),r=n.getTarget(this),i=this.getRequest(r,e.searchFilter);return n.runRequest({variable:this,searchFilter:e.searchFilter},i).pipe(Yt({type:"QueryVariable/getValueOptions",request:i,origin:this}),s.filter(e=>e.state===a.LoadingState.Done||e.state===a.LoadingState.Error),s.take(1),s.mergeMap(e=>e.state===a.LoadingState.Error?s.throwError(()=>e.error):s.of(e)),ti(),s.mergeMap(e=>{let t="";this.state.regex&&(t=li.interpolate(this,this.state.regex,void 0,"regex"));let n=function({variableRegEx:e,variableRegexApplyTo:t,sort:n,metricNames:r}){var i,o,s,l,c,d,p,f,h,m;let g,v=[];e&&(g=a.stringToJsRegex(e));for(let e=0;ee.groups&&e.groups.value),r=e.find(e=>e.groups&&e.groups.text),i=e.find(e=>e.length>1),o=e.length>1&&i;if(n||r)y=null!=(p=null==(c=null==n?void 0:n.groups)?void 0:c.value)?p:null==(d=null==r?void 0:r.groups)?void 0:d.text,a=null!=(m=null==(f=null==r?void 0:r.groups)?void 0:f.text)?m:null==(h=null==n?void 0:n.groups)?void 0:h.value;else{if(o){for(let t=0;t!e.find(e=>e.value===t.value)),"after"===this.state.staticOptionsOrder?n.push(...e):"sorted"===this.state.staticOptionsOrder?n=Qa(n.concat(e),this.state.sort):n.unshift(...e)}return s.of(n)}),s.catchError(e=>e.cancelled?s.of([]):s.throwError(()=>e)))}))):s.of([])}getRequest(e,t){const n={__sceneObject:Mn(this)};t&&(n.__searchFilter={value:t,text:t});const r=li.getTimeRange(this).state.value;return{app:a.CoreApp.Dashboard,requestId:l.v4(),timezone:"",range:r,interval:"",intervalMs:0,targets:[e],scopedVars:n,startTime:Date.now()}}}function ri(e){var t;return null!=(t=Le(e,e=>e.state.$data))?t:Fe}function ai(e,t,n,r,a){return""===t||null==t?"":kt(e,t,n,r,a)}function ii(e,t,n,r){if(t(e))return e;let a=null;return e.forEachChild(e=>{if(e===n)return;let r=ii(e,t);return r?(a=r,!1):void 0}),a||(r&&e.parent?ii(e.parent,t,e,!0):null)}function oi(e,t){return ii(e,t,void 0,!0)}function si(e,t){const n=[];return e.forEachChild(e=>{t(e)&&n.push(e),n.push(...si(e,t))}),n}ni.Component=({model:e})=>F.default.createElement(hn,{model:e});const li={getVariables:function(e){var t;return null!=(t=Le(e,e=>e.state.$variables))?t:Ne},getData:ri,getTimeRange:ze,getLayout:function(e){const t=Le(e,e=>function(e){return"isDraggable"in e}(e)?e:void 0);return t||null},getDataLayers:function(e,t=!1){let n=e,r=[];for(;n;){const e=n.state.$data;if(e){if(Tt(e)?r=r.concat(e):e.state.$data&&Tt(e.state.$data)&&(r=r.concat(e.state.$data)),t&&r.length>0)break;n=n.parent}else n=n.parent}return r},interpolate:ai,lookupVariable:pe,hasVariableDependencyInLoadingState:function(e){if(!e.variableDependency)return!1;for(const t of e.variableDependency.getNames()){if(e instanceof ni&&e.state.name===t){console.warn("Query variable is referencing itself");continue}const n=pe(t,e);if(!n)continue;if(n.parent.isVariableLoadingOrWaitingToUpdate(n))return!0}return!1},findByKey:function(e,t){const n=oi(e,e=>e.state.key===t);if(!n)throw new Error("Unable to find scene with key "+t);return n},findByKeyAndType:function(e,t,n){const r=oi(e,e=>e.state.key===t);if(!r)throw new Error("Unable to find scene with key "+t);if(!(r instanceof n))throw new Error(`Found scene object with key ${t} does not match type ${n.name}`);return r},findObject:oi,findAllObjects:si,getAncestor:function(e,t){let n=e;for(;n;){if(n instanceof t)return n;n=n.parent}if(!n)throw new Error("Unable to find parent of type "+t.name);return n},getQueryController:we,findDescendents:function(e,t){function n(e){return e instanceof t}return si(e,n).filter(n)},getScopes:function(e){const t=pe(Xe,e);if(t instanceof En)return t.state.scopes}},ui=class e extends Z{constructor(e){super({type:"system",value:"",text:"",name:"",...e,skipUrlSync:!0})}getValue(e){return null!=e&&this.state.properties?this.getFieldAccessor(e)(this.state.properties):this.state.value}getFieldAccessor(t){const n=e.fieldAccessorCache[t];return n||(e.fieldAccessorCache[t]=u.property(t))}getValueText(e){if(e&&this.state.properties){const t=this.getFieldAccessor(e)(this.state.properties);if(null!=t)return String(t)}return this.state.text.toString()}isAncestorLoading(){var e,t;const n=null==(t=null==(e=this.parent)?void 0:e.parent)?void 0:t.parent;if(!n)throw new Error("LocalValueVariable requires a parent SceneVariableSet that has an ancestor SceneVariableSet");const r=li.getVariables(n),a=li.lookupVariable(this.state.name,n);return!(!r||!a)&&r.isVariableLoadingOrWaitingToUpdate(a)}};ui.fieldAccessorCache={};let ci=ui;function di(e){let t,n=`panel-${e.getLegacyPanelId()}`,r=e;for(;r;){const e=r.state.$variables;e&&e.state.variables.forEach(e=>{e.state.name!==t&&e instanceof ci&&(n=`${e.state.value}$${n}`,t=e.state.name)}),r=r.parent}return n}var pi=Object.freeze({__proto__:null,ActWhenVariableChanged:class extends Z{constructor(){super(...arguments),this._runningEffect=null,this._variableDependency=new Ha(this,{variableNames:[this.state.variableName],onReferencedVariableValueChanged:this._onVariableChanged.bind(this)})}_onVariableChanged(e){const t=this.state.onChange;this._runningEffect&&(this._runningEffect(),this._runningEffect=null);const n=t(e,this);n&&(this._runningEffect=n)}},CursorSync:ia,LiveNowTimer:la,SceneInteractionTracker:class extends Z{constructor(e={},t){super(e),this.renderProfiler=t,this.isInteractionTracker=!0,t&&(this.renderProfiler=t,this.renderProfiler.setInteractionCompleteHandler(e.onInteractionComplete))}startInteraction(e){var t;this.state.enableInteractionTracking&&(null==(t=this.renderProfiler)||t.startInteraction(e))}stopInteraction(){var e;null==(e=this.renderProfiler)||e.stopInteraction()}},SceneQueryController:class extends Z{constructor(e={},t){super({...e,isRunning:!1}),this.profiler=t,this.isQueryController=!0,be(this,he,new Set),be(this,me,null),this.runningQueriesCount=()=>ye(this,he).size,t&&(this.profiler=t,t.setQueryController(this)),this.addActivationHandler(()=>{var e;return null==(e=this.profiler)||e.setQueryController(this),()=>ye(this,he).clear()})}startProfile(e){var t;this.state.enableProfiling&&(null==(t=this.profiler)||t.startProfile(e))}cancelProfile(){var e;null==(e=this.profiler)||e.cancelProfile()}queryStarted(e){ye(this,he).add(e),this.changeRunningQueryCount(1,e),this.state.isRunning||this.setState({isRunning:!0})}queryCompleted(e){ye(this,he).has(e)&&(ye(this,he).delete(e),this.changeRunningQueryCount(-1),0===ye(this,he).size&&this.setState({isRunning:!1}))}changeRunningQueryCount(e,t){var n,r,a,i,o,s,l;window.__grafanaRunningQueryCount=(null!=(n=window.__grafanaRunningQueryCount)?n:0)+e,1===e&&this.state.enableProfiling&&(t&&(null==(r=this.profiler)||r.addCrumb(`${t.type}`)),(null==(a=this.profiler)?void 0:a.isTailRecording())&&(fe(),null==(i=this.profiler)||i.cancelTailRecording())),this.state.enableProfiling&&(ye(this,me)&&cancelAnimationFrame(ye(this,me)),o=this,s=me,l=requestAnimationFrame(()=>{var e;null==(e=this.profiler)||e.tryCompletingProfile()}),ve(o,s,"write to private field"),s.set(o,l))}cancelAll(){var e;for(const t of ye(this,he).values())null==(e=t.cancel)||e.call(t)}}});function fi(e,t,...n){let r=!1;"undefined"!=typeof window&&(r="true"===localStorage.getItem("grafana.debug.sceneProfiling"))}class hi{constructor(e){this._config=e,this._subscriptions=[]}attachToScene(e){this._sceneObject=e;const t=e.subscribeToState((e,t)=>{this._config.watchStateKey?e[this._config.watchStateKey]!==t[this._config.watchStateKey]&&this._attachProfilersToPanels():this._attachProfilersToPanels()});this._subscriptions.push(t),this._attachProfilersToPanels()}attachProfilerToPanel(e){var t;if(null==(t=e.state.$behaviors)?void 0:t.find(e=>e instanceof ua))return;const n=new ua;e.setState({$behaviors:[...e.state.$behaviors||[],n]})}_attachProfilersToPanels(){if(!this._sceneObject)return;li.findAllObjects(this._sceneObject,e=>e instanceof ha).forEach(e=>{this.attachProfilerToPanel(e)})}cleanup(){this._subscriptions.forEach(e=>e.unsubscribe()),this._subscriptions=[],this._sceneObject=void 0}}var mi,gi,vi,yi,bi,_i=e=>{throw TypeError(e)},wi=(e,t,n)=>t.has(e)||_i("Cannot "+n),Mi=(e,t,n)=>(wi(e,t,"read from private field"),n?n.call(e):t.get(e)),Si=(e,t,n)=>t.has(e)?_i("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ki=(e,t,n,r)=>(wi(e,t,"write to private field"),t.set(e,n),n);class Li{constructor(){Si(this,mi,!1),Si(this,gi,null),Si(this,vi,null),Si(this,yi,0),Si(this,bi,null),this.measureFrames=()=>{if(!Mi(this,mi))return;const e=performance.now(),t=e-Mi(this,yi);if(t>50){const n={duration:t,timestamp:e,method:"manual"};if(Mi(this,gi)&&Mi(this,gi).call(this,n),"undefined"!=typeof performance&&performance.mark&&performance.measure){const n=`long-frame-manual-${e.toFixed(0)}`,r=`${n}-start`,a=`${n}-end`,i=`Long Frame (Manual): ${t.toFixed(1)}ms`;try{performance.mark(r,{startTime:e-t}),performance.mark(a,{startTime:e}),performance.measure(i,r,a)}catch(e){performance.mark(i)}}fi()}ki(this,yi,e),Mi(this,mi)&&ki(this,vi,requestAnimationFrame(this.measureFrames))}}isLoAFAvailable(){return"undefined"!=typeof PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")}start(e){Mi(this,mi)&&(fi(),this.stop()),ki(this,gi,e),ki(this,mi,!0),this.isLoAFAvailable()?this.startLoAFTracking():this.startManualFrameTracking(),fi(0,this.isLoAFAvailable())}stop(){Mi(this,mi)&&(ki(this,mi,!1),ki(this,gi,null),this.stopLoAFTracking(),this.stopManualFrameTracking())}isTracking(){return Mi(this,mi)}startLoAFTracking(){if(!this.isLoAFAvailable())return fi(),void this.startManualFrameTracking();try{ki(this,bi,new PerformanceObserver(e=>{for(const t of e.getEntries()){const e={duration:t.duration,timestamp:t.startTime,method:"loaf"};if(Mi(this,gi)&&Mi(this,gi).call(this,e),"undefined"!=typeof performance&&performance.mark&&performance.measure){const e=`long-frame-${t.startTime.toFixed(0)}`,n=`${e}-start`,r=`${e}-end`,a=`Long Frame (LoAF): ${t.duration.toFixed(1)}ms`;try{performance.mark(n,{startTime:t.startTime}),performance.mark(r,{startTime:t.startTime+t.duration}),performance.measure(a,n,r)}catch(e){performance.mark(a)}}fi(0,(t.duration,t.startTime))}})),Mi(this,bi).observe({type:"long-animation-frame",buffered:!1})}catch(e){fi(0,0),this.startManualFrameTracking()}}stopLoAFTracking(){Mi(this,bi)&&(Mi(this,bi).disconnect(),ki(this,bi,null),fi())}startManualFrameTracking(){ki(this,yi,performance.now()),ki(this,vi,requestAnimationFrame(()=>this.measureFrames()))}stopManualFrameTracking(){Mi(this,vi)&&(cancelAnimationFrame(Mi(this,vi)),ki(this,vi,null),fi())}}mi=new WeakMap,gi=new WeakMap,vi=new WeakMap,yi=new WeakMap,bi=new WeakMap;var xi,Di,Ti,Oi,Ei,Pi,Ci,Yi,Ai,Ri,ji,Ii=e=>{throw TypeError(e)},Fi=(e,t,n)=>t.has(e)||Ii("Cannot "+n),Hi=(e,t,n)=>(Fi(e,t,"read from private field"),n?n.call(e):t.get(e)),Ni=(e,t,n)=>t.has(e)?Ii("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),zi=(e,t,n,r)=>(Fi(e,t,"write to private field"),t.set(e,n),n);function Vi(e,t){const n=performance.getEntriesByType("resource");performance.clearResourceTimings();const r=n.filter(n=>n.startTime>=e&&n.startTime<=t&&n.responseEnd>=e&&n.responseEnd<=t);for(const e of r)performance.measure("Network entry "+e.name,{start:e.startTime,end:e.responseEnd});return function(e){if(0===e.length)return 0;e.sort((e,t)=>e.startTime-t.startTime);let t=0,n=e[0].startTime,r=e[0].responseEnd;for(let a=1;a{const r=performance.now(),a=r-t;if(Hi(this,Pi).push(a),r-e<2e3)Hi(this,xi)&&zi(this,Oi,requestAnimationFrame(()=>this.measureTrailingFrames(e,r,n)));else{const t=function(e){for(let t=e.length-1;t>=0;t--)if(e[t]>30)return e.slice(0,t+1);return[e[0]]}(Hi(this,Pi)),r=t.reduce((e,t)=>e+t,0);fi(0,0,Hi(this,xi)),zi(this,Pi,[]);const a=e-n;t.length>0?(r.toFixed(1),t.length):(r.toFixed(1),t.length),Hi(this,Yi)>0?(Hi(this,Ai).toFixed(1),Hi(this,Yi)):(Hi(this,Ai).toFixed(1),Hi(this,Yi));fi(0,(a+r).toFixed(1)),Hi(this,Ci).stop(),zi(this,Oi,null);const i=n+a+r;if(!Hi(this,xi))return;const o=Vi(n,i);if(Hi(this,xi)){const e={operationId:Hi(this,Ei)||Ot("dashboard-fallback"),interactionType:Hi(this,xi).origin,timestamp:i,duration:a+r,networkDuration:o,longFramesCount:Hi(this,Yi),longFramesTotalTime:Hi(this,Ai),metadata:this.metadata};Ct().notifyDashboardInteractionComplete(e),zi(this,xi,null),zi(this,Oi,null)}}},zi(this,Ci,new Li),this.setupVisibilityChangeHandler(),zi(this,Di,null),e&&(this._panelProfilingManager=new hi(e))}setMetadata(e){this.metadata={...e}}setQueryController(e){this.queryController=e}attachPanelProfiling(e){var t;null==(t=this._panelProfilingManager)||t.attachToScene(e)}attachProfilerToPanel(e){var t;fi(0,0,e.state.key),null==(t=this._panelProfilingManager)||t.attachProfilerToPanel(e)}setInteractionCompleteHandler(e){zi(this,ji,null!=e?e:null)}setupVisibilityChangeHandler(){Hi(this,Ri)||(zi(this,Ri,()=>{document.hidden&&Hi(this,xi)&&(fi(),this.cancelProfile())}),"undefined"!=typeof document&&document.addEventListener("visibilitychange",Hi(this,Ri)))}cleanup(){var e;Hi(this,Ri)&&"undefined"!=typeof document&&(document.removeEventListener("visibilitychange",Hi(this,Ri)),zi(this,Ri,null)),Hi(this,Ci).stop(),this.cancelProfile(),null==(e=this._panelProfilingManager)||e.cleanup()}startProfile(e){document.hidden?fi(0,0):Hi(this,xi)?Hi(this,Oi)?(this.cancelProfile(),this._startNewProfile(e,!0)):this.addCrumb(e):this._startNewProfile(e)}startInteraction(e){Hi(this,Di)&&(fi(0,0,Hi(this,Di)),zi(this,Di,null)),zi(this,Di,{interaction:e,startTs:performance.now()}),fi(0,0)}stopInteraction(){if(!Hi(this,Di))return;const e=performance.now(),t=e-Hi(this,Di).startTs,n=Vi(Hi(this,Di).startTs,e);fi(0,(t.toFixed(1),n.toFixed(1))),Hi(this,ji)&&Hi(this,xi)&&Hi(this,ji).call(this,{origin:Hi(this,Di).interaction,duration:t,networkDuration:n,startTs:Hi(this,Di).startTs,endTs:e}),performance.mark(`${Hi(this,Di).interaction}_start`,{startTime:Hi(this,Di).startTs}),performance.mark(`${Hi(this,Di).interaction}_end`,{startTime:e}),performance.measure(`Interaction_${Hi(this,Di).interaction}`,`${Hi(this,Di).interaction}_start`,`${Hi(this,Di).interaction}_end`),zi(this,Di,null)}getCurrentInteraction(){var e,t;return null!=(t=null==(e=Hi(this,Di))?void 0:e.interaction)?t:null}_startNewProfile(e,t=!1){fi(),zi(this,xi,{origin:e,crumbs:[]}),zi(this,Ti,performance.now()),zi(this,Yi,0),zi(this,Ai,0),zi(this,Ei,Ot("dashboard")),Ct().notifyDashboardInteractionStart({operationId:Hi(this,Ei),interactionType:e,timestamp:Hi(this,Ti),metadata:this.metadata}),Hi(this,Ci).start(e=>{var t,n,r;Hi(this,xi)&&Hi(this,Ti)&&(e.timestampthis.measureTrailingFrames(e,e,t)))}tryCompletingProfile(){var e;fi(0,0,Hi(this,xi)),0===(null==(e=this.queryController)?void 0:e.runningQueriesCount())&&Hi(this,xi)&&(fi(),this.recordProfileTail(performance.now(),Hi(this,Ti)))}isTailRecording(){return Boolean(Hi(this,Oi))}cancelTailRecording(){Hi(this,Oi)&&(cancelAnimationFrame(Hi(this,Oi)),zi(this,Oi,null),fi())}cancelProfile(){Hi(this,xi)&&(fi(0,0,Hi(this,xi)),zi(this,xi,null),Hi(this,Oi)&&(cancelAnimationFrame(Hi(this,Oi)),zi(this,Oi,null)),Hi(this,Ci).stop(),fi(),zi(this,Pi,[]),zi(this,Yi,0),zi(this,Ai,0))}addCrumb(e){Hi(this,xi)&&(Ct().notifyDashboardInteractionMilestone({operationId:Ot("dashboard-milestone"),interactionType:Hi(this,xi).origin,timestamp:performance.now(),milestone:e,metadata:this.metadata}),Hi(this,xi).crumbs.push(e))}},getScenePerformanceTracker:Ct});function $i(e){if("string"==typeof e)return e;if(e){if(e instanceof Error)return e.message;if(i.isFetchError(e)){if(e.data&&e.data.message)return e.data.message;if(e.statusText)return e.statusText}else if(e.hasOwnProperty("message"))return e.message}return JSON.stringify(e)}class Ui extends Z{constructor(e,t=[]){super({isEnabled:!0,...e}),this._results=new s.ReplaySubject(1),this.isDataLayer=!0,this._variableValueRecorder=new jt,this._variableDependency=new Ha(this,{onVariableUpdateCompleted:this.onVariableUpdateCompleted.bind(this),dependsOnScopes:!0}),this._variableDependency.setPaths(t),this.addActivationHandler(()=>this.onActivate())}onActivate(){return this.state.isEnabled&&this.onEnable(),this.shouldRunLayerOnActivate()&&this.runLayer(),this.subscribeToState((e,t)=>{!e.isEnabled&&this.querySub&&(this.querySub.unsubscribe(),this.querySub=void 0,this.onDisable(),this._results.next({origin:this,data:Se}),this.setStateHelper({data:Se})),e.isEnabled&&!t.isEnabled&&(this.onEnable(),this.runLayer())}),()=>{this.onDeactivate()}}onDeactivate(){this.querySub&&(this.querySub.unsubscribe(),this.querySub=void 0),this.onDisable(),this._variableValueRecorder.recordCurrentDependencyValuesForSceneObject(this)}onVariableUpdateCompleted(){this.runLayer()}cancelQuery(){this.querySub&&(this.querySub.unsubscribe(),this.querySub=void 0,this.publishResults(Se))}publishResults(e){this.state.isEnabled&&(this._results.next({origin:this,data:e}),this.setStateHelper({data:e}))}getResultsStream(){return this._results}shouldRunLayerOnActivate(){return!!this.state.isEnabled&&(this._variableValueRecorder.hasDependenciesChanged(this)?(fe(),!0):!this.state.data)}setStateHelper(e){pt(this,e)}}const Bi={prepareAnnotation:e=>{if(u.isString(null==e?void 0:e.query)){const{query:t,...n}=e;return{...n,target:{refId:"annotation_query",query:t},mappings:{}}}return e},prepareQuery:e=>e.target,processEvents:(e,t)=>Ki(t,e.mappings)};const qi=[{key:"time",field:e=>e.fields.find(e=>e.type===a.FieldType.time),placeholder:"time, or the first time field"},{key:"timeEnd",help:"When this field is defined, the annotation will be treated as a range"},{key:"title"},{key:"text",field:e=>e.fields.find(e=>e.type===a.FieldType.string),placeholder:"text, or the first text field"},{key:"tags",split:",",help:"The results will be split on comma (,)"},{key:"id"}],Gi=[...i.config.publicDashboardAccessToken?[{key:"color"},{key:"isRegion"},{key:"source"}]:[],...qi,{key:"userId"},{key:"login"},{key:"email"},{key:"prevState"},{key:"newState"},{key:"data"},{key:"panelId"},{key:"alertId"},{key:"dashboardId"},{key:"dashboardUID"}];function Ki(e,t){return s.of(e).pipe(e=>e.pipe(_.mergeMap(e=>(null==e?void 0:e.length)?1===e.length?s.of(e[0]):s.of(e).pipe(a.standardTransformers.mergeTransformer.operator({},{interpolate:e=>e}),_.map(e=>e[0])):s.of(void 0))),_.map(e=>{if(!(null==e?void 0:e.length))return[];let n=!1,r=!1;const i={};for(const t of e.fields){i[a.getFieldDisplayName(t,e).toLowerCase()]=t}t||(t={});const o=[];for(const s of Gi){const l=t[s.key]||{};if(l.source===a.AnnotationEventFieldSource.Skip)continue;const u={key:s.key,split:s.split};if(l.source===a.AnnotationEventFieldSource.Text)u.text=l.value;else{const t=(l.value||s.key).toLowerCase();u.field=i[t],!u.field&&s.field&&(u.field=s.field(e))}(u.field||u.text)&&(o.push(u),"time"===u.key?n=!0:"text"===u.key&&(r=!0))}if(!n||!r)return console.error("Cannot process annotation fields. No time or text present."),[];const s=[];for(let t=0;t({state:c.LoadingState.Done,events:e})));const d={...Bi,...e.annotations},p={...null==(u=d.getDefaultQuery)?void 0:u.call(d),...n},f=d.prepareAnnotation(p);if(!f)return s.of({state:c.LoadingState.Done,events:[]});const h=d.prepareQuery(f);if(!h)return s.of({state:c.LoadingState.Done,events:[]});const m=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,g=a.rangeUtil.calculateInterval(t.state.value,m,e.interval),v={__interval:{text:g.interval,value:g.interval},__interval_ms:{text:g.intervalMs.toString(),value:g.intervalMs},__annotation:{text:f.name,value:f},__sceneObject:Mn(r)},y={startTime:Date.now(),requestId:"AQ"+Qi++,range:t.state.value,maxDataPoints:m,scopedVars:v,...g,app:a.CoreApp.Dashboard,timezone:t.getTimeZone(),targets:[{...h,refId:"Anno"}],scopes:li.getScopes(r),filters:o,groupByKeys:l,...Nt(r)};return i.getRunRequest()(e,y).pipe(_.mergeMap(e=>{const t=(null==e?void 0:e.series.length)?e.series:e.annotations;return(null==t?void 0:t.length)?(t.forEach(e=>{var t;(null==(t=e.meta)?void 0:t.dataTopic)||(e.meta={...e.meta||{},dataTopic:a.DataTopic.Annotations})}),d.processEvents(f,t).pipe(_.map(t=>({state:e.state,events:t||[]})))):s.of({state:e.state,events:[]})}))}function Xi(e){return"panel-alert"===e.eventType}class eo extends Ui{constructor(e){super({isEnabled:!0,...e},["query"]),this._scopedVars={__sceneObject:Mn(this)},this._drilldownDependenciesManager=new ga(this._variableDependency)}onEnable(){this.publishEvent(new i.RefreshEvent,!0);const e=li.getTimeRange(this);this.setState({query:{...this.state.query,enable:!0}}),this._timeRangeSub=e.subscribeToState(()=>{this.runWithTimeRange(e)})}onDisable(){var e;this.publishEvent(new i.RefreshEvent,!0),this.setState({query:{...this.state.query,enable:!1}}),null==(e=this._timeRangeSub)||e.unsubscribe()}runLayer(){fe();const e=li.getTimeRange(this);this.runWithTimeRange(e)}async runWithTimeRange(e){var t;const{query:n}=this.state;if(n.enable)if(this._drilldownDependenciesManager.findAndSubscribeToDrilldowns(null==(t=n.datasource)?void 0:t.uid),this.querySub&&this.querySub.unsubscribe(),this._variableDependency.hasDependencyInLoadingState())fe();else try{let t=Zi(await this.resolveDataSource(n),e,n,this,this._drilldownDependenciesManager.getFilters(),this._drilldownDependenciesManager.getGroupByKeys()).pipe(Yt({type:"AnnotationsDataLayer/annotationsLoading",origin:this,cancel:()=>this.cancelQuery()}),s.map(e=>this.processEvents(n,e)));this.querySub=t.subscribe(e=>{this.publishResults(e)})}catch(e){this.publishResults({...Se,state:c.LoadingState.Error,errors:[{message:$i(e)}]}),console.error("AnnotationsDataLayer error",e)}}async resolveDataSource(e){return await Rt(e.datasource||void 0,this._scopedVars)}processEvents(e,t){let n=(r=e,o=t.events||[],r.snapshotData&&delete(r=u.cloneDeep(r)).snapshotData,o.map(e=>{var t;const n={...e};switch(n.source=r,n.color=i.config.theme2.visualization.getColorByName(r.iconColor),n.type=r.name,n.isRegion=Boolean(n.timeEnd&&n.time!==n.timeEnd),null==(t=n.newState)?void 0:t.toLowerCase()){case"pending":n.color="yellow";break;case"alerting":n.color="red";break;case"ok":case"normal":n.color="green";break;case"no_data":case"nodata":n.color="gray"}return n}));var r,o;n=function(e){let t=[];const n=u.partition(e,"id"),r=u.groupBy(n[0],"id");return t=u.map(r,e=>e.length>1&&!u.every(e,Xi)?u.find(e,e=>"panel-alert"!==e.eventType):u.head(e)),t=u.concat(t,n[1]),t}(n);const s={...Se,state:t.state},l=a.arrayToDataFrame(n);return l.meta={...l.meta,dataTopic:a.DataTopic.Annotations},s.series=[l],s}}eo.Component=function({model:e}){const{isEnabled:t,isHidden:n}=e.useState(),r=`data-layer-${e.state.key}`;if(n)return null;return F.default.createElement(p.InlineSwitch,{className:to,id:r,value:t,onChange:()=>e.setState({isEnabled:!t})})};const to=h.css({borderBottomLeftRadius:0,borderTopLeftRadius:0});var no=Object.freeze({__proto__:null,AnnotationsDataLayer:eo});class ro extends Z{constructor(e){super(e),this._activationHandler=()=>{const e=this.getAncestorTimeRange();this.ancestorTimeRangeChanged(e.state),this._subs.add(e.subscribeToState(e=>this.ancestorTimeRangeChanged(e)))},this.addActivationHandler(this._activationHandler)}getAncestorTimeRange(){if(!this.parent||!this.parent.parent)throw new Error(typeof this+" must be used within $timeRange scope");return li.getTimeRange(this.parent.parent)}getTimeZone(){return this.getAncestorTimeRange().getTimeZone()}onTimeRangeChange(e){this.getAncestorTimeRange().onTimeRangeChange(e)}onTimeZoneChange(e){this.getAncestorTimeRange().onTimeZoneChange(e)}onRefresh(){this.getAncestorTimeRange().onRefresh()}}class ao extends Z{constructor(){super({})}}function io({layer:e}){var t,n;const r=`data-layer-${e.state.key}`,{data:a,isHidden:i}=e.useState(),o=Boolean(a&&a.state===c.LoadingState.Loading);return i?null:F.default.createElement("div",{className:oo},F.default.createElement(Rn,{htmlFor:r,isLoading:o,onCancel:()=>{var t;return null==(t=e.cancelQuery)?void 0:t.call(e)},label:e.state.name,description:e.state.description,error:null==(n=null==(t=e.state.data)?void 0:t.errors)?void 0:n[0].message}),F.default.createElement(e.Component,{model:e}))}ao.Component=function({model:e}){const t=li.getDataLayers(e,!0);if(0===t.length)return null;return F.default.createElement(F.default.Fragment,null,t.map(e=>F.default.createElement(io,{layer:e,key:e.state.key})))};const oo=h.css({display:"flex"});class so extends Z{}function lo({variable:e,layout:t,showAlways:n,hideLabel:r}){return X(e,{shouldActivateOrKeepAlive:!0}).hide!==a.VariableHide.hideVariable||n?"vertical"===t?F.default.createElement("div",{className:po,"data-testid":f.selectors.pages.Dashboard.SubMenu.submenuItem},F.default.createElement(uo,{variable:e,layout:t,hideLabel:r}),F.default.createElement(e.Component,{model:e})):F.default.createElement("div",{className:co,"data-testid":f.selectors.pages.Dashboard.SubMenu.submenuItem},F.default.createElement(uo,{variable:e,hideLabel:r}),F.default.createElement(e.Component,{model:e})):e.UNSAFE_renderAsHidden?F.default.createElement(e.Component,{model:e}):null}function uo({variable:e,layout:t,hideLabel:n}){var r;const{state:i}=e;if(e.state.hide===a.VariableHide.hideLabel||n)return null;const o=`var-${i.key}`,s=i.label||i.name;return F.default.createElement(Rn,{htmlFor:o,isLoading:i.loading,onCancel:()=>{var t;return null==(t=e.onCancel)?void 0:t.call(e)},label:s,error:i.error,layout:t,description:null!=(r=i.description)?r:void 0})}so.Component=function({model:e}){const t=li.getVariables(e).useState();return F.default.createElement(F.default.Fragment,null,t.variables.map(t=>F.default.createElement(lo,{key:t.state.key,variable:t,layout:e.state.layout})))};const co=h.css({display:"flex","> :nth-child(2)":h.css({borderTopLeftRadius:0,borderBottomLeftRadius:0})}),po=h.css({display:"flex",flexDirection:"column"});class fo extends Z{}fo.Component=function({model:e}){const t=li.lookupVariable(e.state.variableName,e);if(!t)return null;return F.default.createElement(lo,{key:t.state.key,variable:t,layout:e.state.layout,showAlways:!0})};class ho extends Z{constructor(e){super(e),this._variablesToUpdate=new Set,this._updating=new Map,this._variableValueRecorder=new jt,this._variableDependency=new go(this._handleParentVariableUpdatesCompleted.bind(this)),this._onActivate=()=>{const e=li.getTimeRange(this);this._subs.add(this.subscribeToEvent(Ve,e=>this._handleVariableValueChanged(e.payload))),this._subs.add(e.subscribeToState(()=>{this._refreshTimeRangeBasedVariables()})),this._subs.add(this.subscribeToState(this._onStateChanged)),this._checkForVariablesThatChangedWhileInactive();for(const e of this.state.variables)this._variableNeedsUpdate(e)&&this._variablesToUpdate.add(e);return this._updateNextBatch(),this._onDeactivate},this._onDeactivate=()=>{var e;for(const t of this._updating.values())null==(e=t.subscription)||e.unsubscribe();for(const e of this.state.variables)this._variablesToUpdate.has(e)||this._updating.has(e)||this._variableValueRecorder.recordCurrentValue(e);this._variablesToUpdate.clear(),this._updating.clear()},this._onStateChanged=(e,t)=>{const n=this._variablesToUpdate.size;for(const n of t.variables)if(!e.variables.includes(n)){const e=this._updating.get(n);(null==e?void 0:e.subscription)&&e.subscription.unsubscribe(),this._updating.delete(n),this._variablesToUpdate.delete(n)}for(const n of e.variables)t.variables.includes(n)||this._variableNeedsUpdate(n)&&this._variablesToUpdate.add(n);0===n&&this._variablesToUpdate.size>0&&this._updateNextBatch()},this.addActivationHandler(this._onActivate)}getByName(e){return this.state.variables.find(t=>t.state.name===e)}_refreshTimeRangeBasedVariables(){for(const e of this.state.variables)"refresh"in e.state&&e.state.refresh===a.VariableRefresh.onTimeRangeChanged&&this._variablesToUpdate.add(e);this._updateNextBatch()}_checkForVariablesThatChangedWhileInactive(){if(this._variableValueRecorder.hasValues())for(const e of this.state.variables)this._variableValueRecorder.hasValueChanged(e)&&(mo(e,"Changed while in-active"),this._addDependentVariablesToUpdateQueue(e))}_variableNeedsUpdate(e){return!e.isLazy&&(!!e.validateAndUpdate&&(!this._variableValueRecorder.hasRecordedValue(e)||(mo(e,"Skipping updateAndValidate current value valid"),!1)))}_updateNextBatch(){for(const e of this._variablesToUpdate){if(!e.validateAndUpdate){console.error("Variable added to variablesToUpdate but does not have validateAndUpdate");continue}if(this._updating.has(e))continue;if(li.hasVariableDependencyInLoadingState(e))continue;const t={variable:e};this._updating.set(e,t),mo(e,"updateAndValidate started"),t.subscription=e.validateAndUpdate().subscribe({next:()=>this._validateAndUpdateCompleted(e),complete:()=>this._validateAndUpdateCompleted(e),error:t=>this._handleVariableError(e,t)})}}_validateAndUpdateCompleted(e){var t;if(!this._updating.has(e))return;const n=this._updating.get(e);null==(t=null==n?void 0:n.subscription)||t.unsubscribe(),this._updating.delete(e),this._variablesToUpdate.delete(e),mo(e,"updateAndValidate completed"),this._notifyDependentSceneObjects(e),this._updateNextBatch()}cancel(e){var t;const n=this._updating.get(e);null==(t=null==n?void 0:n.subscription)||t.unsubscribe(),this._updating.delete(e),this._variablesToUpdate.delete(e)}_handleVariableError(e,t){var n;const r=this._updating.get(e);null==(n=null==r?void 0:r.subscription)||n.unsubscribe(),this._updating.delete(e),this._variablesToUpdate.delete(e),e.setState({loading:!1,error:t.message}),console.error("SceneVariableSet updateAndValidate error",t),mo(e,"updateAndValidate error",t),this._notifyDependentSceneObjects(e),this._updateNextBatch()}_handleVariableValueChanged(e){this._addDependentVariablesToUpdateQueue(e),this._updating.has(e)||(this._updateNextBatch(),this._notifyDependentSceneObjects(e))}_handleParentVariableUpdatesCompleted(e,t){t&&this._addDependentVariablesToUpdateQueue(e),this._variablesToUpdate.size>0&&0===this._updating.size&&this._updateNextBatch()}_addDependentVariablesToUpdateQueue(e){for(const t of this.state.variables)t.variableDependency&&t.variableDependency.hasDependencyOn(e.state.name)&&(mo(t,"Added to update queue, dependant variable value changed"),this._updating.has(t)&&t.onCancel&&t.onCancel(),t.validateAndUpdate&&this._variablesToUpdate.add(t),t.variableDependency.variableUpdateCompleted(e,!0))}_notifyDependentSceneObjects(e){this.parent&&this._traverseSceneAndNotify(this.parent,e,!0)}_traverseSceneAndNotify(e,t,n){if(this!==e&&e.isActive){if(e.state.$variables&&e.state.$variables!==this){const n=e.state.$variables.getByName(t.state.name);if(null==n?void 0:n.isAncestorLoading)t=n;else if(n)return}e.variableDependency&&e.variableDependency.variableUpdateCompleted(t,n),e.forEachChild(e=>this._traverseSceneAndNotify(e,t,n))}}isVariableLoadingOrWaitingToUpdate(e){return!!e.state.loading||(!(!e.isAncestorLoading||!e.isAncestorLoading())||(!(!this._variablesToUpdate.has(e)&&!this._updating.has(e))||li.hasVariableDependencyInLoadingState(e)))}}function mo(e,t,n){fe(0,e.state.name)}class go{constructor(e){this._variableUpdatesCompleted=e,this._emptySet=new Set}getNames(){return this._emptySet}hasDependencyOn(e){return!1}variableUpdateCompleted(e,t){this._variableUpdatesCompleted(e,t)}}class vo extends gt{constructor(e){super({type:"custom",query:"",valuesFormat:"csv",value:"",text:"",options:[],name:"",...e}),this._variableDependency=new Ha(this,{statePaths:["query"]})}transformCsvStringToOptions(e,t=!0){var n;return(null!=(n=(e=t?li.interpolate(this,e):e).match(/(?:\\,|[^,])+/g))?n:[]).map(e=>{var t;e=e.replace(/\\,/g,",");const n=null!=(t=/^\s*(.+)\s:\s(.+)$/g.exec(e))?t:[];if(3===n.length){const[,e,t]=n;return{label:e.trim(),value:t.trim()}}return{label:e.trim(),value:e.trim()}})}transformJsonToOptions(e){if(!e)return[];const t=JSON.parse(e);if(!Array.isArray(t)||t.some(e=>"object"!=typeof e||null===e))throw new Error("Query must be a JSON array of objects");const n="text",r="value";return t.map(e=>{var t;return{label:null==(t=String(e[n]||e[r]))?void 0:t.trim(),value:String(e[r]).trim(),properties:u.omit(e,[n,r])}})}getValueOptions(e){const t="json"===this.state.valuesFormat?this.transformJsonToOptions(this.state.query):this.transformCsvStringToOptions(this.state.query);return t.length||(this.skipNextValidation=!0),s.of(t)}}vo.Component=({model:e})=>F.default.createElement(hn,{model:e});class yo extends Z{constructor(e){super({type:"switch",value:"false",enabledValue:"true",disabledValue:"false",name:"",...e}),this._prevValue="",this._urlSync=new ke(this,{keys:()=>this.getKeys()})}validateAndUpdate(){const e=this.getValue();return this._prevValue!==e&&(this._prevValue=e,this.publishEvent(new Ve(this),!0)),s.of({})}setValue(e){this.getValue()!==e&&([this.state.enabledValue,this.state.disabledValue].includes(e)?(this.setState({value:e}),this.publishEvent(new Ve(this),!0)):console.error(`Invalid value for switch variable: "${e}". Valid values are: "${this.state.enabledValue}" and "${this.state.disabledValue}".`))}getValue(){return this.state.value}isEnabled(){return this.state.value===this.state.enabledValue}isDisabled(){return this.state.value===this.state.disabledValue}getKey(){return`var-${this.state.name}`}getKeys(){return this.state.skipUrlSync?[]:[this.getKey()]}getUrlState(){return this.state.skipUrlSync?{}:{[this.getKey()]:this.state.value}}updateFromUrl(e){const t=e[this.getKey()];"string"==typeof t&&this.setValue(t)}}function bo(e){return{container:h.css({display:"flex",alignItems:"center",padding:e.spacing(0,1),height:e.spacing(e.components.height.md),borderRadius:e.shape.radius.default,border:`1px solid ${e.components.input.borderColor}`,background:e.colors.background.primary})}}yo.Component=function({model:e}){const t=e.useState(),n=p.useStyles2(bo);return F.default.createElement("div",{className:n.container},F.default.createElement(p.Switch,{id:`var-switch-${t.key}`,value:t.value===t.enabledValue,onChange:n=>{e.setValue(n.currentTarget.checked?t.enabledValue:t.disabledValue)}}))};class _o extends gt{constructor(e){super({type:"datasource",value:"",text:"",options:[],name:"",regex:"",pluginId:"",...e}),this._variableDependency=new Ha(this,{statePaths:["regex"]})}getValueOptions(e){if(!this.state.pluginId)return s.of([]);const t=i.getDataSourceSrv().getList({metrics:!0,variables:!1,pluginId:this.state.pluginId});let n;if(this.state.regex){const e=li.interpolate(this,this.state.regex,void 0,"regex");n=a.stringToJsRegex(e)}const r=[];for(let e=0;e5)return[];for(const a of n){const n=`${e}${a}`;r.push({name:n,children:So(n,t+1)})}return r}function ko(e,t,n){if(n>=t.length)return e;if("*"===t[n])return e;const r=t[n];let a=[],i=[r];r.startsWith("{")&&(i=r.replace(/\{|\}/g,"").split(","));for(const r of e)for(const e of i)if(-1!==e.indexOf("*")){const i=e.replace("*","");new RegExp(`^${i}.*`,"gi").test(r.name)&&(a=a.concat(ko([r],t,n+1)))}else r.name===e&&(a=a.concat(ko(r.children,t,n+1)));return a}function Lo(e){if(0===e.indexOf("value"))return[{name:e,children:[]}];return ko(So("",0),e.split("."),0)}_o.Component=({model:e})=>F.default.createElement(hn,{model:e});class xo extends gt{constructor(e,t=!1){super({type:"custom",name:"Test",value:"Value",text:d.t("grafana-scenes.variables.test-variable.text.text","Text"),query:"Query",options:[],refresh:a.VariableRefresh.onDashboardLoad,updateOptions:!0,...e}),this.completeUpdate=new s.Subject,this.isGettingValues=!0,this.getValueOptionsCount=0,this.isLazy=!1,this._variableDependency=new Ha(this,{statePaths:["query"]}),this.isLazy=t}getValueOptions(e){const{delayMs:t}=this.state;this.getValueOptionsCount+=1;const n=li.getQueryController(this);return new s.Observable(e=>{const r={type:"variable",origin:this,cancel:()=>e.complete()};if(n&&n.queryStarted(r),this.setState({loading:!0}),this.state.throwError)throw new Error(this.state.throwError);const a=li.interpolate(this,this.state.query),i=this.getOptions(a),o=this.completeUpdate.subscribe({next:()=>{const t={issuedQuery:a,loading:!1};this.state.updateOptions&&(t.options=i),this.setState(t),e.next(i),e.complete()}});let s;return t?s=window.setTimeout(()=>this.signalUpdateCompleted(),t):0===t&&this.signalUpdateCompleted(),this.isGettingValues=!0,()=>{o.unsubscribe(),window.clearTimeout(s),this.isGettingValues=!1,this.state.loading&&this.setState({loading:!1}),n&&n.queryCompleted(r)}})}cancel(){const e=Le(this,e=>e instanceof ho?e:void 0);null==e||e.cancel(this)}getOptions(e){return this.state.optionsToReturn?this.state.optionsToReturn:Lo(e).map(e=>({label:e.name,value:e.name}))}signalUpdateCompleted(){this.completeUpdate.next(1)}}function Do({model:e}){const{value:t,key:n,loading:r}=e.useState(),a=o.useCallback(t=>{e.setValue(t.currentTarget.value)},[e]),i=o.useCallback(t=>{"Enter"===t.key&&e.setValue(t.currentTarget.value)},[e]);return F.default.createElement(p.AutoSizeInput,{id:n,placeholder:d.t("grafana-scenes.variables.variable-value-input.placeholder-enter-value","Enter value"),minWidth:15,maxWidth:30,value:t,loading:r,onBlur:a,onKeyDown:i})}xo.Component=({model:e})=>F.default.createElement(hn,{model:e});class To extends Z{constructor(e){super({type:"textbox",value:"",name:"",...e}),this._urlSync=new ke(this,{keys:()=>this.getKeys()})}getValue(){return this.state.value}setValue(e){e!==this.state.value&&(this.setState({value:e}),this.publishEvent(new Ve(this),!0))}getKey(){return`var-${this.state.name}`}getKeys(){return this.state.skipUrlSync?[]:[this.getKey()]}getUrlState(){return this.state.skipUrlSync?{}:{[this.getKey()]:this.state.value}}updateFromUrl(e){const t=e[this.getKey()];"string"==typeof t&&this.setValue(t)}}To.Component=({model:e})=>F.default.createElement(Do,{model:e});class Oo extends Z{constructor(e){super({type:"interval",value:"",intervals:["1m","10m","30m","1h","6h","12h","1d","7d","14d","30d"],name:"",autoStepCount:30,autoMinInterval:"10s",autoEnabled:!1,refresh:c.VariableRefresh.onTimeRangeChanged,...e}),this._onChange=e=>{this.setState({value:e.value}),this.publishEvent(new Ve(this),!0)},this._urlSync=new ke(this,{keys:()=>[this.getKey()]})}getKey(){return`var-${this.state.name}`}getUrlState(){return{[this.getKey()]:this.state.value}}updateFromUrl(e){const t={},n=e[this.getKey()];"string"==typeof n&&(n.startsWith("$__auto_interval_")?t.value=Je:t.value=n),this.setState(t)}getOptionsForSelect(){const{value:e,intervals:t,autoEnabled:n}=this.state;let r=t.map(e=>({value:e,label:e}));return n&&(r=[{value:Je,label:"Auto"},...r]),e&&!r.some(t=>t.value===e)&&r.push({value:e,label:e}),r}getValue(){const{value:e,autoStepCount:t,autoMinInterval:n}=this.state;return e===Je?this.getAutoRefreshInteval(t,n):e}getAutoRefreshInteval(e,t){const n=li.getTimeRange(this).state.value;return a.rangeUtil.calculateInterval(n,e,t).interval}validateAndUpdate(){const{value:e,intervals:t}=this.state;let n=!1;if(e===Je)n=!0;else if(!e&&t.length>0){const e=t[0];this.setState({value:e}),n=!0}return n&&this.publishEvent(new Ve(this),!0),s.of({})}}Oo.Component=({model:e})=>{const{key:t,value:n}=e.useState();return F.default.createElement(p.Select,{id:t,placeholder:d.t("grafana-scenes.variables.interval-variable.placeholder-select-value","Select value"),width:"auto",value:n,tabSelectsValue:!1,options:e.getOptionsForSelect(),onChange:e._onChange})};var Eo,Po,Co=e=>{throw TypeError(e)},Yo=(e,t,n)=>t.has(e)||Co("Cannot "+n),Ao=(e,t,n)=>(Yo(e,t,"read from private field"),n?n.call(e):t.get(e)),Ro=(e,t,n)=>t.has(e)?Co("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),jo=(e,t,n,r)=>(Yo(e,t,"write to private field"),t.set(e,n),n);class Io extends a.BusEventWithPayload{}Io.type="new-scene-object-added";class Fo{constructor(e={},t=i.locationService){this._options=e,this._locationService=t,this._paramsCache=new Ho(t),this._urlKeyMapper=new oe({namespace:e.namespace,excludeFromNamespace:e.excludeFromNamespace})}initSync(e){var t;if(this._subs&&(fe(0,0,null==(t=this._sceneRoot)||t.state.key),this._subs.unsubscribe()),fe(0,0,e.state.key),this._sceneRoot=e,this._subs=new s.Subscription,this._subs.add(e.subscribeToEvent(B,e=>{this.handleSceneObjectStateChanged(e.payload.changedObject)})),this._subs.add(e.subscribeToEvent(Io,e=>{this.handleNewObject(e.payload)})),this._urlKeyMapper.clear(),this._lastLocation=this._locationService.getLocation(),this.handleNewObject(this._sceneRoot),this._options.updateUrlOnInit){const t=le(e,this._urlKeyMapper.getOptions());(function(e,t){for(let n in e)if(!de(t.getAll(n),e[n]))return!0;return!1})(t,this._paramsCache.getParams())&&this._locationService.partial(t,!0)}}cleanUp(e){this._sceneRoot===e&&(fe(),this._subs&&(this._subs.unsubscribe(),this._subs=void 0,fe(0,0,(this._sceneRoot.state.key,e.state.key))),this._sceneRoot=void 0,this._lastLocation=void 0)}handleNewLocation(e){this._sceneRoot&&this._lastLocation!==e&&(fe(),this._lastLocation=e,ue(this._sceneRoot,this._paramsCache.getParams(),this._urlKeyMapper))}handleNewObject(e){this._sceneRoot&&ue(e,this._paramsCache.getParams(),this._urlKeyMapper)}handleSceneObjectStateChanged(e){var t,n;if(!e.urlSync)return;const r=e.urlSync.getUrlState(),a=this._locationService.getSearch(),i={};for(const[t,n]of Object.entries(r)){const r=this._urlKeyMapper.getUniqueKey(t,e);de(a.getAll(r),n)||(i[r]=n)}if(Object.keys(i).length>0){const a=!0!==(null==(n=(t=e.urlSync).shouldCreateHistoryStep)?void 0:n.call(t,r));fe(),this._locationService.partial(i,a),this._lastLocation=this._locationService.getLocation()}}getUrlState(e){return le(e,this._urlKeyMapper.getOptions())}}class Ho{constructor(e){this.locationService=e,Ro(this,Eo),Ro(this,Po)}getParams(){const e=this.locationService.getLocation();return Ao(this,Po)===e||(jo(this,Po,e),jo(this,Eo,new URLSearchParams(e.search))),Ao(this,Eo)}}function No(e,t={}){const n=r.useLocation(),a=ft(),[i,s]=o.useState(!1),l=function(e,t){return o.useMemo(()=>new Fo({updateUrlOnInit:e.updateUrlOnInit,createBrowserHistorySteps:e.createBrowserHistorySteps,namespace:e.namespace,excludeFromNamespace:e.excludeFromNamespace},t),[e.updateUrlOnInit,e.createBrowserHistorySteps,e.namespace,e.excludeFromNamespace,t])}(t,a);return o.useEffect(()=>(l.initSync(e),s(!0),()=>l.cleanUp(e)),[e,l]),o.useEffect(()=>{const e=a.getLocation(),t=e!==n?e:n;e!==n&&fe(),l.handleNewLocation(t)},[e,l,n,a]),i}Eo=new WeakMap,Po=new WeakMap;class zo extends Z{constructor(e){super(e),this.addActivationHandler(()=>{const e=function(e){const t=window.__grafanaSceneContext;return fe(),window.__grafanaSceneContext=e,()=>{window.__grafanaSceneContext===e&&(fe(),window.__grafanaSceneContext=t)}}(this);return()=>{e()}})}}zo.Component=function({model:e}){const{body:t,controls:n}=e.useState(),r=p.useStyles2(Vo);return F.default.createElement("div",{className:r.container},n&&F.default.createElement("div",{className:r.controls},n.map(e=>F.default.createElement(e.Component,{key:e.state.key,model:e}))),F.default.createElement("div",{className:r.body},F.default.createElement(t.Component,{model:t})))};const Vo=e=>({container:h.css({flexGrow:1,display:"flex",gap:e.spacing(2),minHeight:"100%",flexDirection:"column"}),body:h.css({flexGrow:1,display:"flex",gap:e.spacing(1)}),controls:h.css({display:"flex",gap:e.spacing(2),alignItems:"flex-end",flexWrap:"wrap"})});class Wo extends Z{addItem(e){this.setState({items:this.state.items?[...this.state.items,e]:[e]})}setItems(e){this.setState({items:e})}}async function $o(e,t,n,r){var a,o,s,l;const u=null==(a=e.request)?void 0:a.targets;if(!u)return"";const{from:c,to:d}=n,p=null==(o=e.request)?void 0:o.filters,f={__sceneObject:Mn(t)},h=(await Promise.allSettled(u.map(async e=>{var t;const n=await i.getDataSourceSrv().get(e.datasource);return(null==(t=n.interpolateVariablesInQueries)?void 0:t.call(n,[e],null!=f?f:{},p)[0])||e}))).filter(e=>"fulfilled"===e.status).map(e=>e.value).map(e=>{var t;return null!=(t=null==r?void 0:r(e))?t:e}),m=null!=h?h:[];let g=new Set(m.map(e=>{var t;return null==(t=e.datasource)?void 0:t.uid})).size>1?"-- Mixed --":null==(l=null==(s=m.find(e=>{var t;return!!(null==(t=e.datasource)?void 0:t.uid)}))?void 0:s.datasource)?void 0:l.uid;if((null==m?void 0:m.length)&&g&&c&&d){return`/explore?left=${encodeURIComponent(JSON.stringify({datasource:g,queries:m,range:{from:c,to:d}}))}`}return""}Wo.Component=function({model:e}){const{items:t=[]}=e.useState(),n=F.default.useRef(null);o.useEffect(()=>{n.current&&n.current.focus()},[]);const r=e=>e.map(e=>{switch(e.type){case"divider":return F.default.createElement(p.Menu.Divider,{key:e.text});case"group":return F.default.createElement(p.Menu.Group,{key:e.text,label:e.text},e.subMenu?r(e.subMenu):void 0);default:return F.default.createElement(p.Menu.Item,{key:e.text,role:"menuitem",label:e.text,icon:e.iconClassName,childItems:e.subMenu?r(e.subMenu):void 0,url:e.href,onClick:e.onClick,shortcut:e.shortcut,target:e.target||void 0,testId:f.selectors.components.Panels.Panel.menuItems(e.text)})}});return F.default.createElement(p.Menu,{ref:n},r(t))};class Uo extends Z{constructor(e={}){super({options:e})}}Uo.Component=function({model:e}){const{options:t}=e.useState(),{data:n}=li.getData(e).useState(),{from:r,to:a}=li.getTimeRange(e).useState(),{value:o}=g.useAsync(async()=>n?$o(n,e,{from:r,to:a},t.transform):"",[n,e,r,a]),s=i.useReturnToPrevious();if(o)return F.default.createElement(p.LinkButton,{key:"explore",icon:"compass",size:"sm",variant:"secondary",href:o,onClick:()=>{var e;t.returnToPrevious&&s(t.returnToPrevious.title,t.returnToPrevious.href),null==(e=t.onClick)||e.call(t)}},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.viz-panel-explore-button.explore"},"Explore"));return null};class Bo extends Z{}function qo(e){return e instanceof is}Bo.Component=function({model:e}){const{body:t}=e.useState(),n=e.parent;if(n&&(r=n,!(r instanceof ts))&&!qo(n))throw new Error("SceneGridItem must be a child of SceneGridLayout or SceneGridRow");var r;if(!t)return null;return F.default.createElement(t.Component,{model:t})};const Go=h.css({flex:"1 1 auto",position:"relative",zIndex:1,width:"100%"}),Ko=F.default.forwardRef((e,t)=>{var n;const{grid:r,layoutItem:a,index:i,totalCount:o,isLazy:s,style:l,onLoad:u,onChange:c,children:d,...p}=e,f=r.getSceneLayoutChild(a.i),m=null==(n=f.getClassName)?void 0:n.call(f),g=F.default.createElement(f.Component,{model:f,key:f.state.key});return s?F.default.createElement(Vr,{...p,key:f.state.key,"data-griditem-key":f.state.key,className:h.cx(m,e.className),style:l,ref:t},g,d):F.default.createElement("div",{...p,ref:t,key:f.state.key,"data-griditem-key":f.state.key,className:h.cx(m,e.className),style:l},g,d)});function Jo(e,t,n){e.current?t?e.current.classList.add("react-grid-layout--enable-move-animations"):e.current.classList.remove("react-grid-layout--enable-move-animations"):n||setTimeout(()=>Jo(e,t,!0),50)}Ko.displayName="GridItemWrapper";const Qo=F.default.forwardRef(({handleAxis:e,...t},n)=>{const r=p.useStyles2(Zo);return F.default.createElement("div",{ref:n,...t,className:`${r} scene-resize-handle`},F.default.createElement("svg",{width:"16px",height:"16px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},F.default.createElement("path",{d:"M21 15L15 21M21 8L8 21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))});function Zo(e){return h.css({position:"absolute",bottom:0,right:0,zIndex:999,padding:e.spacing(1.5,0,0,1.5),color:e.colors.border.strong,cursor:"se-resize","&:hover":{color:e.colors.text.link},svg:{display:"block"},".react-resizable-hide &":{display:"none"}})}Qo.displayName="ResizeHandle";class Xo extends a.BusEventWithPayload{}Xo.type="scene-grid-layout-drag-start";const es=class e extends Z{constructor(e){super({...e,children:rs(e.children)}),this._skipOnLayoutChange=!1,this._oldLayout=[],this._loadOldLayout=!1,this.onLayoutChange=e=>{if(this._skipOnLayoutChange)this._skipOnLayoutChange=!1;else{this._loadOldLayout&&(e=[...this._oldLayout],this._loadOldLayout=!1);for(const t of e){const e=this.getSceneLayoutChild(t.i),n={x:t.x,y:t.y,width:t.w,height:t.h};ns(e.state,n)||e.setState({...n})}this.setState({children:rs(this.state.children)})}},this.onResizeStop=(e,t,n)=>{this.getSceneLayoutChild(n.i).setState({width:n.w,height:n.h})},this.onDragStart=e=>{this._oldLayout=[...e]},this.onDragStop=(e,t,n)=>{const r=this.getSceneLayoutChild(n.i),a=(e=as(e)).findIndex(e=>e.i===n.i);let i=this.findGridItemSceneParent(e,a-1),o=this.state.children;for(let t=0;t{this.publishEvent(new Xo({evt:e,panel:t}),!0)}}}adjustYPositions(e,t){for(const n of this.state.children)if(n.state.y>e&&n.setState({y:n.state.y+t}),n instanceof is)for(const r of n.state.children)r.state.y>e&&r.setState({y:r.state.y+t})}toggleRow(e){var t,n;if(!e.state.isCollapsed)return e.setState({isCollapsed:!0}),void this.setState({});const r=e.state.children;if(0===r.length)return e.setState({isCollapsed:!1}),void this.setState({});const a=e.state.y,i=(null!=(t=r[0].state.y)?t:a)-(a+1);let o=a;for(const e of r){const t={...e.state};t.y=null!=(n=t.y)?n:a,t.y-=i,t.y!==e.state.y&&e.setState(t),o=Math.max(o,Number(t.y)+Number(t.height))}const s=o-a-1;for(const t of this.state.children)if(t.state.y>a&&this.pushChildDown(t,s),qo(t)&&t!==e)for(const e of t.state.children)e.state.y>a&&this.pushChildDown(e,s);e.setState({isCollapsed:!1}),this.setState({})}ignoreLayoutChange(e){this._skipOnLayoutChange=e}getSceneLayoutChild(e){for(const t of this.state.children){if(t.state.key===e)return t;if(t instanceof is)for(const n of t.state.children)if(n.state.key===e)return n}throw new Error("Scene layout child not found for GridItem")}pushChildDown(e,t){e.setState({y:e.state.y+t})}findGridItemSceneParent(e,t){for(let n=t;n>=0;n--){const t=e[n],r=this.getSceneLayoutChild(t.i);if(r instanceof is)return r.state.isCollapsed?this:r}return this}isRowDropValid(t,n,r){if(t[t.length-1].i===n.i)return!0;const a=this.getSceneLayoutChild(t[r+1].i);return a instanceof is||a.parent instanceof e}moveChildTo(t,n){const r=t.parent;let a=this.state.children;const i=t.clone({key:t.state.key});if(r instanceof is){const e=r.clone();if(e.setState({children:e.state.children.filter(e=>e.state.key!==t.state.key)}),a=a.map(t=>t===r?e:t),n instanceof is){const e=n.clone();e.setState({children:[...e.state.children,i]}),a=a.map(t=>t===n?e:t)}else a=[...a,i]}else if(!(n instanceof e)){a=a.filter(e=>e.state.key!==t.state.key);const e=n.clone();e.setState({children:[...e.state.children,i]}),a=a.map(t=>t===n?e:t)}return a}toGridCell(e){const t=e.state;let n=Number.isFinite(Number(t.x))?Number(t.x):0,r=Number.isFinite(Number(t.y))?Number(t.y):0;const a=Number.isFinite(Number(t.width))?Number(t.width):4,i=Number.isFinite(Number(t.height))?Number(t.height):4;let o=e.state.isDraggable,s=e.state.isResizable;return e instanceof is&&(o=!!e.state.isCollapsed,s=!1),ht(e)&&(o=!1,s=!1),{i:e.state.key,x:n,y:r,h:i,w:a,isResizable:s,isDraggable:o}}buildGridLayout(e,t){let n=[];for(const e of this.state.children)if(n.push(this.toGridCell(e)),e instanceof is&&!e.state.isCollapsed)for(const t of e.state.children)n.push(this.toGridCell(t));return n=as(n),this.state.UNSAFE_fitPanels&&(n=function(e,t){const n=t-32,r=Math.max(...e.map(e=>e.h+e.y))/Math.floor(n/38);return e.map(e=>({...e,y:Math.round(e.y/r)||0,h:Math.round(e.h/r)||1}))}(n,t)),e<768?(this._skipOnLayoutChange=!0,n.map(e=>({...e,w:24}))):(this._skipOnLayoutChange=!1,n)}};es.Component=function({model:e}){const{children:t,isLazy:n,isDraggable:r,isResizable:a}=e.useState(),[i,{width:s,height:l}]=g.useMeasure(),u=o.useRef(null);return o.useEffect(()=>{Jo(u,!!r)},[r]),function(e){if(e.some(e=>void 0===e.state.height||void 0===e.state.width||void 0===e.state.x||void 0===e.state.y))throw new Error("All children must have a size specified")}(t),F.default.createElement("div",{ref:i,className:Go},((t,i)=>{if(!t||!i)return null;const o=e.buildGridLayout(t,i);return F.default.createElement("div",{ref:u,style:{width:`${t}px`,height:"100%"},className:"react-grid-layout"},F.default.createElement(N.default,{width:t,isDraggable:r&&t>768,isResizable:null!=a&&a,containerPadding:[0,0],useCSSTransforms:!0,margin:[8,8],cols:24,rowHeight:30,draggableHandle:`.grid-drag-handle-${e.state.key}`,draggableCancel:".grid-drag-cancel",layout:o,onDragStart:e.onDragStart,onDragStop:e.onDragStop,onResizeStop:e.onResizeStop,onLayoutChange:e.onLayoutChange,isBounded:!1,resizeHandle:F.default.createElement(Qo,null)},o.map((t,r)=>F.default.createElement(Ko,{key:t.i,grid:e,layoutItem:t,index:r,isLazy:n,totalCount:o.length}))))})(s,l))};let ts=es;function ns(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rs(e){return e.forEach(e=>{e instanceof is&&e.setState({children:rs(e.state.children)})}),[...e].sort((e,t)=>e.state.y-t.state.y||e.state.x-t.state.x)}function as(e){return[...e].sort((e,t)=>e.y-t.y||e.x-t.x)}class is extends Z{constructor(e){super({children:e.children||[],isCollapsible:e.isCollapsible||!0,title:e.title||"",...e,x:0,height:1,width:24}),this._variableDependency=new Ha(this,{statePaths:["title"],handleTimeMacros:!0}),this.onCollapseToggle=()=>{this.state.isCollapsible&&this.getGridLayout().toggleRow(this)}}getGridLayout(){const e=this.parent;if(!(e&&e instanceof ts))throw new Error("SceneGridRow must be a child of SceneGridLayout");return e}getUrlState(){return{rowc:this.state.isCollapsed?"1":"0"}}updateFromUrl(e){null!=e.rowc&&e.rowc!==this.getUrlState().rowc&&this.onCollapseToggle()}getPanelCount(e){var t;let n=0;for(const r of e)n+=(null==(t=r.getChildCount)?void 0:t.call(r))||1;return n}}is.Component=function({model:e}){const t=p.useStyles2(os),{isCollapsible:n,isCollapsed:r,title:a,actions:i,children:o}=e.useState(),s=e.getGridLayout(),l=s.getDragClass(),u=s.isDraggable()&&!ht(e),c=e.getPanelCount(o),m=1===c?"panel":"panels";return F.default.createElement("div",{className:h.cx(t.row,r&&t.rowCollapsed)},F.default.createElement("div",{className:t.rowTitleAndActionsGroup},F.default.createElement("button",{onClick:e.onCollapseToggle,className:t.rowTitleButton,"aria-label":r?d.t("grafana-scenes.components.scene-grid-row.expand-row","Expand row"):d.t("grafana-scenes.components.scene-grid-row.collapse-row","Collapse row"),"data-testid":f.selectors.components.DashboardRow.title(li.interpolate(e,a,void 0,"text"))},n&&F.default.createElement(p.Icon,{name:r?"angle-right":"angle-down"}),F.default.createElement("span",{className:t.rowTitle,role:"heading"},li.interpolate(e,a,void 0,"text"))),F.default.createElement("span",{className:h.cx(t.panelCount,r&&t.panelCountCollapsed)},"(",c," ",m,")"),i&&F.default.createElement("div",{className:t.rowActions},F.default.createElement(i.Component,{model:i}))),u&&r&&F.default.createElement("div",{className:h.cx(t.dragHandle,l)},F.default.createElement(p.Icon,{name:"draggabledots"})))};const os=e=>({row:h.css({width:"100%",height:"30px",display:"flex",justifyContent:"space-between",gap:e.spacing(1)}),rowTitleButton:h.css({display:"flex",alignItems:"center",cursor:"pointer",background:"transparent",border:"none",minWidth:0,gap:e.spacing(1)}),rowCollapsed:h.css({borderBottom:`1px solid ${e.colors.border.weak}`}),rowTitle:h.css({fontSize:e.typography.h5.fontSize,fontWeight:e.typography.fontWeightMedium,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",flexGrow:1,minWidth:0}),collapsedInfo:h.css({fontSize:e.typography.bodySmall.fontSize,color:e.colors.text.secondary,display:"flex",alignItems:"center",flexGrow:1}),rowTitleAndActionsGroup:h.css({display:"flex",minWidth:0,"&:hover, &:focus-within":{"& > div":{opacity:1}}}),rowActions:h.css({display:"flex",whiteSpace:"nowrap",opacity:0,transition:"200ms opacity ease-in 200ms","&:hover, &:focus-within":{opacity:1}}),dragHandle:h.css({display:"flex",padding:e.spacing(0,1),alignItems:"center",justifyContent:"flex-end",cursor:"move",color:e.colors.text.secondary,"&:hover":{color:e.colors.text.primary}}),panelCount:h.css({whiteSpace:"nowrap",paddingLeft:e.spacing(2),color:e.colors.text.secondary,fontStyle:"italic",fontSize:e.typography.size.sm,fontWeight:"normal",display:"none",lineHeight:"30px"}),panelCountCollapsed:h.css({display:"inline-block"})});class ss extends Z{constructor(){super(...arguments),this.onToggle=()=>{this.setState({isCollapsed:!this.state.isCollapsed})},this.onRemove=()=>{const e=this.parent;"body"in e.state&&e.setState({body:void 0})}}}ss.Component=function({model:e}){const{title:t,isCollapsed:n,canCollapse:r,canRemove:a,body:i,controls:o}=e.useState(),s=p.useStyles2(os),l=p.useStyles2(ls),u=(null!=o?o:[]).map(e=>F.default.createElement(e.Component,{key:e.state.key,model:e}));a&&u.push(F.default.createElement(p.ToolbarButton,{icon:"times",variant:"default",onClick:e.onRemove,key:"remove-button","aria-label":d.t("grafana-scenes.components.nested-scene-renderer.remove-button-label","Remove scene")}));return F.default.createElement("div",{className:l.wrapper},F.default.createElement("div",{className:h.cx(l.row,n&&l.rowCollapsed)},F.default.createElement("button",{onClick:e.onToggle,className:s.rowTitleButton,"aria-label":n?d.t("grafana-scenes.components.nested-scene-renderer.expand-button-label","Expand scene"):d.t("grafana-scenes.components.nested-scene-renderer.collapse-button-label","Collapse scene")},r&&F.default.createElement(p.Icon,{name:n?"angle-right":"angle-down"}),F.default.createElement("span",{className:s.rowTitle,role:"heading"},li.interpolate(e,t,void 0,"text"))),F.default.createElement("div",{className:l.actions},u)),!n&&F.default.createElement(i.Component,{model:i}))};const ls=e=>({wrapper:h.css({display:"flex",flexDirection:"column",flexGrow:1,gap:e.spacing(1)}),row:h.css({width:"100%",display:"flex",justifyContent:"space-between",gap:e.spacing(1)}),rowCollapsed:h.css({borderBottom:`1px solid ${e.colors.border.weak}`,paddingBottom:e.spacing(1)}),actions:h.css({display:"flex",alignItems:"center",gap:e.spacing(1),justifyContent:"flex-end",flexGrow:1})});class us extends Z{constructor(){super(...arguments),this._variableDependency=new Ha(this,{statePaths:["text"]})}}us.Component=function({model:e}){const{text:t,fontSize:n=20,align:r="left",key:a,spacing:i}=e.useState(),o=p.useTheme2(),s=h.css({fontSize:n,display:"flex",flexGrow:1,alignItems:"center",padding:i?o.spacing(i,0):void 0,justifyContent:r});return F.default.createElement("div",{className:s,"data-testid":a},li.interpolate(e,t))};class cs extends Z{}cs.Component=({model:e})=>{const t=e.useState();return F.default.createElement(p.ToolbarButton,{onClick:t.onClick,icon:t.icon})};class ds extends Z{}ds.Component=({model:e})=>{const t=e.useState();return F.default.createElement("div",{style:{display:"flex"}},t.label&&F.default.createElement(Rn,{label:t.label}),F.default.createElement(p.Input,{defaultValue:t.value,width:8,onBlur:t=>{e.state.onChange(parseInt(t.currentTarget.value,10))}}))};class ps extends Z{constructor(){super(...arguments),this.onZoom=()=>{const e=li.getTimeRange(this),t=function(e,t){const n=e.to.valueOf()-e.from.valueOf(),r=e.to.valueOf()-n/2,i=0===n?3e4:n*t,o=r+i/2,s=r-i/2;return{from:a.toUtc(s),to:a.toUtc(o),raw:{from:a.toUtc(s),to:a.toUtc(o)}}}(e.state.value,2);e.onTimeRangeChange(t)},this.onChangeFiscalYearStartMonth=e=>{li.getTimeRange(this).setState({fiscalYearStartMonth:e})},this.toAbsolute=()=>{const e=li.getTimeRange(this),t=e.state.value,n=a.toUtc(t.from),r=a.toUtc(t.to);e.onTimeRangeChange({from:n,to:r,raw:{from:n,to:r}})},this.onMoveBackward=()=>{const e=li.getTimeRange(this),{state:{value:t}}=e;e.onTimeRangeChange(fs(0,t))},this.onMoveForward=()=>{const e=li.getTimeRange(this),{state:{value:t}}=e;e.onTimeRangeChange(fs(1,t,Date.now()))}}}function fs(e,t,n){const r=t.to.valueOf(),i=t.from.valueOf(),o=(r-i)/2;let s,l;0===e?(s=i-o,l=r-o):(s=i+o,l=r+o,void 0!==n&&l>n&&r{var t;t=e,(a.isDateTime(t.raw.from)||a.isDateTime(t.raw.to))&&c([e,...null!=u?u:[]]),o.onTimeRangeChange(e)},timeZone:s,fiscalYearStartMonth:l.fiscalYearStartMonth,onMoveBackward:e.onMoveBackward,onMoveForward:e.onMoveForward,moveForwardTooltip:v?d.t("grafana-scenes.components.time-picker.move-forward-tooltip","Move {{moveForwardDuration}} forward",{moveForwardDuration:v}):void 0,moveBackwardTooltip:d.t("grafana-scenes.components.time-picker.move-backward-tooltip","Move {{moveBackwardDuration}} backward",{moveBackwardDuration:m}),onZoom:e.onZoom,onChangeTimeZone:o.onTimeZoneChange,onChangeFiscalYearStartMonth:e.onChangeFiscalYearStartMonth,weekStart:l.weekStart,history:u,quickRanges:f})};const hs="grafana.dashboard.timepicker.history";function ms(e){return JSON.parse(e).map(e=>a.rangeUtil.convertRawToRange(e,"utc",void 0,"YYYY-MM-DD HH:mm:ss"))}function gs(e){return JSON.stringify((t=e.map(e=>({from:"string"==typeof e.raw.from?e.raw.from:e.raw.from.toISOString(),to:"string"==typeof e.raw.to?e.raw.to:e.raw.to.toISOString()})),u.uniqBy(t,e=>e.from+e.to).slice(0,4)));var t}const vs=["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"];class ys extends Z{constructor(e){var t,n,r;super({refresh:"",...e,autoValue:void 0,autoEnabled:null==(t=e.autoEnabled)||t,autoMinInterval:null!=(n=e.autoMinInterval)?n:i.config.minRefreshInterval,intervals:(null!=(r=e.intervals)?r:vs).filter(t=>{var n;const r=null!=(n=e.minRefreshInterval)?n:i.config.minRefreshInterval;try{return!r||a.rangeUtil.intervalToMs(t)>=a.rangeUtil.intervalToMs(r)}catch(e){return!1}})}),this._urlSync=new ke(this,{keys:["refresh"]}),this._autoRefreshBlocked=!1,this.onRefresh=()=>{const e=li.getQueryController(this);if(null==e?void 0:e.state.isRunning)return e.cancelAll(),void e.cancelProfile();null==e||e.startProfile(Pe);const t=li.getTimeRange(this);this._intervalTimer&&clearInterval(this._intervalTimer),t.onRefresh(),this.setupIntervalTimer()},this.onIntervalChanged=e=>{this.setState({refresh:e}),this.setupIntervalTimer()},this.setupAutoTimeRangeListener=()=>li.getTimeRange(this).subscribeToState((e,t)=>{e.from===t.from&&e.to===t.to||this.setupIntervalTimer()}),this.calculateAutoRefreshInterval=()=>{var e;const t=li.getTimeRange(this),n=null!=(e=null==window?void 0:window.innerWidth)?e:2e3;return a.rangeUtil.calculateInterval(t.state.value,n,this.state.autoMinInterval)},this.setupIntervalTimer=()=>{var e;const t=li.getTimeRange(this),{refresh:n,intervals:r}=this.state;if((this._intervalTimer||""===n)&&clearInterval(this._intervalTimer),""===n)return;if(n!==p.RefreshPicker.autoOption.value&&r&&!r.includes(n))return;let i;if(null==(e=this._autoTimeRangeListener)||e.unsubscribe(),n===p.RefreshPicker.autoOption.value){const e=this.calculateAutoRefreshInterval();i=e.intervalMs,this._autoTimeRangeListener=this.setupAutoTimeRangeListener(),e.interval!==this.state.autoValue&&this.setState({autoValue:e.interval})}else i=a.rangeUtil.intervalToMs(n);this._intervalTimer=setInterval(()=>{if(this.isTabVisible()){const e=li.getQueryController(this);(null==e?void 0:e.state.isRunning)&&e.cancelProfile(),null==e||e.startProfile(Pe),t.onRefresh()}else this._autoRefreshBlocked=!0},i)},this.addActivationHandler(()=>{this.setupIntervalTimer();const e=()=>{this._autoRefreshBlocked&&"visible"===document.visibilityState&&(this._autoRefreshBlocked=!1,this.onRefresh())};return document.addEventListener("visibilitychange",e),()=>{var t;this._intervalTimer&&clearInterval(this._intervalTimer),document.removeEventListener("visibilitychange",e),null==(t=this._autoTimeRangeListener)||t.unsubscribe()}})}getUrlState(){let e=this.state.refresh;return"string"==typeof e&&0!==e.length||(e=void 0),{refresh:e}}updateFromUrl(e){const{intervals:t}=this.state;let n=e.refresh;"string"==typeof n&&function(e){try{return a.rangeUtil.describeInterval(e).count>0}catch(e){return!1}}(n)&&((null==t?void 0:t.includes(n))?this.setState({refresh:n}):this.setState({refresh:t?bs(n,t):void 0}))}isTabVisible(){return void 0===document.visibilityState||"visible"===document.visibilityState}}function bs(e,t){if(0===t.length)return;const n=a.rangeUtil.intervalToMs(e);let r=t[0];for(let e=1;en)break;r=t[e]}return r}ys.Component=function({model:e}){var t;const{refresh:n,intervals:r,autoEnabled:a,autoValue:i,isOnCanvas:o,primary:s,withText:l}=e.useState(),u=function(e){const t=li.getQueryController(e);if(!t)return!1;return t.useState().isRunning}(e);let c,f,h=n===(null==(t=p.RefreshPicker.autoOption)?void 0:t.value)?i:l?d.t("grafana-scenes.components.scene-refresh-picker.text-refresh","Refresh"):void 0;u&&(c=d.t("grafana-scenes.components.scene-refresh-picker.tooltip-cancel","Cancel all queries"),l&&(h=d.t("grafana-scenes.components.scene-refresh-picker.text-cancel","Cancel")));l&&(f="96px");return F.default.createElement(p.RefreshPicker,{showAutoInterval:a,value:n,intervals:r,tooltip:c,width:f,text:h,onRefresh:()=>{e.onRefresh()},primary:s,onIntervalChanged:e.onIntervalChanged,isLoading:u,isOnCanvas:null==o||o})};const _s=e=>`${e}-compare`,ws="__previousPeriod",Ms="__noPeriod",Ss={label:"Previous period",value:ws},ks={label:"None",value:Ms},Ls=[{label:"Day before",value:"24h"},{label:"Week before",value:"1w"},{label:"Month before",value:"1M"}];class xs extends Z{constructor(e){super({compareOptions:Ls,...e}),this._urlSync=new ke(this,{keys:["compareWith"]}),this._onActivate=()=>{const e=li.getTimeRange(this);this.setState({compareOptions:this.getCompareOptions(e.state.value)}),this._subs.add(e.subscribeToState(e=>{const t=this.getCompareOptions(e.value),n={compareOptions:t};Boolean(this.state.compareWith)&&!t.find(({value:e})=>e===this.state.compareWith)&&(n.compareWith=ws),this.setState(n)}))},this.getCompareOptions=e=>{const t=Math.ceil(e.to.diff(e.from)),n=Ls.findIndex(({value:e})=>a.rangeUtil.intervalToMs(e)>=t);return[ks,Ss,...Ls.slice(n).map(({label:e,value:t})=>({label:e,value:t}))]},this.onCompareWithChanged=e=>{e===Ms?this.onClearCompare():this.setState({compareWith:e})},this.onClearCompare=()=>{this.setState({compareWith:void 0})},this.addActivationHandler(this._onActivate)}getExtraQueries(e){const t=[],n=this.getCompareTimeRange(e.range);if(!n)return t;const r=e.targets.filter(e=>!1!==e.timeRangeCompare);return r.length&&t.push({req:{...e,targets:r,range:n},processor:Ds}),t}shouldRerun(e,t,n){return e.compareWith!==t.compareWith&&void 0!==n.find(e=>!1!==e.timeRangeCompare)}getCompareTimeRange(e){let t,n;if(this.state.compareWith){if(this.state.compareWith===ws){const r=e.to.diff(e.from);t=a.dateTime(e.from).subtract(r),n=a.dateTime(e.to).subtract(r)}else t=a.dateTime(e.from).subtract(a.rangeUtil.intervalToMs(this.state.compareWith)),n=a.dateTime(e.to).subtract(a.rangeUtil.intervalToMs(this.state.compareWith));return{from:t,to:n,raw:{from:t,to:n}}}}getUrlState(){return{compareWith:this.state.compareWith}}updateFromUrl(e){if(!e.compareWith)return;const t=De(e.compareWith);if(t){this.getCompareOptions(li.getTimeRange(this).state.value).find(({value:e})=>e===t)?this.setState({compareWith:t}):this.setState({compareWith:"__previousPeriod"})}}}xs.Component=function({model:e}){var t;const n=p.useStyles2(Ts),{compareWith:r,compareOptions:a,hideCheckbox:i}=e.useState(),[o,s]=F.default.useState(r),l=null!=(t=a.find(({value:e})=>e===o))?t:Ss,u=a.find(({value:e})=>e===r),c=Boolean(u),f=()=>{c?(s(r),e.onClearCompare()):c||e.onCompareWithChanged(l.value)},h=i&&!r?ks:u,m=i||c,g=i&&h?{...h,label:`Comparison: ${h.label}`}:h;return F.default.createElement(p.ButtonGroup,null,!i&&F.default.createElement(p.ToolbarButton,{variant:"canvas",tooltip:d.t("grafana-scenes.components.scene-time-range-compare-renderer.button-tooltip","Enable time frame comparison"),onClick:e=>{e.stopPropagation(),e.preventDefault(),f()}},F.default.createElement(p.Checkbox,{label:" ",value:c,onClick:f}),F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.scene-time-range-compare-renderer.button-label"},"Comparison")),m?F.default.createElement(p.ButtonSelect,{variant:"canvas",value:g,options:a,onChange:t=>{e.onCompareWithChanged(t.value)}}):F.default.createElement(p.ToolbarButton,{className:n.previewButton,disabled:!0,variant:"canvas",isOpen:!1},l.label))};const Ds=(e,t)=>{const n=t.timeRange.from.diff(e.timeRange.from);return t.series.forEach(e=>{e.refId=_s(e.refId||""),e.meta={...e.meta,timeCompare:{diffMs:n,isTimeShiftQuery:!0}}}),s.of(t)};function Ts(e){return{previewButton:h.css({"&:disabled":{border:`1px solid ${e.colors.secondary.border}`,color:e.colors.text.disabled,opacity:1}})}}class Os extends Z{constructor(e){super(e),this.addActivationHandler(()=>{const e=li.getData(this);this._subs.add(e.subscribeToState(e=>{var t;(null==(t=e.data)?void 0:t.state)===a.LoadingState.Done&&this.performRepeat(e.data)})),e.state.data&&this.performRepeat(e.state.data)})}performRepeat(e){const t=[];for(let n=0;n{const{body:t}=e.useState();return F.default.createElement(t.Component,{model:t})};class Es extends Z{constructor(e){super(e),this._variableDependency=new Ha(this,{variableNames:[this.state.variableName],onVariableUpdateCompleted:()=>this.performRepeat()}),this.addActivationHandler(()=>this.performRepeat())}performRepeat(){if(this._variableDependency.hasDependencyInLoadingState())return;const e=li.lookupVariable(this.state.variableName,this);if(!(e instanceof gt))return void console.error("SceneByVariableRepeater: variable is not a MultiValueVariable");const t=function(e){const{value:t,text:n,options:r}=e.state;if(e.hasAllValue())return r;if(Array.isArray(t)&&Array.isArray(n))return t.map((e,t)=>({value:e,label:n[t]}));return[{value:t,label:n}]}(e),n=[];for(const e of t){const t=this.state.getLayoutChild(e);n.push(t)}this.state.body.setState({children:n})}}Es.Component=({model:e})=>{const{body:t}=e.useState();return F.default.createElement(t.Component,{model:t})};class Ps extends Z{constructor(){super({}),this._renderBeforeActivation=!0}}Ps.Component=e=>F.default.createElement("div",{style:{flexGrow:1}});class Cs extends Z{toggleDirection(){this.setState({direction:"row"===this.state.direction?"column":"row"})}isDraggable(){return!1}}Cs.Component=function({model:e,parentState:t}){const{children:n,isHidden:r}=e.useState(),a=function(e,t){return o.useMemo(()=>{var n,r,a,o,s,l,u,c,d,p;const{direction:f="row",wrap:m}=e,g=i.config.theme2,v={};return t?As(v,e,t):(v.display="flex",v.flexGrow=1,v.minWidth=e.minWidth,v.minHeight=e.minHeight),v.flexDirection=f,v.gap="8px",v.flexWrap=m||"nowrap",v.alignContent="baseline",v.minWidth=v.minWidth||0,v.minHeight=v.minHeight||0,v[g.breakpoints.down("md")]={flexDirection:null!=(r=null==(n=e.md)?void 0:n.direction)?r:"column",maxWidth:null!=(o=null==(a=e.md)?void 0:a.maxWidth)?o:"unset",maxHeight:null!=(l=null==(s=e.md)?void 0:s.maxHeight)?l:"unset",height:null!=(c=null==(u=e.md)?void 0:u.height)?c:"unset",width:null!=(p=null==(d=e.md)?void 0:d.width)?p:"unset"},h.css(v)},[t,e])}(e.state,t);if(r)return null;return F.default.createElement("div",{className:a},n.map(t=>{const n=t.Component;return F.default.createElement(n,{key:t.state.key,model:t,parentState:e.state})}))};class Ys extends Z{}function As(e,t,n){var r,a,i;const o=null!=(r=n.direction)?r:"row",{xSizing:s="fill",ySizing:l="fill"}=t;return e.display="flex",e.position="relative",e.flexDirection=o,"column"===o?(t.height?e.height=t.height:e.flexGrow="fill"===l?1:0,t.width?e.width=t.width:e.alignSelf="fill"===s?"stretch":"flex-start"):(t.height?e.height=t.height:e.alignSelf="fill"===l?"stretch":"flex-start",t.width?e.width=t.width:e.flexGrow="fill"===s?1:0,t.wrap&&(e.flexWrap=t.wrap,"nowrap"!==t.wrap&&("row"===o?e.rowGap="8px":e.columnGap="8px"))),e.minWidth=t.minWidth,e.maxWidth=t.maxWidth,e.maxHeight=t.maxHeight,e.minHeight=null!=(a=t.minHeight)?a:n.minHeight,e.height=null!=(i=t.height)?i:n.height,e}Ys.Component=function({model:e,parentState:t}){if(!t)throw new Error("SceneFlexItem must be a child of SceneFlexLayout");const{body:n,isHidden:r}=e.useState(),a=function(e,t){return o.useMemo(()=>{var n,r,a,o,s,l,u,c,d,p;const f=i.config.theme2,m=As({},e,t);return m[f.breakpoints.down("md")]={maxWidth:null!=(r=null==(n=e.md)?void 0:n.maxWidth)?r:"unset",maxHeight:null!=(o=null==(a=e.md)?void 0:a.maxHeight)?o:"unset",height:null!=(u=null==(s=e.md)?void 0:s.height)?u:null==(l=t.md)?void 0:l.height,width:null!=(p=null==(c=e.md)?void 0:c.width)?p:null==(d=t.md)?void 0:d.width},h.css(m)},[e,t])}(e.state,t);if(!n||r)return null;return F.default.createElement("div",{className:a},F.default.createElement(n.Component,{model:n}))};class Rs extends Z{constructor(e){var t,n;super({rowGap:1,columnGap:1,templateColumns:"repeat(auto-fit, minmax(400px, 1fr))",autoRows:null!=(t=e.autoRows)?t:"320px",children:null!=(n=e.children)?n:[],...e})}isDraggable(){return!1}}Rs.Component=function({model:e}){const{children:t,isHidden:n,isLazy:r}=e.useState(),a=(s=e.state,o.useMemo(()=>{var e,t,n,r,a,o,l,u,c,d,p;const f={},m=i.config.theme2;return f.display="grid",f.gridTemplateColumns=s.templateColumns,f.gridTemplateRows=s.templateRows||"unset",f.gridAutoRows=s.autoRows||"unset",f.rowGap=m.spacing(null!=(e=s.rowGap)?e:1),f.columnGap=m.spacing(null!=(t=s.columnGap)?t:1),f.justifyItems=s.justifyItems||"unset",f.alignItems=s.alignItems||"unset",f.justifyContent=s.justifyContent||"unset",f.flexGrow=1,s.md&&(f[m.breakpoints.down("md")]={gridTemplateRows:null==(n=s.md)?void 0:n.templateRows,gridTemplateColumns:null==(r=s.md)?void 0:r.templateColumns,rowGap:s.md.rowGap?m.spacing(null!=(o=null==(a=s.md)?void 0:a.rowGap)?o:1):void 0,columnGap:s.md.columnGap?m.spacing(null!=(u=null==(l=s.md)?void 0:l.rowGap)?u:1):void 0,justifyItems:null==(c=s.md)?void 0:c.justifyItems,alignItems:null==(d=s.md)?void 0:d.alignItems,justifyContent:null==(p=s.md)?void 0:p.justifyContent}),h.css(f)},[s]));var s;if(n)return null;return F.default.createElement("div",{className:a},t.map(t=>{const n=t.Component;return r?F.default.createElement(Vr,{key:t.state.key,className:a},F.default.createElement(n,{key:t.state.key,model:t,parentState:e.state})):F.default.createElement(n,{key:t.state.key,model:t,parentState:e.state})}))};class js extends Z{}js.Component=function({model:e,parentState:t}){if(!t)throw new Error("SceneCSSGridItem must be a child of SceneCSSGridLayout");const{body:n,isHidden:r}=e.useState(),a=(i=e.state,o.useMemo(()=>{const e={};return e.gridColumn=i.gridColumn||"unset",e.gridRow=i.gridRow||"unset",e.position="relative",h.css(e)},[i]));var i;if(!n||r)return null;return F.default.createElement("div",{className:a},F.default.createElement(n.Component,{model:n}))};const Is=new Set(["ArrowUp","ArrowDown"]),Fs=new Set(["ArrowLeft","ArrowRight"]),Hs={row:{dim:"width",axis:"clientX",min:"minWidth",max:"maxWidth"},column:{dim:"height",axis:"clientY",min:"minHeight",max:"maxHeight"}};function Ns({direction:e="row",handleSize:t=32,initialSize:n="auto",primaryPaneStyles:r,secondaryPaneStyles:a,onDragFinished:i,children:s}){const l=F.default.Children.toArray(s),c=o.useRef(null),f=o.useRef(null),m=o.useRef(null),g=o.useRef(null),v=o.useRef(null),y=o.useRef("1fr"),b=o.useRef(void 0),_=o.useRef(void 0),w=Hs[e].dim,M=Hs[e].axis,S=Hs[e].min,k=Hs[e].max;!function(e,t,n=0,r){const a=u.throttle(t,n);o.useLayoutEffect(()=>{if(!e)return;const t=new ResizeObserver(a);return t.observe(e,{box:"device-pixel-content-box"}),()=>t.disconnect()},r)}(g.current,e=>{for(const t of e){if(!t.target.isSameNode(g.current))return;const e=f.current.getBoundingClientRect()[w],n=Vs(f.current);c.current.ariaValueNow=`${u.clamp((e-n[S])/(n[k]-n[S])*100,0,100)}`}},500,[k,S,e,w]);const L=o.useRef(null),x=o.useCallback(e=>{y.current=f.current.getBoundingClientRect()[w],v.current=g.current.getBoundingClientRect()[w],L.current=e[M],c.current.setPointerCapture(e.pointerId),b.current=Vs(f.current),_.current=void 0},[w,M]),D=o.useCallback(e=>{if(null!==L.current&&"1fr"!==y.current){const n=e[M]-L.current,r=b.current,a=u.clamp(y.current+n,r[S],r[k]),i=a/(v.current-t);f.current.style.flexGrow=`${i}`,m.current.style.flexGrow=""+(1-i);const o=u.clamp((a-r[S])/(r[k]-r[S])*100,0,100);c.current.ariaValueNow=`${o}`}},[t,M,S,k]),T=o.useCallback(e=>{e.preventDefault(),e.stopPropagation(),c.current.releasePointerCapture(e.pointerId),L.current=null,null==i||i(parseFloat(f.current.style.flexGrow))},[i]),O=o.useRef(new Set),E=o.useRef(null),P=o.useCallback(n=>{var r;if(0===O.current.size)return void(E.current=null);if("1fr"===y.current)return;const a=.3*(n-(null!=(r=E.current)?r:n));let i=0;"row"===e?(O.current.has("ArrowLeft")&&(i-=a),O.current.has("ArrowRight")&&(i+=a)):(O.current.has("ArrowUp")&&(i-=a),O.current.has("ArrowDown")&&(i+=a));const o=b.current,s=f.current.getBoundingClientRect()[w],l=u.clamp(s+i,o[S],o[k]),d=l/(v.current-t);f.current.style.flexGrow=`${d}`,m.current.style.flexGrow=""+(1-d);const p=(l-o[S])/(o[k]-o[S])*100;c.current.ariaValueNow=`${u.clamp(p,0,100)}`,E.current=n,window.requestAnimationFrame(P)},[e,t,S,k,w]),C=o.useCallback(n=>{if("Enter"===n.key)return void(void 0===_.current?(_.current=f.current.style.flexGrow,f.current.style.flexGrow="0",m.current.style.flexGrow="1"):(f.current.style.flexGrow=_.current,m.current.style.flexGrow=""+(1-parseFloat(_.current)),_.current=void 0));if("Home"===n.key){b.current=Vs(f.current),v.current=g.current.getBoundingClientRect()[w];const e=b.current[S]/(v.current-t);return f.current.style.flexGrow=`${e}`,m.current.style.flexGrow=""+(1-e),void(c.current.ariaValueNow="0")}if("End"===n.key){b.current=Vs(f.current),v.current=g.current.getBoundingClientRect()[w];const e=b.current[k]/(v.current-t);return f.current.style.flexGrow=`${e}`,m.current.style.flexGrow=""+(1-e),void(c.current.ariaValueNow="100")}if(!("column"===e&&Is.has(n.key)||"row"===e&&Fs.has(n.key))||O.current.has(n.key))return;_.current=void 0,n.preventDefault(),n.stopPropagation(),y.current=f.current.getBoundingClientRect()[w],v.current=g.current.getBoundingClientRect()[w],b.current=Vs(f.current);if(!O.current.has(n.key)){const e=0===O.current.size;O.current.add(n.key),e&&window.requestAnimationFrame(P)}},[e,P,t,k,w,S]),Y=o.useCallback(t=>{"row"===e&&!Fs.has(t.key)||"column"===e&&!Is.has(t.key)||(O.current.delete(t.key),null==i||i(parseFloat(f.current.style.flexGrow)))},[e,i]),A=o.useCallback(()=>{f.current.style.flexGrow="0.5",m.current.style.flexGrow="0.5";const e=Vs(f.current);b.current=e,y.current=f.current.getBoundingClientRect()[w],c.current.ariaValueNow=""+(y.current-e[S])/(e[k]-e[S])*100},[k,w,S]),R=o.useCallback(()=>{O.current.size>0&&(O.current.clear(),L.current=null,null==i||i(parseFloat(f.current.style.flexGrow)))},[i]),j=p.useStyles2(zs),I=zr(),H=2===l.length?"visible":"hidden";return F.default.createElement("div",{ref:g,className:j.container,style:{flexDirection:e}},F.default.createElement("div",{ref:f,className:j.panel,style:{flexGrow:"auto"===n?.5:u.clamp(n,0,1),[S]:"min-content",...r},id:`start-panel-${I}`},l[0]),l[1]&&F.default.createElement(F.default.Fragment,null,F.default.createElement("div",{ref:c,style:{[w]:`${t}px`},className:h.cx(j.handle,{[j.handleHorizontal]:"column"===e}),onPointerUp:T,onPointerDown:x,onPointerMove:D,onKeyDown:C,onKeyUp:Y,onDoubleClick:A,onBlur:R,role:"separator","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":50,"aria-controls":`start-panel-${I}`,"aria-label":d.t("grafana-scenes.components.splitter.aria-label-pane-resize-widget","Pane resize widget"),tabIndex:0}),F.default.createElement("div",{ref:m,className:j.panel,style:{flexGrow:"auto"===n?.5:u.clamp(1-n,0,1),[S]:"min-content",visibility:`${H}`,...a},id:`end-panel-${I}`},l[1])))}function zs(e){return{handle:h.css({cursor:"col-resize",position:"relative",flexShrink:0,userSelect:"none","&::before":{content:'""',position:"absolute",backgroundColor:e.colors.primary.main,left:"50%",transform:"translate(-50%)",top:0,height:"100%",width:"1px",opacity:0,transition:"opacity ease-in-out 0.2s"},"&::after":{content:'""',width:"4px",borderRadius:"4px",backgroundColor:e.colors.border.weak,transition:"background-color ease-in-out 0.2s",height:"50%",top:"calc(50% - (50%) / 2)",transform:"translateX(-50%)",position:"absolute",left:"50%"},"&:hover, &:focus-visible":{outline:"none","&::before":{opacity:1},"&::after":{backgroundColor:e.colors.primary.main}}}),handleHorizontal:h.css({cursor:"row-resize","&::before":{left:"inherit",transform:"translateY(-50%)",top:"50%",height:"1px",width:"100%"},"&::after":{width:"50%",height:"4px",top:"50%",transform:"translateY(-50%)",left:"calc(50% - (50%) / 2)"}}),container:h.css({display:"flex",width:"100%",flexGrow:1,overflow:"hidden"}),panel:h.css({display:"flex",position:"relative",flexBasis:0})}}function Vs(e){if(null===e)return;const t=document.body.style.overflow,n=e.style.width,r=e.style.height,a=e.style.flexGrow;document.body.style.overflow="hidden",e.style.flexGrow="0";const{width:i,height:o}=e.getBoundingClientRect();e.style.flexGrow="100";const{width:s,height:l}=e.getBoundingClientRect();return document.body.style.overflow=t,e.style.width=n,e.style.height=r,e.style.flexGrow=a,{minWidth:i,maxWidth:s,minHeight:o,maxHeight:l}}class Ws extends Z{toggleDirection(){this.setState({direction:"row"===this.state.direction?"column":"row"})}isDraggable(){return!1}}Ws.Component=function({model:e}){const{primary:t,secondary:n,direction:r,isHidden:a,initialSize:i,primaryPaneStyles:o,secondaryPaneStyles:s}=e.useState();if(a)return null;const l=t.Component,u=null==n?void 0:n.Component;let c=n?i:1;return F.default.createElement(Ns,{direction:r,initialSize:null!=c?c:.5,primaryPaneStyles:o,secondaryPaneStyles:s},F.default.createElement(l,{key:t.state.key,model:t,parentState:e.state}),u&&n&&F.default.createElement(u,{key:n.state.key,model:n,parentState:e.state}))};class $s extends Z{constructor(){super(...arguments),this._renderBeforeActivation=!0}enrichDataRequest(){return{app:this.state.name||"app"}}}$s.Component=({model:e})=>{const{pages:t}=e.useState();return F.default.createElement(F.default.Fragment,null,F.default.createElement(Us.Provider,{value:e},F.default.createElement(r.Routes,null,t.map(e=>F.default.createElement(r.Route,{key:e.state.url,path:e.state.routePath,element:F.default.createElement(e.Component,{model:e})})))))};const Us=o.createContext(null),Bs=new Map;class qs extends Z{}function Gs({node:e}){const t=e.useState(),n=p.useStyles2(Ks);return F.default.createElement("div",{className:n.container},Object.keys(t).map(r=>F.default.createElement("div",{className:n.row,key:r},F.default.createElement("div",{className:n.keyName},r),F.default.createElement("div",{className:n.value},function(e,t,n){if(null===t)return"null";switch(typeof t){case"number":return F.default.createElement(p.Input,{type:"number",defaultValue:t,onBlur:t=>n.setState({[e]:t.currentTarget.valueAsNumber})});case"string":return F.default.createElement(p.Input,{type:"text",defaultValue:t,onBlur:t=>n.setState({[e]:t.currentTarget.value})});case"object":return Lt(t)?t.constructor.name:u.isPlainObject(t)||u.isArray(t)?F.default.createElement(p.JSONFormatter,{json:t,open:0}):String(t);default:return typeof t}}(r,t[r],e)))))}function Ks(e){return{container:h.css({flexGrow:1,display:"flex",gap:e.spacing(.5),flexDirection:"column"}),row:h.css({display:"flex",gap:e.spacing(2)}),keyName:h.css({display:"flex",flexGrow:"0",width:120,alignItems:"center",height:e.spacing(e.components.height.md)}),value:h.css({flexGrow:1,minHeight:e.spacing(e.components.height.md),display:"flex",alignItems:"center"})}}function Js({node:e,selectedObject:t,onSelect:n}){const r=p.useStyles2(Qs),a=[],i=e===t;return e.forEachChild(e=>{a.push(F.default.createElement(Js,{node:e,key:e.state.key,selectedObject:t,onSelect:n}))}),F.default.createElement("div",{className:r.container},F.default.createElement("div",{className:h.cx(r.name,i&&r.selected),onClick:()=>n(e)},e.constructor.name),F.default.createElement("div",{className:r.children},a))}function Qs(e){return{container:h.css({flexGrow:1,display:"flex",gap:e.spacing(.5),flexDirection:"column"}),name:h.css({flexGrow:1,display:"flex",gap:e.spacing(1),fontSize:e.typography.bodySmall.fontSize,cursor:"pointer",padding:e.spacing(0,1),borderRadius:e.shape.borderRadius(2),position:"relative","&:hover":{background:e.colors.background.secondary}}),selected:h.css({"&::before":{display:"block",content:"' '",position:"absolute",left:0,width:4,bottom:2,top:2,borderRadius:e.shape.radius.default,backgroundImage:e.colors.gradients.brandVertical}}),children:h.css({flexGrow:1,display:"flex",flexDirection:"column",paddingLeft:e.spacing(1)})}}function Zs({scene:e}){const t=p.useStyles2(Xs),[n,r]=o.useState(!1),[a,i]=o.useState();return F.default.createElement(F.default.Fragment,null,F.default.createElement(p.ToolbarButton,{variant:"canvas",icon:"bug",onClick:()=>r(!0)}),n&&F.default.createElement(p.Drawer,{title:d.t("grafana-scenes.components.scene-debugger.title-scene-debugger","Scene debugger"),onClose:()=>r(!1),size:"lg"},F.default.createElement("div",{className:t.panes},F.default.createElement("div",{className:t.pane1},F.default.createElement("div",{className:t.paneHeading},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.scene-debugger.scene-graph"},"Scene graph")),F.default.createElement(p.CustomScrollbar,{autoHeightMin:"100%"},F.default.createElement("div",{className:t.treeWrapper},F.default.createElement(Js,{node:e,selectedObject:a,onSelect:i})))),F.default.createElement("div",{className:t.pane2},F.default.createElement("div",{className:t.paneHeading},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.scene-debugger.object-details"},"Object details")),a&&F.default.createElement(Gs,{node:a})))))}function Xs(e){return{panes:h.css({flexGrow:1,display:"flex",height:"100%",flexDirection:"row",marginTop:e.spacing(-2)}),pane1:h.css({flexGrow:0,display:"flex",height:"100%",flexDirection:"column",borderRight:`1px solid ${e.colors.border.weak}`}),pane2:h.css({flexGrow:1,display:"flex",minHeight:"100%",flexDirection:"column",paddingLeft:e.spacing(2)}),treeWrapper:h.css({paddingRight:e.spacing(2),height:"100%",marginLeft:e.spacing(-1)}),paneHeading:h.css({padding:e.spacing(1,0),fontWeight:e.typography.fontWeightMedium})}}function el({page:e}){const t=V(e.state.url),n=function(e){if(e.parent instanceof rl)return e.parent;return e}(e),a=n.useState(),s=function(){const e=r.useLocation();return i.locationSearchToObject(e.search||"")}(),l=e.getScene(t),u=o.useContext(Us),c=a.initializedScene===l,{layout:d}=e.state,p=ft();o.useLayoutEffect(()=>{c||n.initializeScene(l)},[l,n,c]),o.useEffect(()=>()=>n.setState({initializedScene:void 0}),[n]);const f=No(n,null==u?void 0:u.state.urlSyncOptions);if(!c&&!f)return null;const h={text:a.title,img:a.titleImg,icon:a.titleIcon,url:z(a.url,p.getSearchObject(),a.preserveUrlKeys),hideFromBreadcrumbs:a.hideFromBreadcrumbs,parentItem:tl(a.getParentPage?a.getParentPage():n.parent,s,p.getSearchObject())};a.tabs&&(h.children=a.tabs.map(t=>({text:t.state.title,icon:t.state.titleIcon,tabSuffix:t.state.tabSuffix,active:e===t,url:z(t.state.url,p.getSearchObject(),t.state.preserveUrlKeys),parentItem:h})));let m=[];return a.controls&&(m=a.controls.map(e=>F.default.createElement(e.Component,{model:e,key:e.state.key}))),s["scene-debugger"]&&m.push(F.default.createElement(Zs,{scene:n,key:"scene-debugger"})),F.default.createElement(i.PluginPage,{layout:d,pageNav:h,actions:m,renderTitle:a.renderTitle,subTitle:a.subTitle},F.default.createElement(l.Component,{model:l}))}function tl(e,t,n){if(e instanceof rl)return{text:e.state.title,url:z(e.state.url,n,e.state.preserveUrlKeys),hideFromBreadcrumbs:e.state.hideFromBreadcrumbs,parentItem:tl(e.state.getParentPage?e.state.getParentPage():e.parent,t,n)}}function nl({drilldown:e,parent:t}){const n=V(e.routePath),r=t.getDrilldownPage(e,n);return F.default.createElement(r.Component,{model:r})}qs.Component=({model:e})=>{const{component:t,props:n,reactNode:r}=e.useState();return t?F.default.createElement(t,{...n}):r||null};class rl extends Z{constructor(){super(...arguments),this._sceneCache=new Map,this._drilldownCache=new Map}initializeScene(e){this.setState({initializedScene:e})}getScene(e){let t=this._sceneCache.get(e.url);if(t)return t;if(!this.state.getScene)throw new Error("Missing getScene on SceneAppPage "+this.state.title);return t=this.state.getScene(e),this._sceneCache.set(e.url,t),t}getDrilldownPage(e,t){let n=this._drilldownCache.get(t.url);return n||(n=e.getPage(t,this),this._drilldownCache.set(t.url,n),n)}enrichDataRequest(e){if(this.state.getParentPage)return this.state.getParentPage().enrichDataRequest(e);if(!this.parent)return null;const t=this.getRoot();return xt(t)?t.enrichDataRequest(e):null}}rl.Component=function({model:e}){const{tabs:t,drilldowns:n}=e.useState(),a=[];if(a.push(function(e){var t,n,a;return F.default.createElement(r.Route,{key:"fallback route",path:"*",element:F.default.createElement(el,{page:null!=(a=null==(n=(t=e.state).getFallbackPage)?void 0:n.call(t))?a:new rl({url:"",title:d.t("grafana-scenes.components.fallback-page.title","Not found"),subTitle:d.t("grafana-scenes.components.fallback-page.subTitle","The url did not match any page"),routePath:"*",getScene:()=>new zo({body:new Cs({direction:"column",children:[new Ys({body:new qs({component:()=>F.default.createElement("div",{"data-testid":"default-fallback-content"},F.default.createElement(d.Trans,{i18nKey:"grafana-scenes.components.fallback-page.content"},"If you found your way here using a link then there might be a bug in this application."))})})]})})})})})}(e)),t&&t.length>0)for(let n=0;nF.default.createElement(nl,{drilldown:t,parent:e})}));t||a.push(F.default.createElement(r.Route,{key:"home route",path:"/",element:F.default.createElement(el,{page:e})}));return F.default.createElement(r.Routes,null,a)};class al{constructor(){this._overrides=[]}overrideColor(e){return this._overrides[this._overrides.length-1].properties.push({id:"color",value:e}),this}overrideDecimals(e){return this._overrides[this._overrides.length-1].properties.push({id:"decimals",value:e}),this}overrideDisplayName(e){return this._overrides[this._overrides.length-1].properties.push({id:"displayName",value:e}),this}overrideFilterable(e){return this._overrides[this._overrides.length-1].properties.push({id:"filterable",value:e}),this}overrideLinks(e){return this._overrides[this._overrides.length-1].properties.push({id:"links",value:e}),this}overrideMappings(e){return this._overrides[this._overrides.length-1].properties.push({id:"mappings",value:e}),this}overrideMax(e){return this._overrides[this._overrides.length-1].properties.push({id:"max",value:e}),this}overrideMin(e){return this._overrides[this._overrides.length-1].properties.push({id:"min",value:e}),this}overrideNoValue(e){return this._overrides[this._overrides.length-1].properties.push({id:"noValue",value:e}),this}overrideThresholds(e){return this._overrides[this._overrides.length-1].properties.push({id:"thresholds",value:e}),this}overrideUnit(e){return this._overrides[this._overrides.length-1].properties.push({id:"unit",value:e}),this}}class il extends al{match(e){return this._overrides.push({matcher:e,properties:[]}),this}matchFieldsWithName(e){return this._overrides.push({matcher:{id:a.FieldMatcherID.byName,options:e},properties:[]}),this}matchFieldsWithNameByRegex(e){return this._overrides.push({matcher:{id:a.FieldMatcherID.byRegexp,options:e},properties:[]}),this}matchFieldsByType(e){return this._overrides.push({matcher:{id:a.FieldMatcherID.byType,options:e},properties:[]}),this}matchFieldsByQuery(e){return this._overrides.push({matcher:{id:a.FieldMatcherID.byFrameRefID,options:e},properties:[]}),this}matchFieldsByValue(e){return this._overrides.push({matcher:{id:a.FieldMatcherID.byValue,options:e},properties:[]}),this}matchComparisonQuery(e){return this.matchFieldsByQuery(_s(e))}overrideCustomFieldConfig(e,t){const n=`custom.${String(e)}`;return this._overrides[this._overrides.length-1].properties.push({id:n,value:t}),this}build(){return this._overrides}}class ol{constructor(e){this.defaultFieldConfig=e,this._fieldConfig={defaults:{},overrides:[]},this._overridesBuilder=new il,this.setDefaults()}setDefaults(){const e={defaults:{custom:this.defaultFieldConfig?u.cloneDeep(this.defaultFieldConfig()):{}},overrides:[]};this._fieldConfig=e}setColor(e){return this.setFieldConfigDefaults("color",e)}setDecimals(e){return this.setFieldConfigDefaults("decimals",e)}setDisplayName(e){return this.setFieldConfigDefaults("displayName",e)}setFilterable(e){return this.setFieldConfigDefaults("filterable",e)}setLinks(e){return this.setFieldConfigDefaults("links",e)}setMappings(e){return this.setFieldConfigDefaults("mappings",e)}setMax(e){return this.setFieldConfigDefaults("max",e)}setMin(e){return this.setFieldConfigDefaults("min",e)}setNoValue(e){return this.setFieldConfigDefaults("noValue",e)}setThresholds(e){return this.setFieldConfigDefaults("thresholds",e)}setUnit(e){return this.setFieldConfigDefaults("unit",e)}setCustomFieldConfig(e,t){return this._fieldConfig.defaults={...this._fieldConfig.defaults,custom:u.merge(this._fieldConfig.defaults.custom,{[e]:t})},this}setOverrides(e){return e(this._overridesBuilder),this}setFieldConfigDefaults(e,t){return this._fieldConfig.defaults={...this._fieldConfig.defaults,[e]:t},this}build(){return{defaults:this._fieldConfig.defaults,overrides:this._overridesBuilder.build()}}}class sl{constructor(e){this.defaultOptions=e,this._options={},this.setDefaults()}setDefaults(){this._options=this.defaultOptions?u.cloneDeep(this.defaultOptions()):{}}setOption(e,t){return this._options=u.merge(this._options,{[e]:t}),this}build(){return this._options}}class ll{constructor(e,t,n,r){this._state={},this._state.title="",this._state.description="",this._state.displayMode="default",this._state.hoverHeader=!1,this._state.pluginId=e,this._state.pluginVersion=t,this._fieldConfigBuilder=new ol(r),this._panelOptionsBuilder=new sl(n)}setTitle(e){return this._state.title=e,this}setDescription(e){return this._state.description=e,this}setDisplayMode(e){return this._state.displayMode=e,this}setHoverHeader(e){return this._state.hoverHeader=e,this}setShowMenuAlways(e){return this._state.showMenuAlways=e,this}setMenu(e){return this._state.menu=e,this}setHeaderActions(e){return this._state.headerActions=e,this}setCollapsible(e){return this._state.collapsible=e,this}setCollapsed(e){return this._state.collapsed=e,this}setColor(e){return this._fieldConfigBuilder.setColor(e),this}setDecimals(e){return this._fieldConfigBuilder.setDecimals(e),this}setDisplayName(e){return this._fieldConfigBuilder.setDisplayName(e),this}setFilterable(e){return this._fieldConfigBuilder.setFilterable(e),this}setLinks(e){return this._fieldConfigBuilder.setLinks(e),this}setMappings(e){return this._fieldConfigBuilder.setMappings(e),this}setMax(e){return this._fieldConfigBuilder.setMax(e),this}setMin(e){return this._fieldConfigBuilder.setMin(e),this}setNoValue(e){return this._fieldConfigBuilder.setNoValue(e),this}setThresholds(e){return this._fieldConfigBuilder.setThresholds(e),this}setUnit(e){return this._fieldConfigBuilder.setUnit(e),this}setCustomFieldConfig(e,t){return this._fieldConfigBuilder.setCustomFieldConfig(e,t),this}setOverrides(e){return this._fieldConfigBuilder.setOverrides(e),this}setOption(e,t){return this._panelOptionsBuilder.setOption(e,t),this}setData(e){return this._state.$data=e,this}setTimeRange(e){return this._state.$timeRange=e,this}setVariables(e){return this._state.$variables=e,this}setBehaviors(e){return this._state.$behaviors=e,this}setSeriesLimit(e){return this._state.seriesLimit=e,this}applyMixin(e){return e(this),this}build(){return new ha({...this._state,options:this._panelOptionsBuilder.build(),fieldConfig:this._fieldConfigBuilder.build()})}}const ul={barchart:()=>new sl(()=>M.defaultOptions),bargauge:()=>new sl(()=>S.defaultOptions),datagrid:()=>new sl(()=>k.defaultOptions),flamegraph:()=>new sl,gauge:()=>new sl(()=>L.defaultOptions),geomap:()=>new sl(()=>x.defaultOptions),heatmap:()=>new sl(()=>D.defaultOptions),histogram:()=>new sl(()=>T.defaultOptions),logs:()=>new sl,news:()=>new sl(()=>O.defaultOptions),nodegraph:()=>new sl,piechart:()=>new sl(()=>E.defaultOptions),stat:()=>new sl(()=>P.defaultOptions),statetimeline:()=>new sl(()=>C.defaultOptions),statushistory:()=>new sl(()=>Y.defaultOptions),table:()=>new sl(()=>A.defaultOptions),text:()=>new sl(()=>R.defaultOptions),timeseries:()=>new sl,trend:()=>new sl,traces:()=>new sl,xychart:()=>new sl(()=>j.defaultOptions)},cl={barchart:()=>new ol(()=>M.defaultFieldConfig),bargauge:()=>new ol,datagrid:()=>new ol,flamegraph:()=>new ol,gauge:()=>new ol,geomap:()=>new ol,heatmap:()=>new ol,histogram:()=>new ol(()=>T.defaultFieldConfig),logs:()=>new ol,news:()=>new ol,nodegraph:()=>new ol,piechart:()=>new ol,stat:()=>new ol,statetimeline:()=>new ol(()=>C.defaultFieldConfig),statushistory:()=>new ol(()=>Y.defaultFieldConfig),table:()=>new ol,text:()=>new ol,timeseries:()=>new ol,trend:()=>new ol,traces:()=>new ol,xychart:()=>new ol(()=>j.defaultFieldConfig)},dl={barchart:()=>new ll("barchart","10.0.0",()=>M.defaultOptions,()=>M.defaultFieldConfig),bargauge:()=>new ll("bargauge","10.0.0",()=>S.defaultOptions),datagrid:()=>new ll("datagrid","10.0.0",()=>k.defaultOptions),flamegraph:()=>new ll("flamegraph","10.0.0"),gauge:()=>new ll("gauge","10.0.0",()=>L.defaultOptions),geomap:()=>new ll("geomap","10.0.0",()=>x.defaultOptions),heatmap:()=>new ll("heatmap","10.0.0",()=>D.defaultOptions),histogram:()=>new ll("histogram","10.0.0",()=>T.defaultOptions,()=>T.defaultFieldConfig),logs:()=>new ll("logs","10.0.0"),news:()=>new ll("news","10.0.0",()=>O.defaultOptions),nodegraph:()=>new ll("nodeGraph","10.0.0"),piechart:()=>new ll("piechart","10.0.0",()=>E.defaultOptions),stat:()=>new ll("stat","10.0.0",()=>P.defaultOptions),statetimeline:()=>new ll("state-timeline","10.0.0",()=>C.defaultOptions,()=>C.defaultFieldConfig),statushistory:()=>new ll("status-history","10.0.0",()=>Y.defaultOptions,()=>Y.defaultFieldConfig),table:()=>new ll("table","10.0.0",()=>A.defaultOptions),text:()=>new ll("text","10.0.0",()=>R.defaultOptions),timeseries:()=>new ll("timeseries","10.0.0"),trend:()=>new ll("trend","10.0.0"),traces:()=>new ll("traces","10.0.0"),xychart:()=>new ll("xychart","10.0.0",()=>j.defaultOptions,()=>j.defaultFieldConfig)};class pl{constructor(e,t,n,r){this._pluginId=e,this._pluginVersion=t,this._fieldConfigBuilder=new ol(r),this._panelOptionsBuilder=new sl(n)}setColor(e){return this._fieldConfigBuilder.setColor(e),this}setDecimals(e){return this._fieldConfigBuilder.setDecimals(e),this}setDisplayName(e){return this._fieldConfigBuilder.setDisplayName(e),this}setFilterable(e){return this._fieldConfigBuilder.setFilterable(e),this}setLinks(e){return this._fieldConfigBuilder.setLinks(e),this}setMappings(e){return this._fieldConfigBuilder.setMappings(e),this}setMax(e){return this._fieldConfigBuilder.setMax(e),this}setMin(e){return this._fieldConfigBuilder.setMin(e),this}setNoValue(e){return this._fieldConfigBuilder.setNoValue(e),this}setThresholds(e){return this._fieldConfigBuilder.setThresholds(e),this}setUnit(e){return this._fieldConfigBuilder.setUnit(e),this}setCustomFieldConfig(e,t){return this._fieldConfigBuilder.setCustomFieldConfig(e,t),this}setOverrides(e){return this._fieldConfigBuilder.setOverrides(e),this}setOption(e,t){return this._panelOptionsBuilder.setOption(e,t),this}build(){return{pluginId:this._pluginId,pluginVersion:this._pluginVersion,options:this._panelOptionsBuilder.build(),fieldConfig:this._fieldConfigBuilder.build()}}}const fl={barchart:()=>new pl("barchart","10.0.0",()=>M.defaultOptions,()=>M.defaultFieldConfig),bargauge:()=>new pl("bargauge","10.0.0",()=>S.defaultOptions),datagrid:()=>new pl("datagrid","10.0.0",()=>k.defaultOptions),flamegraph:()=>new pl("flamegraph","10.0.0"),gauge:()=>new pl("gauge","10.0.0",()=>L.defaultOptions),geomap:()=>new pl("geomap","10.0.0",()=>x.defaultOptions),heatmap:()=>new pl("heatmap","10.0.0",()=>D.defaultOptions),histogram:()=>new pl("histogram","10.0.0",()=>T.defaultOptions,()=>T.defaultFieldConfig),logs:()=>new pl("logs","10.0.0"),news:()=>new pl("news","10.0.0",()=>O.defaultOptions),nodegraph:()=>new pl("nodeGraph","10.0.0"),piechart:()=>new pl("piechart","10.0.0",()=>E.defaultOptions),stat:()=>new pl("stat","10.0.0",()=>P.defaultOptions),statetimeline:()=>new pl("state-timeline","10.0.0",()=>C.defaultOptions,()=>C.defaultFieldConfig),statushistory:()=>new pl("status-history","10.0.0",()=>Y.defaultOptions,()=>Y.defaultFieldConfig),table:()=>new pl("table","10.0.0",()=>A.defaultOptions),text:()=>new pl("text","10.0.0",()=>R.defaultOptions),timeseries:()=>new pl("timeseries","10.0.0"),trend:()=>new pl("trend","10.0.0"),traces:()=>new pl("traces","10.0.0"),xychart:()=>new pl("xychart","10.0.0",()=>j.defaultOptions,()=>j.defaultFieldConfig)};const hl=d.LANGUAGES.reduce((e,t)=>(e[t.code]=async()=>await function(e){switch(e){case"../locales/cs-CZ/grafana-scenes.json":return Promise.resolve().then(function(){return n(11566)});case"../locales/de-DE/grafana-scenes.json":return Promise.resolve().then(function(){return n(79849)});case"../locales/en-US/grafana-scenes.json":return Promise.resolve().then(function(){return n(2802)});case"../locales/es-ES/grafana-scenes.json":return Promise.resolve().then(function(){return n(30161)});case"../locales/fr-FR/grafana-scenes.json":return Promise.resolve().then(function(){return n(42874)});case"../locales/hu-HU/grafana-scenes.json":return Promise.resolve().then(function(){return n(78477)});case"../locales/id-ID/grafana-scenes.json":return Promise.resolve().then(function(){return n(4382)});case"../locales/it-IT/grafana-scenes.json":return Promise.resolve().then(function(){return n(25217)});case"../locales/ja-JP/grafana-scenes.json":return Promise.resolve().then(function(){return n(54351)});case"../locales/ko-KR/grafana-scenes.json":return Promise.resolve().then(function(){return n(17625)});case"../locales/nl-NL/grafana-scenes.json":return Promise.resolve().then(function(){return n(67195)});case"../locales/pl-PL/grafana-scenes.json":return Promise.resolve().then(function(){return n(36147)});case"../locales/pt-BR/grafana-scenes.json":return Promise.resolve().then(function(){return n(23956)});case"../locales/pt-PT/grafana-scenes.json":return Promise.resolve().then(function(){return n(919)});case"../locales/ru-RU/grafana-scenes.json":return Promise.resolve().then(function(){return n(47953)});case"../locales/sv-SE/grafana-scenes.json":return Promise.resolve().then(function(){return n(21971)});case"../locales/tr-TR/grafana-scenes.json":return Promise.resolve().then(function(){return n(7871)});case"../locales/zh-Hans/grafana-scenes.json":return Promise.resolve().then(function(){return n(50971)});case"../locales/zh-Hant/grafana-scenes.json":return Promise.resolve().then(function(){return n(45925)});default:return new Promise(function(t,n){("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+e)))})}}(`../locales/${t.code}/grafana-scenes.json`),e),{}),ml={getUrlWithAppState:z,registerRuntimePanelPlugin:function({pluginId:e,plugin:t}){if(W.has(e))throw new Error(`A runtime panel plugin with id ${e} has already been registered`);t.meta={...t.meta,id:e,name:e,module:"runtime plugin",baseUrl:"runtime plugin",info:{author:{name:"Runtime plugin "+e},description:"",links:[],logos:{large:"",small:""},screenshots:[],updated:"",version:""}},W.set(e,t)},registerRuntimeDataSource:ae,registerVariableMacro:function(e,t,n=!1){if(!n&&St.get(e))throw new Error(`Macro already registered ${e}`);return St.set(e,t),()=>{if(n)throw new Error("Replaced macros can not be unregistered. They need to be restored manually.");St.delete(e)}},cloneSceneObjectState:te,syncStateFromSearchParams:function(e,t,n){ue(e,t,new oe(n))},getUrlState:le,renderPrometheusLabelFilters:ka,escapeLabelValueInRegexSelector:xa,escapeLabelValueInExactSelector:La,escapeURLDelimiters:function(e){return Ea(Oa(e))},isAdHocVariable:function(e){return"adhoc"===e.state.type},isConstantVariable:function(e){return"constant"===e.state.type},isCustomVariable:function(e){return"custom"===e.state.type},isDataSourceVariable:function(e){return"datasource"===e.state.type},isIntervalVariable:function(e){return"interval"===e.state.type},isQueryVariable:function(e){return"query"===e.state.type},isTextBoxVariable:function(e){return"textbox"===e.state.type},isGroupByVariable:function(e){return"groupby"===e.state.type},isSwitchVariable:function(e){return"switch"===e.state.type},isRepeatCloneOrChildOf:ht,buildPathIdFor:di};t.H9=Sr,t.yP=vo,t.mI=_o,t.d0=dl,t.xK=js,t.gF=Rs,t.Zv=Me,t.Es=fa,t.vA=Ys,t.G1=Cs,t.Bs=Z,t.So=ke,t.dt=ba,t.WM=ys,t.KE=ps,t.JZ=je,t.Pj=ho,t.$L=function({children:e,scene:t,updateUrlOnInit:n,createBrowserHistorySteps:r,namespace:a,excludeFromNamespace:i}){return No(t,{updateUrlOnInit:n,createBrowserHistorySteps:r,namespace:a,excludeFromNamespace:i})?e:null},t.Sh=Ha,t.Eb=ha,t.Lw=Wo,t.Gg=pi,t.jh=li,t.Go=ml},15208(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinct=void 0;var r=n(35416),a=n(1266),i=n(16129),o=n(52296);t.distinct=function(e,t){return r.operate(function(n,r){var s=new Set;n.subscribe(a.createOperatorSubscriber(r,function(t){var n=e?e(t):t;s.has(n)||(s.add(n),r.next(t))})),t&&o.innerFrom(t).subscribe(a.createOperatorSubscriber(r,function(){return s.clear()},i.noop))})}},15860(e,t,n){"use strict";const r=n(37944);e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},16129(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},16333(e,t,n){"use strict";t.__esModule=!0,t.resizableProps=void 0;var r,a=(r=n(62688))&&r.__esModule?r:{default:r};n(38230);t.resizableProps={axis:a.default.oneOf(["both","x","y","none"]),className:a.default.string,children:a.default.element.isRequired,draggableOpts:a.default.shape({allowAnyClick:a.default.bool,cancel:a.default.string,children:a.default.node,disabled:a.default.bool,enableUserSelectHack:a.default.bool,offsetParent:"undefined"!=typeof Element?a.default.instanceOf(Element):a.default.any,grid:a.default.arrayOf(a.default.number),handle:a.default.string,nodeRef:a.default.object,onStart:a.default.func,onDrag:a.default.func,onStop:a.default.func,onMouseDown:a.default.func,scale:a.default.number}),height:function(){for(var e=arguments.length,t=new Array(e),n=0;na});var r=n(17451);function a(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},16516(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=void 0;var r=n(35416),a=n(1266),i=n(52296);t.throttle=function(e,t){return r.operate(function(n,r){var o=null!=t?t:{},s=o.leading,l=void 0===s||s,u=o.trailing,c=void 0!==u&&u,d=!1,p=null,f=null,h=!1,m=function(){null==f||f.unsubscribe(),f=null,c&&(y(),h&&r.complete())},g=function(){f=null,h&&r.complete()},v=function(t){return f=i.innerFrom(e(t)).subscribe(a.createOperatorSubscriber(r,m,g))},y=function(){if(d){d=!1;var e=p;p=null,r.next(e),!h&&v(e)}};n.subscribe(a.createOperatorSubscriber(r,function(e){d=!0,p=e,(!f||f.closed)&&(l?y():v(e))},function(){h=!0,(!(c&&d&&f)||f.closed)&&r.complete()}))})}},16557(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(42689))},17092(e,t,n){"use strict";const r=n(55380);e.exports=(e,t,n)=>r(e,t,n)<=0},17451(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr})},17462(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(42689))},17494(e,t,n){"use strict";const r=n(68395);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},17625(e,t){"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"{{keyLabel}} 키로 필터 편집","managed-filter":"{{origin}} 관리 필터","non-applicable":"","remove-filter-with-key":"{{keyLabel}} 키로 필터 제거"},"adhoc-filters-combobox":{"remove-filter-value":"필터 값 제거 - {{itemLabel}}","use-custom-value":"사용자 지정 값 사용: {{itemLabel}}"},"fallback-page":{content:"링크를 사용하여 여기로 이동한 경우 이 애플리케이션에 버그가 있을 수 있습니다.",subTitle:"URL이 어떤 페이지와도 일치하지 않습니다.",title:"찾을 수 없음"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"장면 접기","expand-button-label":"장면 펼치기","remove-button-label":"장면 제거"},"scene-debugger":{"object-details":"객체 상세 정보","scene-graph":"장면 그래프","title-scene-debugger":"장면 디버거"},"scene-grid-row":{"collapse-row":"행 접기","expand-row":"행 펼치기"},"scene-refresh-picker":{"text-cancel":"취소","text-refresh":"새로 고침","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"비교","button-tooltip":"시간 범위 비교 활성화"},splitter:{"aria-label-pane-resize-widget":"창 크기 조정 위젯"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"제목"}},"viz-panel-explore-button":{explore:"탐색"},"viz-panel-renderer":{"loading-plugin-panel":"플러그인 패널 로딩 중...","panel-plugin-has-no-panel-component":"패널 플러그인에 패널 구성 요소가 없습니다."},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"하나의 패널에 너무 많은 시리즈를 렌더링하면 성능에 영향을 주고 데이터가 읽기 어려워질 수 있습니다. ","warning-message":"{{seriesLimit}}개 시계열만 표시 중"}},utils:{"controls-label":{"tooltip-remove":"제거"},"loading-indicator":{"content-cancel-query":"쿼리 취소"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"필터 연산자 편집"},"ad-hoc-filter-builder":{"aria-label-add-filter":"필터 추가","title-add-filter":"필터 추가"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"필터 제거","key-select":{"placeholder-select-label":"레이블 선택"},"label-select-label":"레이블 선택","title-remove-filter":"필터 제거","value-select":{"placeholder-select-value":"값 선택"}},"data-source-variable":{label:{default:"기본값"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"지우기",tooltip:"이 대시보드에서 기본적으로 적용됩니다. 편집하면 다른 대시보드로 이전됩니다.","tooltip-restore-groupby-set-by-this-dashboard":"이 대시보드에서 설정한 '그룹별'을 복원합니다."},"format-registry":{formats:{description:{"commaseparated-values":"쉼표로 구분된 값","double-quoted-values":"큰 따옴표로 묶인 값","format-date-in-different-ways":"다양한 방식으로 날짜 형식 지정","format-multivalued-variables-using-syntax-example":"glob 구문을 사용하여 다중 값 변수 형식 지정, 예: {value1,value2}","html-escaping-of-values":"값의 HTML 이스케이프","join-values-with-a-comma":"","json-stringify-value":"JSON 문자열화 값","keep-value-as-is":"값을 그대로 유지","multiple-values-are-formatted-like-variablevalue":"여러 값은 variable=value와 같은 형식으로 지정됩니다.","single-quoted-values":"작은 따옴표로 묶인 값","useful-escaping-values-taking-syntax-characters":"URI 구문 문자를 고려한 URL 이스케이프 값에 유용","useful-for-url-escaping-values":"URL 이스케이프 값에 유용","values-are-separated-by-character":"값은 | 문자로 구분됩니다"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"선택기를 기준으로 그룹화","placeholder-group-by-label":"레이블을 기준으로 그룹화"},"interval-variable":{"placeholder-select-value":"값 선택"},"loading-options-placeholder":{"loading-options":"옵션 로딩 중..."},"multi-value-apply-button":{apply:"적용"},"no-options-placeholder":{"no-options-found":"찾은 옵션 없음"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"라벨을 가져오는 동안 오류가 발생했습니다. 클릭하여 다시 시도"},"test-object-with-variable-dependency":{title:{hello:"안녕하세요"}},"test-variable":{text:{text:"텍스트"}},"variable-value-input":{"placeholder-enter-value":"값 입력"},"variable-value-select":{"placeholder-select-value":"값 선택"}}}}},18030(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(42689))},18041(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.count=void 0;var r=n(3818);t.count=function(e){return r.reduce(function(t,n,r){return!e||e(n,r)?t+1:t},0)}},18100(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=p(n(85959)),i=p(n(62688)),o=n(38230),s=n(50936),l=n(20414),u=n(20906),c=n(47222),d=p(n(97256));function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.props;return{cols:e.cols,containerPadding:e.containerPadding,containerWidth:e.containerWidth,margin:e.margin,maxRows:e.maxRows,rowHeight:e.rowHeight}}},{key:"createStyle",value:function(e){var t,n=this.props,r=n.usePercentages,a=n.containerWidth;return n.useCSSTransforms?t=(0,l.setTransform)(e):(t=(0,l.setTopLeft)(e),r&&(t.left=(0,l.perc)(e.left/a),t.width=(0,l.perc)(e.width/a))),t}},{key:"mixinDraggable",value:function(e,t){return a.default.createElement(o.DraggableCore,{disabled:!t,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},e)}},{key:"mixinResizable",value:function(e,t,n){var r=this.props,i=r.cols,o=r.x,l=r.minW,c=r.minH,d=r.maxW,p=r.maxH,f=r.transformScale,h=r.resizeHandles,m=r.resizeHandle,g=this.getPositionParams(),v=(0,u.calcGridItemPosition)(g,0,0,i-o,0).width,y=(0,u.calcGridItemPosition)(g,0,0,l,c),b=(0,u.calcGridItemPosition)(g,0,0,d,p),_=[y.width,y.height],w=[Math.min(b.width,v),Math.min(b.height,1/0)];return a.default.createElement(s.Resizable,{draggableOpts:{disabled:!n},className:n?void 0:"react-resizable-hide",width:t.width,height:t.height,minConstraints:_,maxConstraints:w,onResizeStop:this.onResizeStop,onResizeStart:this.onResizeStart,onResize:this.onResize,transformScale:f,resizeHandles:h,handle:m},e)}},{key:"onResizeHandler",value:function(e,t,n){var r=t.node,a=t.size,i=this.props[n];if(i){var o=this.props,s=o.cols,l=o.x,c=o.y,d=o.i,p=o.maxH,f=o.minH,h=this.props,m=h.minW,g=h.maxW,v=(0,u.calcWH)(this.getPositionParams(),a.width,a.height,l,c),y=v.w,b=v.h;m=Math.max(m,1),g=Math.min(g,s-l),y=(0,u.clamp)(y,m,g),b=(0,u.clamp)(b,f,p),this.setState({resizing:"onResizeStop"===n?null:a}),i.call(this,d,y,b,{e,node:r,size:a})}}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.w,i=e.h,o=e.isDraggable,s=e.isResizable,l=e.droppingPosition,c=e.useCSSTransforms,p=(0,u.calcGridItemPosition)(this.getPositionParams(),t,n,r,i,this.state),f=a.default.Children.only(this.props.children),m=a.default.cloneElement(f,{ref:this.elementRef,className:(0,d.default)("react-grid-item",f.props.className,this.props.className,{static:this.props.static,resizing:Boolean(this.state.resizing),"react-draggable":o,"react-draggable-dragging":Boolean(this.state.dragging),dropping:Boolean(l),cssTransforms:c}),style:h(h(h({},this.props.style),f.props.style),this.createStyle(p))});return m=this.mixinResizable(m,p,s),m=this.mixinDraggable(m,o)}}],n&&m(t.prototype,n),r&&m(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(a.default.Component);t.default=w,_(w,"propTypes",{children:i.default.element,cols:i.default.number.isRequired,containerWidth:i.default.number.isRequired,rowHeight:i.default.number.isRequired,margin:i.default.array.isRequired,maxRows:i.default.number.isRequired,containerPadding:i.default.array.isRequired,x:i.default.number.isRequired,y:i.default.number.isRequired,w:i.default.number.isRequired,h:i.default.number.isRequired,minW:function(e,t){var n=e[t];return"number"!=typeof n?new Error("minWidth not Number"):n>e.w||n>e.maxW?new Error("minWidth larger than item width/maxWidth"):void 0},maxW:function(e,t){var n=e[t];return"number"!=typeof n?new Error("maxWidth not Number"):ne.h||n>e.maxH?new Error("minHeight larger than item height/maxHeight"):void 0},maxH:function(e,t){var n=e[t];return"number"!=typeof n?new Error("maxHeight not Number"):no,lR:()=>u,o1:()=>s,yB:()=>l});var r=n(19985),a=n(3003),i=n(85959);function o(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function s(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function l(e){let t=(0,i.useRef)({isFocused:!1,observer:null});return(0,a.N)(()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,i.useCallback)(n=>{let a=(0,r.wt)(n);if(a instanceof HTMLButtonElement||a instanceof HTMLInputElement||a instanceof HTMLTextAreaElement||a instanceof HTMLSelectElement){t.current.isFocused=!0;let n=a,i=r=>{if(t.current.isFocused=!1,n.disabled){let t=o(r);null==e||e(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let a=n===(0,r.bq)()?null:(0,r.bq)();n.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[e])}let u=!1},19252(e,t,n){"use strict";const r=n(68395),a=n(79524),{ANY:i}=a,o=n(81722),s=n(55380),l=[new a(">=0.0.0-0")],u=[new a(">=0.0.0")],c=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=n.includePrerelease?l:u}if(1===t.length&&t[0].semver===i){if(n.includePrerelease)return!0;t=u}const r=new Set;let a,c,f,h,m,g,v;for(const t of e)">"===t.operator||">="===t.operator?a=d(a,t,n):"<"===t.operator||"<="===t.operator?c=p(c,t,n):r.add(t.semver);if(r.size>1)return null;if(a&&c){if(f=s(a.semver,c.semver,n),f>0)return null;if(0===f&&(">="!==a.operator||"<="!==c.operator))return null}for(const e of r){if(a&&!o(e,String(a),n))return null;if(c&&!o(e,String(c),n))return null;for(const r of t)if(!o(e,String(r),n))return!1;return!0}let y=!(!c||n.includePrerelease||!c.semver.prerelease.length)&&c.semver,b=!(!a||n.includePrerelease||!a.semver.prerelease.length)&&a.semver;y&&1===y.prerelease.length&&"<"===c.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(v=v||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,a)if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),">"===e.operator||">="===e.operator){if(h=d(a,e,n),h===e&&h!==a)return!1}else if(">="===a.operator&&!o(a.semver,String(e),n))return!1;if(c)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if(m=p(c,e,n),m===e&&m!==c)return!1}else if("<="===c.operator&&!o(c.semver,String(e),n))return!1;if(!e.operator&&(c||a)&&0!==f)return!1}return!(a&&g&&!c&&0!==f)&&(!(c&&v&&!a&&0!==f)&&(!b&&!y))},d=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let a=!1;e:for(const r of e.set){for(const e of t.set){const t=c(r,e,n);if(a=a||null!==t,t)continue e}if(a)return!1}return!0}},19355(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipLast=void 0;var r=n(79391),a=n(35416),i=n(1266);t.skipLast=function(e){return e<=0?r.identity:a.operate(function(t,n){var r=new Array(e),a=0;return t.subscribe(i.createOperatorSubscriber(n,function(t){var i=a++;if(i{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},i=e=>e,o=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},s={passive:!0},l="undefined"==typeof window||"onscrollend"in window,u=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]};const c=(e,t,n,r)=>{for(;e<=t;){const a=(e+t)/2|0,i=n(a);if(ir))return a;t=a-1}}return e>0?e-1:0};t.approxEqual=r.approxEqual,t.debounce=r.debounce,t.memo=r.memo,t.notUndefined=r.notUndefined,t.Virtualizer=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var e,t,n;return(null==(n=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:n.call(t))??Date.now()},this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{const t=()=>{const t=e.target,n=this.indexFromElement(t);t.isConnected?this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this)):this.observer.unobserve(t)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:i,rangeExtractor:o,onChange:()=>{},measureElement:u,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=r.memo(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const n=new Map,r=new Map;for(let a=t-1;a>=0;a--){const t=e[a];if(n.has(t.lane))continue;const i=r.get(t.lane);if(null==i||t.end>i.end?r.set(t.lane,t):t.ende.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=r.memo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,t,n,r,a,i)=>(void 0!==this.prevLanes&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:a,lanes:i}),{key:!1}),this.getMeasurements=r.memo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:a,lanes:i},o)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const s=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);const l=this.measurementsCache.slice(0,s),u=new Array(i).fill(void 0);for(let e=0;e1){s=i;const e=u[s],r=void 0!==e?l[e]:void 0;c=r?r.end+this.options.gap:t+n}else{const e=1===this.options.lanes?l[a-1]:this.getFurthestMeasurement(l,a);c=e?e.end+this.options.gap:t+n,s=e?e.lane:a%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(a,s)}const d=o.get(e),p="number"==typeof d?d:this.options.estimateSize(a),f=c+p;l[a]={index:a,start:c,size:p,end:f,key:e,lane:s},u[s]=a}return this.measurementsCache=l,l},{key:!1,debug:()=>this.options.debug}),this.calculateRange=r.memo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const a=e.length-1,i=t=>e[t].start;if(e.length<=r)return{startIndex:0,endIndex:a};let o=c(0,a,i,n),s=o;if(1===r)for(;s1){const i=Array(r).fill(0);for(;se=0&&l.some(e=>e>=n);){const t=e[o];l[t.lane]=t.start,o--}o=Math.max(0,o-o%r),s=Math.min(a,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=r.memo(()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,a)=>null===r||null===a?[]:e({startIndex:r,endIndex:a,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;const n=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==n&&this.range){const t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,n-t),a=Math.min(this.options.count-1,n+t);return e>=r&&e<=a}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});const t=this.indexFromElement(e),n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),this.isScrolling&&!this.scrollState||!this.shouldMeasureDuringScroll(t)||this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var n;const r=this.measurementsCache[e];if(!r)return;const a=t-(this.itemSizeCache.get(r.key)??r.size);0!==a&&("smooth"!==(null==(n=this.scrollState)?void 0:n.behavior)&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(r,a,this):r.start[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{const n=[];for(let r=0,a=e.length;rthis.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return r.notUndefined(t[c(0,t.length-1,e=>r.notUndefined(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;const r=this.getSize(),a=this.getScrollOffset();"auto"===t&&(t=e>=a+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r);const i=this.getMaxScrollOffset();return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.getSize(),r=this.getScrollOffset(),a=this.measurementsCache[e];if(!a)return;if("auto"===t)if(a.end>=r+n-this.options.scrollPaddingEnd)t="end";else{if(!(a.start<=r+this.options.scrollPaddingStart))return[r,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];const i="end"===t?a.end+this.options.scrollPaddingEnd:a.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,t,a.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:n="auto"}={})=>{const r=this.getOffsetForAlignment(e,t),a=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:a,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:n="auto"}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));const r=this.getOffsetForIndex(e,t);if(!r)return;const[a,i]=r,o=this.now();this.scrollState={index:e,align:i,behavior:n,startedAt:o,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{const n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;if(0===t.length)n=this.options.paddingStart;else if(1===this.options.lanes)n=(null==(e=t[t.length-1])?void 0:e.end)??0;else{const e=Array(this.options.lanes).fill(null);let r=t.length-1;for(;r>=0&&e.some(e=>null===e);){const n=t[r];null===e[n.lane]&&(e[n.lane]=n.end),r--}n=Math.max(...e.filter(e=>null!==e))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}scheduleScrollReconcile(){this.targetWindow?null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})):this.scrollState=null}reconcileScroll(){if(!this.scrollState)return;if(!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3)return void(this.scrollState=null);const e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&r.approxEqual(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1)return void(this.scrollState=null)}else this.scrollState.stableFrames=0,n&&(this.scrollState.lastTargetOffset=t,this.scrollState.behavior="auto",this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}},t.defaultKeyExtractor=i,t.defaultRangeExtractor=o,t.elementScroll=(e,{adjustments:t=0,behavior:n},r)=>{var a,i;const o=e+t;null==(i=null==(a=r.scrollElement)?void 0:a.scrollTo)||i.call(a,{[r.options.horizontal?"left":"top"]:o,behavior:n})},t.measureElement=u,t.observeElementOffset=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=e.targetWindow;if(!a)return;let i=0;const o=e.options.useScrollendEvent&&l?()=>{}:r.debounce(a,()=>{t(i,!1)},e.options.isScrollingResetDelay),u=r=>()=>{const{horizontal:a,isRtl:s}=e.options;i=a?n.scrollLeft*(s?-1:1):n.scrollTop,o(),t(i,r)},c=u(!0),d=u(!1);n.addEventListener("scroll",c,s);const p=e.options.useScrollendEvent&&l;return p&&n.addEventListener("scrollend",d,s),()=>{n.removeEventListener("scroll",c),p&&n.removeEventListener("scrollend",d)}},t.observeElementRect=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(a(n)),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver(t=>{const r=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void i({width:t.inlineSize,height:t.blockSize})}i(a(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},t.observeWindowOffset=(e,t)=>{const n=e.scrollElement;if(!n)return;const a=e.targetWindow;if(!a)return;let i=0;const o=e.options.useScrollendEvent&&l?()=>{}:r.debounce(a,()=>{t(i,!1)},e.options.isScrollingResetDelay),u=r=>()=>{i=n[e.options.horizontal?"scrollX":"scrollY"],o(),t(i,r)},c=u(!0),d=u(!1);n.addEventListener("scroll",c,s);const p=e.options.useScrollendEvent&&l;return p&&n.addEventListener("scrollend",d,s),()=>{n.removeEventListener("scroll",c),p&&n.removeEventListener("scrollend",d)}},t.observeWindowRect=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=()=>{t({width:n.innerWidth,height:n.innerHeight})};return r(),n.addEventListener("resize",r,s),()=>{n.removeEventListener("resize",r)}},t.windowScroll=(e,{adjustments:t=0,behavior:n},r)=>{var a,i;const o=e+t;null==(i=null==(a=r.scrollElement)?void 0:a.scrollTo)||i.call(a,{[r.options.horizontal?"left":"top"]:o,behavior:n})}},19559(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(42689))},19985(e,t,n){"use strict";n.d(t,{bq:()=>s,wt:()=>l,sD:()=>o});var r=n(71570);let a=!1;function i(){return a}function o(e,t){if(!i())return!(!t||!e)&&e.contains(t);if(!e||!t)return!1;let n=t;for(;null!==n;){if(n===e)return!0;n="SLOT"===n.tagName&&n.assignedSlot?n.assignedSlot.parentNode:(0,r.Ng)(n)?n.host:n.parentNode}return!1}const s=(e=document)=>{var t;if(!i())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(null===(t=n.shadowRoot)||void 0===t?void 0:t.activeElement);)n=n.shadowRoot.activeElement;return n};function l(e){if(i()&&e.target instanceof Element&&e.target.shadowRoot){var t,n;if("composedPath"in e)return null!==(t=e.composedPath()[0])&&void 0!==t?t:null;if("composedPath"in e.nativeEvent)return null!==(n=e.nativeEvent.composedPath()[0])&&void 0!==n?n:null}return e.target}},20020(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousSubject=t.Subject=void 0;var o=n(92023),s=n(27491),l=n(98083),u=n(7394),c=n(79916),d=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return a(t,e),t.prototype.lift=function(e){var t=new p(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new l.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;c.errorContext(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var a=i(t.currentObservers),o=a.next();!o.done;o=a.next()){o.value.next(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;c.errorContext(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;c.errorContext(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,a=n.isStopped,i=n.observers;return r||a?s.EMPTY_SUBSCRIPTION:(this.currentObservers=null,i.push(e),new s.Subscription(function(){t.currentObservers=null,u.arrRemove(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,a=t.isStopped;n?e.error(r):a&&e.complete()},t.prototype.asObservable=function(){var e=new o.Observable;return e.source=this,e},t.create=function(e,t){return new p(e,t)},t}(o.Observable);t.Subject=d;var p=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return a(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:s.EMPTY_SUBSCRIPTION},t}(d);t.AnonymousSubject=p},20297(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publish=void 0;var r=n(20020),a=n(59924),i=n(32216);t.publish=function(e){return e?function(t){return i.connect(e)(t)}:function(e){return a.multicast(new r.Subject)(e)}}},20311(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(42689))},20414(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bottom=u,t.childrenEqual=function(e,t){return(0,r.default)(a.default.Children.map(e,function(e){return null==e?void 0:e.key}),a.default.Children.map(t,function(e){return null==e?void 0:e.key}))},t.cloneLayout=c,t.cloneLayoutItem=p,t.collides=h,t.compact=m,t.compactItem=y,t.compactType=function(e){var t=e||{},n=t.verticalCompact,r=t.compactType;return!1===n?null:r},t.correctBounds=b,t.fastPositionEqual=function(e,t){return e.left===t.left&&e.top===t.top&&e.width===t.width&&e.height===t.height},t.fastRGLPropsEqual=void 0,t.getAllCollisions=M,t.getFirstCollision=w,t.getLayoutItem=_,t.getStatics=S,t.modifyLayout=d,t.moveElement=k,t.moveElementAwayFromCollision=L,t.noop=void 0,t.perc=function(e){return 100*e+"%"},t.setTopLeft=function(e){var t=e.top,n=e.left,r=e.width,a=e.height;return{top:"".concat(t,"px"),left:"".concat(n,"px"),width:"".concat(r,"px"),height:"".concat(a,"px"),position:"absolute"}},t.setTransform=function(e){var t=e.top,n=e.left,r=e.width,a=e.height,i="translate(".concat(n,"px,").concat(t,"px)");return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:"".concat(r,"px"),height:"".concat(a,"px"),position:"absolute"}},t.sortLayoutItems=x,t.sortLayoutItemsByColRow=T,t.sortLayoutItemsByRowCol=D,t.synchronizeLayoutWithChildren=function(e,t,n,r,i){e=e||[];var o=[];a.default.Children.forEach(t,function(t){if(null!=(null==t?void 0:t.key)){var n=_(e,String(t.key));if(n)o.push(p(n));else{0;var r=t.props["data-grid"]||t.props._grid;r?o.push(p(s(s({},r),{},{i:t.key}))):o.push(p({w:1,h:1,x:0,y:u(o),i:String(t.key)}))}}});var l=b(o,{cols:n});return i?l:m(l,r,n)},t.validateLayout=O,t.withLayoutItem=function(e,t,n){var r=_(e,t);return r?(r=n(p(r)),[e=d(e,r),r]):[e,null]};var r=i(n(77842)),a=i(n(85959));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;tn&&(n=t);return n}function c(e){for(var t=Array(e.length),n=0,r=e.length;n=t.x+t.w)&&(!(e.y+e.h<=t.y)&&!(e.y>=t.y+t.h))))}function m(e,t,n){for(var r=S(e),a=x(e,t),i=Array(e.length),o=0,s=a.length;ot.y+t.h)break;h(t,o)&&v(e,o,n+t[a],r)}}t[r]=n}function y(e,t,n,r,a){var i,o="horizontal"===n;if("vertical"===n)for(t.y=Math.min(u(e),t.y);t.y>0&&!w(e,t);)t.y--;else if(o)for(;t.x>0&&!w(e,t);)t.x--;for(;i=w(e,t);)o?v(a,t,i.x+i.w,"x"):v(a,t,i.y+i.h,"y"),o&&t.x+t.w>r&&(t.x=r-t.w,t.y++);return t.y=Math.max(t.y,0),t.x=Math.max(t.x,0),t}function b(e,t){for(var n=S(e),r=0,a=e.length;rt.cols&&(i.x=t.cols-i.w),i.x<0&&(i.x=0,i.w=t.cols),i.static)for(;w(n,i);)i.y++;else n.push(i)}return e}function _(e,t){for(var n=0,r=e.length;n=r:"horizontal"===o&&"number"==typeof n&&u>=n)&&(p=p.reverse());var f=M(p,t),h=f.length>0;if(h&&l)return c(e);if(h&&i)return E("Collision prevented on ".concat(t.i,", reverting.")),t.x=u,t.y=d,t.moved=!1,e;for(var m=0,g=f.length;mt.y||e.y===t.y&&e.x>t.x?1:e.y===t.y&&e.x===t.x?0:-1})}function T(e){return e.slice(0).sort(function(e,t){return e.x>t.x||e.x===t.x&&e.y>t.y?1:-1})}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Layout",n=["x","y","w","h"];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(var r=0,a=e.length;r=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,r,a){var i,o=t.words[r];return 1===r.length?"y"===r&&n?"једна година":a||n?o[0]:o[1]:(i=t.correctGrammaticalCase(e,o),"yy"===r&&n&&"годину"===i?e+" година":e+" "+i)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(42689))},20600(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],a=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(42689))},20787(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.takeLast=void 0;var a=n(47209),i=n(35416),o=n(1266);t.takeLast=function(e){return e<=0?function(){return a.EMPTY}:i.operate(function(t,n){var a=[];t.subscribe(o.createOperatorSubscriber(n,function(t){a.push(t),e>>0).toString(36)}(r.stringify(e))},selector:function(e,t){return e+(":"===t[0]?"":" ")+t},putRaw:function(e){r.raw+=e}},e);return r.client&&(r.sh||document.head.appendChild(r.sh=document.createElement("style")),r.putRaw=function(e){var t=r.sh.sheet;try{t.insertRule(e,t.cssRules.length)}catch(e){}}),r.put=function(e,t,n){var a,i,o="",s=[];for(a in t)(i=t[a])instanceof Object&&!(i instanceof Array)?s.push(a):o+=r.decl(a,i,e,n);o&&(o=e+"{"+o+"}",r.putRaw(n?n+"{"+o+"}":o));for(var l=0;l(e.Opacity="opacity",e.Scheme="scheme",e))(a||{}),i=(e=>(e.Exponential="exponential",e.Linear="linear",e))(i||{}),o=(e=>(e.X="x",e.Xy="xy",e.Y="y",e))(o||{});const s={calculate:!1,cellGap:1,cellValues:{},color:{scheme:"Oranges",fill:"dark-orange",reverse:!1,exponent:.5,steps:64},exemplars:{color:"rgba(255,0,255,0.7)"},filterValues:{le:1e-9},legend:{show:!0},selectionMode:"x",showValue:r.VisibilityMode.Auto,tooltip:{mode:r.TooltipDisplayMode.Single,yHistogram:!1,showColorScale:!1}};t.HeatmapColorMode=a,t.HeatmapColorScale=i,t.HeatmapSelectionMode=o,t.defaultOptions=s,t.pluginVersion="12.4.1"},21971(e,t){"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Redigera filter med nyckeln {{keyLabel}}","managed-filter":"Filter som hanteras av {{origin}}","non-applicable":"","remove-filter-with-key":"Ta bort filter med nyckeln {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Ta bort filtervärde – {{itemLabel}}","use-custom-value":"Använd anpassat värde: {{itemLabel}}"},"fallback-page":{content:"Om du kom hit via en länk kan det finnas en bugg i den här applikationen.",subTitle:"Webbadressen matchade ingen sida",title:"Hittades inte"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Dölj scen","expand-button-label":"Visa scen","remove-button-label":"Ta bort scen"},"scene-debugger":{"object-details":"Information om objekt","scene-graph":"Scengraf","title-scene-debugger":"Scenfelsökare"},"scene-grid-row":{"collapse-row":"Dölj rad","expand-row":"Expandera rad"},"scene-refresh-picker":{"text-cancel":"Avbryt","text-refresh":"Uppdatera","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Jämförelse","button-tooltip":"Aktivera jämförelse av tidsram"},splitter:{"aria-label-pane-resize-widget":"Widget för storleksändring av ruta"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Titel"}},"viz-panel-explore-button":{explore:"Utforska"},"viz-panel-renderer":{"loading-plugin-panel":"Läser in tilläggspanel …","panel-plugin-has-no-panel-component":"Paneltillägg har ingen panelkomponent"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Att återge för många serier i en enda panel kan påverka prestandan och göra data svårare att läsa. ","warning-message":"Visar endast {{seriesLimit}} serier"}},utils:{"controls-label":{"tooltip-remove":"Ta bort"},"loading-indicator":{"content-cancel-query":"Avbryt fråga"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Redigera filteroperator"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Lägg till filter","title-add-filter":"Lägg till filter"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Ta bort filter","key-select":{"placeholder-select-label":"Välj etikett"},"label-select-label":"Välj etikett","title-remove-filter":"Ta bort filter","value-select":{"placeholder-select-value":"Välj värde"}},"data-source-variable":{label:{default:"standard"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"radera",tooltip:"Tillämpas som standard i denna instrumentpanel. Om den redigeras överförs det till andra instrumentpaneler.","tooltip-restore-groupby-set-by-this-dashboard":"Återställ gruppering som inställts av denna panel."},"format-registry":{formats:{description:{"commaseparated-values":"Kommaavgränsade värden","double-quoted-values":"Dubbelciterade värden","format-date-in-different-ways":"Formatera datum på olika sätt","format-multivalued-variables-using-syntax-example":"Formatera flervärdesvariabler med globsyntax, till exempel {value1,value2}","html-escaping-of-values":"HTML-undantagstecken för värden","join-values-with-a-comma":"","json-stringify-value":"JSON stringify-värde","keep-value-as-is":"Behåll värdet som det är","multiple-values-are-formatted-like-variablevalue":"Flera värden formateras som variabel=värde","single-quoted-values":"Enkla citerade värden","useful-escaping-values-taking-syntax-characters":"Användbart för URL-undantagna värden, med hänsyn till URI-syntaxtecken","useful-for-url-escaping-values":"Användbart för URL-undantagning av värden","values-are-separated-by-character":"Värdena är åtskilda med tecknet |"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Gruppera efter väljare","placeholder-group-by-label":"Gruppera efter etikett"},"interval-variable":{"placeholder-select-value":"Välj värde"},"loading-options-placeholder":{"loading-options":"Laddar alternativ …"},"multi-value-apply-button":{apply:"Tillämpa"},"no-options-placeholder":{"no-options-found":"Inga alternativ hittades"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Ett fel uppstod vid hämtning av etiketter. Klicka för att försöka igen"},"test-object-with-variable-dependency":{title:{hello:"Hej"}},"test-variable":{text:{text:"Text"}},"variable-value-input":{"placeholder-enter-value":"Ange ett värde"},"variable-value-select":{"placeholder-select-value":"Välj värde"}}}}},21997(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n(42689))},22862(e,t,n){"use strict";const r=n(55380);e.exports=(e,t,n)=>r(t,e,n)},22984(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;var r=n(3818),a=n(35416),i=function(e,t){return e.push(t),e};t.toArray=function(){return a.operate(function(e,t){r.reduce(i,[])(e).subscribe(t)})}},23298(e){e.exports=function(){"use strict";var e={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},t=Array.prototype.slice;function n(e){var n=e.length;return n?1===n?[e[0]]:2===n?[e[0],e[1]]:3===n?[e[0],e[1],e[2]]:t.call(e,0):[]}function r(t){var n={};for(var r in t)e[r]||(n[r]=t[r]);return n}function a(e){return"function"==typeof e&&e.isMemoized}function i(e,t){return e===t||e!=e&&t!=t}function o(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}var s=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:n(this.keys),size:this.size,values:n(this.values)}},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,n=t.isMatchingKey,r=t.maxSize,a=this.keys,i=a.length;if(!i)return-1;if(n(a[0],e))return 0;if(r>1)for(var o=1;o1){for(var s=0;s1){for(var i=0;i=s&&(r.length=a.length=s)},e.prototype.updateAsyncCache=function(e){var t=this,n=this.options,r=n.onCacheChange,a=n.onCacheHit,i=this.keys[0],o=this.values[0];this.values[0]=o.then(function(n){return t.shouldUpdateOnHit&&a(t,t.options,e),t.shouldUpdateOnChange&&r(t,t.options,e),n},function(e){var n=t.getKeyIndex(i);throw-1!==n&&(t.keys.splice(n,1),t.values.splice(n,1)),e})},e}();function l(e,t){if(void 0===t&&(t={}),a(e))return l(e.fn,o(e.options,t));if("function"!=typeof e)throw new TypeError("You must pass a function to `memoize`.");var u=t.isEqual,c=void 0===u?i:u,d=t.isMatchingKey,p=t.isPromise,f=void 0!==p&&p,h=t.maxSize,m=void 0===h?1:h,g=t.onCacheAdd,v=t.onCacheChange,y=t.onCacheHit,b=t.transformKey,_=o({isEqual:c,isMatchingKey:d,isPromise:f,maxSize:m,onCacheAdd:g,onCacheChange:v,onCacheHit:y,transformKey:b},r(t)),w=new s(_),M=w.keys,S=w.values,k=w.canTransformKey,L=w.shouldCloneArguments,x=w.shouldUpdateOnAdd,D=w.shouldUpdateOnChange,T=w.shouldUpdateOnHit,O=function(){var t=L?n(arguments):arguments;k&&(t=b(t));var r=M.length?w.getKeyIndex(t):-1;if(-1!==r)T&&y(w,_,O),r&&(w.orderByLru(M[r],S[r],r),D&&v(w,_,O));else{var a=e.apply(this,arguments),i=L?t:n(arguments);w.orderByLru(i,a,M.length),f&&w.updateAsyncCache(O),x&&g(w,_,O),D&&v(w,_,O)}return S[0]};return O.cache=w,O.fn=e,O.isMemoized=!0,O.options=_,O}return l}()},23811(e,t,n){"use strict";const r=n(36909),a=n(97659),i=n(60144),o=n(82077),s=n(30599),l=n(17092);e.exports=(e,t,n,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,u);case"!=":return a(e,n,u);case">":return i(e,n,u);case">=":return o(e,n,u);case"<":return s(e,n,u);case"<=":return l(e,n,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},23901(e,t,n){"use strict";n.d(t,{t:()=>re});var r=n(56308);const a=e=>"string"==typeof e,i=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},o=e=>null==e?"":""+e,s=/###/g,l=e=>e&&e.indexOf("###")>-1?e.replace(s,"."):e,u=e=>!e||a(e),c=(e,t,n)=>{const r=a(t)?t.split("."):t;let i=0;for(;i{const{obj:r,k:a}=c(e,t,Object);if(void 0!==r||1===t.length)return void(r[a]=n);let i=t[t.length-1],o=t.slice(0,t.length-1),s=c(e,o,Object);for(;void 0===s.obj&&o.length;)i=`${o[o.length-1]}.${i}`,o=o.slice(0,o.length-1),s=c(e,o,Object),s?.obj&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},p=(e,t)=>{const{obj:n,k:r}=c(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},f=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?a(e[r])||e[r]instanceof String||a(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):f(e[r],t[r],n):e[r]=t[r]);return e},h=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var m={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const g=e=>a(e)?e.replace(/[&<>"'\/]/g,e=>m[e]):e;const v=[" ",",","?","!",";"],y=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),b=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const r=t.split(n);let a=e;for(let e=0;e-1&&oe?.replace(/_/g,"-"),w={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class M{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||w,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(a(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new M(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new M(this.logger,e)}}var S=new M;class k{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r{for(let a=0;a-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,t],n&&(Array.isArray(n)?s.push(...n):a(n)&&i?s.push(...n.split(i)):s.push(n)));const l=p(this.data,s);return!l&&!t&&!n&&e.indexOf(".")>-1&&(e=s[0],t=s[1],n=s.slice(2).join(".")),!l&&o&&a(n)?b(this.data?.[e]?.[t],n,i):l}addResource(e,t,n,r,a={silent:!1}){const i=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator;let o=[e,t];n&&(o=o.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(o=e.split("."),r=t,t=o[1]),this.addNamespaces(t),d(this.data,o,r),a.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(const r in n)(a(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,a,i={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=p(this.data,o)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?f(s,n,a):s={...s,...n},d(this.data,o,s),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var x={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,a)??t}),t}};const D=Symbol("i18next/PATH_KEY");function T(e,t){const{[D]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,a)=>(n?.revoke?.(),a===D?e:(e.push(a),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}()),r=t?.keySeparator??".",a=t?.nsSeparator??":";if(n.length>1&&a){const e=t?.ns,i=Array.isArray(e)?e:null;if(i&&i.length>1&&i.slice(1).includes(n[0]))return`${n[0]}${a}${n.slice(1).join(r)}`}return n.join(r)}const O={},E=e=>!a(e)&&"boolean"!=typeof e&&"number"!=typeof e;class P extends k{constructor(e,t={}){super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=S.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const n={...t};if(null==e)return!1;const r=this.resolve(e,n);if(void 0===r?.res)return!1;const a=E(r.res);return!1!==n.returnObjects||!a}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,s=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=v.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const a=y.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!a.test(e);if(!i){const t=e.indexOf(n);t>0&&!a.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(o&&!s){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:a(i)?[i]:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return{key:e,namespaces:a(i)?[i]:i}}translate(e,t,n){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=T(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?T(e,{...this.options,...r}):String(e));const i=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(e[e.length-1],r),u=l[l.length-1];let c=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const d=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===d?.toLowerCase())return p?i?{res:`${u}${c}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:`${u}${c}${s}`:i?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:s;const f=this.resolve(e,r);let h=f?.res;const m=f?.usedKey||s,g=f?.exactUsedKey||s,v=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=void 0!==r.count&&!a(r.count),_=P.hasDefaultValue(r),w=b?this.pluralResolver.getSuffix(d,r.count,r):"",M=r.ordinal&&b?this.pluralResolver.getSuffix(d,r.count,{ordinal:!1}):"",S=b&&!r.ordinal&&0===r.count,k=S&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${w}`]||r[`defaultValue${M}`]||r.defaultValue;let L=h;y&&!h&&_&&(L=k);const x=E(L),D=Object.prototype.toString.apply(L);if(!(y&&L&&x&&["[object Number]","[object Function]","[object RegExp]"].indexOf(D)<0)||a(v)&&Array.isArray(L))if(y&&a(v)&&Array.isArray(h))h=h.join(v),h&&(h=this.extendTranslation(h,e,r,n));else{let t=!1,a=!1;!this.isValidLookup(h)&&_&&(t=!0,h=k),this.isValidLookup(h)||(a=!0,h=s);const i=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:h,l=_&&k!==h&&this.options.updateMissing;if(a||t||l){if(this.logger.log(l?"updateKey":"missingKey",d,u,s,l?k:h),o){const e=this.resolve(s,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n{const a=_&&n!==h?n:i;this.options.missingKeyHandler?this.options.missingKeyHandler(e,u,t,a,l,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,u,t,a,l,r),this.emit("missingKey",e,u,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);S&&r[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,r[`defaultValue${t}`]||k)})}):n(e,s,k))}h=this.extendTranslation(h,e,r,f,n),a&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${u}${c}${s}`),(a||t)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${c}${s}`:s,t?h:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,L,{...r,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(f.res=e,f.usedParams=this.getUsedParamsDetails(r),f):e}if(o){const e=Array.isArray(L),t=e?[]:{},n=e?g:m;for(const e in L)if(Object.prototype.hasOwnProperty.call(L,e)){const a=`${n}${o}${e}`;t[e]=_&&!h?this.translate(a,{...r,defaultValue:E(k)?k[e]:void 0,joinArrays:!1,ns:l}):this.translate(a,{...r,joinArrays:!1,ns:l}),t[e]===a&&(t[e]=L[e])}h=t}}return i?(f.res=h,f.usedParams=this.getUsedParamsDetails(r),f):h}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const o=a(e)&&(void 0!==n?.interpolation?.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(o){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=n.replace&&!a(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language||r.usedLng,n),o){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>i?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}const o=n.postProcess||this.options.postProcess,s=a(o)?[o]:o;return null!=e&&s?.length&&!1!==n.applyPostProcessor&&(e=x.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,o,s;return a(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?T(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;const l=this.extractFromKey(e,t),u=l.key;r=u;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const d=void 0!==t.count&&!a(t.count),p=d&&!t.ordinal&&0===t.count,f=void 0!==t.context&&(a(t.context)||"number"==typeof t.context)&&""!==t.context,h=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(n)||(s=e,O[`${h[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(s)||(O[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${h.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(r=>{if(this.isValidLookup(n))return;o=r;const a=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(a,u,r,e,t);else{let e;d&&(e=this.pluralResolver.getSuffix(r,t.count,t));const n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(t.ordinal&&0===e.indexOf(i)&&a.push(u+e.replace(i,this.options.pluralSeparator)),a.push(u+e),p&&a.push(u+n)),f){const r=`${u}${this.options.contextSeparator||"_"}${t.context}`;a.push(r),d&&(t.ordinal&&0===e.indexOf(i)&&a.push(r+e.replace(i,this.options.pluralSeparator)),a.push(r+e),p&&a.push(r+n))}}let s;for(;s=a.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:o,usedNS:s}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!a(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}class C{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=S.create("languageUtils")}getScriptPartFromCode(e){if(!(e=_(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=_(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(a(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),a(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return a(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):a(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}}const Y={zero:0,one:1,two:2,few:3,many:4,other:5},A={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class R{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=S.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=_("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:n,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let i;try{i=new Intl.PluralRules(n,{type:r})}catch(n){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),A;if(!e.match(/-|_/))return A;const r=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(r,t)}return this.pluralRulesCache[a]=i,i}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>Y[e]-Y[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){const r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const j=(e,t,n,r=".",i=!0)=>{let o=((e,t,n)=>{const r=p(e,n);return void 0!==r?r:p(t,n)})(e,t,n);return!o&&i&&a(n)&&(o=b(e,n,r),void 0===o&&(o=b(t,n,r))),o},I=e=>e.replace(/\$/g,"$$$$");class F{constructor(e={}){this.logger=S.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:a,prefixEscaped:i,suffix:o,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:p,nestingSuffix:f,nestingSuffixEscaped:m,nestingOptionsSeparator:v,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:g,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=a?h(a):i||"{{",this.suffix=o?h(o):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?h(d):p||h("$t("),this.nestingSuffix=f?h(f):m||h(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,s,l;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){const a=j(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(a,void 0,n,{...r,...t,interpolationkey:e}):a}const a=e.split(this.formatSeparator),i=a.shift().trim(),o=a.join(this.formatSeparator).trim();return this.format(j(t,u,i,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const d=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,p=void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>I(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?I(this.escape(e)):I(e)}].forEach(t=>{for(l=0;i=t.regex.exec(e);){const n=i[1].trim();if(s=c(n),void 0===s)if("function"==typeof d){const t=d(e,i,r);s=a(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))s="";else{if(p){s=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),s=""}else a(s)||this.useRawValueToEscape||(s=o(s));const u=t.safeValue(s);if(e=e.replace(i[0],u),p?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,s;const l=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${h(n)}[ ]*{`));let a=`{${r[1]}`;e=r[0],a=this.interpolate(a,s);const i=a.match(/'/g),o=a.match(/"/g);((i?.length??0)%2==0&&!o||(o?.length??0)%2!=0)&&(a=a.replace(/'/g,'"'));try{s=JSON.parse(a),t&&(s={...t,...s})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${a}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let u=[];s={...n},s=s.replace&&!a(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;const c=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==c&&(u=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(l.call(this,r[1].trim(),s),s),i&&r[0]===e&&!a(i))return i;a(i)||(i=o(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),u.length&&(i=u.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}const H=e=>{const t={};return(n,r,a)=>{let i=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(i={...i,[a.interpolationkey]:void 0});const o=r+JSON.stringify(i);let s=t[o];return s||(s=e(_(r),a),t[o]=s),s(n)}},N=e=>(t,n,r)=>e(_(n),r)(t);class z{constructor(e={}){this.logger=S.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?H:N;this.formats={number:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=H(t)}format(e,t,n,r={}){const a=t.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(e=>e.indexOf(")")>-1)){const e=a.findIndex(e=>e.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,e)].join(this.formatSeparator)}return a.reduce((e,t)=>{const{formatName:a,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);"currency"===t&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):"relativetime"===t&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),a=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=a),"false"===a&&(n[i]=!1),"true"===a&&(n[i]=!0),isNaN(a)||(n[i]=parseInt(a,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[a]){let t=e;try{const o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[a](e,s,{...i,...r,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${a}`),e},e)}}class V extends k{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=S.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){const a={},i={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===i[o]&&(i[o]=!0):(this.state[o]=1,r=!1,void 0===i[o]&&(i[o]=!0),void 0===a[o]&&(a[o]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),a=r[0],i=r[1];t&&this.emit("failedLoading",a,i,t),!t&&n&&this.store.addResourceBundle(a,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const o={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:a}=c(e,t,Object);r[a]=r[a]||[],r[a].push(n)})(n.loaded,[a],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===o[e][t]&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,a=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:a,callback:i});this.readingCalls++;const o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}o&&s&&r{this.read.call(this,e,t,n,r+1,2*a,i)},a):i(o,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,o);try{const n=s(e,t);n&&"function"==typeof n.then?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();a(e)&&(e=this.languageUtils.toResolveHierarchy(e)),a(t)&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){const n=e.split("|"),r=n[0],a=n[1];this.read(r,a,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${a} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${a} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,a,i={},o=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=n&&""!==n){if(this.backend?.create){const s={...i,isUpdate:a},l=this.backend.create.bind(this.backend);if(l.length<6)try{let a;a=5===l.length?l(e,t,n,r,s):l(e,t,n,r),a&&"function"==typeof a.then?a.then(e=>o(null,e)).catch(o):o(null,a)}catch(e){o(e)}else l(e,t,n,r,o,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const W=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),a(e[1])&&(t.defaultValue=e[1]),a(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),$=e=>(a(e.ns)&&(e.ns=[e.ns]),a(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),a(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),U=()=>{},B="__i18next_supportNoticeShown";class q extends k{constructor(e={},t){var n;if(super(),this.options=$(e),this.services={},this.logger=S,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(a(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=W();var r;this.options={...n,...this.options,...$(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||(r=this,r?.modules?.backend?.name?.indexOf("Locize")>0||r?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||r?.options?.backend?.backends&&r.options.backend.backends.some(e=>e?.name?.indexOf("Locize")>0||e?.constructor?.name?.indexOf("Locize")>0)||r?.options?.backend?.projectId||r?.options?.backend?.backendOptions&&r.options.backend.backendOptions.some(e=>e?.projectId))||"undefined"!=typeof globalThis&&globalThis[B]||("undefined"!=typeof console&&console.info,"undefined"!=typeof globalThis&&(globalThis[B]=!0));const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?S.init(o(this.modules.logger),this.options):S.init(null,this.options),e=this.modules.formatter?this.modules.formatter:z;const t=new C(this.options);this.store=new L(this.options.resources,this.options);const r=this.services;r.logger=S,r.resourceStore=this.store,r.languageUtils=t,r.pluralResolver=new R(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(r.formatter=o(e),r.formatter.init&&r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new F(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new V(o(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(r.languageDetector=o(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=o(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new P(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=U),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const s=i(),l=()=>{const e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),s}loadResources(e,t=U){let n=t;const r=a(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===r?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(r)t(r);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e))}this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){const r=i();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=U),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&x.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const n=i();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(a,i)=>{i?this.isLanguageChangingTo===e&&(r(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(a,(...e)=>this.t(...e))},s=t=>{e||t||!this.services.languageDetector||(t=[]);const n=a(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(a(t)?[t]:t);i&&(this.language||r(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{o(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),n}getFixedT(e,t,n){const r=(e,t,...a)=>{let i;i="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(a)):{...t},i.lng=i.lng||r.lng,i.lngs=i.lngs||r.lngs,i.ns=i.ns||r.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||n||r.keyPrefix);const o={...this.options,...i},s=this.options.keySeparator||".";let l;return i.keyPrefix&&Array.isArray(e)?l=e.map(e=>("function"==typeof e&&(e=T(e,o)),`${i.keyPrefix}${s}${e}`)):("function"==typeof e&&(e=T(e,o)),l=i.keyPrefix?`${i.keyPrefix}${s}${e}`:e),this.t(l,i)};return a(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(a,e)))}loadNamespaces(e,t){const n=i();return this.options.ns?(a(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=i();a(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new C(W());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const n=new q(e,t);return n.createInstance=q.createInstance,n}cloneInstance(e={},t=U){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},a=new q(r);void 0===e.debug&&void 0===e.prefix||(a.logger=a.logger.clone(e));if(["store","services","language"].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{});a.store=new L(e,r),a.services.resourceStore=a.store}if(e.interpolation){const t={...W().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};a.services.interpolator=new F(n)}return a.translator=new P(a.services,r),a.translator.on("*",(e,...t)=>{a.emit(e,...t)}),a.init(r,t),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const G=q.createInstance();G.createInstance,G.dir,G.init,G.loadResources,G.reloadResources,G.use,G.changeLanguage,G.getFixedT,G.t,G.exists,G.setDefaultNamespace,G.hasLoadedNamespace,G.loadNamespaces,G.loadLanguages;n(12091);var K=n(79315);const J="en-US",Q=J;let Z,X;function ee({id:e,ns:t}={}){if(e)return Z=ne().getFixedT(null,e),void(X=t=>(0,r.jsx)(K.Trans,{shouldUnescape:!0,ns:e,...t}));Z=ne().t,X=e=>(0,r.jsx)(K.Trans,{shouldUnescape:!0,ns:t,...e})}function te(){var e;if((null==(e=ne().options)?void 0:e.resources)&&"object"==typeof ne().options.resources)return;const t=ne().use(K.initReactI18next).init({resources:{},returnEmptyString:!1,lng:Q});return ee(),t}function ne(){const e=G;return e&&e.default?e.default:e}const re=(e,t,n)=>(te(),Z||(console.warn("t() was called before i18n was initialized. This is probably caused by calling t() in the root module scope, instead of lazily on render"),Z=ne().t),Z(e,t,n))},23956(e,t){"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Editar filtro com chave {{keyLabel}}","managed-filter":"Filtro gerenciado de {{origin}}","non-applicable":"","remove-filter-with-key":"Remover filtro com chave {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Remover valor do filtro: {{itemLabel}}","use-custom-value":"Usar valor personalizado: {{itemLabel}}"},"fallback-page":{content:"Se você chegou aqui usando um link, pode haver um bug neste aplicativo.",subTitle:"O URL não corresponde a nenhuma página",title:"Não encontrado"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Recolher cena","expand-button-label":"Expandir cena","remove-button-label":"Remover cena"},"scene-debugger":{"object-details":"Detalhes do objeto","scene-graph":"Gráfico de cena","title-scene-debugger":"Depurador de cena"},"scene-grid-row":{"collapse-row":"Recolher linha","expand-row":"Expandir linha"},"scene-refresh-picker":{"text-cancel":"Cancelar","text-refresh":"Atualizar","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Comparação","button-tooltip":"Ativar comparação de intervalo de tempo"},splitter:{"aria-label-pane-resize-widget":"Widget de redimensionamento do painel"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Título"}},"viz-panel-explore-button":{explore:"Explorar"},"viz-panel-renderer":{"loading-plugin-panel":"Carregando painel do plug-in…","panel-plugin-has-no-panel-component":"O plug-in do painel não possui componente de painel"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Renderizar muitas séries em um único painel pode afetar o desempenho e dificultar a leitura dos dados.","warning-message":"Mostrando apenas {{seriesLimit}} série(s)"}},utils:{"controls-label":{"tooltip-remove":"Remover"},"loading-indicator":{"content-cancel-query":"Cancelar consulta"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Editar operador de filtro"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Adicionar filtro","title-add-filter":"Adicionar filtro"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Remover filtro","key-select":{"placeholder-select-label":"Selecionar rótulo"},"label-select-label":"Selecionar rótulo","title-remove-filter":"Remover filtro","value-select":{"placeholder-select-value":"Selecionar valor"}},"data-source-variable":{label:{default:"padrão"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"limpar",tooltip:"Aplicado por padrão neste painel. Se editado, ele é transferido para outros painéis.","tooltip-restore-groupby-set-by-this-dashboard":"Restaura a função groupby definida por este painel."},"format-registry":{formats:{description:{"commaseparated-values":"Valores separados por vírgula","double-quoted-values":"Valores entre aspas duplas","format-date-in-different-ways":"Formatar data de diferentes maneiras","format-multivalued-variables-using-syntax-example":"Formatar variáveis de múltiplos valores usando a sintaxe glob. Por exemplo: {value1,value2}","html-escaping-of-values":"Escape HTML de valores","join-values-with-a-comma":"","json-stringify-value":"Valor convertido em string JSON","keep-value-as-is":"Manter o valor como está","multiple-values-are-formatted-like-variablevalue":"Vários valores são formatados como variável=valor","single-quoted-values":"Valores entre aspas simples","useful-escaping-values-taking-syntax-characters":"Útil para valores de escape de URL, levando em consideração caracteres de sintaxe URI","useful-for-url-escaping-values":"Útil para valores de escape de URL","values-are-separated-by-character":'Os valores são separados pelo caractere "|"'}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Agrupar por seletor","placeholder-group-by-label":"Agrupar por rótulo"},"interval-variable":{"placeholder-select-value":"Selecionar valor"},"loading-options-placeholder":{"loading-options":"Carregando opções…"},"multi-value-apply-button":{apply:"Aplicar"},"no-options-placeholder":{"no-options-found":"Nenhuma opção encontrada"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Ocorreu um erro ao buscar rótulos. Clique para tentar novamente"},"test-object-with-variable-dependency":{title:{hello:"Olá"}},"test-variable":{text:{text:"Texto"}},"variable-value-input":{"placeholder-enter-value":"Digite um valor"},"variable-value-select":{"placeholder-select-value":"Selecionar valor"}}}}},24811(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeUntil=void 0;var r=n(35416),a=n(1266),i=n(52296),o=n(16129);t.takeUntil=function(e){return r.operate(function(t,n){i.innerFrom(e).subscribe(a.createOperatorSubscriber(n,function(){return n.complete()},o.noop)),!n.closed&&t.subscribe(n)})}},25027(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(42689))},25059(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,t,n,r){var i="";switch(n){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":i=r?"sekunnin":"sekuntia";break;case"m":return r?"minuutin":"minuutti";case"mm":i=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":i=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":i=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":i=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":i=r?"vuoden":"vuotta"}return i=a(e,r)+" "+i}function a(e,r){return e<10?r?n[e]:t[e]:e}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(42689))},25217(e,t){"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Modifica filtro con chiave {{keyLabel}}","managed-filter":"filtro gestito da {{origin}}","non-applicable":"","remove-filter-with-key":"Rimuovi filtro con chiave {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Rimuovi valore filtro - {{itemLabel}}","use-custom-value":"Usa il valore personalizzato: {{itemLabel}}"},"fallback-page":{content:"Se un link ti ha portato qui, potrebbe esserci un bug in questa applicazione.",subTitle:"L'URL non corrispondeva a nessuna pagina",title:"Non trovato"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Riduci scena","expand-button-label":"Espandi scena","remove-button-label":"Rimuovi scena"},"scene-debugger":{"object-details":"Dettagli dell’oggetto","scene-graph":"Grafico della scena","title-scene-debugger":"Debugger della scena"},"scene-grid-row":{"collapse-row":"Riduci riga","expand-row":"Espandi riga"},"scene-refresh-picker":{"text-cancel":"Annulla","text-refresh":"Aggiorna","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Confronto","button-tooltip":"Abilita confronto intervallo di tempo"},splitter:{"aria-label-pane-resize-widget":"Widget di ridimensionamento del pannello"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Titolo"}},"viz-panel-explore-button":{explore:"Esplora"},"viz-panel-renderer":{"loading-plugin-panel":"Caricamento del pannello dei componenti aggiuntivi in corso...","panel-plugin-has-no-panel-component":"Il plug-in del pannello non ha alcun componente del pannello"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Il rendering di troppe serie in un singolo pannello può influire sulle prestazioni e rendere più difficile la lettura dei dati.","warning-message":"Mostra solo {{seriesLimit}} serie"}},utils:{"controls-label":{"tooltip-remove":"Rimuovi"},"loading-indicator":{"content-cancel-query":"Annulla query"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Modifica operatore del filtro"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Aggiungi filtro","title-add-filter":"Aggiungi filtro"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Rimuovi filtro","key-select":{"placeholder-select-label":"Seleziona etichetta"},"label-select-label":"Seleziona etichetta","title-remove-filter":"Rimuovi filtro","value-select":{"placeholder-select-value":"Seleziona valore"}},"data-source-variable":{label:{default:"predefinito"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"cancella",tooltip:"Applicato per impostazione predefinita in questa dashboard. Se modificato, viene trasferito ad altre dashboard.","tooltip-restore-groupby-set-by-this-dashboard":"Ripristina il raggruppamento impostato da questa dashboard."},"format-registry":{formats:{description:{"commaseparated-values":"Valori separati da virgola","double-quoted-values":"Valori tra virgolette doppie","format-date-in-different-ways":"Formatta la data in diversi modi","format-multivalued-variables-using-syntax-example":"Formatta le variabili a più valori utilizzando la sintassi glob, esempio {value1,value2}","html-escaping-of-values":"Escaping HTML dei valori","join-values-with-a-comma":"","json-stringify-value":"Valore JSON stringify","keep-value-as-is":"Mantieni il valore così com'è","multiple-values-are-formatted-like-variablevalue":"I valori multipli sono formattati come variabile=valore","single-quoted-values":"Valori tra virgolette singole","useful-escaping-values-taking-syntax-characters":"Utile per i valori di escape degli URL, tenendo conto dei caratteri di sintassi URI","useful-for-url-escaping-values":"Utile per i valori di escape degli URL","values-are-separated-by-character":"I valori sono separati dal carattere |"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Raggruppa per selettore","placeholder-group-by-label":"Raggruppa per etichetta"},"interval-variable":{"placeholder-select-value":"Seleziona valore"},"loading-options-placeholder":{"loading-options":"Caricamento opzioni in corso..."},"multi-value-apply-button":{apply:"Applica"},"no-options-placeholder":{"no-options-found":"Nessuna opzione trovata"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Si è verificato un errore durante il recupero delle etichette. Clicca per riprovare"},"test-object-with-variable-dependency":{title:{hello:"Ciao"}},"test-variable":{text:{text:"Testo"}},"variable-value-input":{"placeholder-enter-value":"Inserisci valore"},"variable-value-select":{"placeholder-select-value":"Seleziona valore"}}}}},25219(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferTime=void 0;var a=n(27491),i=n(35416),o=n(1266),s=n(7394),l=n(4386),u=n(11824),c=n(75031);t.bufferTime=function(e){for(var t,n,d=[],p=1;p=0?c.executeSchedule(n,f,d,h,!0):l=!0,d();var p=o.createOperatorSubscriber(n,function(e){var t,n,a=i.slice();try{for(var o=r(a),s=o.next();!s.done;s=o.next()){var l=s.value,c=l.buffer;c.push(e),m<=c.length&&u(l)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},function(){for(;null==i?void 0:i.length;)n.next(i.shift().buffer);null==p||p.unsubscribe(),n.complete(),n.unsubscribe()},void 0,function(){return i=null});t.subscribe(p)})}},25225(e,t,n){"use strict";n.d(t,{c:()=>V});var r=n(27405),a=n(68102),i=n(79089),o=n(97850),s=n(29644);var l=n(85959),u=n(48398),c=n(8083),d=l.useLayoutEffect,p=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],f=function(){};var h=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,s.A)(e,p);return(0,r.A)({},t)},m=function(e,t,n){var r=e.cx,a=e.getStyles,i=e.getClassNames,o=e.className;return{css:a(t,e),className:r(null!=n?n:{},i(t,e),o)}};var g={get passive(){return!0}},v="undefined"!=typeof window?window:{};v.addEventListener&&v.removeEventListener&&(v.addEventListener("p",f,g),v.removeEventListener("p",f,!1));var y=["children","innerProps"],b=["children","innerProps"];var _,w=function(e){return"auto"===e?"bottom":e},M=(0,l.createContext)(null),S=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return(0,i.jsx)("div",(0,a.A)({},m(e,"menu",{menu:!0}),{ref:n},r),t)},k=["size"],L=["innerProps","isRtl","size"];var x,D,T={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},O=function(e){var t=e.size,n=(0,s.A)(e,k);return(0,i.jsx)("svg",(0,a.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:T},n))},E=function(e){return(0,i.jsx)(O,(0,a.A)({size:20},e),(0,i.jsx)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},P=function(e){return(0,i.jsx)(O,(0,a.A)({size:20},e),(0,i.jsx)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},C=(0,i.keyframes)(_||(x=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],D||(D=x.slice(0)),_=Object.freeze(Object.defineProperties(x,{raw:{value:Object.freeze(D)}})))),Y=function(e){var t=e.delay,n=e.offset;return(0,i.jsx)("span",{css:(0,i.css)({animation:"".concat(C," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},A=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,s=e.innerProps,l=e.menuIsOpen;return(0,i.jsx)("div",(0,a.A)({ref:o},m(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":l}),s,{"aria-disabled":n||void 0}),t)},R=["data"],j=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,s=e.Heading,l=e.headingProps,u=e.innerProps,c=e.label,d=e.theme,p=e.selectProps;return(0,i.jsx)("div",(0,a.A)({},m(e,"group",{group:!0}),u),(0,i.jsx)(s,(0,a.A)({},l,{selectProps:p,theme:d,getStyles:r,getClassNames:o,cx:n}),c),(0,i.jsx)("div",null,t))},I=["innerRef","isDisabled","isHidden","inputClassName"],F={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},H=((0,r.A)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},F),function(e){return(0,r.A)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},F)}),N=function(e){var t=e.children,n=e.innerProps;return(0,i.jsx)("div",n,t)};var z=function(e){var t=e.children,n=e.components,a=e.data,o=e.innerProps,s=e.isDisabled,l=e.removeProps,u=e.selectProps,c=n.Container,d=n.Label,p=n.Remove;return(0,i.jsx)(c,{data:a,innerProps:(0,r.A)((0,r.A)({},m(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),o),selectProps:u},(0,i.jsx)(d,{data:a,innerProps:(0,r.A)({},m(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},t),(0,i.jsx)(p,{data:a,innerProps:(0,r.A)((0,r.A)({},m(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},l),selectProps:u}))},V={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.jsx)("div",(0,a.A)({},m(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,i.jsx)(E,null))},Control:A,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.jsx)("div",(0,a.A)({},m(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,i.jsx)(P,null))},DownChevron:P,CrossIcon:E,Group:j,GroupHeading:function(e){var t=h(e);t.data;var n=(0,s.A)(t,R);return(0,i.jsx)("div",(0,a.A)({},m(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,i.jsx)("div",(0,a.A)({},m(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,i.jsx)("span",(0,a.A)({},t,m(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=h(e),o=r.innerRef,l=r.isDisabled,u=r.isHidden,c=r.inputClassName,d=(0,s.A)(r,I);return(0,i.jsx)("div",(0,a.A)({},m(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,i.jsx)("input",(0,a.A)({className:t({input:!0},c),ref:o,style:H(u),disabled:l},d)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,l=void 0===o?4:o,u=(0,s.A)(e,L);return(0,i.jsx)("div",(0,a.A)({},m((0,r.A)((0,r.A)({},u),{},{innerProps:t,isRtl:n,size:l}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,i.jsx)(Y,{delay:0,offset:n}),(0,i.jsx)(Y,{delay:160,offset:!0}),(0,i.jsx)(Y,{delay:320,offset:!n}))},Menu:S,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return(0,i.jsx)("div",(0,a.A)({},m(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,s=e.controlElement,p=e.innerProps,f=e.menuPlacement,h=e.menuPosition,g=(0,l.useRef)(null),v=(0,l.useRef)(null),y=(0,l.useState)(w(f)),b=(0,o.A)(y,2),_=b[0],S=b[1],k=(0,l.useMemo)(function(){return{setPortalPlacement:S}},[]),L=(0,l.useState)(null),x=(0,o.A)(L,2),D=x[0],T=x[1],O=(0,l.useCallback)(function(){if(s){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(s),t="fixed"===h?0:window.pageYOffset,n=e[_]+t;n===(null==D?void 0:D.offset)&&e.left===(null==D?void 0:D.rect.left)&&e.width===(null==D?void 0:D.rect.width)||T({offset:n,rect:e})}},[s,h,_,null==D?void 0:D.offset,null==D?void 0:D.rect.left,null==D?void 0:D.rect.width]);d(function(){O()},[O]);var E=(0,l.useCallback)(function(){"function"==typeof v.current&&(v.current(),v.current=null),s&&g.current&&(v.current=(0,c.ll)(s,g.current,O,{elementResize:"ResizeObserver"in window}))},[s,O]);d(function(){E()},[E]);var P=(0,l.useCallback)(function(e){g.current=e,E()},[E]);if(!t&&"fixed"!==h||!D)return null;var C=(0,i.jsx)("div",(0,a.A)({ref:P},m((0,r.A)((0,r.A)({},e),{},{offset:D.offset,position:h,rect:D.rect}),"menuPortal",{"menu-portal":!0}),p),n);return(0,i.jsx)(M.Provider,{value:k},t?(0,u.createPortal)(C,t):C)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,l=(0,s.A)(e,b);return(0,i.jsx)("div",(0,a.A)({},m((0,r.A)((0,r.A)({},l),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,l=(0,s.A)(e,y);return(0,i.jsx)("div",(0,a.A)({},m((0,r.A)((0,r.A)({},l),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:z,MultiValueContainer:N,MultiValueLabel:N,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,i.jsx)("div",(0,a.A)({role:"button"},n),t||(0,i.jsx)(E,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,s=e.innerRef,l=e.innerProps;return(0,i.jsx)("div",(0,a.A)({},m(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:s,"aria-disabled":n},l),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,i.jsx)("div",(0,a.A)({},m(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return(0,i.jsx)("div",(0,a.A)({},m(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return(0,i.jsx)("div",(0,a.A)({},m(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return(0,i.jsx)("div",(0,a.A)({},m(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}}},25387(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?a[n][0]:a[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(42689))},25567(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeatWhen=void 0;var r=n(52296),a=n(20020),i=n(35416),o=n(1266);t.repeatWhen=function(e){return i.operate(function(t,n){var i,s,l=!1,u=!1,c=!1,d=function(){return c&&u&&(n.complete(),!0)},p=function(){c=!1,i=t.subscribe(o.createOperatorSubscriber(n,void 0,function(){c=!0,!d()&&(s||(s=new a.Subject,r.innerFrom(e(s)).subscribe(o.createOperatorSubscriber(n,function(){i?p():l=!0},function(){u=!0,d()}))),s).next()})),l&&(i.unsubscribe(),i=null,l=!1,p())};p()})}},25718(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(42689))},25834(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n1&&e<5}function a(e,t,n,a){var i=e+" ";switch(n){case"s":return t||a?"pár sekúnd":"pár sekundami";case"ss":return t||a?i+(r(e)?"sekundy":"sekúnd"):i+"sekundami";case"m":return t?"minúta":a?"minútu":"minútou";case"mm":return t||a?i+(r(e)?"minúty":"minút"):i+"minútami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?i+(r(e)?"hodiny":"hodín"):i+"hodinami";case"d":return t||a?"deň":"dňom";case"dd":return t||a?i+(r(e)?"dni":"dní"):i+"dňami";case"M":return t||a?"mesiac":"mesiacom";case"MM":return t||a?i+(r(e)?"mesiace":"mesiacov"):i+"mesiacmi";case"y":return t||a?"rok":"rokom";case"yy":return t||a?i+(r(e)?"roky":"rokov"):i+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(42689))},26612(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=void 0;var r=n(92023),a=n(44717);t.throwError=function(e,t){var n=a.isFunction(e)?e:function(){return e},i=function(e){return e.error(n())};return new r.Observable(t?function(e){return t.schedule(i,0,e)}:i)}},26732(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)},t.findInArray=function(e,t){for(let n=0,r=e.length;n=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(42689))},27390(e,t,n){!function(e){"use strict";var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,r=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,a=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(42689))},27405(e,t,n){"use strict";n.d(t,{A:()=>i});var r=n(41705);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;nr})},29842(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipWhile=void 0;var r=n(35416),a=n(1266);t.skipWhile=function(e){return r.operate(function(t,n){var r=!1,i=0;t.subscribe(a.createOperatorSubscriber(n,function(t){return(r||(r=!e(t,i++)))&&n.next(t)}))})}},29939(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilChanged=void 0;var r=n(79391),a=n(35416),i=n(1266);function o(e,t){return e===t}t.distinctUntilChanged=function(e,t){return void 0===t&&(t=r.identity),e=null!=e?e:o,a.operate(function(n,r){var a,o=!0;n.subscribe(i.createOperatorSubscriber(r,function(n){var i=t(n);!o&&e(a,i)||(o=!1,a=i,r.next(n))}))})}},30161(e,t){"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Editar filtro con la clave {{keyLabel}}","managed-filter":"Filtro gestionado de {{origin}}","non-applicable":"","remove-filter-with-key":"Eliminar filtro con la clave {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Eliminar valor del filtro: {{itemLabel}}","use-custom-value":"Usar valor personalizado: {{itemLabel}}"},"fallback-page":{content:"Si ha llegado hasta aquí mediante un enlace, es posible que haya un error en esta aplicación.",subTitle:"La URL no coincide con ninguna página",title:"No se ha encontrado"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Contraer escena","expand-button-label":"Expandir escena","remove-button-label":"Eliminar escena"},"scene-debugger":{"object-details":"Detalles del objeto","scene-graph":"Gráfico de la escena","title-scene-debugger":"Depurador de escenas"},"scene-grid-row":{"collapse-row":"Contraer fila","expand-row":"Expandir fila"},"scene-refresh-picker":{"text-cancel":"Cancelar","text-refresh":"Actualizar","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Comparación","button-tooltip":"Habilitar comparación de intervalos de tiempo"},splitter:{"aria-label-pane-resize-widget":"Widget de cambio de tamaño del panel"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Título"}},"viz-panel-explore-button":{explore:"Explorar"},"viz-panel-renderer":{"loading-plugin-panel":"Cargando panel de plugins...","panel-plugin-has-no-panel-component":"El plugin del panel no tiene ningún componente de panel"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Representar demasiadas series en un solo panel puede afectar al rendimiento y dificultar la lectura de los datos.","warning-message":"Mostrando solo {{seriesLimit}} serie(s)"}},utils:{"controls-label":{"tooltip-remove":"Eliminar"},"loading-indicator":{"content-cancel-query":"Cancelar consulta"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Editar operador de filtro"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Añadir filtro","title-add-filter":"Añadir filtro"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Eliminar filtro","key-select":{"placeholder-select-label":"Seleccionar etiqueta"},"label-select-label":"Seleccionar etiqueta","title-remove-filter":"Eliminar filtro","value-select":{"placeholder-select-value":"Seleccionar valor"}},"data-source-variable":{label:{default:"predeterminada"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"borrar",tooltip:"Aplicado de forma predeterminada en este dashboard. Si se edita, se transfiere a otros dashboards.","tooltip-restore-groupby-set-by-this-dashboard":"Restaura la función groupby definida por este dashboard."},"format-registry":{formats:{description:{"commaseparated-values":"Valores separados por comas","double-quoted-values":"Valores entre comillas dobles","format-date-in-different-ways":"Dar formato a la fecha de diferentes maneras","format-multivalued-variables-using-syntax-example":"Dar formato a las variables de múltiples valores con la sintaxis glob, por ejemplo, {value1,value2}","html-escaping-of-values":"Escape HTML de valores","join-values-with-a-comma":"","json-stringify-value":"Valor de JSON stringify","keep-value-as-is":"Mantener el valor tal cual","multiple-values-are-formatted-like-variablevalue":"Los valores múltiples tienen el formato variable=valor","single-quoted-values":"Valores entre comillas simples","useful-escaping-values-taking-syntax-characters":"Útil para valores de escape URL, utilizando caracteres de sintaxis URI","useful-for-url-escaping-values":"Útil para valores de escape URL","values-are-separated-by-character":"Los valores están separados por el carácter |"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Agrupar por selector","placeholder-group-by-label":"Agrupar por etiqueta"},"interval-variable":{"placeholder-select-value":"Seleccionar valor"},"loading-options-placeholder":{"loading-options":"Cargando opciones..."},"multi-value-apply-button":{apply:"Aplicar"},"no-options-placeholder":{"no-options-found":"No se han encontrado opciones"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Se ha producido un error al recuperar las etiquetas. Haga clic para volver a intentarlo"},"test-object-with-variable-dependency":{title:{hello:"Hola"}},"test-variable":{text:{text:"Texto"}},"variable-value-input":{"placeholder-enter-value":"Introducir valor"},"variable-value-select":{"placeholder-select-value":"Seleccionar valor"}}}}},30277(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=(r=n(43215))&&r.__esModule?r:{default:r};var i=function(e){if(!(0,a.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};t.default=i},30469(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;var r=n(4575),a=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=r.dateTimestampProvider.now,e}();t.Scheduler=a},30599(e,t,n){"use strict";const r=n(55380);e.exports=(e,t,n)=>r(e,t,n)<0},30665(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsubscriptionError=void 0;var r=n(56871);t.UnsubscriptionError=r.createErrorClass(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}})},30994(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestInit=t.combineLatest=void 0;var r=n(92023),a=n(43787),i=n(45294),o=n(79391),s=n(88240),l=n(11824),u=n(34950),c=n(1266),d=n(75031);function p(e,t,n){return void 0===n&&(n=o.identity),function(r){f(t,function(){for(var a=e.length,o=new Array(a),s=a,l=a,u=function(a){f(t,function(){var u=i.from(e[a],t),d=!1;u.subscribe(c.createOperatorSubscriber(r,function(e){o[a]=e,d||(d=!0,l--),l||r.next(n(o.slice()))},function(){--s||r.complete()}))},r)},d=0;d0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;nt===e.identifier)||e.changedTouches&&(0,r.findInArray)(e.changedTouches,e=>t===e.identifier)},t.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},t.getTranslation=s,t.innerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingTop),t-=(0,r.int)(n.paddingBottom),t},t.innerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(n.paddingLeft),t-=(0,r.int)(n.paddingRight),t},t.matchesSelector=o,t.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(o(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),a=(e.clientX+t.scrollLeft-r.left)/n,i=(e.clientY+t.scrollTop-r.top)/n;return{x:a,y:i}},t.outerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,r.int)(n.borderTopWidth),t+=(0,r.int)(n.borderBottomWidth),t},t.outerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,r.int)(n.borderLeftWidth),t+=(0,r.int)(n.borderRightWidth),t},t.removeClassName=c,t.removeEvent=function(e,t,n,r){if(!e)return;const a={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,a):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},t.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{l(e)}):l(e)};var r=n(26732),a=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var a,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(a=t?r:n){if(a.has(e))return a.get(e);a.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?a(o,t,i):o[t]=e[t]);return o}(e,t)}(n(47350));let i="";function o(e,t){return i||(i=(0,r.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return(0,r.isFunction)(e[t])})),!!(0,r.isFunction)(e[i])&&e[i](t)}function s(e,t,n){let{x:r,y:a}=e,i=`translate(${r}${n},${a}${n})`;if(t){i=`translate(${`${"string"==typeof t.x?t.x:t.x+n}`}, ${`${"string"==typeof t.y?t.y:t.y+n}`})`+i}return i}function l(e){if(e)try{if(e.body&&c(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}}function u(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function c(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}},33010(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function r(e,t,n,r){return t?i(n)[0]:r?i(n)[1]:i(n)[2]}function a(e){return e%10==0||e>10&&e<20}function i(e){return t[e].split("_")}function o(e,t,n,o){var s=e+" ";return 1===e?s+r(e,t,n[0],o):t?s+(a(e)?i(n)[1]:i(n)[0]):o?s+i(n)[1]:s+(a(e)?i(n)[1]:i(n)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,ss:o,m:r,mm:o,h:r,hh:o,d:r,dd:o,M:r,MM:o,y:r,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(42689))},33016(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowWhen=void 0;var r=n(20020),a=n(35416),i=n(1266),o=n(52296);t.windowWhen=function(e){return a.operate(function(t,n){var a,s,l=function(e){a.error(e),n.error(e)},u=function(){var t;null==s||s.unsubscribe(),null==a||a.complete(),a=new r.Subject,n.next(a.asObservable());try{t=o.innerFrom(e())}catch(e){return void l(e)}t.subscribe(s=i.createOperatorSubscriber(n,u,u,l))};u(),t.subscribe(i.createOperatorSubscriber(n,function(e){return a.next(e)},function(){a.complete(),n.complete()},l,function(){null==s||s.unsubscribe(),a=null}))})}},33049(e,t,n){"use strict";n.d(t,{A:()=>s,z:()=>l});var r=n(85959);const a=r.createContext({}),i=!0;function o({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:a,circle:i,direction:o,duration:s,enableAnimation:l=true,customHighlightBackground:u}){const c={};return"rtl"===o&&(c["--animation-direction"]="reverse"),"number"==typeof s&&(c["--animation-duration"]=`${s}s`),l||(c["--pseudo-element-display"]="none"),"string"!=typeof n&&"number"!=typeof n||(c.width=n),"string"!=typeof r&&"number"!=typeof r||(c.height=r),"string"!=typeof a&&"number"!=typeof a||(c.borderRadius=a),i&&(c.borderRadius="50%"),void 0!==e&&(c["--base-color"]=e),void 0!==t&&(c["--highlight-color"]=t),"string"==typeof u&&(c["--custom-highlight-background"]=u),c}function s({count:e=1,wrapper:t,className:n,containerClassName:s,containerTestId:l,circle:u=!1,style:c,...d}){var p,f,h;const m=r.useContext(a),g={...d};for(const[e,t]of Object.entries(d))void 0===t&&delete g[e];const v={...m,...g,circle:u},y={...c,...o(v)};let b="react-loading-skeleton";n&&(b+=` ${n}`);const _=null!==(p=v.inline)&&void 0!==p&&p,w=[],M=Math.ceil(e);for(let t=0;te&&t===M-1){const t=null!==(f=n.width)&&void 0!==f?f:"100%",r=e%1,a="number"==typeof t?t*r:`calc(${t} * ${r})`;n={...n,width:a}}const a=r.createElement("span",{className:b,style:n,key:t},"‌");_?w.push(a):w.push(r.createElement(r.Fragment,{key:t},a,r.createElement("br",null)))}return r.createElement("span",{className:s,"data-testid":l,"aria-live":"polite","aria-busy":null!==(h=v.enableAnimation)&&void 0!==h?h:i},t?w.map((e,n)=>r.createElement(t,{key:n},e)):w)}function l({children:e,...t}){return r.createElement(a.Provider,{value:t},e)}},33315(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"минута":"минуту":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[r],+e)}var r=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,w:"неделя",ww:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(42689))},33419(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10,a=e%100-r,i=e>=100?100:null;return e+(t[r]||t[a]||t[i])}},week:{dow:1,doy:7}})}(n(42689))},33484(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.last=void 0;var r=n(37676),a=n(72914),i=n(20787),o=n(45956),s=n(87507),l=n(79391);t.last=function(e,t){var n=arguments.length>=2;return function(u){return u.pipe(e?a.filter(function(t,n){return e(t,n,u)}):l.identity,i.takeLast(1),n?s.defaultIfEmpty(t):o.throwIfEmpty(function(){return new r.EmptyError}))}}},33692(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n=0;){if(r[t]===e){n.deleteRule(t);break}t--}}},33870(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounceTime=void 0;var r=n(4386),a=n(35416),i=n(1266);t.debounceTime=function(e,t){return void 0===t&&(t=r.asyncScheduler),a.operate(function(n,r){var a=null,o=null,s=null,l=function(){if(a){a.unsubscribe(),a=null;var e=o;o=null,r.next(e)}};function u(){var n=s+e,i=t.now();if(iCe,CompositeItem:()=>Ye,FloatingArrow:()=>He,FloatingDelayGroup:()=>nt,FloatingFocusManager:()=>Rt,FloatingList:()=>Le,FloatingNode:()=>Be,FloatingOverlay:()=>Ft,FloatingPortal:()=>Dt,FloatingTree:()=>qe,arrow:()=>re,autoPlacement:()=>ee,autoUpdate:()=>W.ll,computePosition:()=>W.rD,detectOverflow:()=>W.__,flip:()=>Z,getOverflowAncestors:()=>a.v9,hide:()=>te,inline:()=>ne,inner:()=>gn,limitShift:()=>Q,offset:()=>K,platform:()=>W.iD,safePolygon:()=>bn,shift:()=>J,size:()=>X,useClick:()=>zt,useClientPoint:()=>Wt,useDelayGroup:()=>rt,useDelayGroupContext:()=>tt,useDismiss:()=>qt,useFloating:()=>Kt,useFloatingNodeId:()=>Ue,useFloatingParentNodeId:()=>We,useFloatingPortalNode:()=>xt,useFloatingRootContext:()=>Gt,useFloatingTree:()=>$e,useFocus:()=>Jt,useHover:()=>Ze,useId:()=>Fe,useInnerOffset:()=>vn,useInteractions:()=>en,useListItem:()=>xe,useListNavigation:()=>sn,useMergeRefs:()=>ae,useRole:()=>un,useTransitionStatus:()=>pn,useTransitionStyles:()=>fn,useTypeahead:()=>hn});var r=n(85959),a=n(977);function i(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function o(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,a.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function s(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function l(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function u(e){return!(0!==e.mozInputSource||!e.isTrusted)||(p()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function c(e){return!l().includes("jsdom/")&&(!p()&&0===e.width&&0===e.height||p()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function d(){return/apple/i.test(navigator.vendor)}function p(){const e=/android/i;return e.test(s())||e.test(l())}function f(){return s().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function h(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function m(e){return(null==e?void 0:e.ownerDocument)||document}function g(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function v(e){return"composedPath"in e?e.composedPath()[0]:e.target}function y(e){return(0,a.sb)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function b(e){e.preventDefault(),e.stopPropagation()}function _(e){return!!e&&("combobox"===e.getAttribute("role")&&y(e))}var w=n(58015),M=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],S=M.join(","),k="undefined"==typeof Element,L=k?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,x=!k&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},D=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):D(e.parentNode))},T=function(e,t,n){if(D(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(S));return t&&L.call(e,S)&&r.unshift(e),r=r.filter(n)},O=function(e,t,n){for(var r=[],a=Array.from(e);a.length;){var i=a.shift();if(!D(i,!1))if("SLOT"===i.tagName){var o=i.assignedElements(),s=o.length?o:i.children,l=O(s,!0,n);n.flatten?r.push.apply(r,l):r.push({scopeParent:i,candidates:l})}else{L.call(i,S)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var u=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),c=!D(u,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(u&&c){var d=O(!0===u?i.children:u.children,!0,n);n.flatten?r.push.apply(r,d):r.push({scopeParent:i,candidates:d})}else a.unshift.apply(a,i.children)}}return r},E=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},P=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!E(e)?0:e.tabIndex},C=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Y=function(e){return"INPUT"===e.tagName},A=function(e){return function(e){return Y(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||x(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var a=function(e,t){for(var n=0;nsummary:first-of-type")?e.parentElement:e;if(L.call(a,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return R(e)}else{if("function"==typeof r){for(var i=e;e;){var o=e.parentElement,s=x(e);if(o&&!o.shadowRoot&&!0===r(o))return R(e);e=e.assignedSlot?e.assignedSlot:o||s===e.ownerDocument?o:s.host}e=i}if(function(e){var t,n,r,a,i=e&&x(e),o=null===(t=i)||void 0===t?void 0:t.host,s=!1;if(i&&i!==e)for(s=!!(null!==(n=o)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(o)||null!=e&&null!==(a=e.ownerDocument)&&void 0!==a&&a.contains(e));!s&&o;){var l,u,c;s=!(null===(u=o=null===(l=i=x(o))||void 0===l?void 0:l.host)||void 0===u||null===(c=u.ownerDocument)||void 0===c||!c.contains(o))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},I=function(e,t){return!(t.disabled||function(e){return Y(e)&&"hidden"===e.type}(t)||j(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n=0)},N=function(e){var t=[],n=[];return e.forEach(function(e,r){var a=!!e.scopeParent,i=a?e.scopeParent:e,o=function(e,t){var n=P(e);return n<0&&t&&!E(e)?0:n}(i,a),s=a?N(e.candidates):i;0===o?a?t.push.apply(t,s):t.push(i):n.push({documentOrder:r,tabIndex:o,item:e,isScope:a,content:s})}),n.sort(C).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},z=function(e,t){var n;return n=(t=t||{}).getShadowRoot?O([e],t.includeContainer,{filter:F.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:H}):T(e,t.includeContainer,F.bind(null,t)),N(n)},V=n(48398),W=n(8083),$="undefined"!=typeof document?r.useLayoutEffect:function(){};function U(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!U(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!==r--;){const n=a[r];if(("_owner"!==n||!e.$$typeof)&&!U(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function B(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function q(e,t){const n=B(e);return Math.round(t*n)/n}function G(e){const t=r.useRef(e);return $(()=>{t.current=e}),t}const K=(e,t)=>{const n=(0,W.cY)(e);return{name:n.name,fn:n.fn,options:[e,t]}},J=(e,t)=>{const n=(0,W.BN)(e);return{name:n.name,fn:n.fn,options:[e,t]}},Q=(e,t)=>({fn:(0,W.ER)(e).fn,options:[e,t]}),Z=(e,t)=>{const n=(0,W.UU)(e);return{name:n.name,fn:n.fn,options:[e,t]}},X=(e,t)=>{const n=(0,W.Ej)(e);return{name:n.name,fn:n.fn,options:[e,t]}},ee=(e,t)=>{const n=(0,W.RK)(e);return{name:n.name,fn:n.fn,options:[e,t]}},te=(e,t)=>{const n=(0,W.jD)(e);return{name:n.name,fn:n.fn,options:[e,t]}},ne=(e,t)=>{const n=(0,W.mG)(e);return{name:n.name,fn:n.fn,options:[e,t]}},re=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?(0,W.UE)({element:n.current,padding:r}).fn(t):{}:n?(0,W.UE)({element:n,padding:r}).fn(t):{};var a}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};function ae(e){return r.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})},e)}const ie={...r},oe=ie.useInsertionEffect||(e=>e());function se(e){const t=r.useRef(()=>{0});return oe(()=>{t.current=e}),r.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r=e.current.length}function he(e,t){return ge(e,{disabledIndices:t})}function me(e,t){return ge(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function ge(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:a,amount:i=1}=void 0===t?{}:t;const o=e.current;let s=n;do{s+=r?-i:i}while(s>=0&&s<=o.length-1&&we(o,s,a));return s}function ve(e,t){let{event:n,orientation:r,loop:a,rtl:i,cols:o,disabledIndices:s,minIndex:l,maxIndex:u,prevIndex:c,stopEvent:d=!1}=t,p=c;if(n.key===le){if(d&&b(n),-1===c)p=u;else if(p=ge(e,{startingIndex:p,amount:o,decrement:!0,disabledIndices:s}),a&&(c-oe?n:n-o}fe(e,p)&&(p=c)}if(n.key===ue&&(d&&b(n),-1===c?p=l:(p=ge(e,{startingIndex:c,amount:o,disabledIndices:s}),a&&c+o>u&&(p=ge(e,{startingIndex:c%o-o,amount:o,disabledIndices:s}))),fe(e,p)&&(p=c)),"both"===r){const t=(0,w.RI)(c/o);n.key===(i?ce:de)&&(d&&b(n),c%o!==o-1?(p=ge(e,{startingIndex:c,disabledIndices:s}),a&&pe(p,o,t)&&(p=ge(e,{startingIndex:c-c%o-1,disabledIndices:s}))):a&&(p=ge(e,{startingIndex:c-c%o-1,disabledIndices:s})),pe(p,o,t)&&(p=c)),n.key===(i?de:ce)&&(d&&b(n),c%o!==0?(p=ge(e,{startingIndex:c,decrement:!0,disabledIndices:s}),a&&pe(p,o,t)&&(p=ge(e,{startingIndex:c+(o-c%o),decrement:!0,disabledIndices:s}))):a&&(p=ge(e,{startingIndex:c+(o-c%o),decrement:!0,disabledIndices:s})),pe(p,o,t)&&(p=c));const r=(0,w.RI)(u/o)===t;fe(e,p)&&(p=a&&r?n.key===(i?de:ce)?u:ge(e,{startingIndex:c-c%o-1,disabledIndices:s}):c)}return p}function ye(e,t,n){const r=[];let a=0;return e.forEach((e,i)=>{let{width:o,height:s}=e,l=!1;for(n&&(a=0);!l;){const e=[];for(let n=0;nnull==r[e])?(e.forEach(e=>{r[e]=i}),l=!0):a++}}),[...r]}function be(e,t,n,r,a){if(-1===e)return-1;const i=n.indexOf(e),o=t[e];switch(a){case"tl":return i;case"tr":return o?i+o.width-1:i;case"bl":return o?i+(o.height-1)*r:i;case"br":return n.lastIndexOf(e)}}function _e(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function we(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}var Me="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function Se(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const ke=r.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Le(e){const{children:t,elementsRef:n,labelsRef:a}=e,[i,o]=r.useState(()=>new Map),s=r.useCallback(e=>{o(t=>new Map(t).set(e,null))},[]),l=r.useCallback(e=>{o(t=>{const n=new Map(t);return n.delete(e),n})},[]);return Me(()=>{const e=new Map(i);Array.from(e.keys()).sort(Se).forEach((t,n)=>{e.set(t,n)}),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}(i,e)||o(e)},[i]),r.createElement(ke.Provider,{value:r.useMemo(()=>({register:s,unregister:l,map:i,elementsRef:n,labelsRef:a}),[s,l,i,n,a])},t)}function xe(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:a,map:i,elementsRef:o,labelsRef:s}=r.useContext(ke),[l,u]=r.useState(null),c=r.useRef(null),d=r.useCallback(e=>{if(c.current=e,null!==l&&(o.current[l]=e,s)){var n;const r=void 0!==t;s.current[l]=r?t:null!=(n=null==e?void 0:e.textContent)?n:null}},[l,o,s,t]);return Me(()=>{const e=c.current;if(e)return n(e),()=>{a(e)}},[n,a]),Me(()=>{const e=c.current?i.get(c.current):null;null!=e&&u(e)},[i]),r.useMemo(()=>({ref:d,index:null==l?-1:l}),[l,d])}function De(e,t){return"function"==typeof e?e(t):e?r.cloneElement(e,t):r.createElement("div",t)}const Te=r.createContext({activeIndex:0,onNavigate:()=>{}}),Oe=[ce,de],Ee=[le,ue],Pe=[...Oe,...Ee],Ce=r.forwardRef(function(e,t){const{render:n,orientation:a="both",loop:i=!0,rtl:o=!1,cols:s=1,disabledIndices:l,activeIndex:u,onNavigate:c,itemSizes:d,dense:p=!1,...f}=e,[h,m]=r.useState(0),g=null!=u?u:h,v=se(null!=c?c:m),y=r.useRef([]),b=n&&"function"!=typeof n?n.props:{},_=r.useMemo(()=>({activeIndex:g,onNavigate:v}),[g,v]),w=s>1;const M={...f,...b,ref:t,"aria-orientation":"both"===a?void 0:a,onKeyDown(e){null==f.onKeyDown||f.onKeyDown(e),null==b.onKeyDown||b.onKeyDown(e),function(e){if(!Pe.includes(e.key))return;let t=g;const n=he(y,l),r=me(y,l),u=o?ce:de,c=o?de:ce;if(w){const c=d||Array.from({length:y.current.length},()=>({width:1,height:1})),f=ye(c,s,p),h=f.findIndex(e=>null!=e&&!we(y.current,e,l)),m=f.reduce((e,t,n)=>null==t||we(y.current,t,l)?e:n,-1),v=f[ve({current:f.map(e=>e?y.current[e]:null)},{event:e,orientation:a,loop:i,rtl:o,cols:s,disabledIndices:_e([...l||y.current.map((e,t)=>we(y.current,t)?t:void 0),void 0],f),minIndex:h,maxIndex:m,prevIndex:be(g>r?n:g,c,f,s,e.key===ue?"bl":e.key===u?"tr":"tl")})];null!=v&&(t=v)}const f={horizontal:[u],vertical:[ue],both:[u,ue]}[a],h={horizontal:[c],vertical:[le],both:[c,le]}[a],m=w?Pe:{horizontal:Oe,vertical:Ee,both:Pe}[a];var b;t===g&&[...f,...h].includes(e.key)&&(t=i&&t===r&&f.includes(e.key)?n:i&&t===n&&h.includes(e.key)?r:ge(y,{startingIndex:t,decrement:h.includes(e.key),disabledIndices:l})),t===g||fe(y,t)||(e.stopPropagation(),m.includes(e.key)&&e.preventDefault(),v(t),null==(b=y.current[t])||b.focus())}(e)}};return r.createElement(Te.Provider,{value:_},r.createElement(Le,{elementsRef:y},De(n,M)))}),Ye=r.forwardRef(function(e,t){const{render:n,...a}=e,i=n&&"function"!=typeof n?n.props:{},{activeIndex:o,onNavigate:s}=r.useContext(Te),{ref:l,index:u}=xe(),c=ae([l,t,i.ref]),d=o===u;return De(n,{...a,...i,ref:c,tabIndex:d?0:-1,"data-active":d?"":void 0,onFocus(e){null==a.onFocus||a.onFocus(e),null==i.onFocus||i.onFocus(e),s(u)}})});function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t"floating-ui-"+Math.random().toString(36).slice(2,6)+je++;const Fe=ie.useId||function(){const[e,t]=r.useState(()=>Re?Ie():void 0);return Me(()=>{null==e&&t(Ie())},[]),r.useEffect(()=>{Re=!0},[]),e};const He=r.forwardRef(function(e,t){const{context:{placement:n,elements:{floating:i},middlewareData:{arrow:o,shift:s}},width:l=14,height:u=7,tipRadius:c=0,strokeWidth:d=0,staticOffset:p,stroke:f,d:h,style:{transform:m,...g}={},...v}=e;const y=Fe(),[b,_]=r.useState(!1);if(Me(()=>{if(!i)return;"rtl"===(0,a.L9)(i).direction&&_(!0)},[i]),!i)return null;const[w,M]=n.split("-"),S="top"===w||"bottom"===w;let k=p;(S&&null!=s&&s.x||!S&&null!=s&&s.y)&&(k=null);const L=2*d,x=L/2,D=l/2*(c/-8+1),T=u/2*c/4,O=!!h,E=k&&"end"===M?"bottom":"top";let P=k&&"end"===M?"right":"left";k&&b&&(P="end"===M?"left":"right");const C=null!=(null==o?void 0:o.x)?k||o.x:"",Y=null!=(null==o?void 0:o.y)?k||o.y:"",A=h||"M0,0 H"+l+" L"+(l-D)+","+(u-T)+" Q"+l/2+","+u+" "+D+","+(u-T)+" Z",R={top:O?"rotate(180deg)":"",left:O?"rotate(90deg)":"rotate(-90deg)",bottom:O?"":"rotate(180deg)",right:O?"rotate(-90deg)":"rotate(90deg)"}[w];return r.createElement("svg",Ae({},v,{"aria-hidden":!0,ref:t,width:O?l:l+L,height:l,viewBox:"0 0 "+l+" "+(u>l?u:l),style:{position:"absolute",pointerEvents:"none",[P]:C,[E]:Y,[w]:S||O?"100%":"calc(100% - "+L/2+"px)",transform:[R,m].filter(e=>!!e).join(" "),...g}}),L>0&&r.createElement("path",{clipPath:"url(#"+y+")",fill:"none",stroke:f,strokeWidth:L+(h?0:1),d:A}),r.createElement("path",{stroke:L&&!h?v.fill:"none",d:A}),r.createElement("clipPath",{id:y},r.createElement("rect",{x:-x,y:x*(O?-1:1),width:l+L,height:l})))});function Ne(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}const ze=r.createContext(null),Ve=r.createContext(null),We=()=>{var e;return(null==(e=r.useContext(ze))?void 0:e.id)||null},$e=()=>r.useContext(Ve);function Ue(e){const t=Fe(),n=$e(),r=We(),a=e||r;return Me(()=>{const e={id:t,parentId:a};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}},[n,t,a]),t}function Be(e){const{children:t,id:n}=e,a=We();return r.createElement(ze.Provider,{value:r.useMemo(()=>({id:n,parentId:a}),[n,a])},t)}function qe(e){const{children:t}=e,n=r.useRef([]),a=r.useCallback(e=>{n.current=[...n.current,e]},[]),i=r.useCallback(e=>{n.current=n.current.filter(t=>t!==e)},[]),o=r.useState(()=>Ne())[0];return r.createElement(Ve.Provider,{value:r.useMemo(()=>({nodesRef:n,addNode:a,removeNode:i,events:o}),[a,i,o])},t)}function Ge(e){return"data-floating-ui-"+e}function Ke(e){const t=(0,r.useRef)(e);return Me(()=>{t.current=e}),t}const Je=Ge("safe-polygon");function Qe(e,t,n){return n&&!h(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Ze(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,dataRef:s,events:l,elements:u}=e,{enabled:c=!0,delay:d=0,handleClose:p=null,mouseOnly:f=!1,restMs:g=0,move:v=!0}=t,y=$e(),b=We(),_=Ke(p),w=Ke(d),M=Ke(n),S=r.useRef(),k=r.useRef(-1),L=r.useRef(),x=r.useRef(-1),D=r.useRef(!0),T=r.useRef(!1),O=r.useRef(()=>{}),E=r.useRef(!1),P=r.useCallback(()=>{var e;const t=null==(e=s.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[s]);r.useEffect(()=>{if(c)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(k.current),clearTimeout(x.current),D.current=!0,E.current=!1)}},[c,l]),r.useEffect(()=>{if(!c)return;if(!_.current)return;if(!n)return;function e(e){P()&&i(!1,e,"hover")}const t=m(u.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[u.floating,n,i,c,_,P]);const C=r.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=Qe(w.current,"close",S.current);r&&!L.current?(clearTimeout(k.current),k.current=window.setTimeout(()=>i(!1,e,n),r)):t&&(clearTimeout(k.current),i(!1,e,n))},[w,i]),Y=se(()=>{O.current(),L.current=void 0}),A=se(()=>{if(T.current){const e=m(u.floating).body;e.style.pointerEvents="",e.removeAttribute(Je),T.current=!1}}),R=se(()=>!!s.current.openEvent&&["click","mousedown"].includes(s.current.openEvent.type));r.useEffect(()=>{if(c&&(0,a.vq)(u.domReference)){var e;const a=u.domReference;return n&&a.addEventListener("mouseleave",l),null==(e=u.floating)||e.addEventListener("mouseleave",l),v&&a.addEventListener("mousemove",t,{once:!0}),a.addEventListener("mouseenter",t),a.addEventListener("mouseleave",r),()=>{var e;n&&a.removeEventListener("mouseleave",l),null==(e=u.floating)||e.removeEventListener("mouseleave",l),v&&a.removeEventListener("mousemove",t),a.removeEventListener("mouseenter",t),a.removeEventListener("mouseleave",r)}}function t(e){if(clearTimeout(k.current),D.current=!1,f&&!h(S.current)||g>0&&!Qe(w.current,"open"))return;const t=Qe(w.current,"open",S.current);t?k.current=window.setTimeout(()=>{M.current||i(!0,e,"hover")},t):n||i(!0,e,"hover")}function r(e){if(R())return;O.current();const t=m(u.floating);if(clearTimeout(x.current),E.current=!1,_.current&&s.current.floatingContext){n||clearTimeout(k.current),L.current=_.current({...s.current.floatingContext,tree:y,x:e.clientX,y:e.clientY,onClose(){A(),Y(),R()||C(e,!0,"safe-polygon")}});const r=L.current;return t.addEventListener("mousemove",r),void(O.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==S.current||!o(u.floating,e.relatedTarget))&&C(e)}function l(e){R()||s.current.floatingContext&&(null==_.current||_.current({...s.current.floatingContext,tree:y,x:e.clientX,y:e.clientY,onClose(){A(),Y(),R()||C(e)}})(e))}},[u,c,e,f,g,v,C,Y,A,i,n,M,y,w,_,s,R]),Me(()=>{var e;if(c&&n&&null!=(e=_.current)&&e.__options.blockPointerEvents&&P()){T.current=!0;const e=u.floating;if((0,a.vq)(u.domReference)&&e){var t;const n=m(u.floating).body;n.setAttribute(Je,"");const r=u.domReference,a=null==y||null==(t=y.nodesRef.current.find(e=>e.id===b))||null==(t=t.context)?void 0:t.elements.floating;return a&&(a.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[c,n,b,u,y,_,P]),Me(()=>{n||(S.current=void 0,E.current=!1,Y(),A())},[n,Y,A]),r.useEffect(()=>()=>{Y(),clearTimeout(k.current),clearTimeout(x.current),A()},[c,u.domReference,Y,A]);const j=r.useMemo(()=>{function e(e){S.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function r(){D.current||M.current||i(!0,t,"hover")}f&&!h(S.current)||n||0===g||E.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(x.current),"touch"===S.current?r():(E.current=!0,x.current=window.setTimeout(r,g)))}}},[f,i,n,M,g]),I=r.useMemo(()=>({onMouseEnter(){clearTimeout(k.current)},onMouseLeave(e){R()||C(e.nativeEvent,!1)}}),[C,R]);return r.useMemo(()=>c?{reference:j,floating:I}:{},[c,j,I])}const Xe=()=>{},et=r.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Xe,setState:Xe,isInstantPhase:!1}),tt=()=>r.useContext(et);function nt(e){const{children:t,delay:n,timeoutMs:a=0}=e,[i,o]=r.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:a,initialDelay:n,currentId:null,isInstantPhase:!1}),s=r.useRef(null),l=r.useCallback(e=>{o({currentId:e})},[]);return Me(()=>{i.currentId?null===s.current?s.current=i.currentId:i.isInstantPhase||o({isInstantPhase:!0}):(i.isInstantPhase&&o({isInstantPhase:!1}),s.current=null)},[i.currentId,i.isInstantPhase]),r.createElement(et.Provider,{value:r.useMemo(()=>({...i,setState:o,setCurrentId:l}),[i,l])},t)}function rt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,floatingId:a}=e,{id:i,enabled:o=!0}=t,s=null!=i?i:a,l=tt(),{currentId:u,setCurrentId:c,initialDelay:d,setState:p,timeoutMs:f}=l;return Me(()=>{o&&u&&(p({delay:{open:1,close:Qe(d,"close")}}),u!==s&&r(!1))},[o,s,r,p,u,d]),Me(()=>{function e(){r(!1),p({delay:d,currentId:null})}if(o&&u&&!n&&u===s){if(f){const t=window.setTimeout(e,f);return()=>{clearTimeout(t)}}e()}},[o,n,p,u,s,r,d,f]),Me(()=>{o&&c!==Xe&&n&&c(s)},[o,n,c,s]),l}let at=0;function it(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:a=!1}=t;r&&cancelAnimationFrame(at);const i=()=>null==e?void 0:e.focus({preventScroll:n});a?i():at=requestAnimationFrame(i)}function ot(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(r);return n}let st=new WeakMap,lt=new WeakSet,ut={},ct=0;const dt=e=>e&&(e.host||dt(e.parentNode));function pt(e,t,n,r){const i="data-floating-ui-inert",o=r?"inert":n?"aria-hidden":null,s=(l=t,e.map(e=>{if(l.contains(e))return e;const t=dt(e);return l.contains(t)?t:null}).filter(e=>null!=e));var l;const u=new Set,c=new Set(s),d=[];ut[i]||(ut[i]=new WeakMap);const p=ut[i];return s.forEach(function e(t){if(!t||u.has(t))return;u.add(t),t.parentNode&&e(t.parentNode)}),function e(t){if(!t||c.has(t))return;[].forEach.call(t.children,t=>{if("script"!==(0,a.mq)(t))if(u.has(t))e(t);else{const e=o?t.getAttribute(o):null,n=null!==e&&"false"!==e,r=(st.get(t)||0)+1,a=(p.get(t)||0)+1;st.set(t,r),p.set(t,a),d.push(t),1===r&&n&<.add(t),1===a&&t.setAttribute(i,""),!n&&o&&t.setAttribute(o,"true")}})}(t),u.clear(),ct++,()=>{d.forEach(e=>{const t=(st.get(e)||0)-1,n=(p.get(e)||0)-1;st.set(e,t),p.set(e,n),t||(!lt.has(e)&&o&&e.removeAttribute(o),lt.delete(e)),n||e.removeAttribute(i)}),ct--,ct||(st=new WeakMap,st=new WeakMap,lt=new WeakSet,ut={})}}function ft(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=m(e[0]).body;return pt(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const ht=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function mt(e,t){const n=z(e,ht());"prev"===t&&n.reverse();const r=n.indexOf(i(m(e)));return n.slice(r+1)[0]}function gt(){return mt(document.body,"next")}function vt(){return mt(document.body,"prev")}function yt(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!o(n,r)}function bt(e){z(e,ht()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function _t(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}const wt={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Mt(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const St=r.forwardRef(function(e,t){const[n,a]=r.useState();Me(()=>(d()&&a("button"),document.addEventListener("keydown",Mt),()=>{document.removeEventListener("keydown",Mt)}),[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Ge("focus-guard")]:"",style:wt};return r.createElement("span",Ae({},e,i))}),kt=r.createContext(null),Lt=Ge("portal");function xt(e){void 0===e&&(e={});const{id:t,root:n}=e,i=Fe(),o=Tt(),[s,l]=r.useState(null),u=r.useRef(null);return Me(()=>()=>{null==s||s.remove(),queueMicrotask(()=>{u.current=null})},[s]),Me(()=>{if(!i)return;if(u.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=i,n.setAttribute(Lt,""),e.appendChild(n),u.current=n,l(n)},[t,i]),Me(()=>{if(null===n)return;if(!i)return;if(u.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!(0,a.vq)(e)&&(e=e.current),e=e||document.body;let r=null;t&&(r=document.createElement("div"),r.id=t,e.appendChild(r));const s=document.createElement("div");s.id=i,s.setAttribute(Lt,""),e=r||e,e.appendChild(s),u.current=s,l(s)},[t,n,i,o]),s}function Dt(e){const{children:t,id:n,root:a,preserveTabOrder:i=!0}=e,o=xt({id:n,root:a}),[s,l]=r.useState(null),u=r.useRef(null),c=r.useRef(null),d=r.useRef(null),p=r.useRef(null),f=null==s?void 0:s.modal,h=null==s?void 0:s.open,m=!!s&&!s.modal&&s.open&&i&&!(!a&&!o);return r.useEffect(()=>{if(o&&i&&!f)return o.addEventListener("focusin",e,!0),o.addEventListener("focusout",e,!0),()=>{o.removeEventListener("focusin",e,!0),o.removeEventListener("focusout",e,!0)};function e(e){if(o&&yt(e)){("focusin"===e.type?_t:bt)(o)}}},[o,i,f]),r.useEffect(()=>{o&&(h||_t(o))},[h,o]),r.createElement(kt.Provider,{value:r.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:u,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:p,portalNode:o,setFocusManagerState:l}),[i,o])},m&&o&&r.createElement(St,{"data-type":"outside",ref:u,onFocus:e=>{if(yt(e,o)){var t;null==(t=d.current)||t.focus()}else{const e=vt()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),m&&o&&r.createElement("span",{"aria-owns":o.id,style:wt}),o&&V.createPortal(t,o),m&&o&&r.createElement(St,{"data-type":"outside",ref:c,onFocus:e=>{if(yt(e,o)){var t;null==(t=p.current)||t.focus()}else{const t=gt()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Tt=()=>r.useContext(kt),Ot="data-floating-ui-focusable";function Et(e){return e?e.hasAttribute(Ot)?e:e.querySelector("["+Ot+"]")||e:null}let Pt=[];function Ct(e){Pt=Pt.filter(e=>e.isConnected);let t=e;if(t&&"body"!==(0,a.mq)(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==L.call(e,S)&&F(t,e)}(t,ht())){const e=z(t,ht())[0];e&&(t=e)}Pt.push(t),Pt.length>20&&(Pt=Pt.slice(-20))}}function Yt(){return Pt.slice().reverse().find(e=>e.isConnected)}const At=r.forwardRef(function(e,t){return r.createElement("button",Ae({},e,{type:"button",ref:t,tabIndex:-1,style:wt}))});function Rt(e){const{context:t,children:n,disabled:s=!1,order:l=["content"],guards:d=!0,initialFocus:p=0,returnFocus:f=!0,restoreFocus:h=!1,modal:g=!0,visuallyHiddenDismiss:y=!1,closeOnFocusOut:w=!0}=e,{open:M,refs:S,nodeId:k,onOpenChange:L,events:x,dataRef:D,floatingId:T,elements:{domReference:O,floating:E}}=t,P="number"==typeof p&&p<0,C=_(O)&&P,Y="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||d,A=Ke(l),R=Ke(p),j=Ke(f),I=$e(),F=Tt(),H=r.useRef(null),N=r.useRef(null),V=r.useRef(!1),W=r.useRef(!1),$=r.useRef(-1),U=null!=F,B=Et(E),q=se(function(e){return void 0===e&&(e=B),e?z(e,ht()):[]}),G=se(e=>{const t=q(e);return A.current.map(e=>O&&"reference"===e?O:B&&"floating"===e?B:t).filter(Boolean).flat()});function K(e){return!s&&y&&g?r.createElement(At,{ref:"start"===e?H:N,onClick:e=>L(!1,e.nativeEvent)},"string"==typeof y?y:"Dismiss"):null}r.useEffect(()=>{if(s)return;if(!g)return;function e(e){if("Tab"===e.key){o(B,i(m(B)))&&0===q().length&&!C&&b(e);const t=G(),n=v(e);"reference"===A.current[0]&&n===O&&(b(e),e.shiftKey?it(t[t.length-1]):it(t[1])),"floating"===A.current[1]&&n===B&&e.shiftKey&&(b(e),it(t[0]))}}const t=m(B);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[s,O,B,g,A,C,q,G]),r.useEffect(()=>{if(!s&&E)return E.addEventListener("focusin",e),()=>{E.removeEventListener("focusin",e)};function e(e){const t=v(e),n=q().indexOf(t);-1!==n&&($.current=n)}},[s,E,q]),r.useEffect(()=>{if(!s&&w)return E&&(0,a.sb)(O)?(O.addEventListener("focusout",t),O.addEventListener("pointerdown",e),E.addEventListener("focusout",t),()=>{O.removeEventListener("focusout",t),O.removeEventListener("pointerdown",e),E.removeEventListener("focusout",t)}):void 0;function e(){W.current=!0,setTimeout(()=>{W.current=!1})}function t(e){const t=e.relatedTarget;queueMicrotask(()=>{const n=!(o(O,t)||o(E,t)||o(t,E)||o(null==F?void 0:F.portalNode,t)||null!=t&&t.hasAttribute(Ge("focus-guard"))||I&&(ot(I.nodesRef.current,k).find(e=>{var n,r;return o(null==(n=e.context)?void 0:n.elements.floating,t)||o(null==(r=e.context)?void 0:r.elements.domReference,t)})||function(e,t){var n;let r=[],a=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;a;){const t=e.find(e=>e.id===a);a=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(I.nodesRef.current,k).find(e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t})));if(h&&n&&i(m(B))===m(B).body){(0,a.sb)(B)&&B.focus();const e=$.current,t=q(),n=t[e]||t[t.length-1]||B;(0,a.sb)(n)&&n.focus()}!C&&g||!t||!n||W.current||t===Yt()||(V.current=!0,L(!1,e,"focus-out"))})}},[s,O,E,B,g,k,I,F,L,w,h,q,C]),r.useEffect(()=>{var e;if(s)return;const t=Array.from((null==F||null==(e=F.portalNode)?void 0:e.querySelectorAll("["+Ge("portal")+"]"))||[]);if(E){const e=[E,...t,H.current,N.current,A.current.includes("reference")||C?O:null].filter(e=>null!=e),n=g||C?ft(e,Y,!Y):ft(e);return()=>{n()}}},[s,O,E,g,A,F,C,Y]),Me(()=>{if(s||!(0,a.sb)(B))return;const e=i(m(B));queueMicrotask(()=>{const t=G(B),n=R.current,r=("number"==typeof n?t[n]:n.current)||B,a=o(B,e);P||a||!M||it(r,{preventScroll:r===B})})},[s,M,B,P,G,R]),Me(()=>{if(s||!B)return;let e=!1;const t=m(B),n=i(t);let r=D.current.openEvent;function l(t){let{open:n,reason:a,event:i,nested:o}=t;n&&(r=i),"escape-key"===a&&S.domReference.current&&Ct(S.domReference.current),"hover"===a&&"mouseleave"===i.type&&(V.current=!0),"outside-press"===a&&(o?(V.current=!1,e=!0):V.current=!(u(i)||c(i)))}Ct(n),x.on("openchange",l);const d=t.createElement("span");return d.setAttribute("tabindex","-1"),d.setAttribute("aria-hidden","true"),Object.assign(d.style,wt),U&&O&&O.insertAdjacentElement("afterend",d),()=>{x.off("openchange",l);const n=i(t),s=o(E,n)||I&&ot(I.nodesRef.current,k).some(e=>{var t;return o(null==(t=e.context)?void 0:t.elements.floating,n)});(s||r&&["click","mousedown"].includes(r.type))&&S.domReference.current&&Ct(S.domReference.current);const u="boolean"==typeof j.current?Yt()||d:j.current.current||d;queueMicrotask(()=>{j.current&&!V.current&&(0,a.sb)(u)&&(u===n||n===t.body||s)&&u.focus({preventScroll:e}),d.remove()})}},[s,E,B,j,D,S,x,I,k,U,O]),r.useEffect(()=>{queueMicrotask(()=>{V.current=!1})},[s]),Me(()=>{if(!s&&F)return F.setFocusManagerState({modal:g,closeOnFocusOut:w,open:M,onOpenChange:L,refs:S}),()=>{F.setFocusManagerState(null)}},[s,F,g,M,L,S,w]),Me(()=>{if(s)return;if(!B)return;if("function"!=typeof MutationObserver)return;if(P)return;const e=()=>{const e=B.getAttribute("tabindex"),t=q(),n=i(m(E)),r=t.indexOf(n);-1!==r&&($.current=r),A.current.includes("floating")||n!==S.domReference.current&&0===t.length?"0"!==e&&B.setAttribute("tabindex","0"):"-1"!==e&&B.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(B,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[s,E,B,S,A,q,P]);const J=!s&&Y&&(!g||!C)&&(U||g);return r.createElement(r.Fragment,null,J&&r.createElement(St,{"data-type":"inside",ref:null==F?void 0:F.beforeInsideRef,onFocus:e=>{if(g){const e=G();it("reference"===l[0]?e[0]:e[e.length-1])}else if(null!=F&&F.preserveTabOrder&&F.portalNode)if(V.current=!1,yt(e,F.portalNode)){const e=gt()||O;null==e||e.focus()}else{var t;null==(t=F.beforeOutsideRef.current)||t.focus()}}}),!C&&K("start"),n,K("end"),J&&r.createElement(St,{"data-type":"inside",ref:null==F?void 0:F.afterInsideRef,onFocus:e=>{if(g)it(G()[0]);else if(null!=F&&F.preserveTabOrder&&F.portalNode)if(w&&(V.current=!0),yt(e,F.portalNode)){const e=vt()||O;null==e||e.focus()}else{var t;null==(t=F.afterOutsideRef.current)||t.focus()}}}))}let jt=0;let It=()=>{};const Ft=r.forwardRef(function(e,t){const{lockScroll:n=!1,...a}=e;return Me(()=>{if(n)return jt++,1===jt&&(It=function(){const e=/iP(hone|ad|od)|iOS/.test(s()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,a=t.left?parseFloat(t.left):window.scrollX,i=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var o,l;const e=(null==(o=window.visualViewport)?void 0:o.offsetLeft)||0,n=(null==(l=window.visualViewport)?void 0:l.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(i-Math.floor(n))+"px",left:-(a-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(a,i))}}()),()=>{jt--,0===jt&&It()}},[n]),r.createElement("div",Ae({ref:t},a,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...a.style}}))});function Ht(e){return(0,a.sb)(e.target)&&"BUTTON"===e.target.tagName}function Nt(e){return y(e)}function zt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:a,dataRef:i,elements:{domReference:o}}=e,{enabled:s=!0,event:l="click",toggle:u=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0,stickIfOpen:p=!0}=t,f=r.useRef(),m=r.useRef(!1),g=r.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==l&&(h(t,!0)&&c||(!n||!u||i.current.openEvent&&p&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),a(!0,e.nativeEvent,"click")):a(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===l&&f.current?f.current=void 0:h(t,!0)&&c||(!n||!u||i.current.openEvent&&p&&"click"!==i.current.openEvent.type?a(!0,e.nativeEvent,"click"):a(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!d||Ht(e)||(" "!==e.key||Nt(o)||(e.preventDefault(),m.current=!0),"Enter"===e.key&&a(!n||!u,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||Ht(e)||Nt(o)||" "===e.key&&m.current&&(m.current=!1,a(!n||!u,e.nativeEvent,"click"))}}),[i,o,l,c,d,a,n,p,u]);return r.useMemo(()=>s?{reference:g}:{},[s,g])}function Vt(e){return null!=e&&null!=e.clientX}function Wt(e,t){void 0===t&&(t={});const{open:n,dataRef:i,elements:{floating:s,domReference:l},refs:u}=e,{enabled:c=!0,axis:d="both",x:p=null,y:f=null}=t,m=r.useRef(!1),g=r.useRef(null),[y,b]=r.useState(),[_,w]=r.useState([]),M=se((e,t)=>{m.current||i.current.openEvent&&!Vt(i.current.openEvent)||u.setPositionReference(function(e,t){let n=null,r=null,a=!1;return{contextElement:e||void 0,getBoundingClientRect(){var i;const o=(null==e?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},s="x"===t.axis||"both"===t.axis,l="y"===t.axis||"both"===t.axis,u=["mouseenter","mousemove"].includes((null==(i=t.dataRef.current.openEvent)?void 0:i.type)||"")&&"touch"!==t.pointerType;let c=o.width,d=o.height,p=o.x,f=o.y;return null==n&&t.x&&s&&(n=o.x-t.x),null==r&&t.y&&l&&(r=o.y-t.y),p-=n||0,f-=r||0,c=0,d=0,!a||u?(c="y"===t.axis?o.width:0,d="x"===t.axis?o.height:0,p=s&&null!=t.x?t.x:p,f=l&&null!=t.y?t.y:f):a&&!u&&(d="x"===t.axis?o.height:d,c="y"===t.axis?o.width:c),a=!0,{width:c,height:d,x:p,y:f,top:f,right:p+c,bottom:f+d,left:p}}}}(l,{x:e,y:t,axis:d,dataRef:i,pointerType:y}))}),S=se(e=>{null==p&&null==f&&(n?g.current||w([]):M(e.clientX,e.clientY))}),k=h(y)?s:n,L=r.useCallback(()=>{if(!k||!c||null!=p||null!=f)return;const e=(0,a.zk)(s);function t(n){const r=v(n);o(s,r)?(e.removeEventListener("mousemove",t),g.current=null):M(n.clientX,n.clientY)}if(!i.current.openEvent||Vt(i.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),g.current=null};return g.current=n,n}u.setPositionReference(l)},[k,c,p,f,s,i,u,l,M]);r.useEffect(()=>L(),[L,_]),r.useEffect(()=>{c&&!s&&(m.current=!1)},[c,s]),r.useEffect(()=>{!c&&n&&(m.current=!0)},[c,n]),Me(()=>{!c||null==p&&null==f||(m.current=!1,M(p,f))},[c,p,f,M]);const x=r.useMemo(()=>{function e(e){let{pointerType:t}=e;b(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:S,onMouseEnter:S}},[S]);return r.useMemo(()=>c?{reference:x}:{},[c,x])}const $t={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Ut={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Bt=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function qt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,elements:s,dataRef:l}=e,{enabled:u=!0,escapeKey:c=!0,outsidePress:d=!0,outsidePressEvent:p="pointerdown",referencePress:f=!1,referencePressEvent:h="pointerdown",ancestorScroll:y=!1,bubbles:b,capture:_}=t,w=$e(),M=se("function"==typeof d?d:()=>!1),S="function"==typeof d?M:d,k=r.useRef(!1),L=r.useRef(!1),{escapeKey:x,outsidePress:D}=Bt(b),{escapeKey:T,outsidePress:O}=Bt(_),E=r.useRef(!1),P=se(e=>{var t;if(!n||!u||!c||"Escape"!==e.key)return;if(E.current)return;const r=null==(t=l.current.floatingContext)?void 0:t.nodeId,a=w?ot(w.nodesRef.current,r):[];if(!x&&(e.stopPropagation(),a.length>0)){let e=!0;if(a.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}i(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),C=se(e=>{var t;const n=()=>{var t;P(e),null==(t=v(e))||t.removeEventListener("keydown",n)};null==(t=v(e))||t.addEventListener("keydown",n)}),Y=se(e=>{var t;const n=k.current;k.current=!1;const r=L.current;if(L.current=!1,"click"===p&&r)return;if(n)return;if("function"==typeof S&&!S(e))return;const u=v(e),c="["+Ge("inert")+"]",d=m(s.floating).querySelectorAll(c);let f=(0,a.vq)(u)?u:null;for(;f&&!(0,a.eu)(f);){const e=(0,a.$4)(f);if((0,a.eu)(e)||!(0,a.vq)(e))break;f=e}if(d.length&&(0,a.vq)(u)&&!u.matches("html,body")&&!o(u,s.floating)&&Array.from(d).every(e=>!o(f,e)))return;if((0,a.sb)(u)&&j){const t=u.clientWidth>0&&u.scrollWidth>u.clientWidth,n=u.clientHeight>0&&u.scrollHeight>u.clientHeight;let r=n&&e.offsetX>u.clientWidth;if(n){"rtl"===(0,a.L9)(u).direction&&(r=e.offsetX<=u.offsetWidth-u.clientWidth)}if(r||t&&e.offsetY>u.clientHeight)return}const h=null==(t=l.current.floatingContext)?void 0:t.nodeId,y=w&&ot(w.nodesRef.current,h).some(t=>{var n;return g(e,null==(n=t.context)?void 0:n.elements.floating)});if(g(e,s.floating)||g(e,s.domReference)||y)return;const b=w?ot(w.nodesRef.current,h):[];if(b.length>0){let e=!0;if(b.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}i(!1,e,"outside-press")}),A=se(e=>{var t;const n=()=>{var t;Y(e),null==(t=v(e))||t.removeEventListener(p,n)};null==(t=v(e))||t.addEventListener(p,n)});r.useEffect(()=>{if(!n||!u)return;l.current.__escapeKeyBubbles=x,l.current.__outsidePressBubbles=D;let e=-1;function t(e){i(!1,e,"ancestor-scroll")}function r(){window.clearTimeout(e),E.current=!0}function o(){e=window.setTimeout(()=>{E.current=!1},(0,a.Tc)()?5:0)}const d=m(s.floating);c&&(d.addEventListener("keydown",T?C:P,T),d.addEventListener("compositionstart",r),d.addEventListener("compositionend",o)),S&&d.addEventListener(p,O?A:Y,O);let f=[];return y&&((0,a.vq)(s.domReference)&&(f=(0,a.v9)(s.domReference)),(0,a.vq)(s.floating)&&(f=f.concat((0,a.v9)(s.floating))),!(0,a.vq)(s.reference)&&s.reference&&s.reference.contextElement&&(f=f.concat((0,a.v9)(s.reference.contextElement)))),f=f.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),f.forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{c&&(d.removeEventListener("keydown",T?C:P,T),d.removeEventListener("compositionstart",r),d.removeEventListener("compositionend",o)),S&&d.removeEventListener(p,O?A:Y,O),f.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[l,s,c,S,p,n,i,y,u,x,D,P,T,C,Y,O,A]),r.useEffect(()=>{k.current=!1},[S,p]);const R=r.useMemo(()=>({onKeyDown:P,[$t[h]]:e=>{f&&i(!1,e.nativeEvent,"reference-press")}}),[P,i,f,h]),j=r.useMemo(()=>({onKeyDown:P,onMouseDown(){L.current=!0},onMouseUp(){L.current=!0},[Ut[p]]:()=>{k.current=!0}}),[P,p]);return r.useMemo(()=>u?{reference:R,floating:j}:{},[u,R,j])}function Gt(e){const{open:t=!1,onOpenChange:n,elements:a}=e,i=Fe(),o=r.useRef({}),[s]=r.useState(()=>Ne()),l=null!=We();const[u,c]=r.useState(a.reference),d=se((e,t,r)=>{o.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)}),p=r.useMemo(()=>({setPositionReference:c}),[]),f=r.useMemo(()=>({reference:u||a.reference||null,floating:a.floating||null,domReference:a.reference}),[u,a.reference,a.floating]);return r.useMemo(()=>({dataRef:o,open:t,onOpenChange:d,elements:f,events:s,floatingId:i,refs:p}),[t,d,f,s,i,p])}function Kt(e){void 0===e&&(e={});const{nodeId:t}=e,n=Gt({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||n,o=i.elements,[s,l]=r.useState(null),[u,c]=r.useState(null),d=(null==o?void 0:o.domReference)||s,p=r.useRef(null),f=$e();Me(()=>{d&&(p.current=d)},[d]);const h=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:i,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,p]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=r.useState(a);U(f,a)||h(a);const[m,g]=r.useState(null),[v,y]=r.useState(null),b=r.useCallback(e=>{e!==S.current&&(S.current=e,g(e))},[]),_=r.useCallback(e=>{e!==k.current&&(k.current=e,y(e))},[]),w=o||m,M=s||v,S=r.useRef(null),k=r.useRef(null),L=r.useRef(d),x=null!=u,D=G(u),T=G(i),O=G(c),E=r.useCallback(()=>{if(!S.current||!k.current)return;const e={placement:t,strategy:n,middleware:f};T.current&&(e.platform=T.current),(0,W.rD)(S.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==O.current};P.current&&!U(L.current,t)&&(L.current=t,V.flushSync(()=>{p(t)}))})},[f,t,n,T,O]);$(()=>{!1===c&&L.current.isPositioned&&(L.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[c]);const P=r.useRef(!1);$(()=>(P.current=!0,()=>{P.current=!1}),[]),$(()=>{if(w&&(S.current=w),M&&(k.current=M),w&&M){if(D.current)return D.current(w,M,E);E()}},[w,M,E,D,x]);const C=r.useMemo(()=>({reference:S,floating:k,setReference:b,setFloating:_}),[b,_]),Y=r.useMemo(()=>({reference:w,floating:M}),[w,M]),A=r.useMemo(()=>{const e={position:n,left:0,top:0};if(!Y.floating)return e;const t=q(Y.floating,d.x),r=q(Y.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...B(Y.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,Y.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:E,refs:C,elements:Y,floatingStyles:A}),[d,E,C,Y,A])}({...e,elements:{...o,...u&&{reference:u}}}),m=r.useCallback(e=>{const t=(0,a.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),h.refs.setReference(t)},[h.refs]),g=r.useCallback(e=>{((0,a.vq)(e)||null===e)&&(p.current=e,l(e)),((0,a.vq)(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!(0,a.vq)(e))&&h.refs.setReference(e)},[h.refs]),v=r.useMemo(()=>({...h.refs,setReference:g,setPositionReference:m,domReference:p}),[h.refs,g,m]),y=r.useMemo(()=>({...h.elements,domReference:d}),[h.elements,d]),b=r.useMemo(()=>({...h,...i,refs:v,elements:y,nodeId:t}),[h,v,y,t,i]);return Me(()=>{i.dataRef.current.floatingContext=b;const e=null==f?void 0:f.nodesRef.current.find(e=>e.id===t);e&&(e.context=b)}),r.useMemo(()=>({...h,context:b,refs:v,elements:y}),[h,v,y,b])}function Jt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:s,events:l,dataRef:u,elements:p}=e,{enabled:h=!0,visibleOnly:g=!0}=t,b=r.useRef(!1),_=r.useRef(),w=r.useRef(!0);r.useEffect(()=>{if(!h)return;const e=(0,a.zk)(p.domReference);function t(){!n&&(0,a.sb)(p.domReference)&&p.domReference===i(m(p.domReference))&&(b.current=!0)}function r(){w.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}},[p.domReference,n,h]),r.useEffect(()=>{if(h)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(b.current=!0)}},[l,h]),r.useEffect(()=>()=>{clearTimeout(_.current)},[]);const M=r.useMemo(()=>({onPointerDown(e){c(e.nativeEvent)||(w.current=!1)},onMouseLeave(){b.current=!1},onFocus(e){if(b.current)return;const t=v(e.nativeEvent);if(g&&(0,a.vq)(t))try{if(d()&&f())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!w.current&&!y(t))return}s(!0,e.nativeEvent,"focus")},onBlur(e){b.current=!1;const t=e.relatedTarget,n=e.nativeEvent,r=(0,a.vq)(t)&&t.hasAttribute(Ge("focus-guard"))&&"outside"===t.getAttribute("data-type");_.current=window.setTimeout(()=>{var e;const a=i(p.domReference?p.domReference.ownerDocument:document);(t||a!==p.domReference)&&(o(null==(e=u.current.floatingContext)?void 0:e.refs.floating.current,a)||o(p.domReference,a)||r||s(!1,n,"focus"))})}}),[u,p.domReference,s,g]);return r.useMemo(()=>h?{reference:M}:{},[h,M])}const Qt="active",Zt="selected";function Xt(e,t,n){const r=new Map,a="item"===n;let i=e;if(a&&e){const{[Qt]:t,[Zt]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[Ot]:""},...i,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var o;a&&[Qt,Zt].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(o=r.get(n))||o.push(i),e[n]=function(){for(var e,t=arguments.length,a=new Array(t),i=0;ie(...a)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function en(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),a=e.map(e=>null==e?void 0:e.item),i=r.useCallback(t=>Xt(t,e,"reference"),t),o=r.useCallback(t=>Xt(t,e,"floating"),n),s=r.useCallback(t=>Xt(t,e,"item"),a);return r.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}let tn=!1;function nn(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function rn(e,t){return nn(t,e===le||e===ue,e===ce||e===de)}function an(e,t,n){return nn(t,e===ue,n?e===ce:e===de)||"Enter"===e||" "===e||""===e}function on(e,t,n){return nn(t,n?e===de:e===ce,e===le)}function sn(e,t){const{open:n,onOpenChange:s,elements:l}=e,{listRef:p,activeIndex:h,onNavigate:g=()=>{},enabled:v=!0,selectedIndex:y=null,allowEscape:w=!1,loop:M=!1,nested:S=!1,rtl:k=!1,virtual:L=!1,focusItemOnOpen:x="auto",focusItemOnHover:D=!0,openOnArrowKeyDown:T=!0,disabledIndices:O,orientation:E="vertical",cols:P=1,scrollItemIntoView:C=!0,virtualItemRef:Y,itemSizes:A,dense:R=!1}=t;const j=Ke(Et(l.floating)),I=We(),F=$e(),H=se(g),N=_(l.domReference),z=r.useRef(x),V=r.useRef(null!=y?y:-1),W=r.useRef(null),$=r.useRef(!0),U=r.useRef(H),B=r.useRef(!!l.floating),q=r.useRef(n),G=r.useRef(!1),K=r.useRef(!1),J=Ke(O),Q=Ke(n),Z=Ke(C),X=Ke(y),[ee,te]=r.useState(),[ne,re]=r.useState(),ae=se(function(e,t,n){function r(e){L?(te(e.id),null==F||F.events.emit("virtualfocus",e),Y&&(Y.current=e)):it(e,{preventScroll:!0,sync:!(!f()||!d())&&(tn||G.current)})}void 0===n&&(n=!1);const a=e.current[t.current];a&&r(a),requestAnimationFrame(()=>{const i=e.current[t.current]||a;if(!i)return;a||r(i);const o=Z.current;o&&oe&&(n||!$.current)&&(null==i.scrollIntoView||i.scrollIntoView("boolean"==typeof o?{block:"nearest",inline:"nearest"}:o))})});Me(()=>{document.createElement("div").focus({get preventScroll(){return tn=!0,!1}})},[]),Me(()=>{v&&(n&&l.floating?z.current&&null!=y&&(K.current=!0,V.current=y,H(y)):B.current&&(V.current=-1,U.current(null)))},[v,n,l.floating,y,H]),Me(()=>{if(v&&n&&l.floating)if(null==h){if(G.current=!1,null!=X.current)return;if(B.current&&(V.current=-1,ae(p,V)),(!q.current||!B.current)&&z.current&&(null!=W.current||!0===z.current&&null==W.current)){let e=0;const t=()=>{if(null==p.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else V.current=null==W.current||an(W.current,E,k)||S?he(p,J.current):me(p,J.current),W.current=null,H(V.current)};t()}}else fe(p,h)||(V.current=h,ae(p,V,K.current),K.current=!1)},[v,n,l.floating,h,X,S,p,E,k,H,ae,J]),Me(()=>{var e;if(!v||l.floating||!F||L||!B.current)return;const t=F.nodesRef.current,n=null==(e=t.find(e=>e.id===I))||null==(e=e.context)?void 0:e.elements.floating,r=i(m(l.floating)),a=t.some(e=>e.context&&o(e.context.elements.floating,r));n&&!a&&$.current&&n.focus({preventScroll:!0})},[v,l.floating,F,I,L]),Me(()=>{if(v&&F&&L&&!I)return F.events.on("virtualfocus",e),()=>{F.events.off("virtualfocus",e)};function e(e){re(e.id),Y&&(Y.current=e)}},[v,F,L,I,Y]),Me(()=>{U.current=H,B.current=!!l.floating}),Me(()=>{n||(W.current=null)},[n]),Me(()=>{q.current=n},[n]);const ie=null!=h,oe=r.useMemo(()=>{function e(e){if(!n)return;const t=p.current.indexOf(e);-1!==t&&H(t)}return{onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...D&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;$.current&&"touch"!==t&&(V.current=-1,ae(p,V),H(null),L||it(j.current,{preventScroll:!0}))}}}},[n,j,ae,D,p,H,L]),le=se(e=>{if($.current=!1,G.current=!0,229===e.which)return;if(!Q.current&&e.currentTarget===j.current)return;if(S&&on(e.key,E,k))return b(e),s(!1,e.nativeEvent,"list-navigation"),void((0,a.sb)(l.domReference)&&(L?null==F||F.events.emit("virtualfocus",l.domReference):l.domReference.focus()));const t=V.current,r=he(p,O),o=me(p,O);if(N||("Home"===e.key&&(b(e),V.current=r,H(V.current)),"End"===e.key&&(b(e),V.current=o,H(V.current))),P>1){const t=A||Array.from({length:p.current.length},()=>({width:1,height:1})),n=ye(t,P,R),a=n.findIndex(e=>null!=e&&!we(p.current,e,O)),i=n.reduce((e,t,n)=>null==t||we(p.current,t,O)?e:n,-1),s=n[ve({current:n.map(e=>null!=e?p.current[e]:null)},{event:e,orientation:E,loop:M,rtl:k,cols:P,disabledIndices:_e([...O||p.current.map((e,t)=>we(p.current,t)?t:void 0),void 0],n),minIndex:a,maxIndex:i,prevIndex:be(V.current>o?r:V.current,t,n,P,e.key===ue?"bl":e.key===(k?ce:de)?"tr":"tl"),stopEvent:!0})];if(null!=s&&(V.current=s,H(V.current)),"both"===E)return}if(rn(e.key,E)){if(b(e),n&&!L&&i(e.currentTarget.ownerDocument)===e.currentTarget)return V.current=an(e.key,E,k)?r:o,void H(V.current);an(e.key,E,k)?V.current=M?t>=o?w&&t!==p.current.length?-1:r:ge(p,{startingIndex:t,disabledIndices:O}):Math.min(o,ge(p,{startingIndex:t,disabledIndices:O})):V.current=M?t<=r?w&&-1!==t?p.current.length:o:ge(p,{startingIndex:t,decrement:!0,disabledIndices:O}):Math.max(r,ge(p,{startingIndex:t,decrement:!0,disabledIndices:O})),fe(p,V.current)?H(null):H(V.current)}}),pe=r.useMemo(()=>L&&n&&ie&&{"aria-activedescendant":ne||ee},[L,n,ie,ne,ee]),Se=r.useMemo(()=>({"aria-orientation":"both"===E?void 0:E,...!_(l.domReference)&&pe,onKeyDown:le,onPointerMove(){$.current=!0}}),[pe,le,l.domReference,E]),ke=r.useMemo(()=>{function e(e){"auto"===x&&u(e.nativeEvent)&&(z.current=!0)}return{...pe,onKeyDown(e){$.current=!1;const t=e.key.startsWith("Arrow"),r=["Home","End"].includes(e.key),a=t||r,i=function(e,t,n){return nn(t,n?e===ce:e===de,e===ue)}(e.key,E,k),o=on(e.key,E,k),l=rn(e.key,E),u=(S?i:l)||"Enter"===e.key||""===e.key.trim();if(L&&n){const t=null==F?void 0:F.nodesRef.current.find(e=>null==e.parentId),n=F&&t?function(e,t){let n,r=-1;return function t(a,i){i>r&&(n=a,r=i),ot(e,a).forEach(e=>{t(e.id,i+1)})}(t,0),e.find(e=>e.id===n)}(F.nodesRef.current,t.id):null;if(a&&n&&Y){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(i||o){var c,d;const r=(null==(c=n.context)?void 0:c.elements.domReference)===e.currentTarget,a=o&&!r?null==(d=n.context)?void 0:d.elements.domReference:i?p.current.find(e=>(null==e?void 0:e.id)===ee):null;a&&(b(e),a.dispatchEvent(t),re(void 0))}var f;if((l||r)&&n.context)if(n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return b(e),void(null==(f=n.context.elements.domReference)||f.dispatchEvent(t))}return le(e)}(n||T||!t)&&(u&&(W.current=S&&l?null:e.key),S?i&&(b(e),n?(V.current=he(p,J.current),H(V.current)):s(!0,e.nativeEvent,"list-navigation")):l&&(null!=y&&(V.current=y),b(e),!n&&T?s(!0,e.nativeEvent,"list-navigation"):le(e),n&&H(V.current)))},onFocus(){n&&!L&&H(null)},onPointerDown:function(e){z.current=x,"auto"===x&&c(e.nativeEvent)&&(z.current=!0)},onMouseDown:e,onClick:e}},[ee,pe,le,J,x,p,S,H,s,n,T,E,k,y,F,L,Y]);return r.useMemo(()=>v?{reference:ke,floating:Se,item:oe}:{},[v,ke,Se,oe])}const ln=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function un(e,t){var n;void 0===t&&(t={});const{open:a,floatingId:i}=e,{enabled:o=!0,role:s="dialog"}=t,l=null!=(n=ln.get(s))?n:s,u=Fe(),c=null!=We(),d=r.useMemo(()=>"tooltip"===l||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:a?i:void 0}:{"aria-expanded":a?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":a?i:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:u},..."menu"===l&&c&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[l,i,c,a,u,s]),p=r.useMemo(()=>{const e={id:i,...l&&{role:l}};return"tooltip"===l||"label"===s?e:{...e,..."menu"===l&&{"aria-labelledby":u}}},[l,i,u,s]),f=r.useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:i+"-option"}};switch(s){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}},[i,s]);return r.useMemo(()=>o?{reference:d,floating:p,item:f}:{},[o,d,p,f])}const cn=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function dn(e,t){return"function"==typeof e?e(t):e}function pn(e,t){void 0===t&&(t={});const{open:n,elements:{floating:a}}=e,{duration:i=250}=t,o=("number"==typeof i?i:i.close)||0,[s,l]=r.useState("unmounted"),u=function(e,t){const[n,a]=r.useState(e);return e&&!n&&a(!0),r.useEffect(()=>{if(!e&&n){const e=setTimeout(()=>a(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}(n,o);return u||"close"!==s||l("unmounted"),Me(()=>{if(a){if(n){l("initial");const e=requestAnimationFrame(()=>{l("open")});return()=>{cancelAnimationFrame(e)}}l("close")}},[n,a]),{isMounted:u,status:s}}function fn(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:a,close:i,common:o,duration:s=250}=t,l=e.placement,u=l.split("-")[0],c=r.useMemo(()=>({side:u,placement:l}),[u,l]),d="number"==typeof s,p=(d?s:s.open)||0,f=(d?s:s.close)||0,[h,m]=r.useState(()=>({...dn(o,c),...dn(n,c)})),{isMounted:g,status:v}=pn(e,{duration:s}),y=Ke(n),b=Ke(a),_=Ke(i),w=Ke(o);return Me(()=>{const e=dn(y.current,c),t=dn(_.current,c),n=dn(w.current,c),r=dn(b.current,c)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===v&&m(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===v&&m({transitionProperty:Object.keys(r).map(cn).join(","),transitionDuration:p+"ms",...n,...r}),"close"===v){const r=t||e;m({transitionProperty:Object.keys(r).map(cn).join(","),transitionDuration:f+"ms",...n,...r})}},[f,_,y,b,w,p,v,c]),{isMounted:g,styles:h}}function hn(e,t){var n;const{open:a,dataRef:i}=e,{listRef:o,activeIndex:s,onMatch:l,onTypingChange:u,enabled:c=!0,findMatch:d=null,resetMs:p=750,ignoreKeys:f=[],selectedIndex:h=null}=t,m=r.useRef(),g=r.useRef(""),v=r.useRef(null!=(n=null!=h?h:s)?n:-1),y=r.useRef(null),_=se(l),w=se(u),M=Ke(d),S=Ke(f);Me(()=>{a&&(clearTimeout(m.current),y.current=null,g.current="")},[a]),Me(()=>{var e;a&&""===g.current&&(v.current=null!=(e=null!=h?h:s)?e:-1)},[a,h,s]);const k=se(e=>{e?i.current.typing||(i.current.typing=e,w(e)):i.current.typing&&(i.current.typing=e,w(e))}),L=se(e=>{function t(e,t,n){const r=M.current?M.current(t,n):t.find(e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase())));return r?e.indexOf(r):-1}const n=o.current;if(g.current.length>0&&" "!==g.current[0]&&(-1===t(n,n,g.current)?k(!1):" "===e.key&&b(e)),null==n||S.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;a&&" "!==e.key&&(b(e),k(!0));n.every(e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())})&&g.current===e.key&&(g.current="",v.current=y.current),g.current+=e.key,clearTimeout(m.current),m.current=setTimeout(()=>{g.current="",v.current=y.current,k(!1)},p);const r=v.current,i=t(n,[...n.slice((r||0)+1),...n.slice(0,(r||0)+1)],g.current);-1!==i?(_(i),y.current=i):" "!==e.key&&(g.current="",k(!1))}),x=r.useMemo(()=>({onKeyDown:L}),[L]),D=r.useMemo(()=>({onKeyDown:L,onKeyUp(e){" "===e.key&&k(!1)}}),[L,k]);return r.useMemo(()=>c?{reference:x,floating:D}:{},[c,x,D])}function mn(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const gn=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:a,offset:i=0,index:o=0,minItemsVisible:s=4,referenceOverflowThreshold:l=0,scrollRef:u,...c}=(0,w._3)(e,t),{rects:d,elements:{floating:p}}=t,f=n.current[o],h=(null==u?void 0:u.current)||p,m=p.clientTop||h.clientTop,g=0!==p.clientTop,v=0!==h.clientTop,y=p===h;if(!f)return{};const b={...t,...await K(-f.offsetTop-p.clientTop-d.reference.height/2-f.offsetHeight/2-i).fn(t)},_=await(0,W.__)(mn(b,h.scrollHeight+m+p.clientTop),c),M=await(0,W.__)(b,{...c,elementContext:"reference"}),S=(0,w.T9)(0,_.top),k=b.y+S,L=(h.scrollHeight>h.clientHeight?e=>e:w.LI)((0,w.T9)(0,h.scrollHeight+(g&&y||v?2*m:0)-S-(0,w.T9)(0,_.bottom)));if(h.style.maxHeight=L+"px",h.scrollTop=S,a){const e=h.offsetHeight=-l||M.bottom>=-l;V.flushSync(()=>a(e))}return r&&(r.current=await(0,W.__)(mn({...b,y:k},h.offsetHeight+m+p.clientTop),c)),{y:k}}});function vn(e,t){const{open:n,elements:a}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:u}=t,c=se(u),d=r.useRef(!1),p=r.useRef(null),f=r.useRef(null);r.useEffect(()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;const n=e.deltaY,r=o.current.top>=-.5,a=o.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,s=n<0?-1:1,u=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!a&&n<0?(e.preventDefault(),V.flushSync(()=>{c(e=>e+Math[u](n,i*s))})):/firefox/i.test(l())&&(t.scrollTop+=n))}const t=(null==s?void 0:s.current)||a.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame(()=>{p.current=t.scrollTop,null!=o.current&&(f.current={...o.current})}),()=>{p.current=null,f.current=null,t.removeEventListener("wheel",e)}):void 0},[i,n,a.floating,o,s,c]);const h=r.useMemo(()=>({onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const e=(null==s?void 0:s.current)||a.floating;if(o.current&&e&&d.current){if(null!==p.current){const t=e.scrollTop-p.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&V.flushSync(()=>c(e=>e+t))}requestAnimationFrame(()=>{p.current=e.scrollTop})}}}),[a.floating,c,o,s]);return r.useMemo(()=>i?{floating:h}:{},[i,h])}function yn(e,t){const[n,r]=e;let a=!1;const i=t.length;for(let e=0,o=i-1;e=r!=u>=r&&n<=(l-i)*(r-s)/(u-s)+i&&(a=!a)}return a}function bn(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let i,s=!1,l=null,u=null,c=performance.now();const d=e=>{let{x:n,y:d,placement:p,elements:f,onClose:h,nodeId:m,tree:g}=e;return function(e){function y(){clearTimeout(i),h()}if(clearTimeout(i),!f.domReference||!f.floating||null==p||null==n||null==d)return;const{clientX:b,clientY:_}=e,w=[b,_],M=v(e),S="mouseleave"===e.type,k=o(f.floating,M),L=o(f.domReference,M),x=f.domReference.getBoundingClientRect(),D=f.floating.getBoundingClientRect(),T=p.split("-")[0],O=n>D.right-D.width/2,E=d>D.bottom-D.height/2,P=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(w,x),C=D.width>x.width,Y=D.height>x.height,A=(C?x:D).left,R=(C?x:D).right,j=(Y?x:D).top,I=(Y?x:D).bottom;if(k&&(s=!0,!S))return;if(L&&(s=!1),L&&!S)return void(s=!0);if(S&&(0,a.vq)(e.relatedTarget)&&o(f.floating,e.relatedTarget))return;if(g&&ot(g.nodesRef.current,m).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===T&&d>=x.bottom-1||"bottom"===T&&d<=x.top+1||"left"===T&&n>=x.right-1||"right"===T&&n<=x.left+1)return y();let F=[];switch(T){case"top":F=[[A,x.top+1],[A,D.bottom-1],[R,D.bottom-1],[R,x.top+1]];break;case"bottom":F=[[A,D.top+1],[A,x.bottom-1],[R,x.bottom-1],[R,D.top+1]];break;case"left":F=[[D.right-1,I],[D.right-1,j],[x.left+1,j],[x.left+1,I]];break;case"right":F=[[x.right-1,I],[x.right-1,j],[D.left+1,j],[D.left+1,I]]}if(!yn([b,_],F)){if(s&&!P)return y();if(!S&&r){const t=function(e,t){const n=performance.now(),r=n-c;if(null===l||null===u||0===r)return l=e,u=t,c=n,null;const a=e-l,i=t-u,o=Math.sqrt(a*a+i*i);return l=e,u=t,c=n,o/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return y()}yn([b,_],function(e){let[n,r]=e;switch(T){case"top":return[[C?n+t/2:O?n+4*t:n-4*t,r+t+1],[C?n-t/2:O?n+4*t:n-4*t,r+t+1],...[[D.left,O||C?D.bottom-t:D.top],[D.right,O?C?D.bottom-t:D.top:D.bottom-t]]];case"bottom":return[[C?n+t/2:O?n+4*t:n-4*t,r-t],[C?n-t/2:O?n+4*t:n-4*t,r-t],...[[D.left,O||C?D.top+t:D.bottom],[D.right,O?C?D.top+t:D.bottom:D.top+t]]];case"left":{const e=[n+t+1,Y?r+t/2:E?r+4*t:r-4*t],a=[n+t+1,Y?r-t/2:E?r+4*t:r-4*t];return[...[[E||Y?D.right-t:D.left,D.top],[E?Y?D.right-t:D.left:D.right-t,D.bottom]],e,a]}case"right":return[[n-t,Y?r+t/2:E?r+4*t:r-4*t],[n-t,Y?r-t/2:E?r+4*t:r-4*t],...[[E||Y?D.left+t:D.right,D.top],[E?Y?D.left+t:D.right:D.left+t,D.bottom]]]}}([n,d]))?!s&&r&&(i=window.setTimeout(y,40)):y()}}};return d.__options={blockPointerEvents:n},d}},34629(e,t,n){"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>R,__assign:()=>i,__asyncDelegator:()=>L,__asyncGenerator:()=>k,__asyncValues:()=>x,__await:()=>S,__awaiter:()=>h,__classPrivateFieldGet:()=>C,__classPrivateFieldIn:()=>A,__classPrivateFieldSet:()=>Y,__createBinding:()=>g,__decorate:()=>s,__disposeResources:()=>I,__esDecorate:()=>u,__exportStar:()=>v,__extends:()=>a,__generator:()=>m,__importDefault:()=>P,__importStar:()=>E,__makeTemplateObject:()=>D,__metadata:()=>f,__param:()=>l,__propKey:()=>d,__read:()=>b,__rest:()=>o,__rewriteRelativeImportExtension:()=>F,__runInitializers:()=>c,__setFunctionName:()=>p,__spread:()=>_,__spreadArray:()=>M,__spreadArrays:()=>w,__values:()=>y,default:()=>H});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,a,i){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=r.kind,u="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?r.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),p=!1,f=n.length-1;f>=0;f--){var h={};for(var m in r)h[m]="access"===m?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(e||null))};var g=(0,n[f])("accessor"===l?{get:d.get,set:d.set}:d[u],h);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(s=o(g.get))&&(d.get=s),(s=o(g.set))&&(d.set=s),(s=o(g.init))&&a.unshift(s)}else(s=o(g))&&("field"===l?a.unshift(s):d[u]=s)}c&&Object.defineProperty(c,r.name,d),p=!0}function c(e,t,n){for(var r=arguments.length>2,a=0;a0&&a[a.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function _(){for(var e=[],t=0;t1||s(e,t)})},t&&(r[e]=t(r[e])))}function s(e,t){try{(n=a[e](t)).value instanceof S?Promise.resolve(n.value.v).then(l,u):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function L(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,a){t[r]=e[r]?function(t){return(n=!n)?{value:S(e[r](t)),done:!1}:a?a(t):t}:a}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,a){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,a,(t=e[n](t)).done,t.value)})}}}function D(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},O=function(e){return O=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},O(e)};function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=O(e),r=0;r{"string"==typeof n&&(i=a,a=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,a,i).version}catch(e){return null}}},35961(e,t,n){!function(e){"use strict";function t(e,t,n,r){if("m"===n)return t?"jedna minuta":r?"jednu minutu":"jedne minute"}function n(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return"jedan sat";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:t,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(42689))},35964(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(42689))},36033(e,t,n){"use strict";const r=n(2801);e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t))},36147(e,t){"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Edytuj filtr z kluczem {{keyLabel}}","managed-filter":"Filtr zarządzany ({{origin}})","non-applicable":"","remove-filter-with-key":"Usuń filtr z kluczem {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Usuń wartość filtra – {{itemLabel}}","use-custom-value":"Użyj wartości niestandardowej: {{itemLabel}}"},"fallback-page":{content:"Jeśli doprowadził Cię tutaj link, może to oznaczać błąd w aplikacji.",subTitle:"Adres URL nie pasuje do żadnej strony",title:"Nie znaleziono"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Zwiń scenę","expand-button-label":"Rozwiń scenę","remove-button-label":"Usuń scenę"},"scene-debugger":{"object-details":"Szczegóły obiektu","scene-graph":"Wykres sceny","title-scene-debugger":"Debuger sceny"},"scene-grid-row":{"collapse-row":"Zwiń wiersz","expand-row":"Rozwiń wiersz"},"scene-refresh-picker":{"text-cancel":"Anuluj","text-refresh":"Odśwież","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Porównanie","button-tooltip":"Włącz porównanie ram czasowych"},splitter:{"aria-label-pane-resize-widget":"Widżet zmiany rozmiaru okienka"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Tytuł"}},"viz-panel-explore-button":{explore:"Eksploruj"},"viz-panel-renderer":{"loading-plugin-panel":"Ładowanie panelu wtyczki…","panel-plugin-has-no-panel-component":"Wtyczka panelu nie zawiera komponentu panelu"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Renderowanie zbyt wielu szeregów w jednym panelu może wpłynąć na wydajność i utrudnić odczyt danych.","warning-message":"Wyświetlanie tylko {{seriesLimit}} szeregów"}},utils:{"controls-label":{"tooltip-remove":"Usuń"},"loading-indicator":{"content-cancel-query":"Anuluj zapytanie"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Edytuj operator filtra"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Dodaj filtr","title-add-filter":"Dodaj filtr"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Usuń filtr","key-select":{"placeholder-select-label":"Wybierz etykietę"},"label-select-label":"Wybierz etykietę","title-remove-filter":"Usuń filtr","value-select":{"placeholder-select-value":"Wybierz wartość"}},"data-source-variable":{label:{default:"domyślne"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"wyczyść",tooltip:"Zastosowano domyślnie do tego pulpitu. W przypadku edycji zmiana zostanie uwzględniona na innych pulpitach.","tooltip-restore-groupby-set-by-this-dashboard":"Przywróć grupowanie ustawione przez ten pulpit."},"format-registry":{formats:{description:{"commaseparated-values":"Wartości rozdzielone przecinkami","double-quoted-values":"Wartości w podwójnym cudzysłowie","format-date-in-different-ways":"Formatowanie daty na różne sposoby","format-multivalued-variables-using-syntax-example":"Formatowanie zmiennych wielowartościowych za pomocą składni glob, np. {value1,value2}","html-escaping-of-values":"Modyfikowanie wartości w kodzie HTML","join-values-with-a-comma":"","json-stringify-value":"Wartość konwersji na ciąg JSON","keep-value-as-is":"Zachowaj wartość w obecnej postaci","multiple-values-are-formatted-like-variablevalue":"Wiele wartości jest sformatowanych w postaci zmienna=wartość","single-quoted-values":"Wartości w pojedynczym cudzysłowie","useful-escaping-values-taking-syntax-characters":"Przydatne w przypadku wartości unikowych w adresach URL z uwzględnieniem znaków składni identyfikatora URI","useful-for-url-escaping-values":"Przydatne w przypadku wartości znaków unikowych w adresach URL","values-are-separated-by-character":"Wartości są rozdzielone znakiem |"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Grupuj według selektora","placeholder-group-by-label":"Grupuj według etykiety"},"interval-variable":{"placeholder-select-value":"Wybierz wartość"},"loading-options-placeholder":{"loading-options":"Ładowanie opcji…"},"multi-value-apply-button":{apply:"Zastosuj"},"no-options-placeholder":{"no-options-found":"Nie znaleziono opcji"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Podczas pobierania etykiet wystąpił błąd. Kliknij, aby spróbować ponownie"},"test-object-with-variable-dependency":{title:{hello:"Cześć!"}},"test-variable":{text:{text:"Tekst"}},"variable-value-input":{"placeholder-enter-value":"Wprowadź wartość"},"variable-value-select":{"placeholder-select-value":"Wybierz wartość"}}}}},36544(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(42689))},36805(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.default=function(e){var t;return t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(u,t);var n,i,l=(n=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=h(n);if(i){var a=h(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return f(e)}(this,e)});function u(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var t=arguments.length,n=new Array(t),r=0;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,s);return n&&!this.mounted?a.createElement("div",{className:(0,o.default)(this.props.className,"react-grid-layout"),style:this.props.style,ref:this.elementRef}):a.createElement(e,c({innerRef:this.elementRef},r,this.state))}}]),u}(a.Component),m(t,"defaultProps",{measureBeforeMount:!1}),m(t,"propTypes",{measureBeforeMount:i.default.bool}),t};var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}a.default=e,n&&n.set(e,a);return a}(n(85959)),i=l(n(62688)),o=l(n(97256)),s=["measureBeforeMount"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(){return c=Object.assign||function(e){for(var t=1;t0===r(e,t,n)},37260(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(42689))},37308(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n(42689))},37434(e){e.exports=function(e,t,n){return e===t||e.className===t.className&&n(e.style,t.style)&&e.width===t.width&&e.autoSize===t.autoSize&&e.cols===t.cols&&e.draggableCancel===t.draggableCancel&&e.draggableHandle===t.draggableHandle&&n(e.verticalCompact,t.verticalCompact)&&n(e.compactType,t.compactType)&&n(e.layout,t.layout)&&n(e.margin,t.margin)&&n(e.containerPadding,t.containerPadding)&&e.rowHeight===t.rowHeight&&e.maxRows===t.maxRows&&e.isBounded===t.isBounded&&e.isDraggable===t.isDraggable&&e.isResizable===t.isResizable&&e.allowOverlap===t.allowOverlap&&e.preventCollision===t.preventCollision&&e.useCSSTransforms===t.useCSSTransforms&&e.transformScale===t.transformScale&&e.isDroppable===t.isDroppable&&n(e.resizeHandles,t.resizeHandles)&&n(e.resizeHandle,t.resizeHandle)&&e.onLayoutChange===t.onLayoutChange&&e.onDragStart===t.onDragStart&&e.onDrag===t.onDrag&&e.onDragStop===t.onDragStop&&e.onResizeStart===t.onResizeStart&&e.onResize===t.onResize&&e.onResizeStop===t.onResizeStop&&e.onDrop===t.onDrop&&n(e.droppingItem,t.droppingItem)&&n(e.innerRef,t.innerRef)}},37676(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=void 0;var r=n(56871);t.EmptyError=r.createErrorClass(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})},37891(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(42689))},37944(e,t,n){"use strict";const r=n(79796),{MAX_LENGTH:a,MAX_SAFE_INTEGER:i}=n(59630),{safeRe:o,t:s}=n(86850),l=n(57095),{compareIdentifiers:u}=n(14031);class c{constructor(e,t){if(t=l(t),e instanceof c){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>a)throw new TypeError(`version is longer than ${a} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?o[s.LOOSE]:o[s.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&te.major?1:this.minore.minor?1:this.patche.patch?1:0}comparePre(e){if(e instanceof c||(e=new c(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],a=e.prerelease[t];if(r("prerelease compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return u(n,a)}while(++t)}compareBuild(e){e instanceof c||(e=new c(e,this.options));let t=0;do{const n=this.build[t],a=e.build[t];if(r("build compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return u(n,a)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?o[s.PRERELEASELOOSE]:o[s.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=c},37967(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.materialize=void 0;var r=n(26145),a=n(35416),i=n(1266);t.materialize=function(){return a.operate(function(e,t){e.subscribe(i.createOperatorSubscriber(t,function(e){t.next(r.Notification.createNext(e))},function(){t.next(r.Notification.createComplete()),t.complete()},function(e){t.next(r.Notification.createError(e)),t.complete()}))})}},37994(e,t,n){"use strict";const r=n(15860);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},38230(e,t,n){"use strict";const{default:r,DraggableCore:a}=n(9111);e.exports=r,e.exports.default=r,e.exports.DraggableCore=a},38299(e,t){"use strict";var n,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case o:case p:case f:return e;default:switch(e=e&&e.$$typeof){case c:case u:case d:case m:case h:case l:return e;default:return t}}case a:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isMemo=function(e){return v(e)===h}},38503(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(42689))},38767(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interval=void 0;var r=n(4386),a=n(35461);t.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=r.asyncScheduler),e<0&&(e=0),a.timer(e,e,t)}},39136(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleReadableStreamLike=void 0;var r=n(63741),a=n(43026);t.scheduleReadableStreamLike=function(e,t){return r.scheduleAsyncIterable(a.readableStreamLikeToAsyncGenerator(e),t)}},39237(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(42689))},39445(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(42689))},39954(e,t,n){"use strict";t.__esModule=!0,t.cloneElement=function(e,t){t.style&&e.props.style&&(t.style=o(o({},e.props.style),t.style));t.className&&e.props.className&&(t.className=`${e.props.className} ${t.className}`);return a.default.cloneElement(e,t)};var r,a=(r=n(85959))&&r.__esModule?r:{default:r};function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(42689))},40264(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retryWhen=void 0;var r=n(52296),a=n(20020),i=n(35416),o=n(1266);t.retryWhen=function(e){return i.operate(function(t,n){var i,s,l=!1,u=function(){i=t.subscribe(o.createOperatorSubscriber(n,void 0,void 0,function(t){s||(s=new a.Subject,r.innerFrom(e(s)).subscribe(o.createOperatorSubscriber(n,function(){return i?u():l=!0}))),s&&s.next(t)})),l&&(i.unsubscribe(),i=null,l=!1,u())};u()})}},40362(e,t,n){"use strict";var r=n(56441);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,i,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return n.PropTypes=n,n}},40628(e,t){"use strict";function n(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function r(e,t){return e<>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e){const t=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n>>0;d=c,c=u,u=r(l,30)>>>0,l=o,o=s}a[0]=a[0]+o>>>0,a[1]=a[1]+l>>>0,a[2]=a[2]+u>>>0,a[3]=a[3]+c>>>0,a[4]=a[4]+d>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,255&a[0],a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,255&a[1],a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,255&a[2],a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,255&a[3],a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,255&a[4]]};t.default=a},40694(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},40818(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(42689))},41146(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,a){var i=e+" ";switch(r){case"s":return n||a?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?i+(n||a?"sekúndur":"sekúndum"):i+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?i+(n||a?"mínútur":"mínútum"):n?i+"mínúta":i+"mínútu";case"hh":return t(e)?i+(n||a?"klukkustundir":"klukkustundum"):i+"klukkustund";case"d":return n?"dagur":a?"dag":"degi";case"dd":return t(e)?n?i+"dagar":i+(a?"daga":"dögum"):n?i+"dagur":i+(a?"dag":"degi");case"M":return n?"mánuður":a?"mánuð":"mánuði";case"MM":return t(e)?n?i+"mánuðir":i+(a?"mánuði":"mánuðum"):n?i+"mánuður":i+(a?"mánuð":"mánuði");case"y":return n||a?"ár":"ári";case"yy":return t(e)?i+(n||a?"ár":"árum"):i+(n||a?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(42689))},41388(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(42689))},41432(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.first=void 0;var r=n(37676),a=n(72914),i=n(46803),o=n(87507),s=n(45956),l=n(79391);t.first=function(e,t){var n=arguments.length>=2;return function(u){return u.pipe(e?a.filter(function(t,n){return e(t,n,u)}):l.identity,i.take(1),n?o.defaultIfEmpty(t):s.throwIfEmpty(function(){return new r.EmptyError}))}}},41705(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(92162);function a(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},42231(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(42689))},42334(e,t,n){"use strict";var r=n(181);const a={displayMode:r.BarGaugeDisplayMode.Gradient,maxVizHeight:300,minVizHeight:16,minVizWidth:8,namePlacement:r.BarGaugeNamePlacement.Auto,showUnfilled:!0,sizing:r.BarGaugeSizing.Auto,valueMode:r.BarGaugeValueMode.Color};t.defaultOptions=a,t.pluginVersion="12.4.1"},42689(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,r;function a(){return t.apply(null,arguments)}function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function c(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function p(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],a=e.length;for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},N={};function z(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(N[e]=a),t&&(N[t[0]]=function(){return j(a.apply(this,arguments),t[1],t[2])}),n&&(N[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function V(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function W(e){var t,n,r=e.match(I);for(t=0,n=r.length;t=0&&F.test(e);)e=e.replace(F,r),F.lastIndex=0,n-=1;return e}var B={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function q(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(I).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}var G="Invalid date";function K(){return this._invalidDate}var J="%d",Q=/\d{1,2}/;function Z(e){return this._ordinal.replace("%d",e)}var X={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,r){var a=this._relativeTime[n];return E(a)?a(e,t,n,r):a.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return E(n)?n(t):n.replace(/%s/i,t)}var ne={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function re(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function ae(e){var t,n,r={};for(n in e)l(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var ie={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function oe(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:ie[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}var se,le=/\d/,ue=/\d\d/,ce=/\d{3}/,de=/\d{4}/,pe=/[+-]?\d{6}/,fe=/\d\d?/,he=/\d\d\d\d?/,me=/\d\d\d\d\d\d?/,ge=/\d{1,3}/,ve=/\d{1,4}/,ye=/[+-]?\d{1,6}/,be=/\d+/,_e=/[+-]?\d+/,we=/Z|[+-]\d\d:?\d\d/gi,Me=/Z|[+-]\d\d(?::?\d\d)?/gi,Se=/[+-]?\d+(\.\d{1,3})?/,ke=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Le=/^[1-9]\d?/,xe=/^([1-9]\d|\d)/;function De(e,t,n){se[e]=E(t)?t:function(e,r){return e&&n?n:t}}function Te(e,t){return l(se,e)?se[e](t._strict,t._locale):new RegExp(Oe(e))}function Oe(e){return Ee(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,a){return t||n||r||a}))}function Ee(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Pe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ce(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Pe(t)),n}se={};var Ye={};function Ae(e,t){var n,r,a=t;for("string"==typeof e&&(e=[e]),d(t)&&(a=function(e,n){n[t]=Ce(e)}),r=e.length,n=0;n68?1900:2e3)};var Ge,Ke=Qe("FullYear",!0);function Je(){return Ie(this.year())}function Qe(e,t){return function(n){return null!=n?(Xe(this,e,n),a.updateOffset(this,t),this):Ze(this,e)}}function Ze(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Xe(e,t,n){var r,a,i,o,s;if(e.isValid()&&!isNaN(n)){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(a?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(a?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(a?r.setUTCHours(n):r.setHours(n));case"Date":return void(a?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,o=e.month(),s=29!==(s=e.date())||1!==o||Ie(i)?s:28,a?r.setUTCFullYear(i,o,s):r.setFullYear(i,o,s)}}function et(e){return E(this[e=re(e)])?this[e]():this}function tt(e,t){if("object"==typeof e){var n,r=oe(e=ae(e)),a=r.length;for(n=0;n=0?(s=new Date(e+400,t,n,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,a,i,o),s}function _t(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var r=7+t-n;return-(7+_t(e,0,r).getUTCDay()-t)%7+r-1}function Mt(e,t,n,r,a){var i,o,s=1+7*(t-1)+(7+n-r)%7+wt(e,r,a);return s<=0?o=qe(i=e-1)+s:s>qe(e)?(i=e+1,o=s-qe(e)):(i=e,o=s),{year:i,dayOfYear:o}}function St(e,t,n){var r,a,i=wt(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?r=o+kt(a=e.year()-1,t,n):o>kt(e.year(),t,n)?(r=o-kt(e.year(),t,n),a=e.year()+1):(a=e.year(),r=o),{week:r,year:a}}function kt(e,t,n){var r=wt(e,t,n),a=wt(e+1,t,n);return(qe(e)-r+a)/7}function Lt(e){return St(e,this._week.dow,this._week.doy).week}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),De("w",fe,Le),De("ww",fe,ue),De("W",fe,Le),De("WW",fe,ue),Re(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Ce(e)});var xt={dow:0,doy:6};function Dt(){return this._week.dow}function Tt(){return this._week.doy}function Ot(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Et(e){var t=St(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Pt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ct(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Yt(e,t){return e.slice(t,7).concat(e.slice(0,t))}z("d",0,"do","day"),z("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),z("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),z("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),De("d",fe),De("e",fe),De("E",fe),De("dd",function(e,t){return t.weekdaysMinRegex(e)}),De("ddd",function(e,t){return t.weekdaysShortRegex(e)}),De("dddd",function(e,t){return t.weekdaysRegex(e)}),Re(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:v(n).invalidWeekday=e}),Re(["d","e","E"],function(e,t,n,r){t[r]=Ce(e)});var At="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Rt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),jt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),It=ke,Ft=ke,Ht=ke;function Nt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Yt(n,this._week.dow):e?n[e.day()]:n}function zt(e){return!0===e?Yt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Vt(e){return!0===e?Yt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Wt(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=m([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=Ge.call(this._weekdaysParse,o))?a:null:"ddd"===t?-1!==(a=Ge.call(this._shortWeekdaysParse,o))?a:null:-1!==(a=Ge.call(this._minWeekdaysParse,o))?a:null:"dddd"===t?-1!==(a=Ge.call(this._weekdaysParse,o))||-1!==(a=Ge.call(this._shortWeekdaysParse,o))||-1!==(a=Ge.call(this._minWeekdaysParse,o))?a:null:"ddd"===t?-1!==(a=Ge.call(this._shortWeekdaysParse,o))||-1!==(a=Ge.call(this._weekdaysParse,o))||-1!==(a=Ge.call(this._minWeekdaysParse,o))?a:null:-1!==(a=Ge.call(this._minWeekdaysParse,o))||-1!==(a=Ge.call(this._weekdaysParse,o))||-1!==(a=Ge.call(this._shortWeekdaysParse,o))?a:null}function $t(e,t,n){var r,a,i;if(this._weekdaysParseExact)return Wt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=m([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ut(e){if(!this.isValid())return null!=e?this:NaN;var t=Ze(this,"Day");return null!=e?(e=Pt(e,this.localeData()),this.add(e-t,"d")):t}function Bt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function qt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ct(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Gt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=It),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ft),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ht),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qt(){function e(e,t){return t.length-e.length}var t,n,r,a,i,o=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),r=Ee(this.weekdaysMin(n,"")),a=Ee(this.weekdaysShort(n,"")),i=Ee(this.weekdays(n,"")),o.push(r),s.push(a),l.push(i),u.push(r),u.push(a),u.push(i);o.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Zt(){return this.hours()%12||12}function Xt(){return this.hours()||24}function en(e,t){z(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Zt),z("k",["kk",2],0,Xt),z("hmm",0,0,function(){return""+Zt.apply(this)+j(this.minutes(),2)}),z("hmmss",0,0,function(){return""+Zt.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)}),z("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)}),z("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)}),en("a",!0),en("A",!1),De("a",tn),De("A",tn),De("H",fe,xe),De("h",fe,Le),De("k",fe,Le),De("HH",fe,ue),De("hh",fe,ue),De("kk",fe,ue),De("hmm",he),De("hmmss",me),De("Hmm",he),De("Hmmss",me),Ae(["H","HH"],ze),Ae(["k","kk"],function(e,t,n){var r=Ce(e);t[ze]=24===r?0:r}),Ae(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Ae(["h","hh"],function(e,t,n){t[ze]=Ce(e),v(n).bigHour=!0}),Ae("hmm",function(e,t,n){var r=e.length-2;t[ze]=Ce(e.substr(0,r)),t[Ve]=Ce(e.substr(r)),v(n).bigHour=!0}),Ae("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ze]=Ce(e.substr(0,r)),t[Ve]=Ce(e.substr(r,2)),t[We]=Ce(e.substr(a)),v(n).bigHour=!0}),Ae("Hmm",function(e,t,n){var r=e.length-2;t[ze]=Ce(e.substr(0,r)),t[Ve]=Ce(e.substr(r))}),Ae("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[ze]=Ce(e.substr(0,r)),t[Ve]=Ce(e.substr(r,2)),t[We]=Ce(e.substr(a))});var rn=/[ap]\.?m?\.?/i,an=Qe("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var sn,ln={calendar:A,longDateFormat:B,invalidDate:G,ordinal:J,dayOfMonthOrdinalParse:Q,relativeTime:X,months:at,monthsShort:it,week:xt,weekdays:At,weekdaysMin:jt,weekdaysShort:Rt,meridiemParse:rn},un={},cn={};function dn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=mn(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&dn(a,n)>=t-1)break;t--}i++}return sn}function hn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function mn(t){var r=null;if(void 0===un[t]&&e&&e.exports&&hn(t))try{r=sn._abbr,n(61738)("./"+t),gn(r)}catch(e){un[t]=null}return un[t]}function gn(e,t){var n;return e&&((n=c(t)?bn(e):vn(e,t))?sn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sn._abbr}function vn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=un[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=un[e]._config;else if(null!=t.parentLocale)if(null!=un[t.parentLocale])r=un[t.parentLocale]._config;else{if(null==(n=mn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return un[e]=new Y(C(r,t)),cn[e]&&cn[e].forEach(function(e){vn(e.name,e.config)}),gn(e),un[e]}return delete un[e],null}function yn(e,t){if(null!=t){var n,r,a=ln;null!=un[e]&&null!=un[e].parentLocale?un[e].set(C(un[e]._config,t)):(null!=(r=mn(e))&&(a=r._config),t=C(a,t),null==r&&(t.abbr=e),(n=new Y(t)).parentLocale=un[e],un[e]=n),gn(e)}else null!=un[e]&&(null!=un[e].parentLocale?(un[e]=un[e].parentLocale,e===gn()&&gn(e)):null!=un[e]&&delete un[e]);return un[e]}function bn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!o(e)){if(t=mn(e))return t;e=[e]}return fn(e)}function _n(){return D(un)}function wn(e){var t,n=e._a;return n&&-2===v(e).overflow&&(t=n[He]<0||n[He]>11?He:n[Ne]<1||n[Ne]>rt(n[Fe],n[He])?Ne:n[ze]<0||n[ze]>24||24===n[ze]&&(0!==n[Ve]||0!==n[We]||0!==n[$e])?ze:n[Ve]<0||n[Ve]>59?Ve:n[We]<0||n[We]>59?We:n[$e]<0||n[$e]>999?$e:-1,v(e)._overflowDayOfYear&&(tNe)&&(t=Ne),v(e)._overflowWeeks&&-1===t&&(t=Ue),v(e)._overflowWeekday&&-1===t&&(t=Be),v(e).overflow=t),e}var Mn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/Z|[+-]\d\d(?::?\d\d)?/,Ln=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Dn=/^\/?Date\((-?\d+)/i,Tn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,On={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function En(e){var t,n,r,a,i,o,s=e._i,l=Mn.exec(s)||Sn.exec(s),u=Ln.length,c=xn.length;if(l){for(v(e).iso=!0,t=0,n=u;tqe(i)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),n=_t(i,0,e._dayOfYear),e._a[He]=n.getUTCMonth(),e._a[Ne]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ze]&&0===e._a[Ve]&&0===e._a[We]&&0===e._a[$e]&&(e._nextDay=!0,e._a[ze]=0),e._d=(e._useUTC?_t:bt).apply(null,o),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ze]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(v(e).weekdayMismatch=!0)}}function zn(e){var t,n,r,a,i,o,s,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,o=4,n=Fn(t.GG,e._a[Fe],St(Jn(),1,4).year),r=Fn(t.W,1),((a=Fn(t.E,1))<1||a>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,u=St(Jn(),i,o),n=Fn(t.gg,e._a[Fe],u.year),r=Fn(t.w,u.week),null!=t.d?((a=t.d)<0||a>6)&&(l=!0):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(l=!0)):a=i),r<1||r>kt(n,i,o)?v(e)._overflowWeeks=!0:null!=l?v(e)._overflowWeekday=!0:(s=Mt(n,r,a,i,o),e._a[Fe]=s.year,e._dayOfYear=s.dayOfYear)}function Vn(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],v(e).empty=!0;var t,n,r,i,o,s,l,u=""+e._i,c=u.length,d=0;for(l=(r=U(e._f,e._locale).match(I)||[]).length,t=0;t0&&v(e).unusedInput.push(o),u=u.slice(u.indexOf(n)+n.length),d+=n.length),N[i]?(n?v(e).empty=!1:v(e).unusedTokens.push(i),je(i,n,e)):e._strict&&!n&&v(e).unusedTokens.push(i);v(e).charsLeftOver=c-d,u.length>0&&v(e).unusedInput.push(u),e._a[ze]<=12&&!0===v(e).bigHour&&e._a[ze]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[ze]=Wn(e._locale,e._a[ze],e._meridiem),null!==(s=v(e).era)&&(e._a[Fe]=e._locale.erasConvertYear(s,e._a[Fe])),Nn(e),wn(e)}else jn(e);else En(e)}function Wn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function $n(e){var t,n,r,a,i,o,s=!1,l=e._f.length;if(0===l)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;athis?this:e:b()});function Xn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Jn();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Sr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return M(t,this),(t=qn(t))._a?(e=t._isUTC?m(t._a):Jn(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kr(){return!!this.isValid()&&!this._isUTC}function Lr(){return!!this.isValid()&&this._isUTC}function xr(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Dr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Tr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Or(e,t){var n,r,a,i=e,o=null;return lr(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(o=Dr.exec(e))?(n="-"===o[1]?-1:1,i={y:0,d:Ce(o[Ne])*n,h:Ce(o[ze])*n,m:Ce(o[Ve])*n,s:Ce(o[We])*n,ms:Ce(ur(1e3*o[$e]))*n}):(o=Tr.exec(e))?(n="-"===o[1]?-1:1,i={y:Er(o[2],n),M:Er(o[3],n),w:Er(o[4],n),d:Er(o[5],n),h:Er(o[6],n),m:Er(o[7],n),s:Er(o[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(a=Cr(Jn(i.from),Jn(i.to)),(i={}).ms=a.milliseconds,i.M=a.months),r=new sr(i),lr(e)&&l(e,"_locale")&&(r._locale=e._locale),lr(e)&&l(e,"_isValid")&&(r._isValid=e._isValid),r}function Er(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Pr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Cr(e,t){var n;return e.isValid()&&t.isValid()?(t=hr(t,e),e.isBefore(t)?n=Pr(e,t):((n=Pr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Yr(e,t){return function(n,r){var a;return null===r||isNaN(+r)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),Ar(this,Or(n,r),e),this}}function Ar(e,t,n,r){var i=t._milliseconds,o=ur(t._days),s=ur(t._months);e.isValid()&&(r=null==r||r,s&&ft(e,Ze(e,"Month")+s*n),o&&Xe(e,"Date",Ze(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&a.updateOffset(e,o||s))}Or.fn=sr.prototype,Or.invalid=or;var Rr=Yr(1,"add"),jr=Yr(-1,"subtract");function Ir(e){return"string"==typeof e||e instanceof String}function Fr(e){return k(e)||p(e)||Ir(e)||d(e)||Nr(e)||Hr(e)||null==e}function Hr(e){var t,n,r=s(e)&&!u(e),a=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=i.length;for(t=0;tn.valueOf():n.valueOf()9999?$(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",$(n,"Z")):$(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ta(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,a="moment",i="";return this.isLocal()||(a=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+a+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=i+'[")]',this.format(e+t+n+r)}function na(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)}function ra(e,t){return this.isValid()&&(k(e)&&e.isValid()||Jn(e).isValid())?Or({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function aa(e){return this.from(Jn(),e)}function ia(e,t){return this.isValid()&&(k(e)&&e.isValid()||Jn(e).isValid())?Or({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oa(e){return this.to(Jn(),e)}function sa(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bn(e))&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var la=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function ua(){return this._locale}var ca=1e3,da=60*ca,pa=60*da,fa=3506328*pa;function ha(e,t){return(e%t+t)%t}function ma(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fa:new Date(e,t,n).valueOf()}function ga(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fa:Date.UTC(e,t,n)}function va(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ga:ma,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ha(t+(this._isUTC?0:this.utcOffset()*da),pa);break;case"minute":t=this._d.valueOf(),t-=ha(t,da);break;case"second":t=this._d.valueOf(),t-=ha(t,ca)}return this._d.setTime(t),a.updateOffset(this,!0),this}function ya(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ga:ma,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=pa-ha(t+(this._isUTC?0:this.utcOffset()*da),pa)-1;break;case"minute":t=this._d.valueOf(),t+=da-ha(t,da)-1;break;case"second":t=this._d.valueOf(),t+=ca-ha(t,ca)-1}return this._d.setTime(t),a.updateOffset(this,!0),this}function ba(){return this._d.valueOf()-6e4*(this._offset||0)}function _a(){return Math.floor(this.valueOf()/1e3)}function wa(){return new Date(this.valueOf())}function Ma(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Sa(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ka(){return this.isValid()?this.toISOString():null}function La(){return y(this)}function xa(){return h({},v(this))}function Da(){return v(this).overflow}function Ta(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Oa(e,t){var n,r,i,o=this._eras||bn("en")._eras;for(n=0,r=o.length;n=0)return l[r]}function Pa(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n}function Ca(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e(i=kt(e,r,a))&&(t=i),Za.call(this,e,t,n,r,a))}function Za(e,t,n,r,a){var i=Mt(e,t,n,r,a),o=_t(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Xa(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}z("N",0,0,"eraAbbr"),z("NN",0,0,"eraAbbr"),z("NNN",0,0,"eraAbbr"),z("NNNN",0,0,"eraName"),z("NNNNN",0,0,"eraNarrow"),z("y",["y",1],"yo","eraYear"),z("y",["yy",2],0,"eraYear"),z("y",["yyy",3],0,"eraYear"),z("y",["yyyy",4],0,"eraYear"),De("N",Ha),De("NN",Ha),De("NNN",Ha),De("NNNN",Na),De("NNNNN",za),Ae(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?v(n).era=a:v(n).invalidEra=e}),De("y",be),De("yy",be),De("yyy",be),De("yyyy",be),De("yo",Va),Ae(["y","yy","yyy","yyyy"],Fe),Ae(["yo"],function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Fe]=n._locale.eraYearOrdinalParse(e,a):t[Fe]=parseInt(e,10)}),z(0,["gg",2],0,function(){return this.weekYear()%100}),z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),$a("gggg","weekYear"),$a("ggggg","weekYear"),$a("GGGG","isoWeekYear"),$a("GGGGG","isoWeekYear"),De("G",_e),De("g",_e),De("GG",fe,ue),De("gg",fe,ue),De("GGGG",ve,de),De("gggg",ve,de),De("GGGGG",ye,pe),De("ggggg",ye,pe),Re(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Ce(e)}),Re(["gg","GG"],function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)}),z("Q",0,"Qo","quarter"),De("Q",le),Ae("Q",function(e,t){t[He]=3*(Ce(e)-1)}),z("D",["DD",2],"Do","date"),De("D",fe,Le),De("DD",fe,ue),De("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Ae(["D","DD"],Ne),Ae("Do",function(e,t){t[Ne]=Ce(e.match(fe)[0])});var ei=Qe("Date",!0);function ti(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}z("DDD",["DDDD",3],"DDDo","dayOfYear"),De("DDD",ge),De("DDDD",ce),Ae(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Ce(e)}),z("m",["mm",2],0,"minute"),De("m",fe,xe),De("mm",fe,ue),Ae(["m","mm"],Ve);var ni=Qe("Minutes",!1);z("s",["ss",2],0,"second"),De("s",fe,xe),De("ss",fe,ue),Ae(["s","ss"],We);var ri,ai,ii=Qe("Seconds",!1);for(z("S",0,0,function(){return~~(this.millisecond()/100)}),z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),De("S",ge,le),De("SS",ge,ue),De("SSS",ge,ce),ri="SSSS";ri.length<=9;ri+="S")De(ri,be);function oi(e,t){t[$e]=Ce(1e3*("0."+e))}for(ri="S";ri.length<=9;ri+="S")Ae(ri,oi);function si(){return this._isUTC?"UTC":""}function li(){return this._isUTC?"Coordinated Universal Time":""}ai=Qe("Milliseconds",!1),z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var ui=S.prototype;function ci(e){return Jn(1e3*e)}function di(){return Jn.apply(null,arguments).parseZone()}function pi(e){return e}ui.add=Rr,ui.calendar=Wr,ui.clone=$r,ui.diff=Qr,ui.endOf=ya,ui.format=na,ui.from=ra,ui.fromNow=aa,ui.to=ia,ui.toNow=oa,ui.get=et,ui.invalidAt=Da,ui.isAfter=Ur,ui.isBefore=Br,ui.isBetween=qr,ui.isSame=Gr,ui.isSameOrAfter=Kr,ui.isSameOrBefore=Jr,ui.isValid=La,ui.lang=la,ui.locale=sa,ui.localeData=ua,ui.max=Zn,ui.min=Qn,ui.parsingFlags=xa,ui.set=tt,ui.startOf=va,ui.subtract=jr,ui.toArray=Ma,ui.toObject=Sa,ui.toDate=wa,ui.toISOString=ea,ui.inspect=ta,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ui[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ui.toJSON=ka,ui.toString=Xr,ui.unix=_a,ui.valueOf=ba,ui.creationData=Ta,ui.eraName=Ca,ui.eraNarrow=Ya,ui.eraAbbr=Aa,ui.eraYear=Ra,ui.year=Ke,ui.isLeapYear=Je,ui.weekYear=Ua,ui.isoWeekYear=Ba,ui.quarter=ui.quarters=Xa,ui.month=ht,ui.daysInMonth=mt,ui.week=ui.weeks=Ot,ui.isoWeek=ui.isoWeeks=Et,ui.weeksInYear=Ka,ui.weeksInWeekYear=Ja,ui.isoWeeksInYear=qa,ui.isoWeeksInISOWeekYear=Ga,ui.date=ei,ui.day=ui.days=Ut,ui.weekday=Bt,ui.isoWeekday=qt,ui.dayOfYear=ti,ui.hour=ui.hours=an,ui.minute=ui.minutes=ni,ui.second=ui.seconds=ii,ui.millisecond=ui.milliseconds=ai,ui.utcOffset=gr,ui.utc=yr,ui.local=br,ui.parseZone=_r,ui.hasAlignedHourOffset=wr,ui.isDST=Mr,ui.isLocal=kr,ui.isUtcOffset=Lr,ui.isUtc=xr,ui.isUTC=xr,ui.zoneAbbr=si,ui.zoneName=li,ui.dates=x("dates accessor is deprecated. Use date instead.",ei),ui.months=x("months accessor is deprecated. Use month instead",ht),ui.years=x("years accessor is deprecated. Use year instead",Ke),ui.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vr),ui.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var fi=Y.prototype;function hi(e,t,n,r){var a=bn(),i=m().set(r,t);return a[n](i,e)}function mi(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return hi(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=hi(e,r,n,"month");return a}function gi(e,t,n,r){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var a,i=bn(),o=e?i._week.dow:0,s=[];if(null!=n)return hi(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=hi(t,(a+o)%7,r,"day");return s}function vi(e,t){return mi(e,t,"months")}function yi(e,t){return mi(e,t,"monthsShort")}function bi(e,t,n){return gi(e,t,n,"weekdays")}function _i(e,t,n){return gi(e,t,n,"weekdaysShort")}function wi(e,t,n){return gi(e,t,n,"weekdaysMin")}fi.calendar=R,fi.longDateFormat=q,fi.invalidDate=K,fi.ordinal=Z,fi.preparse=pi,fi.postformat=pi,fi.relativeTime=ee,fi.pastFuture=te,fi.set=P,fi.eras=Oa,fi.erasParse=Ea,fi.erasConvertYear=Pa,fi.erasAbbrRegex=Ia,fi.erasNameRegex=ja,fi.erasNarrowRegex=Fa,fi.months=ut,fi.monthsShort=ct,fi.monthsParse=pt,fi.monthsRegex=vt,fi.monthsShortRegex=gt,fi.week=Lt,fi.firstDayOfYear=Tt,fi.firstDayOfWeek=Dt,fi.weekdays=Nt,fi.weekdaysMin=Vt,fi.weekdaysShort=zt,fi.weekdaysParse=$t,fi.weekdaysRegex=Gt,fi.weekdaysShortRegex=Kt,fi.weekdaysMinRegex=Jt,fi.isPM=nn,fi.meridiem=on,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=x("moment.lang is deprecated. Use moment.locale instead.",gn),a.langData=x("moment.langData is deprecated. Use moment.localeData instead.",bn);var Mi=Math.abs;function Si(){var e=this._data;return this._milliseconds=Mi(this._milliseconds),this._days=Mi(this._days),this._months=Mi(this._months),e.milliseconds=Mi(e.milliseconds),e.seconds=Mi(e.seconds),e.minutes=Mi(e.minutes),e.hours=Mi(e.hours),e.months=Mi(e.months),e.years=Mi(e.years),this}function ki(e,t,n,r){var a=Or(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Li(e,t){return ki(this,e,t,1)}function xi(e,t){return ki(this,e,t,-1)}function Di(e){return e<0?Math.floor(e):Math.ceil(e)}function Ti(){var e,t,n,r,a,i=this._milliseconds,o=this._days,s=this._months,l=this._data;return i>=0&&o>=0&&s>=0||i<=0&&o<=0&&s<=0||(i+=864e5*Di(Ei(s)+o),o=0,s=0),l.milliseconds=i%1e3,e=Pe(i/1e3),l.seconds=e%60,t=Pe(e/60),l.minutes=t%60,n=Pe(t/60),l.hours=n%24,o+=Pe(n/24),s+=a=Pe(Oi(o)),o-=Di(Ei(a)),r=Pe(s/12),s%=12,l.days=o,l.months=s,l.years=r,this}function Oi(e){return 4800*e/146097}function Ei(e){return 146097*e/4800}function Pi(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Oi(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ei(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ci(e){return function(){return this.as(e)}}var Yi=Ci("ms"),Ai=Ci("s"),Ri=Ci("m"),ji=Ci("h"),Ii=Ci("d"),Fi=Ci("w"),Hi=Ci("M"),Ni=Ci("Q"),zi=Ci("y"),Vi=Yi;function Wi(){return Or(this)}function $i(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Ui(e){return function(){return this.isValid()?this._data[e]:NaN}}var Bi=Ui("milliseconds"),qi=Ui("seconds"),Gi=Ui("minutes"),Ki=Ui("hours"),Ji=Ui("days"),Qi=Ui("months"),Zi=Ui("years");function Xi(){return Pe(this.days()/7)}var eo=Math.round,to={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function no(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function ro(e,t,n,r){var a=Or(e).abs(),i=eo(a.as("s")),o=eo(a.as("m")),s=eo(a.as("h")),l=eo(a.as("d")),u=eo(a.as("M")),c=eo(a.as("w")),d=eo(a.as("y")),p=i<=n.ss&&["s",i]||i0,p[4]=r,no.apply(null,p)}function ao(e){return void 0===e?eo:"function"==typeof e&&(eo=e,!0)}function io(e,t){return void 0!==to[e]&&(void 0===t?to[e]:(to[e]=t,"s"===e&&(to.ss=t-1),!0))}function oo(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,a=!1,i=to;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(i=Object.assign({},to,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=ro(this,!a,i,n=this.localeData()),a&&(r=n.pastFuture(+this,r)),n.postformat(r)}var so=Math.abs;function lo(e){return(e>0)-(e<0)||+e}function uo(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,a,i,o,s,l=so(this._milliseconds)/1e3,u=so(this._days),c=so(this._months),d=this.asSeconds();return d?(e=Pe(l/60),t=Pe(e/60),l%=60,e%=60,n=Pe(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",i=lo(this._months)!==lo(d)?"-":"",o=lo(this._days)!==lo(d)?"-":"",s=lo(this._milliseconds)!==lo(d)?"-":"",a+"P"+(n?i+n+"Y":"")+(c?i+c+"M":"")+(u?o+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var co=sr.prototype;return co.isValid=ir,co.abs=Si,co.add=Li,co.subtract=xi,co.as=Pi,co.asMilliseconds=Yi,co.asSeconds=Ai,co.asMinutes=Ri,co.asHours=ji,co.asDays=Ii,co.asWeeks=Fi,co.asMonths=Hi,co.asQuarters=Ni,co.asYears=zi,co.valueOf=Vi,co._bubble=Ti,co.clone=Wi,co.get=$i,co.milliseconds=Bi,co.seconds=qi,co.minutes=Gi,co.hours=Ki,co.days=Ji,co.weeks=Xi,co.months=Qi,co.years=Zi,co.humanize=oo,co.toISOString=uo,co.toString=uo,co.toJSON=uo,co.locale=sa,co.localeData=ua,co.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",uo),co.lang=la,z("X",0,0,"unix"),z("x",0,0,"valueOf"),De("x",_e),De("X",Se),Ae("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),Ae("x",function(e,t,n){n._d=new Date(Ce(e))}),a.version="2.30.1",i(Jn),a.fn=ui,a.min=er,a.max=tr,a.now=nr,a.utc=m,a.unix=ci,a.months=vi,a.isDate=p,a.locale=gn,a.invalid=b,a.duration=Or,a.isMoment=k,a.weekdays=bi,a.parseZone=di,a.localeData=bn,a.isDuration=lr,a.monthsShort=yi,a.weekdaysMin=wi,a.defineLocale=vn,a.updateLocale=yn,a.locales=_n,a.weekdaysShort=_i,a.normalizeUnits=re,a.relativeTimeRounding=ao,a.relativeTimeThreshold=io,a.calendarFormat=Vr,a.prototype=ui,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()},42874(e,t){"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Modifier le filtre ayant pour clé {{keyLabel}}","managed-filter":"Filtre géré {{origin}}","non-applicable":"","remove-filter-with-key":"Supprimer le filtre ayant pour clé {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Supprimer la valeur du filtre – {{itemLabel}}","use-custom-value":"Utiliser une valeur personnalisée : {{itemLabel}}"},"fallback-page":{content:"Si vous êtes arrivé ici via un lien, il se peut qu’il y ait un bug dans l’application.",subTitle:"L’URL ne correspond à aucune page",title:"Page introuvable"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Réduire la scène","expand-button-label":"Développer la scène","remove-button-label":"Supprimer la scène"},"scene-debugger":{"object-details":"Détails de l’objet","scene-graph":"Graphique de la scène","title-scene-debugger":"Débogueur de scène"},"scene-grid-row":{"collapse-row":"Réduire la ligne","expand-row":"Développer la ligne"},"scene-refresh-picker":{"text-cancel":"Annuler","text-refresh":"Actualiser","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Comparaison","button-tooltip":"Activer la comparaison d’intervalles"},splitter:{"aria-label-pane-resize-widget":"Widget de redimensionnement du panneau"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Titre"}},"viz-panel-explore-button":{explore:"Explorer"},"viz-panel-renderer":{"loading-plugin-panel":"Chargement du panneau du plugin…","panel-plugin-has-no-panel-component":"Le plugin de panneau ne contient aucun composant de panneau"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Le rendu d’un trop grand nombre de séries dans un seul panneau peut nuire aux performances et rendre les données plus difficiles à lire.","warning-message":"Affichage limité à {{seriesLimit}} séries"}},utils:{"controls-label":{"tooltip-remove":"Supprimer"},"loading-indicator":{"content-cancel-query":"Annuler la requête"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Modifier l’opérateur du filtre"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Ajouter un filtre","title-add-filter":"Ajouter un filtre"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Supprimer le filtre","key-select":{"placeholder-select-label":"Sélectionner une étiquette"},"label-select-label":"Sélectionner une étiquette","title-remove-filter":"Supprimer le filtre","value-select":{"placeholder-select-value":"Sélectionner une valeur"}},"data-source-variable":{label:{default:"par défaut"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"effacer",tooltip:"Appliqué par défaut dans ce tableau de bord. En cas de modification, il s’applique aussi aux autres tableaux de bord.","tooltip-restore-groupby-set-by-this-dashboard":"Restaurer le groupage défini par ce tableau de bord."},"format-registry":{formats:{description:{"commaseparated-values":"Valeurs séparées par des virgules","double-quoted-values":"Valeurs entre guillemets doubles","format-date-in-different-ways":"Formater la date de différentes façons","format-multivalued-variables-using-syntax-example":"Formater les variables à valeurs multiples avec la syntaxe glob : exemple {value1,value2}","html-escaping-of-values":"Échappement HTML des valeurs","join-values-with-a-comma":"","json-stringify-value":"Valeur au format JSON (stringify)","keep-value-as-is":"Conserver la valeur telle quelle","multiple-values-are-formatted-like-variablevalue":"Plusieurs valeurs sont formatées ainsi : variable=valeur","single-quoted-values":"Valeurs entre guillemets simples","useful-escaping-values-taking-syntax-characters":"Utile pour l’échappement des valeurs dans les URL en tenant compte des caractères de syntaxe URI","useful-for-url-escaping-values":"Utile pour l’échappement des valeurs dans les URL","values-are-separated-by-character":"Les valeurs sont séparées par le caractère « | »"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Sélecteur de regroupement","placeholder-group-by-label":"Regrouper par étiquette"},"interval-variable":{"placeholder-select-value":"Sélectionner une valeur"},"loading-options-placeholder":{"loading-options":"Chargement des options..."},"multi-value-apply-button":{apply:"Appliquer"},"no-options-placeholder":{"no-options-found":"Aucune option trouvée"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Une erreur est survenue lors de la récupération des étiquettes. Cliquez pour réessayer"},"test-object-with-variable-dependency":{title:{hello:"Bonjour"}},"test-variable":{text:{text:"Texte"}},"variable-value-input":{"placeholder-enter-value":"Saisir une valeur"},"variable-value-select":{"placeholder-select-value":"Sélectionner une valeur"}}}}},42945(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestAll=void 0;var r=n(30994),a=n(10587);t.combineLatestAll=function(e){return a.joinAllInternals(r.combineLatest,e)}},43026(e,t,n){"use strict";var r=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]1||l(e,t)})})}function l(e,t){try{(n=i[e](t)).value instanceof a?Promise.resolve(n.value.v).then(u,c):d(o[0][2],n)}catch(e){d(o[0][3],e)}var n}function u(e){l("next",e)}function c(e){l("throw",e)}function d(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.isReadableStreamLike=t.readableStreamLikeToAsyncGenerator=void 0;var o=n(44717);t.readableStreamLikeToAsyncGenerator=function(e){return i(this,arguments,function(){var t,n,i;return r(this,function(r){switch(r.label){case 0:t=e.getReader(),r.label=1;case 1:r.trys.push([1,,9,10]),r.label=2;case 2:return[4,a(t.read())];case 3:return n=r.sent(),i=n.value,n.done?[4,a(void 0)]:[3,5];case 4:return[2,r.sent()];case 5:return[4,a(i)];case 6:return[4,r.sent()];case 7:return r.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})},t.isReadableStreamLike=function(e){return o.isFunction(null==e?void 0:e.getReader)}},43215(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=(r=n(76506))&&r.__esModule?r:{default:r};var i=function(e){return"string"==typeof e&&a.default.test(e)};t.default=i},43239(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(42689))},43350(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n(42689))},43391(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pluck=void 0;var r=n(74828);t.pluck=function(){for(var e=[],t=0;t=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(r,a,i,o){var s=t(r),l=n[e][t(r)];return 2===s&&(l=l[a?0:1]),l.replace(/%d/i,r)}},a=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n(42689))},44717(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e}},44776(e,t,n){"use strict";n.d(t,{s:()=>ce});var r=n(3003),a=n(85959);function i(e){let[t,n]=(0,a.useState)(e),i=(0,a.useRef)(t),o=(0,a.useRef)(null),s=(0,a.useRef)(()=>{if(!o.current)return;let e=o.current.next();e.done?o.current=null:i.current===e.value?s.current():n(e.value)});(0,r.N)(()=>{i.current=t,o.current&&s.current()});let l=(0,a.useCallback)(e=>{o.current=e(i.current),s.current()},[s]);return[t,l]}const o={prefix:String(Math.round(1e10*Math.random())),current:0},s=a.createContext(o),l=a.createContext(!1);Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);let u=new WeakMap;function c(e=!1){let t=(0,a.useContext)(s),n=(0,a.useRef)(null);if(null===n.current&&!e){var r,i;let e=null===(i=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===i||null===(r=i.ReactCurrentOwner)||void 0===r?void 0:r.current;if(e){let n=u.get(e);null==n?u.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,u.delete(e))}n.current=++t.current}return n.current}const d="function"==typeof a.useId?function(e){let t=a.useId(),[n]=(0,a.useState)("function"==typeof a.useSyncExternalStore?a.useSyncExternalStore(h,p,f):(0,a.useContext)(l));return e||`${n?"react-aria":`react-aria${o.prefix}`}-${t}`}:function(e){let t=(0,a.useContext)(s),n=c(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`};function p(){return!1}function f(){return!0}function h(e){return()=>{}}let m,g=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),v=new Map;function y(e=[]){let t=function(e){let[t,n]=(0,a.useState)(e),i=(0,a.useRef)(null),o=d(t),s=(0,a.useRef)(null);if(m&&m.register(s,o),g){const e=v.get(o);e&&!e.includes(i)?e.push(i):v.set(o,[i])}return(0,r.N)(()=>{let e=o;return()=>{m&&m.unregister(s),v.delete(e)}},[o]),(0,a.useEffect)(()=>{let e=i.current;return e&&n(e),()=>{e&&(i.current=null)}}),o}(),[n,o]=i(t),s=(0,a.useCallback)(()=>{o(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,o]);return(0,r.N)(s,[t,s,...e]),n}"undefined"!=typeof FinalizationRegistry&&(m=new FinalizationRegistry(e=>{v.delete(e)}));const b=new Set(["id"]),_=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),w=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),M=new Set(["dir","lang","hidden","inert","translate"]),S=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),k=/^(data-.*)$/;function L(e,t={}){let{labelable:n,isLink:r,global:a,events:i=a,propNames:o}=t,s={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(b.has(t)||n&&_.has(t)||r&&w.has(t)||a&&M.has(t)||i&&(S.has(t)||t.endsWith("Capture")&&S.has(t.slice(0,-7)))||(null==o?void 0:o.has(t))||k.test(t))&&(s[t]=e[t]);return s}var x=n(18952);function D(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function T(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function O(e){let t=null;return()=>(null==t&&(t=e()),t)}const E=O(function(){return T(/^Mac/i)}),P=O(function(){return T(/^iPhone/i)}),C=O(function(){return T(/^iPad/i)||E()&&navigator.maxTouchPoints>1}),Y=O(function(){return P()||C()}),A=(O(function(){return E()||Y()}),O(function(){return D(/AppleWebKit/i)&&!R()})),R=O(function(){return D(/Chrome/i)}),j=O(function(){return D(/Android/i)}),I=O(function(){return D(/Firefox/i)});function F(e){if(function(){if(null==H){H=!1;try{document.createElement("div").focus({get preventScroll(){return H=!0,!0}})}catch{}}return H}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight{ne(e)},{once:!0}),B.set(t,{focus:r})}const ne=(e,t)=>{const n=(0,V.mD)(e),r=(0,V.TW)(e);t&&r.removeEventListener("DOMContentLoaded",t),B.has(n)&&(n.HTMLElement.prototype.focus=B.get(n).focus,r.removeEventListener("keydown",J,!0),r.removeEventListener("keyup",J,!0),r.removeEventListener("click",Z,!0),n.removeEventListener("focus",X,!0),n.removeEventListener("blur",ee,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",Q,!0),r.removeEventListener("pointermove",Q,!0),r.removeEventListener("pointerup",Q,!0)),B.delete(n))};"undefined"!=typeof document&&function(e){const t=(0,V.TW)(e);let n;"loading"!==t.readyState?te(e):(n=()=>{te(e)},t.addEventListener("DOMContentLoaded",n))}();new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let re=new Map,ae=new Set;function ie(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{let r=(0,z.wt)(n);if(!e(n)||!r)return;let a=re.get(r);if(a&&(a.delete(n.propertyName),0===a.size&&(r.removeEventListener("transitioncancel",t),re.delete(r)),0===re.size)){for(let e of ae)e();ae.clear()}};document.body.addEventListener("transitionrun",n=>{let r=(0,z.wt)(n);if(!e(n)||!r)return;let a=re.get(r);a||(a=new Set,re.set(r,a),r.addEventListener("transitioncancel",t,{once:!0})),a.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}function oe(e){requestAnimationFrame(()=>{!function(){for(const[e]of re)"isConnected"in e&&!e.isConnected&&re.delete(e)}(),0===re.size?e():ae.add(e)})}function se(e){if(!e.isConnected)return;const t=(0,V.TW)(e);if("virtual"===W){let n=(0,z.bq)(t);oe(()=>{const r=(0,z.bq)(t);r!==n&&r!==t.body||!e.isConnected||F(e)})}else F(e)}"undefined"!=typeof document&&("loading"!==document.readyState?ie():document.addEventListener("DOMContentLoaded",ie));n(48398);const le=a.createContext(null);function ue(){let e=(0,a.useContext)(le),t=null==e?void 0:e.setContain;(0,r.N)(()=>{null==t||t(!0)},[t])}function ce(e,t){let{role:n="dialog"}=e,r=y();r=e["aria-label"]?void 0:r;let i=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){se(t.current);let e=setTimeout(()=>{document.activeElement!==t.current&&document.activeElement!==document.body||(i.current=!0,t.current&&(t.current.blur(),se(t.current)),i.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),ue(),{dialogProps:{...L(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:r}}}},45294(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=void 0;var r=n(54463),a=n(52296);t.from=function(e,t){return t?r.scheduled(e,t):a.innerFrom(e)}},45334(e,t,n){"use strict";const r=n(37944),a=n(15860),{safeRe:i,t:o}=n(86850);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){const r=t.includePrerelease?i[o.COERCERTLFULL]:i[o.COERCERTL];let a;for(;(a=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&a.index+a[0].length===n.index+n[0].length||(n=a),r.lastIndex=a.index+a[1].length+a[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?i[o.COERCEFULL]:i[o.COERCE]);if(null===n)return null;const s=n[2],l=n[3]||"0",u=n[4]||"0",c=t.includePrerelease&&n[5]?`-${n[5]}`:"",d=t.includePrerelease&&n[6]?`+${n[6]}`:"";return a(`${s}.${l}.${u}${c}${d}`,t)}},45363(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,r,a){var i,o=t.words[r];return 1===r.length?"y"===r&&n?"jedna godina":a||n?o[0]:o[1]:(i=t.correctGrammaticalCase(e,o),"yy"===r&&n&&"godinu"===i?e+" godina":e+" "+i)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(42689))},45415(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(98449);function a(e,t="latest"){return i(e,t.replace(/\-.*/,""))}function i(e,t){const n={};for(const[r,a]of Object.entries(e))o(a)?n[r]=i(a,t):(l(a,r),n[r]=s(a,t));return n}function o(e){if("object"==typeof e){const[t]=Object.keys(e);return!r.valid(t)}return!1}function s(e,t){let n,a=Object.keys(e).sort(r.compare);if("latest"===t)return e[a[a.length-1]];for(const e of a)r.gte(t,e)&&(n=e);return n||(n=a[a.length-1]),e[n]}function l(e,t){if(!Object.keys(e).every(e=>r.valid(e)))throw new Error(`Invalid semver version: '${t}'`)}const u="8.5.0",c={RadioButton:{container:{"10.2.3":"data-testid radio-button"}},Breadcrumbs:{breadcrumb:{"9.4.0":e=>`data-testid ${e} breadcrumb`}},CanvasGridAddActions:{addPanel:{"12.1.0":"data-testid CanvasGridAddActions add-panel"},groupPanels:{"12.1.0":"data-testid CanvasGridAddActions group-panels"},ungroup:{"12.1.0":"data-testid CanvasGridAddActions ungroup"},addRow:{"12.1.0":"data-testid CanvasGridAddActions add-row"},pasteRow:{"12.1.0":"data-testid CanvasGridAddActions paste-row"},addTab:{"12.1.0":"data-testid CanvasGridAddActions add-tab"},pasteTab:{"12.1.0":"data-testid CanvasGridAddActions paste-tab"}},DashboardEditPaneSplitter:{primaryBody:{"12.1.0":"data-testid DashboardEditPaneSplitter primary body"}},EditPaneHeader:{deleteButton:{"12.1.0":"data-testid EditPaneHeader delete panel"},copyDropdown:{"12.1.0":"data-testid EditPaneHeader copy dropdown"},copy:{"12.1.0":"data-testid EditPaneHeader copy"},duplicate:{"12.1.0":"data-testid EditPaneHeader duplicate"},backButton:{"12.1.0":"data-testid EditPaneHeader back"}},TimePicker:{openButton:{[u]:"data-testid TimePicker Open Button"},overlayContent:{"10.2.3":"data-testid TimePicker Overlay Content"},fromField:{"10.2.3":"data-testid Time Range from field",[u]:"Time Range from field"},toField:{"10.2.3":"data-testid Time Range to field",[u]:"Time Range to field"},applyTimeRange:{[u]:"data-testid TimePicker submit button"},copyTimeRange:{"10.4.0":"data-testid TimePicker copy button"},pasteTimeRange:{"10.4.0":"data-testid TimePicker paste button"},calendar:{label:{"10.2.3":"data-testid Time Range calendar",[u]:"Time Range calendar"},openButton:{"10.2.3":"data-testid Open time range calendar",[u]:"Open time range calendar"},closeButton:{"10.2.3":"data-testid Close time range Calendar",[u]:"Close time range Calendar"}},absoluteTimeRangeTitle:{[u]:"data-testid-absolute-time-range-narrow"}},DataSourcePermissions:{form:{"9.5.0":()=>'form[name="addPermission"]'},roleType:{"9.5.0":"Role to add new permission to"},rolePicker:{"9.5.0":"Built-in role picker"},permissionLevel:{"12.0.0":"Permission level","9.5.0":"Permission Level"}},DateTimePicker:{input:{"10.2.3":"data-testid date-time-input"}},DataSource:{TestData:{QueryTab:{scenarioSelectContainer:{[u]:"Test Data Query scenario select container"},scenarioSelect:{[u]:"Test Data Query scenario select"},max:{[u]:"TestData max"},min:{[u]:"TestData min"},noise:{[u]:"TestData noise"},seriesCount:{[u]:"TestData series count"},spread:{[u]:"TestData spread"},startValue:{[u]:"TestData start value"},drop:{[u]:"TestData drop values"}}},DataSourceHttpSettings:{urlInput:{"10.4.0":"data-testid Datasource HTTP settings url",[u]:"Datasource HTTP settings url"}},Jaeger:{traceIDInput:{[u]:"Trace ID"}},Prometheus:{configPage:{connectionSettings:{[u]:"Data source connection URL"},manageAlerts:{"10.4.0":"prometheus-alerts-manager"},allowAsRecordingRulesTarget:{"12.1.0":"prometheus-recording-rules-target"},scrapeInterval:{"10.4.0":"data-testid scrape interval"},queryTimeout:{"10.4.0":"data-testid query timeout"},defaultEditor:{"10.4.0":"data-testid default editor"},disableMetricLookup:{"10.4.0":"disable-metric-lookup"},prometheusType:{"10.4.0":"data-testid prometheus type"},prometheusVersion:{"10.4.0":"data-testid prometheus version"},cacheLevel:{"10.4.0":"data-testid cache level"},incrementalQuerying:{"10.4.0":"prometheus-incremental-querying"},queryOverlapWindow:{"10.4.0":"data-testid query overlap window"},disableRecordingRules:{"10.4.0":"disable-recording-rules"},customQueryParameters:{"10.4.0":"data-testid custom query parameters"},httpMethod:{"10.4.0":"data-testid http method"},exemplarsAddButton:{"10.3.0":"data-testid Add exemplar config button",[u]:"Add exemplar config button"},internalLinkSwitch:{"10.3.0":"data-testid Internal link switch",[u]:"Internal link switch"},codeModeMetricNamesSuggestionLimit:{"11.1.0":"data-testid code mode metric names suggestion limit"},seriesLimit:{"12.0.2":"data-testid maximum series limit"}},queryEditor:{explain:{"10.4.0":"data-testid prometheus explain switch wrapper"},editorToggle:{"10.4.0":"data-testid QueryEditorModeToggle"},options:{"10.4.0":"data-testid prometheus options"},legend:{"10.4.0":"data-testid prometheus legend wrapper"},format:{"10.4.0":"data-testid prometheus format"},step:{"10.4.0":"data-testid prometheus-step"},type:{"10.4.0":"data-testid prometheus type"},exemplars:{"10.4.0":"data-testid prometheus-exemplars"},builder:{metricSelect:{"10.4.0":"data-testid metric select"},hints:{"10.4.0":"data-testid prometheus hints"},metricsExplorer:{"10.4.0":"data-testid metrics explorer"},queryAdvisor:{"10.4.0":"data-testid query advisor"}},code:{queryField:{"10.4.0":"data-testid prometheus query field"},metricsCountInfo:{"11.1.0":"data-testid metrics count disclaimer"},metricsBrowser:{openButton:{"10.4.0":"data-testid open metrics browser"},selectMetric:{"10.4.0":"data-testid select a metric"},seriesLimit:{"10.3.1":"data-testid series limit"},metricList:{"10.4.0":"data-testid metric list"},labelNamesFilter:{"10.4.0":"data-testid label names filter"},labelValuesFilter:{"10.4.0":"data-testid label values filter"},useQuery:{"10.4.0":"data-testid use query"},useAsRateQuery:{"10.4.0":"data-testid use as rate query"},validateSelector:{"10.4.0":"data-testid validate selector"},clear:{"10.4.0":"data-testid clear"}}}},exemplarMarker:{"10.3.0":"data-testid Exemplar marker",[u]:"Exemplar marker"},variableQueryEditor:{queryType:{"10.4.0":"data-testid query type"},labelnames:{metricRegex:{"10.4.0":"data-testid label names metric regex"}},labelValues:{labelSelect:{"10.4.0":"data-testid label values label select"}},metricNames:{metricRegex:{"10.4.0":"data-testid metric names metric regex"}},varQueryResult:{"10.4.0":"data-testid variable query result"},seriesQuery:{"10.4.0":"data-testid prometheus series query"},classicQuery:{"10.4.0":"data-testid prometheus classic query"}},annotations:{minStep:{"10.4.0":"data-testid prometheus-annotation-min-step"},title:{"10.4.0":"data-testid prometheus annotation title"},tags:{"10.4.0":"data-testid prometheus annotation tags"},text:{"10.4.0":"data-testid prometheus annotation text"},seriesValueAsTimestamp:{"10.4.0":"data-testid prometheus annotation series value as timestamp"}}}},Menu:{MenuComponent:{[u]:e=>`${e} menu`},MenuGroup:{[u]:e=>`${e} menu group`},MenuItem:{[u]:e=>`${e} menu item`},SubMenu:{container:{"10.3.0":"data-testid SubMenu container",[u]:"SubMenu container"},icon:{"10.3.0":"data-testid SubMenu icon",[u]:"SubMenu icon"}}},Panels:{Panel:{title:{[u]:e=>`data-testid Panel header ${e}`},content:{"11.1.0":"data-testid panel content"},headerContainer:{"9.5.0":"data-testid header-container"},headerItems:{"10.2.0":e=>`data-testid Panel header item ${e}`},menuItems:{"9.5.0":e=>`data-testid Panel menu item ${e}`},menu:{"9.5.0":e=>`data-testid Panel menu ${e}`},containerByTitle:{[u]:e=>`${e} panel`},headerCornerInfo:{[u]:e=>`Panel header ${e}`},status:{"10.2.0":e=>`data-testid Panel status ${e}`,[u]:e=>"Panel status"},loadingBar:{"10.0.0":()=>"Panel loading bar"},HoverWidget:{container:{"10.1.0":"data-testid hover-header-container",[u]:"hover-header-container"},dragIcon:{"10.0.0":"data-testid drag-icon"}},PanelDataErrorMessage:{"10.4.0":"data-testid Panel data error message"}},Visualization:{Graph:{container:{"9.5.0":"Graph container"},VisualizationTab:{legendSection:{[u]:"Legend section"}},Legend:{legendItemAlias:{[u]:e=>`gpl alias ${e}`},showLegendSwitch:{[u]:"gpl show legend"}},xAxis:{labels:{[u]:()=>"div.flot-x-axis > div.flot-tick-label"}}},BarGauge:{valueV2:{[u]:"data-testid Bar gauge value"}},PieChart:{svgSlice:{"10.3.0":"data testid Pie Chart Slice"}},Text:{container:{[u]:()=>".markdown-html"}},Table:{header:{[u]:"table header"},footer:{[u]:"table-footer"},body:{"10.2.0":"data-testid table body"}}}},VizLegend:{seriesName:{"10.3.0":e=>`data-testid VizLegend series ${e}`}},Drawer:{General:{title:{[u]:e=>`Drawer title ${e}`},expand:{[u]:"Drawer expand"},contract:{[u]:"Drawer contract"},close:{"10.3.0":"data-testid Drawer close",[u]:"Drawer close"},rcContentWrapper:{"9.4.0":()=>".rc-drawer-content-wrapper"},subtitle:{"10.4.0":"data-testid drawer subtitle"}},DashboardSaveDrawer:{saveButton:{"11.1.0":"data-testid Save dashboard drawer button"},saveAsButton:{"11.1.0":"data-testid Save as dashboard drawer button"},saveAsTitleInput:{"11.1.0":"Save dashboard title field"}}},PanelEditor:{General:{content:{"11.1.0":"data-testid Panel editor content","8.0.0":"Panel editor content"}},OptionsPane:{content:{"11.1.0":"data-testid Panel editor option pane content",[u]:"Panel editor option pane content"},select:{[u]:"Panel editor option pane select"},fieldLabel:{[u]:e=>`${e} field property editor`},fieldInput:{"11.0.0":e=>`data-testid Panel editor option pane field input ${e}`}},DataPane:{content:{"11.1.0":"data-testid Panel editor data pane content",[u]:"Panel editor data pane content"}},applyButton:{"9.2.0":"data-testid Apply changes and go back to dashboard","9.1.0":"Apply changes and go back to dashboard","8.0.0":"panel editor apply"},toggleVizPicker:{"10.0.0":"data-testid toggle-viz-picker","8.0.0":"toggle-viz-picker"},toggleVizOptions:{"10.1.0":"data-testid toggle-viz-options",[u]:"toggle-viz-options"},toggleTableView:{"11.1.0":"data-testid toggle-table-view",[u]:"toggle-table-view"},showZoomField:{"10.2.0":"Map controls Show zoom control field property editor"},showAttributionField:{"10.2.0":"Map controls Show attribution field property editor"},showScaleField:{"10.2.0":"Map controls Show scale field property editor"},showMeasureField:{"10.2.0":"Map controls Show measure tools field property editor"},showDebugField:{"10.2.0":"Map controls Show debug field property editor"},measureButton:{"12.1.0":"data-testid panel-editor-measure-button","9.2.0":"show measure tools"},Outline:{section:{"12.0.0":"data-testid Outline section"},node:{"12.0.0":e=>`data-testid outline node ${e}`},item:{"12.0.0":e=>`data-testid outline item ${e}`}},ElementEditPane:{variableType:{"12.0.0":e=>`data-testid variable type ${e}`},addVariableButton:{"12.0.0":"data-testid add variable button"},variableNameInput:{"12.0.0":"data-testid variable name input"},variableLabelInput:{"12.0.0":"data-testid variable label input"},AutoGridLayout:{minColumnWidth:{"12.1.0":"data-testid min column width selector"},customMinColumnWidth:{"12.1.0":"data-testid custom min column width input"},clearCustomMinColumnWidth:{"12.1.0":"data-testid clear custom min column width input"},maxColumns:{"12.1.0":"data-testid max columns selector"},rowHeight:{"12.1.0":"data-testid row height selector"},customRowHeight:{"12.1.0":"data-testid custom row height input"},clearCustomRowHeight:{"12.1.0":"data-testid clear custom row height input"},fillScreen:{"12.1.0":"data-testid fill screen switch"}}}},PanelInspector:{Data:{content:{[u]:"Panel inspector Data content"}},Stats:{content:{[u]:"Panel inspector Stats content"}},Json:{content:{"11.1.0":"data-testid Panel inspector Json content",[u]:"Panel inspector Json content"}},Query:{content:{[u]:"Panel inspector Query content"},refreshButton:{[u]:"Panel inspector Query refresh button"},jsonObjectKeys:{[u]:()=>".json-formatter-key"}}},Tab:{title:{"11.2.0":e=>`data-testid Tab ${e}`},active:{[u]:()=>'[class*="-activeTabStyle"]'}},RefreshPicker:{runButtonV2:{[u]:"data-testid RefreshPicker run button"},intervalButtonV2:{[u]:"data-testid RefreshPicker interval button"}},QueryTab:{content:{[u]:"Query editor tab content"},queryInspectorButton:{[u]:"Query inspector button"},queryHistoryButton:{"10.2.0":"data-testid query-history-button",[u]:"query-history-button"},addQuery:{"10.2.0":"data-testid query-tab-add-query",[u]:"Query editor add query button"},addQueryFromLibrary:{"11.5.0":"data-testid query-tab-add-query-from-library"},queryGroupTopSection:{"11.2.0":"data-testid query group top section"},addExpression:{"11.2.0":"data-testid query-tab-add-expression"}},QueryHistory:{queryText:{"9.0.0":"Query text"}},QueryEditorRows:{rows:{[u]:"Query editor row"}},QueryEditorRow:{actionButton:{"10.4.0":e=>`data-testid ${e}`},title:{[u]:e=>`Query editor row title ${e}`},container:{[u]:e=>`Query editor row ${e}`}},AlertTab:{content:{"10.2.3":"data-testid Alert editor tab content",[u]:"Alert editor tab content"}},AlertRules:{groupToggle:{"11.0.0":"data-testid group-collapse-toggle"},toggle:{"11.0.0":"data-testid collapse-toggle"},expandedContent:{"11.0.0":"data-testid expanded-content"},previewButton:{"11.1.0":"data-testid alert-rule preview-button"},ruleNameField:{"11.1.0":"data-testid alert-rule name-field"},newFolderButton:{"11.1.0":"data-testid alert-rule new-folder-button"},newFolderNameField:{"11.1.0":"data-testid alert-rule name-folder-name-field"},newFolderNameCreateButton:{"11.1.0":"data-testid alert-rule name-folder-name-create-button"},newEvaluationGroupButton:{"11.1.0":"data-testid alert-rule new-evaluation-group-button"},newEvaluationGroupName:{"11.1.0":"data-testid alert-rule new-evaluation-group-name"},newEvaluationGroupInterval:{"11.1.0":"data-testid alert-rule new-evaluation-group-interval"},newEvaluationGroupCreate:{"11.1.0":"data-testid alert-rule new-evaluation-group-create-button"},step:{"11.5.0":e=>`data-testid alert-rule step-${e}`},stepAdvancedModeSwitch:{"11.5.0":e=>`data-testid advanced-mode-switch step-${e}`}},Alert:{alertV2:{[u]:e=>`data-testid Alert ${e}`}},TransformTab:{content:{"10.1.0":"data-testid Transform editor tab content",[u]:"Transform editor tab content"},newTransform:{"10.1.0":e=>`data-testid New transform ${e}`},transformationEditor:{"10.1.0":e=>`data-testid Transformation editor ${e}`},transformationEditorDebugger:{"10.1.0":e=>`data-testid Transformation editor debugger ${e}`}},Transforms:{card:{"10.1.0":e=>`data-testid New transform ${e}`},disableTransformationButton:{"10.4.0":"data-testid Disable transformation button"},Reduce:{modeLabel:{"10.2.3":"data-testid Transform mode label",[u]:"Transform mode label"},calculationsLabel:{"10.2.3":"data-testid Transform calculations label",[u]:"Transform calculations label"}},SpatialOperations:{actionLabel:{"9.1.2":"root Action field property editor"},locationLabel:{"10.2.0":"root Location Mode field property editor"},location:{autoOption:{"9.1.2":"Auto location option"},coords:{option:{"9.1.2":"Coords location option"},latitudeFieldLabel:{"9.1.2":"root Latitude field field property editor"},longitudeFieldLabel:{"9.1.2":"root Longitude field field property editor"}},geohash:{option:{"9.1.2":"Geohash location option"},geohashFieldLabel:{"9.1.2":"root Geohash field field property editor"}},lookup:{option:{"9.1.2":"Lookup location option"},lookupFieldLabel:{"9.1.2":"root Lookup field field property editor"},gazetteerFieldLabel:{"9.1.2":"root Gazetteer field property editor"}}}},searchInput:{"10.2.3":"data-testid search transformations",[u]:"search transformations"},noTransformationsMessage:{"10.2.3":"data-testid no transformations message"},addTransformationButton:{"10.1.0":"data-testid add transformation button",[u]:"add transformation button"},removeAllTransformationsButton:{"10.4.0":"data-testid remove all transformations button"}},NavBar:{Configuration:{button:{"9.5.0":"Configuration"}},Toggle:{button:{"10.2.3":"data-testid Toggle menu",[u]:"Toggle menu"}},Reporting:{button:{"9.5.0":"Reporting"}}},NavMenu:{Menu:{"10.2.3":"data-testid navigation mega-menu"},item:{"9.5.0":"data-testid Nav menu item"}},NavToolbar:{container:{"9.4.0":"data-testid Nav toolbar"},commandPaletteTrigger:{"11.5.0":"data-testid Command palette trigger"},shareDashboard:{"11.1.0":"data-testid Share dashboard"},markAsFavorite:{"11.1.0":"data-testid Mark as favorite"},editDashboard:{editButton:{"11.1.0":"data-testid Edit dashboard button"},saveButton:{"11.1.0":"data-testid Save dashboard button"},exitButton:{"11.1.0":"data-testid Exit edit mode button"},settingsButton:{"11.1.0":"data-testid Dashboard settings"},addRowButton:{"11.1.0":"data-testid Add row button"},addLibraryPanelButton:{"11.1.0":"data-testid Add a panel from the panel library button"},addVisualizationButton:{"11.1.0":"data-testid Add new visualization menu item"},pastePanelButton:{"11.1.0":"data-testid Paste panel button"},discardChangesButton:{"11.1.0":"data-testid Discard changes button"},discardLibraryPanelButton:{"11.1.0":"data-testid Discard library panel button"},unlinkLibraryPanelButton:{"11.1.0":"data-testid Unlink library panel button"},saveLibraryPanelButton:{"11.1.0":"data-testid Save library panel button"},backToDashboardButton:{"11.1.0":"data-testid Back to dashboard button"}}},PageToolbar:{container:{[u]:()=>".page-toolbar"},item:{[u]:e=>`${e}`},itemButton:{"9.5.0":e=>`data-testid ${e}`}},QueryEditorToolbarItem:{button:{[u]:e=>`QueryEditor toolbar item button ${e}`}},BackButton:{backArrow:{"10.3.0":"data-testid Go Back",[u]:"Go Back"}},OptionsGroup:{group:{"11.1.0":e=>e?`data-testid Options group ${e}`:"data-testid Options group",[u]:e=>e?`Options group ${e}`:"Options group"},toggle:{"11.1.0":e=>e?`data-testid Options group ${e} toggle`:"data-testid Options group toggle",[u]:e=>e?`Options group ${e} toggle`:"Options group toggle"}},PluginVisualization:{item:{[u]:e=>`Plugin visualization item ${e}`},current:{[u]:()=>'[class*="-currentVisualizationItem"]'}},Select:{menu:{"11.5.0":"data-testid Select menu",[u]:"Select options menu"},option:{"11.1.0":"data-testid Select option",[u]:"Select option"},toggleAllOptions:{"11.3.0":"data-testid toggle all options"},input:{[u]:()=>'input[id*="time-options-input"]'},singleValue:{[u]:()=>'div[class*="-singleValue"]'}},FieldConfigEditor:{content:{[u]:"Field config editor content"}},OverridesConfigEditor:{content:{[u]:"Field overrides editor content"}},FolderPicker:{containerV2:{[u]:"data-testid Folder picker select container"},input:{"10.4.0":"data-testid folder-picker-input"}},ReadonlyFolderPicker:{container:{[u]:"data-testid Readonly folder picker select container"}},DataSourcePicker:{container:{"10.0.0":"data-testid Data source picker select container","8.0.0":"Data source picker select container"},inputV2:{"10.1.0":"data-testid Select a data source",[u]:"Select a data source"},dataSourceList:{"10.4.0":"data-testid Data source list dropdown"},advancedModal:{dataSourceList:{"10.4.0":"data-testid Data source list"},builtInDataSourceList:{"10.4.0":"data-testid Built in data source list"}}},TimeZonePicker:{containerV2:{[u]:"data-testid Time zone picker select container"},changeTimeSettingsButton:{"11.0.0":"data-testid Time zone picker Change time settings button"}},WeekStartPicker:{containerV2:{[u]:"data-testid Choose starting day of the week"},placeholder:{[u]:"Choose starting day of the week"}},TraceViewer:{spanBar:{"9.0.0":"data-testid SpanBar--wrapper"}},QueryField:{container:{"10.3.0":"data-testid Query field",[u]:"Query field"}},QueryBuilder:{queryPatterns:{"10.3.0":"data-testid Query patterns",[u]:"Query patterns"},labelSelect:{"10.3.0":"data-testid Select label",[u]:"Select label"},inputSelect:{"11.1.0":"data-testid Select label-input"},valueSelect:{"10.3.0":"data-testid Select value",[u]:"Select value"},matchOperatorSelect:{"10.3.0":"data-testid Select match operator",[u]:"Select match operator"}},ValuePicker:{button:{"10.3.0":e=>`data-testid Value picker button ${e}`},select:{"10.3.0":e=>`data-testid Value picker select ${e}`}},Search:{sectionV2:{[u]:"data-testid Search section"},itemsV2:{[u]:"data-testid Search items"},cards:{[u]:"data-testid Search cards"},collapseFolder:{[u]:e=>`data-testid Collapse folder ${e}`},expandFolder:{[u]:e=>`data-testid Expand folder ${e}`},dashboardItem:{[u]:e=>`data-testid Dashboard search item ${e}`},dashboardCard:{[u]:e=>`data-testid Search card ${e}`},folderHeader:{"9.3.0":e=>`data-testid Folder header ${e}`},folderContent:{"9.3.0":e=>`data-testid Folder content ${e}`},dashboardItems:{[u]:"data-testid Dashboard search item"}},DashboardLinks:{container:{[u]:"data-testid Dashboard link container"},dropDown:{[u]:"data-testid Dashboard link dropdown"},link:{[u]:"data-testid Dashboard link"}},LoadingIndicator:{icon:{"10.4.0":"data-testid Loading indicator",[u]:"Loading indicator"}},CallToActionCard:{buttonV2:{[u]:e=>`data-testid Call to action button ${e}`}},DataLinksContextMenu:{singleLink:{"10.3.0":"data-testid Data link",[u]:"Data link"}},DataLinksActionsTooltip:{tooltipWrapper:{"12.1.0":"data-testid Data links actions tooltip wrapper"}},CodeEditor:{container:{"10.2.3":"data-testid Code editor container",[u]:"Code editor container"}},ReactMonacoEditor:{editorLazy:{"11.1.0":"data-testid ReactMonacoEditor editorLazy"}},DashboardImportPage:{textarea:{[u]:"data-testid-import-dashboard-textarea"},submit:{[u]:"data-testid-load-dashboard"}},ImportDashboardForm:{name:{[u]:"data-testid-import-dashboard-title"},submit:{[u]:"data-testid-import-dashboard-submit"}},PanelAlertTabContent:{content:{"10.2.3":"data-testid Unified alert editor tab content",[u]:"Unified alert editor tab content"}},VisualizationPreview:{card:{[u]:e=>`data-testid suggestion-${e}`}},ColorSwatch:{name:{[u]:"data-testid-colorswatch"}},DashboardRow:{title:{[u]:e=>`data-testid dashboard-row-title-${e}`}},UserProfile:{profileSaveButton:{[u]:"data-testid-user-profile-save"},preferencesSaveButton:{[u]:"data-testid-shared-prefs-save"},orgsTable:{[u]:"data-testid-user-orgs-table"},sessionsTable:{[u]:"data-testid-user-sessions-table"},extensionPointTabs:{"10.2.3":"data-testid-extension-point-tabs"},extensionPointTab:{"10.2.3":e=>`data-testid-extension-point-tab-${e}`}},FileUpload:{inputField:{"9.0.0":"data-testid-file-upload-input-field"},fileNameSpan:{"9.0.0":"data-testid-file-upload-file-name"}},DebugOverlay:{wrapper:{"9.2.0":"debug-overlay"}},OrgRolePicker:{input:{"9.5.0":"Role"}},AnalyticsToolbarButton:{button:{"9.5.0":"Dashboard insights"}},Variables:{variableOption:{"9.5.0":"data-testid variable-option"},variableLinkWrapper:{"11.1.1":"data-testid variable-link-wrapper"}},Annotations:{annotationsTypeInput:{"11.1.0":"data-testid annotations-type-input",[u]:"annotations-type-input"},annotationsChoosePanelInput:{"11.1.0":"data-testid choose-panels-input",[u]:"choose-panels-input"},editor:{testButton:{"11.0.0":"data-testid annotations-test-button"},resultContainer:{"11.0.0":"data-testid annotations-query-result-container"}}},Tooltip:{container:{"10.2.0":"data-testid tooltip"}},ReturnToPrevious:{buttonGroup:{"11.0.0":"data-testid dismissable button group"},backButton:{"11.0.0":"data-testid back"},dismissButton:{"11.0.0":"data-testid dismiss"}},SQLQueryEditor:{selectColumn:{"11.0.0":"data-testid select-column"},selectColumnInput:{"11.0.0":"data-testid select-column-input"},selectFunctionParameter:{"11.0.0":e=>`data-testid select-function-parameter-${e}`},selectAggregation:{"11.0.0":"data-testid select-aggregation"},selectAggregationInput:{"11.0.0":"data-testid select-aggregation-input"},selectAlias:{"11.0.0":"data-testid select-alias"},selectAliasInput:{"11.0.0":"data-testid select-alias-input"},selectInputParameter:{"11.0.0":"data-testid select-input-parameter"},filterConjunction:{"11.0.0":"data-testid filter-conjunction"},filterField:{"11.0.0":"data-testid filter-field"},filterOperator:{"11.0.0":"data-testid filter-operator"},headerTableSelector:{"11.0.0":"data-testid header-table-selector"},headerFilterSwitch:{"11.0.0":"data-testid header-filter-switch"},headerGroupSwitch:{"11.0.0":"data-testid header-group-switch"},headerOrderSwitch:{"11.0.0":"data-testid header-order-switch"},headerPreviewSwitch:{"11.0.0":"data-testid header-preview-switch"}},EntityNotFound:{container:{"11.2.0":"data-testid entity-not-found"}},Portal:{container:{"11.5.0":"data-testid portal-container"}}},d={Alerting:{AddAlertRule:{url:{"10.1.0":"/alerting/new/alerting",[u]:"/alerting/new"}},EditAlertRule:{url:{[u]:e=>`alerting/${e}/edit`}}},Login:{url:{[u]:"/login"},username:{"10.2.3":"data-testid Username input field",[u]:"Username input field"},password:{"10.2.3":"data-testid Password input field",[u]:"Password input field"},submit:{"10.2.3":"data-testid Login button",[u]:"Login button"},skip:{"10.2.3":"data-testid Skip change password button"}},PasswordlessLogin:{url:{[u]:"/login/passwordless/authenticate"},email:{"10.2.3":"data-testid Email input field",[u]:"Email input field"},submit:{"10.2.3":"data-testid PasswordlessLogin button",[u]:"PasswordlessLogin button"}},Home:{url:{[u]:"/"}},DataSource:{name:{"10.3.0":"data-testid Data source settings page name input field",[u]:"Data source settings page name input field"},delete:{[u]:"Data source settings page Delete button"},readOnly:{"10.3.0":"data-testid Data source settings page read only message",[u]:"Data source settings page read only message"},saveAndTest:{"10.0.0":"data-testid Data source settings page Save and Test button",[u]:"Data source settings page Save and Test button"},alert:{"10.3.0":"data-testid Data source settings page Alert",[u]:"Data source settings page Alert"}},DataSources:{url:{[u]:"/datasources"},dataSources:{[u]:e=>`Data source list item ${e}`}},EditDataSource:{url:{"9.5.0":e=>`/datasources/edit/${e}`},settings:{"9.5.0":"Datasource settings page basic settings"}},AddDataSource:{url:{[u]:"/datasources/new"},dataSourcePluginsV2:{"9.3.1":e=>`Add new data source ${e}`,[u]:e=>`Data source plugin item ${e}`}},ConfirmModal:{delete:{"10.0.0":"data-testid Confirm Modal Danger Button",[u]:"Confirm Modal Danger Button"}},AddDashboard:{url:{[u]:"/dashboard/new"},itemButton:{"9.5.0":e=>`data-testid ${e}`},addNewPanel:{"11.1.0":"data-testid Add new panel","8.0.0":"Add new panel",[u]:"Add new panel"},itemButtonAddViz:{[u]:"Add new visualization menu item"},addNewRow:{"11.1.0":"data-testid Add new row",[u]:"Add new row"},addNewPanelLibrary:{"11.1.0":"data-testid Add new panel from panel library",[u]:"Add new panel from panel library"},Settings:{Annotations:{List:{url:{[u]:"/dashboard/new?orgId=1&editview=annotations"}},Edit:{url:{[u]:e=>`/dashboard/new?editview=annotations&editIndex=${e}`}}},Variables:{List:{url:{"11.3.0":"/dashboard/new?orgId=1&editview=variables",[u]:"/dashboard/new?orgId=1&editview=templating"}},Edit:{url:{"11.3.0":e=>`/dashboard/new?orgId=1&editview=variables&editIndex=${e}`,[u]:e=>`/dashboard/new?orgId=1&editview=templating&editIndex=${e}`}}}}},ImportDashboard:{url:{[u]:"/dashboard/import"}},Dashboard:{url:{[u]:e=>`/d/${e}`},DashNav:{nav:{[u]:"Dashboard navigation"},navV2:{[u]:"data-testid Dashboard navigation"},publicDashboardTag:{"9.1.0":"data-testid public dashboard tag"},shareButton:{"10.4.0":"data-testid share-button"},scrollContainer:{"11.1.0":"data-testid Dashboard canvas scroll container"},newShareButton:{container:{"11.1.0":"data-testid new share button"},shareLink:{"11.1.0":"data-testid new share link-button"},arrowMenu:{"11.1.0":"data-testid new share button arrow menu"},menu:{container:{"11.1.0":"data-testid new share button menu"},shareInternally:{"11.1.0":"data-testid new share button share internally"},shareExternally:{"11.1.1":"data-testid new share button share externally"},shareSnapshot:{"11.2.0":"data-testid new share button share snapshot"}}},NewExportButton:{container:{"11.2.0":"data-testid new export button"},arrowMenu:{"11.2.0":"data-testid new export button arrow menu"},Menu:{container:{"11.2.0":"data-testid new export button menu"},exportAsJson:{"11.2.0":"data-testid new export button export as json"}}},playlistControls:{prev:{"11.0.0":"data-testid playlist previous dashboard button"},stop:{"11.0.0":"data-testid playlist stop dashboard button"},next:{"11.0.0":"data-testid playlist next dashboard button"}}},Controls:{"11.1.0":"data-testid dashboard controls"},SubMenu:{submenu:{[u]:"Dashboard submenu"},submenuItem:{[u]:"data-testid template variable"},submenuItemLabels:{[u]:e=>`data-testid Dashboard template variables submenu Label ${e}`},submenuItemValueDropDownValueLinkTexts:{[u]:e=>`data-testid Dashboard template variables Variable Value DropDown value link text ${e}`},submenuItemValueDropDownDropDown:{[u]:"Variable options"},submenuItemValueDropDownOptionTexts:{[u]:e=>`data-testid Dashboard template variables Variable Value DropDown option text ${e}`},Annotations:{annotationsWrapper:{"10.0.0":"data-testid annotation-wrapper"},annotationLabel:{"10.0.0":e=>`data-testid Dashboard annotations submenu Label ${e}`},annotationToggle:{"10.0.0":e=>`data-testid Dashboard annotations submenu Toggle ${e}`}}},Settings:{Actions:{close:{"9.5.0":"data-testid dashboard-settings-close"}},General:{deleteDashBoard:{"11.1.0":"data-testid Dashboard settings page delete dashboard button"},sectionItems:{[u]:e=>`Dashboard settings section item ${e}`},saveDashBoard:{[u]:"Dashboard settings aside actions Save button"},saveAsDashBoard:{[u]:"Dashboard settings aside actions Save As button"},title:{"11.2.0":"General"}},Annotations:{Edit:{urlParams:{[u]:e=>`editview=annotations&editIndex=${e}`}},List:{url:{[u]:e=>`/d/${e}?editview=annotations`},addAnnotationCTAV2:{[u]:"data-testid Call to action button Add annotation query"},annotations:{"10.4.0":"data-testid list-annotations"}},Settings:{name:{"11.1.0":"data-testid Annotations settings name input",[u]:"Annotations settings name input"}},NewAnnotation:{panelFilterSelect:{"10.0.0":"data-testid annotations-panel-filter"},showInLabel:{"11.1.0":"data-testid show-in-label"},previewInDashboard:{"10.0.0":"data-testid annotations-preview"},delete:{"10.4.0":"data-testid annotations-delete"},apply:{"10.4.0":"data-testid annotations-apply"},enable:{"10.4.0":"data-testid annotation-enable"},hide:{"10.4.0":"data-testid annotation-hide"}}},Variables:{List:{url:{"11.3.0":e=>`/d/${e}?editview=variables`,[u]:e=>`/d/${e}?editview=templating`},addVariableCTAV2:{[u]:"data-testid Call to action button Add variable"},newButton:{[u]:"Variable editor New variable button"},table:{[u]:"Variable editor Table"},tableRowNameFields:{[u]:e=>`Variable editor Table Name field ${e}`},tableRowDefinitionFields:{"10.1.0":e=>`Variable editor Table Definition field ${e}`},tableRowArrowUpButtons:{[u]:e=>`Variable editor Table ArrowUp button ${e}`},tableRowArrowDownButtons:{[u]:e=>`Variable editor Table ArrowDown button ${e}`},tableRowDuplicateButtons:{[u]:e=>`Variable editor Table Duplicate button ${e}`},tableRowRemoveButtons:{[u]:e=>`Variable editor Table Remove button ${e}`}},Edit:{urlParams:{"11.3.0":e=>`editview=variables&editIndex=${e}`,[u]:e=>`editview=templating&editIndex=${e}`},General:{headerLink:{[u]:"Variable editor Header link"},modeLabelNew:{[u]:"Variable editor Header mode New"},modeLabelEdit:{[u]:"Variable editor Header mode Edit"},generalNameInput:{[u]:"Variable editor Form Name field"},generalNameInputV2:{[u]:"data-testid Variable editor Form Name field"},generalTypeSelect:{[u]:"Variable editor Form Type select"},generalTypeSelectV2:{[u]:"data-testid Variable editor Form Type select"},generalLabelInput:{[u]:"Variable editor Form Label field"},generalLabelInputV2:{[u]:"data-testid Variable editor Form Label field"},generalHideSelect:{[u]:"Variable editor Form Hide select"},generalHideSelectV2:{[u]:"data-testid Variable editor Form Hide select"},selectionOptionsAllowCustomValueSwitch:{[u]:"data-testid Variable editor Form Allow Custom Value switch"},selectionOptionsMultiSwitch:{"10.4.0":"data-testid Variable editor Form Multi switch",[u]:"Variable editor Form Multi switch"},selectionOptionsIncludeAllSwitch:{"10.4.0":"data-testid Variable editor Form IncludeAll switch",[u]:"Variable editor Form IncludeAll switch"},selectionOptionsCustomAllInput:{"10.4.0":"data-testid Variable editor Form IncludeAll field",[u]:"Variable editor Form IncludeAll field"},previewOfValuesOption:{"10.4.0":"data-testid Variable editor Preview of Values option",[u]:"Variable editor Preview of Values option"},submitButton:{"10.4.0":"data-testid Variable editor Run Query button",[u]:"Variable editor Submit button"},applyButton:{"9.3.0":"data-testid Variable editor Apply button"}},QueryVariable:{closeButton:{[u]:"data-testid Query Variable editor close button"},editor:{[u]:"data-testid Query Variable editor"},previewButton:{[u]:"data-testid Query Variable editor preview button"},queryOptionsDataSourceSelect:{"10.4.0":"data-testid Select a data source","10.0.0":"data-testid Data source picker select container",[u]:"Data source picker select container"},queryOptionsOpenButton:{[u]:"data-testid Query Variable editor open button"},queryOptionsRefreshSelect:{[u]:"Variable editor Form Query Refresh select"},queryOptionsRefreshSelectV2:{[u]:"data-testid Variable editor Form Query Refresh select"},queryOptionsRegExInput:{[u]:"Variable editor Form Query RegEx field"},queryOptionsRegExInputV2:{[u]:"data-testid Variable editor Form Query RegEx field"},queryOptionsSortSelect:{[u]:"Variable editor Form Query Sort select"},queryOptionsSortSelectV2:{[u]:"data-testid Variable editor Form Query Sort select"},queryOptionsQueryInput:{"10.4.0":"data-testid Variable editor Form Default Variable Query Editor textarea"},valueGroupsTagsEnabledSwitch:{[u]:"Variable editor Form Query UseTags switch"},valueGroupsTagsTagsQueryInput:{[u]:"Variable editor Form Query TagsQuery field"},valueGroupsTagsTagsValuesQueryInput:{[u]:"Variable editor Form Query TagsValuesQuery field"}},ConstantVariable:{constantOptionsQueryInput:{[u]:"Variable editor Form Constant Query field"},constantOptionsQueryInputV2:{[u]:"data-testid Variable editor Form Constant Query field"}},DatasourceVariable:{datasourceSelect:{[u]:"data-testid datasource variable datasource type"},nameFilter:{[u]:"data-testid datasource variable datasource name filter"}},TextBoxVariable:{textBoxOptionsQueryInput:{[u]:"Variable editor Form TextBox Query field"},textBoxOptionsQueryInputV2:{[u]:"data-testid Variable editor Form TextBox Query field"}},CustomVariable:{customValueInput:{[u]:"data-testid custom-variable-input"}},IntervalVariable:{intervalsValueInput:{[u]:"data-testid interval variable intervals input"},autoEnabledCheckbox:{"10.4.0":"data-testid interval variable auto value checkbox"},stepCountIntervalSelect:{"10.4.0":"data-testid interval variable step count input"},minIntervalInput:{"10.4.0":"data-testid interval variable mininum interval input"}},GroupByVariable:{dataSourceSelect:{"10.4.0":"data-testid Select a data source"},infoText:{"10.4.0":"data-testid group by variable info text"},modeToggle:{"10.4.0":"data-testid group by variable mode toggle"}},AdHocFiltersVariable:{datasourceSelect:{"10.4.0":"data-testid Select a data source"},infoText:{"10.4.0":"data-testid ad-hoc filters variable info text"},modeToggle:{"11.0.0":"data-testid ad-hoc filters variable mode toggle"}}}}},Annotations:{marker:{"10.0.0":"data-testid annotation-marker"}},Rows:{Repeated:{ConfigSection:{warningMessage:{"10.2.0":"data-testid Repeated rows warning message"}}}}},Dashboards:{url:{[u]:"/dashboards"},dashboards:{"10.2.0":e=>`Dashboard search item ${e}`},toggleView:{[u]:"data-testid radio-button"}},SaveDashboardAsModal:{newName:{"10.2.0":"Save dashboard title field"},save:{"10.2.0":"Save dashboard button"}},SaveDashboardModal:{save:{"10.2.0":"Dashboard settings Save Dashboard Modal Save button"},saveVariables:{"10.2.0":"Dashboard settings Save Dashboard Modal Save variables checkbox"},saveTimerange:{"10.2.0":"Dashboard settings Save Dashboard Modal Save timerange checkbox"},saveRefresh:{"11.1.0":"Dashboard settings Save Dashboard Modal Save refresh checkbox"}},SharePanelModal:{linkToRenderedImage:{[u]:"Link to rendered image"}},ShareDashboardModal:{PublicDashboard:{WillBePublicCheckbox:{"9.1.0":"data-testid public dashboard will be public checkbox"},LimitedDSCheckbox:{"9.1.0":"data-testid public dashboard limited datasources checkbox"},CostIncreaseCheckbox:{"9.1.0":"data-testid public dashboard cost may increase checkbox"},PauseSwitch:{"9.5.0":"data-testid public dashboard pause switch"},EnableAnnotationsSwitch:{"9.3.0":"data-testid public dashboard on off switch for annotations"},CreateButton:{"9.5.0":"data-testid public dashboard create button"},DeleteButton:{"9.3.0":"data-testid public dashboard delete button"},CopyUrlInput:{"9.1.0":"data-testid public dashboard copy url input"},CopyUrlButton:{"9.1.0":"data-testid public dashboard copy url button"},SettingsDropdown:{"10.1.0":"data-testid public dashboard settings dropdown"},TemplateVariablesWarningAlert:{"9.1.0":"data-testid public dashboard disabled template variables alert"},UnsupportedDataSourcesWarningAlert:{"9.5.0":"data-testid public dashboard unsupported data sources alert"},NoUpsertPermissionsWarningAlert:{"9.5.0":"data-testid public dashboard no upsert permissions alert"},EnableTimeRangeSwitch:{"9.4.0":"data-testid public dashboard on off switch for time range"},EmailSharingConfiguration:{Container:{"9.5.0":"data-testid email sharing config container"},ShareType:{"9.5.0":"data-testid public dashboard share type"},EmailSharingInput:{"9.5.0":"data-testid public dashboard email sharing input"},EmailSharingInviteButton:{"9.5.0":"data-testid public dashboard email sharing invite button"},EmailSharingList:{"9.5.0":"data-testid public dashboard email sharing list"},DeleteEmail:{"9.5.0":"data-testid public dashboard delete email button"},ReshareLink:{"9.5.0":"data-testid public dashboard reshare link button"}}},SnapshotScene:{url:{"11.1.0":e=>`/dashboard/snapshot/${e}`},PublishSnapshot:{"11.1.0":"data-testid publish snapshot button"},CopyUrlButton:{"11.1.0":"data-testid snapshot copy url button"},CopyUrlInput:{"11.1.0":"data-testid snapshot copy url input"}}},ShareDashboardDrawer:{ShareInternally:{container:{"11.3.0":"data-testid share internally drawer container"},lockTimeRangeSwitch:{"11.3.0":"data-testid share internally lock time range switch"},shortenUrlSwitch:{"11.3.0":"data-testid share internally shorten url switch"},copyUrlButton:{"11.3.0":"data-testid share internally copy url button"},SharePanel:{preview:{"11.5.0":"data-testid share panel internally image generation preview"},widthInput:{"11.5.0":"data-testid share panel internally width input"},heightInput:{"11.5.0":"data-testid share panel internally height input"},scaleFactorInput:{"11.5.0":"data-testid share panel internally scale factor input"},generateImageButton:{"11.5.0":"data-testid share panel internally generate image button"},downloadImageButton:{"11.5.0":"data-testid share panel internally download image button"}}},ShareExternally:{container:{"11.3.0":"data-testid share externally drawer container"},publicAlert:{"11.3.0":"data-testid public share alert"},emailSharingAlert:{"11.3.0":"data-testid email share alert"},shareTypeSelect:{"11.3.0":"data-testid share externally share type select"},Creation:{PublicShare:{createButton:{"11.3.0":"data-testid public share dashboard create button"},cancelButton:{"11.3.0":"data-testid public share dashboard cancel button"}},EmailShare:{createButton:{"11.3.0":"data-testid email share dashboard create button"},cancelButton:{"11.3.0":"data-testid email share dashboard cancel button"}},willBePublicCheckbox:{"11.3.0":"data-testid share dashboard will be public checkbox"}},Configuration:{enableTimeRangeSwitch:{"11.3.0":"data-testid share externally enable time range switch"},enableAnnotationsSwitch:{"11.3.0":"data-testid share externally enable annotations switch"},copyUrlButton:{"11.3.0":"data-testid share externally copy url button"},revokeAccessButton:{"11.3.0":"data-testid share externally revoke access button"},toggleAccessButton:{"11.3.0":"data-testid share externally pause or resume access button"}}},ShareSnapshot:{url:{"11.3.0":e=>`/dashboard/snapshot/${e}`},container:{"11.3.0":"data-testid share snapshot drawer container"},publishSnapshot:{"11.3.0":"data-testid share snapshot publish button"},copyUrlButton:{"11.3.0":"data-testid share snapshot copy url button"}}},ExportDashboardDrawer:{ExportAsJson:{container:{"11.3.0":"data-testid export as json drawer container"},codeEditor:{"11.3.0":"data-testid export as json code editor"},exportExternallyToggle:{"11.3.0":"data-testid export as json externally switch"},saveToFileButton:{"11.3.0":"data-testid export as json save to file button"},copyToClipboardButton:{"11.3.0":"data-testid export as json copy to clipboard button"},cancelButton:{"11.3.0":"data-testid export as json cancel button"}}},PublicDashboard:{page:{"9.5.0":"public-dashboard-page"},NotAvailable:{container:{"9.5.0":"public-dashboard-not-available"},title:{"9.5.0":"public-dashboard-title"},pausedDescription:{"9.5.0":"public-dashboard-paused-description"}},footer:{"11.0.0":"public-dashboard-footer"}},PublicDashboardScene:{loadingPage:{"11.0.0":"public-dashboard-scene-loading-page"},page:{"11.0.0":"public-dashboard-scene-page"},controls:{"11.0.0":"public-dashboard-controls"}},RequestViewAccess:{form:{"9.5.0":"request-view-access-form"},recipientInput:{"9.5.0":"request-view-access-recipient-input"},submitButton:{"9.5.0":"request-view-access-submit-button"}},PublicDashboardConfirmAccess:{submitButton:{"10.2.0":"data-testid confirm-access-submit-button"}},Explore:{url:{[u]:"/explore"},General:{container:{[u]:"data-testid Explore"},graph:{[u]:"Explore Graph"},table:{[u]:"Explore Table"},scrollView:{"9.0.0":"data-testid explorer scroll view"},addFromQueryLibrary:{"11.5.0":"data-testid explore add from query library button"}},QueryHistory:{container:{"11.1.0":"data-testid QueryHistory"}}},SoloPanel:{url:{[u]:e=>`/d-solo/${e}`}},PluginsList:{page:{[u]:"Plugins list page"},list:{[u]:"Plugins list"},listItem:{[u]:"Plugins list item"},signatureErrorNotice:{"10.3.0":"data-testid Unsigned plugins notice",[u]:"Unsigned plugins notice"}},PluginPage:{page:{[u]:"Plugin page"},signatureInfo:{"10.3.0":"data-testid Plugin signature info",[u]:"Plugin signature info"},disabledInfo:{"10.3.0":"data-testid Plugin disabled info",[u]:"Plugin disabled info"}},PlaylistForm:{name:{[u]:"Playlist name"},interval:{[u]:"Playlist interval"},itemDelete:{"10.2.0":"data-testid playlist-form-delete-item"}},BrowseDashboards:{table:{body:{"10.2.0":"data-testid browse-dashboards-table"},row:{"10.2.0":e=>`data-testid browse dashboards row ${e}`},checkbox:{"10.0.0":e=>`data-testid ${e} checkbox`}},NewFolderForm:{form:{"10.2.0":"data-testid new folder form"},nameInput:{"10.2.0":"data-testid new-folder-name-input"},createButton:{"10.2.0":"data-testid new-folder-create-button"}}},SearchDashboards:{table:{"10.2.0":"Search results table"}},Search:{url:{"9.3.0":"/?search=openn"},FolderView:{url:{"9.3.0":"/?search=open&layout=folders"}}},PublicDashboards:{ListItem:{linkButton:{"9.3.0":"public-dashboard-link-button"},configButton:{"9.3.0":"public-dashboard-configuration-button"},trashcanButton:{"9.3.0":"public-dashboard-remove-button"},pauseSwitch:{"10.1.0":"data-testid public dashboard pause switch"}}},UserListPage:{tabs:{allUsers:{"10.0.0":"data-testid all-users-tab"},orgUsers:{"10.0.0":"data-testid org-users-tab"},anonUserDevices:{"10.2.3":"data-testid anon-user-devices-tab"},publicDashboardsUsers:{"10.0.0":"data-testid public-dashboards-users-tab"},users:{"10.0.0":"data-testid users-tab"}},org:{url:{"10.2.0":"/admin/users","9.5.0":"/org/users"}},admin:{url:{"9.5.0":"/admin/users"}},publicDashboards:{container:{"11.1.0":"data-testid public-dashboards-users-list"}},UserListAdminPage:{container:{"10.0.0":"data-testid user-list-admin-page"}},UsersListPage:{container:{"10.0.0":"data-testid users-list-page"}},UserAnonListPage:{container:{"10.4.0":"data-testid user-anon-list-page"}},UsersListPublicDashboardsPage:{container:{"10.0.0":"data-testid users-list-public-dashboards-page"},DashboardsListModal:{listItem:{"10.0.0":e=>`data-testid dashboards-list-item-${e}`}}}},ProfilePage:{url:{"10.2.0":"/profile"}},Plugin:{url:{[u]:e=>`/plugins/${e}`}},MigrateToCloud:{url:{"11.2.0":"/admin/migrate-to-cloud"}}},p=a(d),f=a(c),h={pages:p,components:f};t.Components=f,t.Pages=p,t.resolveSelectors=a,t.selectors=h,t.versionedComponents=c,t.versionedPages=d},45463(e,t,n){"use strict";const r=n(37944),a=n(79524),{ANY:i}=a,o=n(68395),s=n(81722),l=n(60144),u=n(30599),c=n(17092),d=n(82077);e.exports=(e,t,n,p)=>{let f,h,m,g,v;switch(e=new r(e,p),t=new o(t,p),n){case">":f=l,h=c,m=u,g=">",v=">=";break;case"<":f=u,h=d,m=l,g="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,p))return!1;for(let n=0;n{e.semver===i&&(e=new a(">=0.0.0")),o=o||e,s=s||e,f(e.semver,o.semver,p)?o=e:m(e.semver,s.semver,p)&&(s=e)}),o.operator===g||o.operator===v)return!1;if((!s.operator||s.operator===g)&&h(e,s.semver))return!1;if(s.operator===v&&m(e,s.semver))return!1}return!0}},45565(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(42689))},45865(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10,r=e%100-n,a=e>=100?100:null;return e+(t[n]||t[r]||t[a])},week:{dow:1,doy:7}})}(n(42689))},45925(e,t){"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"使用鍵 {{keyLabel}} 編輯篩選條件","managed-filter":"{{origin}} 受管理的篩選條件","non-applicable":"","remove-filter-with-key":"使用鍵 {{keyLabel}} 移除篩選條件"},"adhoc-filters-combobox":{"remove-filter-value":"移除篩選條件值 - {{itemLabel}}","use-custom-value":"使用自訂值:{{itemLabel}}"},"fallback-page":{content:"如果您使用連結找到此處,則此應用程式中可能存在錯誤。",subTitle:"URL 與任何頁面都不相符",title:"無結果"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"收闔場景","expand-button-label":"展開場景","remove-button-label":"移除場景"},"scene-debugger":{"object-details":"物件詳情","scene-graph":"場景圖表","title-scene-debugger":"場景除錯器"},"scene-grid-row":{"collapse-row":"收闔列","expand-row":"展開列"},"scene-refresh-picker":{"text-cancel":"取消","text-refresh":"更新","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"比較","button-tooltip":"啟用時間範圍比較"},splitter:{"aria-label-pane-resize-widget":"窗格調整大小小工具"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"標題"}},"viz-panel-explore-button":{explore:"探索"},"viz-panel-renderer":{"loading-plugin-panel":"正在載入外掛程式面板…","panel-plugin-has-no-panel-component":"面板外掛程式沒有面板元件"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"在單個面板中呈現太多序列可能會影響效能,並使資料更難讀取。","warning-message":"僅顯示 {{seriesLimit}} 個序列"}},utils:{"controls-label":{"tooltip-remove":"移除"},"loading-indicator":{"content-cancel-query":"取消查詢"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"編輯篩選條件運算子"},"ad-hoc-filter-builder":{"aria-label-add-filter":"新增篩選條件","title-add-filter":"新增篩選條件"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"移除篩選條件","key-select":{"placeholder-select-label":"選擇標籤"},"label-select-label":"選擇標籤","title-remove-filter":"移除篩選條件","value-select":{"placeholder-select-value":"選擇值"}},"data-source-variable":{label:{default:"預設值"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"清除",tooltip:"在此儀表板中預設套用。如果編輯,它會轉移到其他儀表板。","tooltip-restore-groupby-set-by-this-dashboard":"還原此儀表板設定的分組依據。"},"format-registry":{formats:{description:{"commaseparated-values":"逗點分隔的值","double-quoted-values":"帶雙引號的值","format-date-in-different-ways":"以不同方式格式化日期","format-multivalued-variables-using-syntax-example":"使用 glob 語法格式化多值變數,例如 {value1,value2}","html-escaping-of-values":"值的 HTML 轉義","join-values-with-a-comma":"","json-stringify-value":"JSON 字串化值","keep-value-as-is":"按原樣保留值","multiple-values-are-formatted-like-variablevalue":"多個值按「變數=值」的方式格式化","single-quoted-values":"帶單引號的值","useful-escaping-values-taking-syntax-characters":"對 URL 轉義值很有用,需考慮 URI 語法字元","useful-for-url-escaping-values":"對 URL 轉義值很有用","values-are-separated-by-character":"值以 | 字元分隔"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"按選取器分組","placeholder-group-by-label":"按標籤分組"},"interval-variable":{"placeholder-select-value":"選擇值"},"loading-options-placeholder":{"loading-options":"正在載入選項…"},"multi-value-apply-button":{apply:"套用"},"no-options-placeholder":{"no-options-found":"未找到選項"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"擷取標籤時發生錯誤。點選以重試"},"test-object-with-variable-dependency":{title:{hello:"您好"}},"test-variable":{text:{text:"文字"}},"variable-value-input":{"placeholder-enter-value":"輸入值"},"variable-value-select":{"placeholder-select-value":"選擇值"}}}}},45956(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfEmpty=void 0;var r=n(37676),a=n(35416),i=n(1266);function o(){return new r.EmptyError}t.throwIfEmpty=function(e){return void 0===e&&(e=o),a.operate(function(t,n){var r=!1;t.subscribe(i.createOperatorSubscriber(n,function(e){r=!0,n.next(e)},function(){return r?n.complete():n.error(e())}))})}},46022(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=t.merge=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.exhaust=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.concat=t.combineLatestWith=t.combineLatest=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=void 0,t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=t.switchMapTo=t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.refCount=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.race=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.partition=t.pairwise=t.onErrorResumeNext=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=void 0,t.zipWith=t.zipAll=t.zip=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=void 0;var r=n(66993);Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return r.audit}});var a=n(54116);Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return a.auditTime}});var i=n(47190);Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return i.buffer}});var o=n(76835);Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return o.bufferCount}});var s=n(25219);Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return s.bufferTime}});var l=n(80118);Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return l.bufferToggle}});var u=n(27514);Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return u.bufferWhen}});var c=n(58251);Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return c.catchError}});var d=n(21424);Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return d.combineAll}});var p=n(42945);Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return p.combineLatestAll}});var f=n(52e3);Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return f.combineLatest}});var h=n(93928);Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return h.combineLatestWith}});var m=n(1812);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return m.concat}});var g=n(80861);Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return g.concatAll}});var v=n(71012);Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return v.concatMap}});var y=n(61157);Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return y.concatMapTo}});var b=n(33692);Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return b.concatWith}});var _=n(32216);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return _.connect}});var w=n(18041);Object.defineProperty(t,"count",{enumerable:!0,get:function(){return w.count}});var M=n(72747);Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return M.debounce}});var S=n(33870);Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return S.debounceTime}});var k=n(87507);Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return k.defaultIfEmpty}});var L=n(62409);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return L.delay}});var x=n(85137);Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return x.delayWhen}});var D=n(84126);Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return D.dematerialize}});var T=n(15208);Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return T.distinct}});var O=n(29939);Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return O.distinctUntilChanged}});var E=n(10183);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return E.distinctUntilKeyChanged}});var P=n(61195);Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return P.elementAt}});var C=n(93723);Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return C.endWith}});var Y=n(61909);Object.defineProperty(t,"every",{enumerable:!0,get:function(){return Y.every}});var A=n(79228);Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return A.exhaust}});var R=n(79765);Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return R.exhaustAll}});var j=n(8748);Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return j.exhaustMap}});var I=n(68324);Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return I.expand}});var F=n(72914);Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return F.filter}});var H=n(89822);Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return H.finalize}});var N=n(52819);Object.defineProperty(t,"find",{enumerable:!0,get:function(){return N.find}});var z=n(3367);Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return z.findIndex}});var V=n(41432);Object.defineProperty(t,"first",{enumerable:!0,get:function(){return V.first}});var W=n(34956);Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return W.groupBy}});var $=n(52507);Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return $.ignoreElements}});var U=n(66095);Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return U.isEmpty}});var B=n(33484);Object.defineProperty(t,"last",{enumerable:!0,get:function(){return B.last}});var q=n(74828);Object.defineProperty(t,"map",{enumerable:!0,get:function(){return q.map}});var G=n(31357);Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return G.mapTo}});var K=n(37967);Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return K.materialize}});var J=n(94388);Object.defineProperty(t,"max",{enumerable:!0,get:function(){return J.max}});var Q=n(61550);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return Q.merge}});var Z=n(1867);Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return Z.mergeAll}});var X=n(26977);Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return X.flatMap}});var ee=n(11282);Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return ee.mergeMap}});var te=n(86295);Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return te.mergeMapTo}});var ne=n(9527);Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return ne.mergeScan}});var re=n(25834);Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return re.mergeWith}});var ae=n(61306);Object.defineProperty(t,"min",{enumerable:!0,get:function(){return ae.min}});var ie=n(59924);Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return ie.multicast}});var oe=n(82803);Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return oe.observeOn}});var se=n(21997);Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return se.onErrorResumeNext}});var le=n(74492);Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return le.pairwise}});var ue=n(35352);Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return ue.partition}});var ce=n(43391);Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return ce.pluck}});var de=n(20297);Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return de.publish}});var pe=n(46383);Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return pe.publishBehavior}});var fe=n(58229);Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return fe.publishLast}});var he=n(28226);Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return he.publishReplay}});var me=n(78973);Object.defineProperty(t,"race",{enumerable:!0,get:function(){return me.race}});var ge=n(177);Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return ge.raceWith}});var ve=n(3818);Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return ve.reduce}});var ye=n(7775);Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return ye.repeat}});var be=n(25567);Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return be.repeatWhen}});var _e=n(14740);Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return _e.retry}});var we=n(40264);Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return we.retryWhen}});var Me=n(85884);Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return Me.refCount}});var Se=n(86870);Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return Se.sample}});var ke=n(85411);Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return ke.sampleTime}});var Le=n(82457);Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return Le.scan}});var xe=n(55109);Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return xe.sequenceEqual}});var De=n(83329);Object.defineProperty(t,"share",{enumerable:!0,get:function(){return De.share}});var Te=n(11738);Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return Te.shareReplay}});var Oe=n(70884);Object.defineProperty(t,"single",{enumerable:!0,get:function(){return Oe.single}});var Ee=n(14411);Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return Ee.skip}});var Pe=n(19355);Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return Pe.skipLast}});var Ce=n(82947);Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return Ce.skipUntil}});var Ye=n(29842);Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return Ye.skipWhile}});var Ae=n(62778);Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return Ae.startWith}});var Re=n(44027);Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return Re.subscribeOn}});var je=n(89061);Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return je.switchAll}});var Ie=n(6300);Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return Ie.switchMap}});var Fe=n(61933);Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return Fe.switchMapTo}});var He=n(51689);Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return He.switchScan}});var Ne=n(46803);Object.defineProperty(t,"take",{enumerable:!0,get:function(){return Ne.take}});var ze=n(20787);Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return ze.takeLast}});var Ve=n(24811);Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return Ve.takeUntil}});var We=n(47770);Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return We.takeWhile}});var $e=n(79967);Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return $e.tap}});var Ue=n(16516);Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return Ue.throttle}});var Be=n(75945);Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return Be.throttleTime}});var qe=n(45956);Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return qe.throwIfEmpty}});var Ge=n(99712);Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Ge.timeInterval}});var Ke=n(87517);Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Ke.timeout}});var Je=n(62001);Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Je.timeoutWith}});var Qe=n(68158);Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return Qe.timestamp}});var Ze=n(22984);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return Ze.toArray}});var Xe=n(75492);Object.defineProperty(t,"window",{enumerable:!0,get:function(){return Xe.window}});var et=n(56817);Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return et.windowCount}});var tt=n(96841);Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return tt.windowTime}});var nt=n(4880);Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return nt.windowToggle}});var rt=n(33016);Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return rt.windowWhen}});var at=n(99163);Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return at.withLatestFrom}});var it=n(32681);Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return it.zip}});var ot=n(5606);Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return ot.zipAll}});var st=n(50973);Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return st.zipWith}})},46330(e,t){t.J=function e(t,n,r,a){var i,o,s={},l=!1;for(i in n)"object"!=typeof(o=n[i])&&(l=!0,s[i]=o);for(i in l&&(t[a]||(t[a]={}),t[a][r]=s),n)if("object"==typeof(o=n[i]))if("@"===i[0])e(t,o,r,i);else{var u=i.indexOf("&")>-1,c=r.split(",");if(u)for(var d=0;d9?r(e%10):e}function a(e,t){return 2===t?i(e):e}function i(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var o=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],s=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,l=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,u=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,c=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],d=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],p=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:p,fullWeekdaysParse:c,shortWeekdaysParse:d,minWeekdaysParse:p,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:l,monthsShortStrictRegex:u,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:n},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(42689))},46803(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.take=void 0;var r=n(47209),a=n(35416),i=n(1266);t.take=function(e){return e<=0?function(){return r.EMPTY}:a.operate(function(t,n){var r=0;t.subscribe(i.createOperatorSubscriber(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}},46836(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n(42689))},47071(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scanInternals=void 0;var r=n(1266);t.scanInternals=function(e,t,n,a,i){return function(o,s){var l=n,u=t,c=0;o.subscribe(r.createOperatorSubscriber(s,function(t){var n=c++;u=l?e(u,t,n):(l=!0,t),a&&s.next(u)},i&&function(){l&&s.next(u),s.complete()}))}}},47186(e,t,n){"use strict";n.d(t,{Tp:()=>d});var r=n(98449);function a(e,t="latest"){return i(e,t.replace(/\-.*/,""))}function i(e,t){const n={};for(const[r,a]of Object.entries(e))o(a)?n[r]=i(a,t):(l(a,r),n[r]=s(a,t));return n}function o(e){if("object"==typeof e){const[t]=Object.keys(e);return!(0,r.valid)(t)}return!1}function s(e,t){let n,a=Object.keys(e).sort(r.compare);if("latest"===t)return e[a[a.length-1]];for(const e of a)(0,r.gte)(t,e)&&(n=e);return n||(n=a[a.length-1]),e[n]}function l(e,t){if(!Object.keys(e).every(e=>(0,r.valid)(e)))throw new Error(`Invalid semver version: '${t}'`)}const u="8.5.0",c={RadioButton:{container:{"10.2.3":"data-testid radio-button"}},Breadcrumbs:{breadcrumb:{"9.4.0":e=>`data-testid ${e} breadcrumb`}},CanvasGridAddActions:{addPanel:{"12.1.0":"data-testid CanvasGridAddActions add-panel"},groupPanels:{"12.1.0":"data-testid CanvasGridAddActions group-panels"},ungroup:{"12.1.0":"data-testid CanvasGridAddActions ungroup"},addRow:{"12.1.0":"data-testid CanvasGridAddActions add-row"},pasteRow:{"12.1.0":"data-testid CanvasGridAddActions paste-row"},addTab:{"12.1.0":"data-testid CanvasGridAddActions add-tab"},pasteTab:{"12.1.0":"data-testid CanvasGridAddActions paste-tab"}},DashboardEditPaneSplitter:{primaryBody:{"12.1.0":"data-testid DashboardEditPaneSplitter primary body"}},EditPaneHeader:{deleteButton:{"12.1.0":"data-testid EditPaneHeader delete panel"},copyDropdown:{"12.1.0":"data-testid EditPaneHeader copy dropdown"},copy:{"12.1.0":"data-testid EditPaneHeader copy"},duplicate:{"12.1.0":"data-testid EditPaneHeader duplicate"},backButton:{"12.1.0":"data-testid EditPaneHeader back"}},TimePicker:{openButton:{[u]:"data-testid TimePicker Open Button"},overlayContent:{"10.2.3":"data-testid TimePicker Overlay Content"},fromField:{"10.2.3":"data-testid Time Range from field",[u]:"Time Range from field"},toField:{"10.2.3":"data-testid Time Range to field",[u]:"Time Range to field"},applyTimeRange:{[u]:"data-testid TimePicker submit button"},copyTimeRange:{"10.4.0":"data-testid TimePicker copy button"},pasteTimeRange:{"10.4.0":"data-testid TimePicker paste button"},calendar:{label:{"10.2.3":"data-testid Time Range calendar",[u]:"Time Range calendar"},openButton:{"10.2.3":"data-testid Open time range calendar",[u]:"Open time range calendar"},closeButton:{"10.2.3":"data-testid Close time range Calendar",[u]:"Close time range Calendar"}},absoluteTimeRangeTitle:{[u]:"data-testid-absolute-time-range-narrow"}},DataSourcePermissions:{form:{"9.5.0":()=>'form[name="addPermission"]'},roleType:{"9.5.0":"Role to add new permission to"},rolePicker:{"9.5.0":"Built-in role picker"},permissionLevel:{"12.0.0":"Permission level","9.5.0":"Permission Level"}},DateTimePicker:{input:{"10.2.3":"data-testid date-time-input"}},DataSource:{TestData:{QueryTab:{scenarioSelectContainer:{[u]:"Test Data Query scenario select container"},scenarioSelect:{[u]:"Test Data Query scenario select"},max:{[u]:"TestData max"},min:{[u]:"TestData min"},noise:{[u]:"TestData noise"},seriesCount:{[u]:"TestData series count"},spread:{[u]:"TestData spread"},startValue:{[u]:"TestData start value"},drop:{[u]:"TestData drop values"}}},DataSourceHttpSettings:{urlInput:{"10.4.0":"data-testid Datasource HTTP settings url",[u]:"Datasource HTTP settings url"}},Jaeger:{traceIDInput:{[u]:"Trace ID"}},Prometheus:{configPage:{connectionSettings:{[u]:"Data source connection URL"},manageAlerts:{"10.4.0":"prometheus-alerts-manager"},allowAsRecordingRulesTarget:{"12.1.0":"prometheus-recording-rules-target"},scrapeInterval:{"10.4.0":"data-testid scrape interval"},queryTimeout:{"10.4.0":"data-testid query timeout"},defaultEditor:{"10.4.0":"data-testid default editor"},disableMetricLookup:{"10.4.0":"disable-metric-lookup"},prometheusType:{"10.4.0":"data-testid prometheus type"},prometheusVersion:{"10.4.0":"data-testid prometheus version"},cacheLevel:{"10.4.0":"data-testid cache level"},incrementalQuerying:{"10.4.0":"prometheus-incremental-querying"},queryOverlapWindow:{"10.4.0":"data-testid query overlap window"},disableRecordingRules:{"10.4.0":"disable-recording-rules"},customQueryParameters:{"10.4.0":"data-testid custom query parameters"},httpMethod:{"10.4.0":"data-testid http method"},exemplarsAddButton:{"10.3.0":"data-testid Add exemplar config button",[u]:"Add exemplar config button"},internalLinkSwitch:{"10.3.0":"data-testid Internal link switch",[u]:"Internal link switch"},codeModeMetricNamesSuggestionLimit:{"11.1.0":"data-testid code mode metric names suggestion limit"},seriesLimit:{"12.0.2":"data-testid maximum series limit"}},queryEditor:{explain:{"10.4.0":"data-testid prometheus explain switch wrapper"},editorToggle:{"10.4.0":"data-testid QueryEditorModeToggle"},options:{"10.4.0":"data-testid prometheus options"},legend:{"10.4.0":"data-testid prometheus legend wrapper"},format:{"10.4.0":"data-testid prometheus format"},step:{"10.4.0":"data-testid prometheus-step"},type:{"10.4.0":"data-testid prometheus type"},exemplars:{"10.4.0":"data-testid prometheus-exemplars"},builder:{metricSelect:{"10.4.0":"data-testid metric select"},hints:{"10.4.0":"data-testid prometheus hints"},metricsExplorer:{"10.4.0":"data-testid metrics explorer"},queryAdvisor:{"10.4.0":"data-testid query advisor"}},code:{queryField:{"10.4.0":"data-testid prometheus query field"},metricsCountInfo:{"11.1.0":"data-testid metrics count disclaimer"},metricsBrowser:{openButton:{"10.4.0":"data-testid open metrics browser"},selectMetric:{"10.4.0":"data-testid select a metric"},seriesLimit:{"10.3.1":"data-testid series limit"},metricList:{"10.4.0":"data-testid metric list"},labelNamesFilter:{"10.4.0":"data-testid label names filter"},labelValuesFilter:{"10.4.0":"data-testid label values filter"},useQuery:{"10.4.0":"data-testid use query"},useAsRateQuery:{"10.4.0":"data-testid use as rate query"},validateSelector:{"10.4.0":"data-testid validate selector"},clear:{"10.4.0":"data-testid clear"}}}},exemplarMarker:{"10.3.0":"data-testid Exemplar marker",[u]:"Exemplar marker"},variableQueryEditor:{queryType:{"10.4.0":"data-testid query type"},labelnames:{metricRegex:{"10.4.0":"data-testid label names metric regex"}},labelValues:{labelSelect:{"10.4.0":"data-testid label values label select"}},metricNames:{metricRegex:{"10.4.0":"data-testid metric names metric regex"}},varQueryResult:{"10.4.0":"data-testid variable query result"},seriesQuery:{"10.4.0":"data-testid prometheus series query"},classicQuery:{"10.4.0":"data-testid prometheus classic query"}},annotations:{minStep:{"10.4.0":"data-testid prometheus-annotation-min-step"},title:{"10.4.0":"data-testid prometheus annotation title"},tags:{"10.4.0":"data-testid prometheus annotation tags"},text:{"10.4.0":"data-testid prometheus annotation text"},seriesValueAsTimestamp:{"10.4.0":"data-testid prometheus annotation series value as timestamp"}}}},Menu:{MenuComponent:{[u]:e=>`${e} menu`},MenuGroup:{[u]:e=>`${e} menu group`},MenuItem:{[u]:e=>`${e} menu item`},SubMenu:{container:{"10.3.0":"data-testid SubMenu container",[u]:"SubMenu container"},icon:{"10.3.0":"data-testid SubMenu icon",[u]:"SubMenu icon"}}},Panels:{Panel:{title:{[u]:e=>`data-testid Panel header ${e}`},content:{"11.1.0":"data-testid panel content"},headerContainer:{"9.5.0":"data-testid header-container"},headerItems:{"10.2.0":e=>`data-testid Panel header item ${e}`},menuItems:{"9.5.0":e=>`data-testid Panel menu item ${e}`},menu:{"9.5.0":e=>`data-testid Panel menu ${e}`},containerByTitle:{[u]:e=>`${e} panel`},headerCornerInfo:{[u]:e=>`Panel header ${e}`},status:{"10.2.0":e=>`data-testid Panel status ${e}`,[u]:e=>"Panel status"},loadingBar:{"10.0.0":()=>"Panel loading bar"},HoverWidget:{container:{"10.1.0":"data-testid hover-header-container",[u]:"hover-header-container"},dragIcon:{"10.0.0":"data-testid drag-icon"}},PanelDataErrorMessage:{"10.4.0":"data-testid Panel data error message"}},Visualization:{Graph:{container:{"9.5.0":"Graph container"},VisualizationTab:{legendSection:{[u]:"Legend section"}},Legend:{legendItemAlias:{[u]:e=>`gpl alias ${e}`},showLegendSwitch:{[u]:"gpl show legend"}},xAxis:{labels:{[u]:()=>"div.flot-x-axis > div.flot-tick-label"}}},BarGauge:{valueV2:{[u]:"data-testid Bar gauge value"}},PieChart:{svgSlice:{"10.3.0":"data testid Pie Chart Slice"}},Text:{container:{[u]:()=>".markdown-html"}},Table:{header:{[u]:"table header"},footer:{[u]:"table-footer"},body:{"10.2.0":"data-testid table body"}}}},VizLegend:{seriesName:{"10.3.0":e=>`data-testid VizLegend series ${e}`}},Drawer:{General:{title:{[u]:e=>`Drawer title ${e}`},expand:{[u]:"Drawer expand"},contract:{[u]:"Drawer contract"},close:{"10.3.0":"data-testid Drawer close",[u]:"Drawer close"},rcContentWrapper:{"9.4.0":()=>".rc-drawer-content-wrapper"},subtitle:{"10.4.0":"data-testid drawer subtitle"}},DashboardSaveDrawer:{saveButton:{"11.1.0":"data-testid Save dashboard drawer button"},saveAsButton:{"11.1.0":"data-testid Save as dashboard drawer button"},saveAsTitleInput:{"11.1.0":"Save dashboard title field"}}},PanelEditor:{General:{content:{"11.1.0":"data-testid Panel editor content","8.0.0":"Panel editor content"}},OptionsPane:{content:{"11.1.0":"data-testid Panel editor option pane content",[u]:"Panel editor option pane content"},select:{[u]:"Panel editor option pane select"},fieldLabel:{[u]:e=>`${e} field property editor`},fieldInput:{"11.0.0":e=>`data-testid Panel editor option pane field input ${e}`}},DataPane:{content:{"11.1.0":"data-testid Panel editor data pane content",[u]:"Panel editor data pane content"}},applyButton:{"9.2.0":"data-testid Apply changes and go back to dashboard","9.1.0":"Apply changes and go back to dashboard","8.0.0":"panel editor apply"},toggleVizPicker:{"10.0.0":"data-testid toggle-viz-picker","8.0.0":"toggle-viz-picker"},toggleVizOptions:{"10.1.0":"data-testid toggle-viz-options",[u]:"toggle-viz-options"},toggleTableView:{"11.1.0":"data-testid toggle-table-view",[u]:"toggle-table-view"},showZoomField:{"10.2.0":"Map controls Show zoom control field property editor"},showAttributionField:{"10.2.0":"Map controls Show attribution field property editor"},showScaleField:{"10.2.0":"Map controls Show scale field property editor"},showMeasureField:{"10.2.0":"Map controls Show measure tools field property editor"},showDebugField:{"10.2.0":"Map controls Show debug field property editor"},measureButton:{"12.1.0":"data-testid panel-editor-measure-button","9.2.0":"show measure tools"},Outline:{section:{"12.0.0":"data-testid Outline section"},node:{"12.0.0":e=>`data-testid outline node ${e}`},item:{"12.0.0":e=>`data-testid outline item ${e}`}},ElementEditPane:{variableType:{"12.0.0":e=>`data-testid variable type ${e}`},addVariableButton:{"12.0.0":"data-testid add variable button"},variableNameInput:{"12.0.0":"data-testid variable name input"},variableLabelInput:{"12.0.0":"data-testid variable label input"},AutoGridLayout:{minColumnWidth:{"12.1.0":"data-testid min column width selector"},customMinColumnWidth:{"12.1.0":"data-testid custom min column width input"},clearCustomMinColumnWidth:{"12.1.0":"data-testid clear custom min column width input"},maxColumns:{"12.1.0":"data-testid max columns selector"},rowHeight:{"12.1.0":"data-testid row height selector"},customRowHeight:{"12.1.0":"data-testid custom row height input"},clearCustomRowHeight:{"12.1.0":"data-testid clear custom row height input"},fillScreen:{"12.1.0":"data-testid fill screen switch"}}}},PanelInspector:{Data:{content:{[u]:"Panel inspector Data content"}},Stats:{content:{[u]:"Panel inspector Stats content"}},Json:{content:{"11.1.0":"data-testid Panel inspector Json content",[u]:"Panel inspector Json content"}},Query:{content:{[u]:"Panel inspector Query content"},refreshButton:{[u]:"Panel inspector Query refresh button"},jsonObjectKeys:{[u]:()=>".json-formatter-key"}}},Tab:{title:{"11.2.0":e=>`data-testid Tab ${e}`},active:{[u]:()=>'[class*="-activeTabStyle"]'}},RefreshPicker:{runButtonV2:{[u]:"data-testid RefreshPicker run button"},intervalButtonV2:{[u]:"data-testid RefreshPicker interval button"}},QueryTab:{content:{[u]:"Query editor tab content"},queryInspectorButton:{[u]:"Query inspector button"},queryHistoryButton:{"10.2.0":"data-testid query-history-button",[u]:"query-history-button"},addQuery:{"10.2.0":"data-testid query-tab-add-query",[u]:"Query editor add query button"},addQueryFromLibrary:{"11.5.0":"data-testid query-tab-add-query-from-library"},queryGroupTopSection:{"11.2.0":"data-testid query group top section"},addExpression:{"11.2.0":"data-testid query-tab-add-expression"}},QueryHistory:{queryText:{"9.0.0":"Query text"}},QueryEditorRows:{rows:{[u]:"Query editor row"}},QueryEditorRow:{actionButton:{"10.4.0":e=>`data-testid ${e}`},title:{[u]:e=>`Query editor row title ${e}`},container:{[u]:e=>`Query editor row ${e}`}},AlertTab:{content:{"10.2.3":"data-testid Alert editor tab content",[u]:"Alert editor tab content"}},AlertRules:{groupToggle:{"11.0.0":"data-testid group-collapse-toggle"},toggle:{"11.0.0":"data-testid collapse-toggle"},expandedContent:{"11.0.0":"data-testid expanded-content"},previewButton:{"11.1.0":"data-testid alert-rule preview-button"},ruleNameField:{"11.1.0":"data-testid alert-rule name-field"},newFolderButton:{"11.1.0":"data-testid alert-rule new-folder-button"},newFolderNameField:{"11.1.0":"data-testid alert-rule name-folder-name-field"},newFolderNameCreateButton:{"11.1.0":"data-testid alert-rule name-folder-name-create-button"},newEvaluationGroupButton:{"11.1.0":"data-testid alert-rule new-evaluation-group-button"},newEvaluationGroupName:{"11.1.0":"data-testid alert-rule new-evaluation-group-name"},newEvaluationGroupInterval:{"11.1.0":"data-testid alert-rule new-evaluation-group-interval"},newEvaluationGroupCreate:{"11.1.0":"data-testid alert-rule new-evaluation-group-create-button"},step:{"11.5.0":e=>`data-testid alert-rule step-${e}`},stepAdvancedModeSwitch:{"11.5.0":e=>`data-testid advanced-mode-switch step-${e}`}},Alert:{alertV2:{[u]:e=>`data-testid Alert ${e}`}},TransformTab:{content:{"10.1.0":"data-testid Transform editor tab content",[u]:"Transform editor tab content"},newTransform:{"10.1.0":e=>`data-testid New transform ${e}`},transformationEditor:{"10.1.0":e=>`data-testid Transformation editor ${e}`},transformationEditorDebugger:{"10.1.0":e=>`data-testid Transformation editor debugger ${e}`}},Transforms:{card:{"10.1.0":e=>`data-testid New transform ${e}`},disableTransformationButton:{"10.4.0":"data-testid Disable transformation button"},Reduce:{modeLabel:{"10.2.3":"data-testid Transform mode label",[u]:"Transform mode label"},calculationsLabel:{"10.2.3":"data-testid Transform calculations label",[u]:"Transform calculations label"}},SpatialOperations:{actionLabel:{"9.1.2":"root Action field property editor"},locationLabel:{"10.2.0":"root Location Mode field property editor"},location:{autoOption:{"9.1.2":"Auto location option"},coords:{option:{"9.1.2":"Coords location option"},latitudeFieldLabel:{"9.1.2":"root Latitude field field property editor"},longitudeFieldLabel:{"9.1.2":"root Longitude field field property editor"}},geohash:{option:{"9.1.2":"Geohash location option"},geohashFieldLabel:{"9.1.2":"root Geohash field field property editor"}},lookup:{option:{"9.1.2":"Lookup location option"},lookupFieldLabel:{"9.1.2":"root Lookup field field property editor"},gazetteerFieldLabel:{"9.1.2":"root Gazetteer field property editor"}}}},searchInput:{"10.2.3":"data-testid search transformations",[u]:"search transformations"},noTransformationsMessage:{"10.2.3":"data-testid no transformations message"},addTransformationButton:{"10.1.0":"data-testid add transformation button",[u]:"add transformation button"},removeAllTransformationsButton:{"10.4.0":"data-testid remove all transformations button"}},NavBar:{Configuration:{button:{"9.5.0":"Configuration"}},Toggle:{button:{"10.2.3":"data-testid Toggle menu",[u]:"Toggle menu"}},Reporting:{button:{"9.5.0":"Reporting"}}},NavMenu:{Menu:{"10.2.3":"data-testid navigation mega-menu"},item:{"9.5.0":"data-testid Nav menu item"}},NavToolbar:{container:{"9.4.0":"data-testid Nav toolbar"},commandPaletteTrigger:{"11.5.0":"data-testid Command palette trigger"},shareDashboard:{"11.1.0":"data-testid Share dashboard"},markAsFavorite:{"11.1.0":"data-testid Mark as favorite"},editDashboard:{editButton:{"11.1.0":"data-testid Edit dashboard button"},saveButton:{"11.1.0":"data-testid Save dashboard button"},exitButton:{"11.1.0":"data-testid Exit edit mode button"},settingsButton:{"11.1.0":"data-testid Dashboard settings"},addRowButton:{"11.1.0":"data-testid Add row button"},addLibraryPanelButton:{"11.1.0":"data-testid Add a panel from the panel library button"},addVisualizationButton:{"11.1.0":"data-testid Add new visualization menu item"},pastePanelButton:{"11.1.0":"data-testid Paste panel button"},discardChangesButton:{"11.1.0":"data-testid Discard changes button"},discardLibraryPanelButton:{"11.1.0":"data-testid Discard library panel button"},unlinkLibraryPanelButton:{"11.1.0":"data-testid Unlink library panel button"},saveLibraryPanelButton:{"11.1.0":"data-testid Save library panel button"},backToDashboardButton:{"11.1.0":"data-testid Back to dashboard button"}}},PageToolbar:{container:{[u]:()=>".page-toolbar"},item:{[u]:e=>`${e}`},itemButton:{"9.5.0":e=>`data-testid ${e}`}},QueryEditorToolbarItem:{button:{[u]:e=>`QueryEditor toolbar item button ${e}`}},BackButton:{backArrow:{"10.3.0":"data-testid Go Back",[u]:"Go Back"}},OptionsGroup:{group:{"11.1.0":e=>e?`data-testid Options group ${e}`:"data-testid Options group",[u]:e=>e?`Options group ${e}`:"Options group"},toggle:{"11.1.0":e=>e?`data-testid Options group ${e} toggle`:"data-testid Options group toggle",[u]:e=>e?`Options group ${e} toggle`:"Options group toggle"}},PluginVisualization:{item:{[u]:e=>`Plugin visualization item ${e}`},current:{[u]:()=>'[class*="-currentVisualizationItem"]'}},Select:{menu:{"11.5.0":"data-testid Select menu",[u]:"Select options menu"},option:{"11.1.0":"data-testid Select option",[u]:"Select option"},toggleAllOptions:{"11.3.0":"data-testid toggle all options"},input:{[u]:()=>'input[id*="time-options-input"]'},singleValue:{[u]:()=>'div[class*="-singleValue"]'}},FieldConfigEditor:{content:{[u]:"Field config editor content"}},OverridesConfigEditor:{content:{[u]:"Field overrides editor content"}},FolderPicker:{containerV2:{[u]:"data-testid Folder picker select container"},input:{"10.4.0":"data-testid folder-picker-input"}},ReadonlyFolderPicker:{container:{[u]:"data-testid Readonly folder picker select container"}},DataSourcePicker:{container:{"10.0.0":"data-testid Data source picker select container","8.0.0":"Data source picker select container"},inputV2:{"10.1.0":"data-testid Select a data source",[u]:"Select a data source"},dataSourceList:{"10.4.0":"data-testid Data source list dropdown"},advancedModal:{dataSourceList:{"10.4.0":"data-testid Data source list"},builtInDataSourceList:{"10.4.0":"data-testid Built in data source list"}}},TimeZonePicker:{containerV2:{[u]:"data-testid Time zone picker select container"},changeTimeSettingsButton:{"11.0.0":"data-testid Time zone picker Change time settings button"}},WeekStartPicker:{containerV2:{[u]:"data-testid Choose starting day of the week"},placeholder:{[u]:"Choose starting day of the week"}},TraceViewer:{spanBar:{"9.0.0":"data-testid SpanBar--wrapper"}},QueryField:{container:{"10.3.0":"data-testid Query field",[u]:"Query field"}},QueryBuilder:{queryPatterns:{"10.3.0":"data-testid Query patterns",[u]:"Query patterns"},labelSelect:{"10.3.0":"data-testid Select label",[u]:"Select label"},inputSelect:{"11.1.0":"data-testid Select label-input"},valueSelect:{"10.3.0":"data-testid Select value",[u]:"Select value"},matchOperatorSelect:{"10.3.0":"data-testid Select match operator",[u]:"Select match operator"}},ValuePicker:{button:{"10.3.0":e=>`data-testid Value picker button ${e}`},select:{"10.3.0":e=>`data-testid Value picker select ${e}`}},Search:{sectionV2:{[u]:"data-testid Search section"},itemsV2:{[u]:"data-testid Search items"},cards:{[u]:"data-testid Search cards"},collapseFolder:{[u]:e=>`data-testid Collapse folder ${e}`},expandFolder:{[u]:e=>`data-testid Expand folder ${e}`},dashboardItem:{[u]:e=>`data-testid Dashboard search item ${e}`},dashboardCard:{[u]:e=>`data-testid Search card ${e}`},folderHeader:{"9.3.0":e=>`data-testid Folder header ${e}`},folderContent:{"9.3.0":e=>`data-testid Folder content ${e}`},dashboardItems:{[u]:"data-testid Dashboard search item"}},DashboardLinks:{container:{[u]:"data-testid Dashboard link container"},dropDown:{[u]:"data-testid Dashboard link dropdown"},link:{[u]:"data-testid Dashboard link"}},LoadingIndicator:{icon:{"10.4.0":"data-testid Loading indicator",[u]:"Loading indicator"}},CallToActionCard:{buttonV2:{[u]:e=>`data-testid Call to action button ${e}`}},DataLinksContextMenu:{singleLink:{"10.3.0":"data-testid Data link",[u]:"Data link"}},DataLinksActionsTooltip:{tooltipWrapper:{"12.1.0":"data-testid Data links actions tooltip wrapper"}},CodeEditor:{container:{"10.2.3":"data-testid Code editor container",[u]:"Code editor container"}},ReactMonacoEditor:{editorLazy:{"11.1.0":"data-testid ReactMonacoEditor editorLazy"}},DashboardImportPage:{textarea:{[u]:"data-testid-import-dashboard-textarea"},submit:{[u]:"data-testid-load-dashboard"}},ImportDashboardForm:{name:{[u]:"data-testid-import-dashboard-title"},submit:{[u]:"data-testid-import-dashboard-submit"}},PanelAlertTabContent:{content:{"10.2.3":"data-testid Unified alert editor tab content",[u]:"Unified alert editor tab content"}},VisualizationPreview:{card:{[u]:e=>`data-testid suggestion-${e}`}},ColorSwatch:{name:{[u]:"data-testid-colorswatch"}},DashboardRow:{title:{[u]:e=>`data-testid dashboard-row-title-${e}`}},UserProfile:{profileSaveButton:{[u]:"data-testid-user-profile-save"},preferencesSaveButton:{[u]:"data-testid-shared-prefs-save"},orgsTable:{[u]:"data-testid-user-orgs-table"},sessionsTable:{[u]:"data-testid-user-sessions-table"},extensionPointTabs:{"10.2.3":"data-testid-extension-point-tabs"},extensionPointTab:{"10.2.3":e=>`data-testid-extension-point-tab-${e}`}},FileUpload:{inputField:{"9.0.0":"data-testid-file-upload-input-field"},fileNameSpan:{"9.0.0":"data-testid-file-upload-file-name"}},DebugOverlay:{wrapper:{"9.2.0":"debug-overlay"}},OrgRolePicker:{input:{"9.5.0":"Role"}},AnalyticsToolbarButton:{button:{"9.5.0":"Dashboard insights"}},Variables:{variableOption:{"9.5.0":"data-testid variable-option"},variableLinkWrapper:{"11.1.1":"data-testid variable-link-wrapper"}},Annotations:{annotationsTypeInput:{"11.1.0":"data-testid annotations-type-input",[u]:"annotations-type-input"},annotationsChoosePanelInput:{"11.1.0":"data-testid choose-panels-input",[u]:"choose-panels-input"},editor:{testButton:{"11.0.0":"data-testid annotations-test-button"},resultContainer:{"11.0.0":"data-testid annotations-query-result-container"}}},Tooltip:{container:{"10.2.0":"data-testid tooltip"}},ReturnToPrevious:{buttonGroup:{"11.0.0":"data-testid dismissable button group"},backButton:{"11.0.0":"data-testid back"},dismissButton:{"11.0.0":"data-testid dismiss"}},SQLQueryEditor:{selectColumn:{"11.0.0":"data-testid select-column"},selectColumnInput:{"11.0.0":"data-testid select-column-input"},selectFunctionParameter:{"11.0.0":e=>`data-testid select-function-parameter-${e}`},selectAggregation:{"11.0.0":"data-testid select-aggregation"},selectAggregationInput:{"11.0.0":"data-testid select-aggregation-input"},selectAlias:{"11.0.0":"data-testid select-alias"},selectAliasInput:{"11.0.0":"data-testid select-alias-input"},selectInputParameter:{"11.0.0":"data-testid select-input-parameter"},filterConjunction:{"11.0.0":"data-testid filter-conjunction"},filterField:{"11.0.0":"data-testid filter-field"},filterOperator:{"11.0.0":"data-testid filter-operator"},headerTableSelector:{"11.0.0":"data-testid header-table-selector"},headerFilterSwitch:{"11.0.0":"data-testid header-filter-switch"},headerGroupSwitch:{"11.0.0":"data-testid header-group-switch"},headerOrderSwitch:{"11.0.0":"data-testid header-order-switch"},headerPreviewSwitch:{"11.0.0":"data-testid header-preview-switch"}},EntityNotFound:{container:{"11.2.0":"data-testid entity-not-found"}},Portal:{container:{"11.5.0":"data-testid portal-container"}}},d={pages:a({Alerting:{AddAlertRule:{url:{"10.1.0":"/alerting/new/alerting",[u]:"/alerting/new"}},EditAlertRule:{url:{[u]:e=>`alerting/${e}/edit`}}},Login:{url:{[u]:"/login"},username:{"10.2.3":"data-testid Username input field",[u]:"Username input field"},password:{"10.2.3":"data-testid Password input field",[u]:"Password input field"},submit:{"10.2.3":"data-testid Login button",[u]:"Login button"},skip:{"10.2.3":"data-testid Skip change password button"}},PasswordlessLogin:{url:{[u]:"/login/passwordless/authenticate"},email:{"10.2.3":"data-testid Email input field",[u]:"Email input field"},submit:{"10.2.3":"data-testid PasswordlessLogin button",[u]:"PasswordlessLogin button"}},Home:{url:{[u]:"/"}},DataSource:{name:{"10.3.0":"data-testid Data source settings page name input field",[u]:"Data source settings page name input field"},delete:{[u]:"Data source settings page Delete button"},readOnly:{"10.3.0":"data-testid Data source settings page read only message",[u]:"Data source settings page read only message"},saveAndTest:{"10.0.0":"data-testid Data source settings page Save and Test button",[u]:"Data source settings page Save and Test button"},alert:{"10.3.0":"data-testid Data source settings page Alert",[u]:"Data source settings page Alert"}},DataSources:{url:{[u]:"/datasources"},dataSources:{[u]:e=>`Data source list item ${e}`}},EditDataSource:{url:{"9.5.0":e=>`/datasources/edit/${e}`},settings:{"9.5.0":"Datasource settings page basic settings"}},AddDataSource:{url:{[u]:"/datasources/new"},dataSourcePluginsV2:{"9.3.1":e=>`Add new data source ${e}`,[u]:e=>`Data source plugin item ${e}`}},ConfirmModal:{delete:{"10.0.0":"data-testid Confirm Modal Danger Button",[u]:"Confirm Modal Danger Button"}},AddDashboard:{url:{[u]:"/dashboard/new"},itemButton:{"9.5.0":e=>`data-testid ${e}`},addNewPanel:{"11.1.0":"data-testid Add new panel","8.0.0":"Add new panel",[u]:"Add new panel"},itemButtonAddViz:{[u]:"Add new visualization menu item"},addNewRow:{"11.1.0":"data-testid Add new row",[u]:"Add new row"},addNewPanelLibrary:{"11.1.0":"data-testid Add new panel from panel library",[u]:"Add new panel from panel library"},Settings:{Annotations:{List:{url:{[u]:"/dashboard/new?orgId=1&editview=annotations"}},Edit:{url:{[u]:e=>`/dashboard/new?editview=annotations&editIndex=${e}`}}},Variables:{List:{url:{"11.3.0":"/dashboard/new?orgId=1&editview=variables",[u]:"/dashboard/new?orgId=1&editview=templating"}},Edit:{url:{"11.3.0":e=>`/dashboard/new?orgId=1&editview=variables&editIndex=${e}`,[u]:e=>`/dashboard/new?orgId=1&editview=templating&editIndex=${e}`}}}}},ImportDashboard:{url:{[u]:"/dashboard/import"}},Dashboard:{url:{[u]:e=>`/d/${e}`},DashNav:{nav:{[u]:"Dashboard navigation"},navV2:{[u]:"data-testid Dashboard navigation"},publicDashboardTag:{"9.1.0":"data-testid public dashboard tag"},shareButton:{"10.4.0":"data-testid share-button"},scrollContainer:{"11.1.0":"data-testid Dashboard canvas scroll container"},newShareButton:{container:{"11.1.0":"data-testid new share button"},shareLink:{"11.1.0":"data-testid new share link-button"},arrowMenu:{"11.1.0":"data-testid new share button arrow menu"},menu:{container:{"11.1.0":"data-testid new share button menu"},shareInternally:{"11.1.0":"data-testid new share button share internally"},shareExternally:{"11.1.1":"data-testid new share button share externally"},shareSnapshot:{"11.2.0":"data-testid new share button share snapshot"}}},NewExportButton:{container:{"11.2.0":"data-testid new export button"},arrowMenu:{"11.2.0":"data-testid new export button arrow menu"},Menu:{container:{"11.2.0":"data-testid new export button menu"},exportAsJson:{"11.2.0":"data-testid new export button export as json"}}},playlistControls:{prev:{"11.0.0":"data-testid playlist previous dashboard button"},stop:{"11.0.0":"data-testid playlist stop dashboard button"},next:{"11.0.0":"data-testid playlist next dashboard button"}}},Controls:{"11.1.0":"data-testid dashboard controls"},SubMenu:{submenu:{[u]:"Dashboard submenu"},submenuItem:{[u]:"data-testid template variable"},submenuItemLabels:{[u]:e=>`data-testid Dashboard template variables submenu Label ${e}`},submenuItemValueDropDownValueLinkTexts:{[u]:e=>`data-testid Dashboard template variables Variable Value DropDown value link text ${e}`},submenuItemValueDropDownDropDown:{[u]:"Variable options"},submenuItemValueDropDownOptionTexts:{[u]:e=>`data-testid Dashboard template variables Variable Value DropDown option text ${e}`},Annotations:{annotationsWrapper:{"10.0.0":"data-testid annotation-wrapper"},annotationLabel:{"10.0.0":e=>`data-testid Dashboard annotations submenu Label ${e}`},annotationToggle:{"10.0.0":e=>`data-testid Dashboard annotations submenu Toggle ${e}`}}},Settings:{Actions:{close:{"9.5.0":"data-testid dashboard-settings-close"}},General:{deleteDashBoard:{"11.1.0":"data-testid Dashboard settings page delete dashboard button"},sectionItems:{[u]:e=>`Dashboard settings section item ${e}`},saveDashBoard:{[u]:"Dashboard settings aside actions Save button"},saveAsDashBoard:{[u]:"Dashboard settings aside actions Save As button"},title:{"11.2.0":"General"}},Annotations:{Edit:{urlParams:{[u]:e=>`editview=annotations&editIndex=${e}`}},List:{url:{[u]:e=>`/d/${e}?editview=annotations`},addAnnotationCTAV2:{[u]:"data-testid Call to action button Add annotation query"},annotations:{"10.4.0":"data-testid list-annotations"}},Settings:{name:{"11.1.0":"data-testid Annotations settings name input",[u]:"Annotations settings name input"}},NewAnnotation:{panelFilterSelect:{"10.0.0":"data-testid annotations-panel-filter"},showInLabel:{"11.1.0":"data-testid show-in-label"},previewInDashboard:{"10.0.0":"data-testid annotations-preview"},delete:{"10.4.0":"data-testid annotations-delete"},apply:{"10.4.0":"data-testid annotations-apply"},enable:{"10.4.0":"data-testid annotation-enable"},hide:{"10.4.0":"data-testid annotation-hide"}}},Variables:{List:{url:{"11.3.0":e=>`/d/${e}?editview=variables`,[u]:e=>`/d/${e}?editview=templating`},addVariableCTAV2:{[u]:"data-testid Call to action button Add variable"},newButton:{[u]:"Variable editor New variable button"},table:{[u]:"Variable editor Table"},tableRowNameFields:{[u]:e=>`Variable editor Table Name field ${e}`},tableRowDefinitionFields:{"10.1.0":e=>`Variable editor Table Definition field ${e}`},tableRowArrowUpButtons:{[u]:e=>`Variable editor Table ArrowUp button ${e}`},tableRowArrowDownButtons:{[u]:e=>`Variable editor Table ArrowDown button ${e}`},tableRowDuplicateButtons:{[u]:e=>`Variable editor Table Duplicate button ${e}`},tableRowRemoveButtons:{[u]:e=>`Variable editor Table Remove button ${e}`}},Edit:{urlParams:{"11.3.0":e=>`editview=variables&editIndex=${e}`,[u]:e=>`editview=templating&editIndex=${e}`},General:{headerLink:{[u]:"Variable editor Header link"},modeLabelNew:{[u]:"Variable editor Header mode New"},modeLabelEdit:{[u]:"Variable editor Header mode Edit"},generalNameInput:{[u]:"Variable editor Form Name field"},generalNameInputV2:{[u]:"data-testid Variable editor Form Name field"},generalTypeSelect:{[u]:"Variable editor Form Type select"},generalTypeSelectV2:{[u]:"data-testid Variable editor Form Type select"},generalLabelInput:{[u]:"Variable editor Form Label field"},generalLabelInputV2:{[u]:"data-testid Variable editor Form Label field"},generalHideSelect:{[u]:"Variable editor Form Hide select"},generalHideSelectV2:{[u]:"data-testid Variable editor Form Hide select"},selectionOptionsAllowCustomValueSwitch:{[u]:"data-testid Variable editor Form Allow Custom Value switch"},selectionOptionsMultiSwitch:{"10.4.0":"data-testid Variable editor Form Multi switch",[u]:"Variable editor Form Multi switch"},selectionOptionsIncludeAllSwitch:{"10.4.0":"data-testid Variable editor Form IncludeAll switch",[u]:"Variable editor Form IncludeAll switch"},selectionOptionsCustomAllInput:{"10.4.0":"data-testid Variable editor Form IncludeAll field",[u]:"Variable editor Form IncludeAll field"},previewOfValuesOption:{"10.4.0":"data-testid Variable editor Preview of Values option",[u]:"Variable editor Preview of Values option"},submitButton:{"10.4.0":"data-testid Variable editor Run Query button",[u]:"Variable editor Submit button"},applyButton:{"9.3.0":"data-testid Variable editor Apply button"}},QueryVariable:{closeButton:{[u]:"data-testid Query Variable editor close button"},editor:{[u]:"data-testid Query Variable editor"},previewButton:{[u]:"data-testid Query Variable editor preview button"},queryOptionsDataSourceSelect:{"10.4.0":"data-testid Select a data source","10.0.0":"data-testid Data source picker select container",[u]:"Data source picker select container"},queryOptionsOpenButton:{[u]:"data-testid Query Variable editor open button"},queryOptionsRefreshSelect:{[u]:"Variable editor Form Query Refresh select"},queryOptionsRefreshSelectV2:{[u]:"data-testid Variable editor Form Query Refresh select"},queryOptionsRegExInput:{[u]:"Variable editor Form Query RegEx field"},queryOptionsRegExInputV2:{[u]:"data-testid Variable editor Form Query RegEx field"},queryOptionsSortSelect:{[u]:"Variable editor Form Query Sort select"},queryOptionsSortSelectV2:{[u]:"data-testid Variable editor Form Query Sort select"},queryOptionsQueryInput:{"10.4.0":"data-testid Variable editor Form Default Variable Query Editor textarea"},valueGroupsTagsEnabledSwitch:{[u]:"Variable editor Form Query UseTags switch"},valueGroupsTagsTagsQueryInput:{[u]:"Variable editor Form Query TagsQuery field"},valueGroupsTagsTagsValuesQueryInput:{[u]:"Variable editor Form Query TagsValuesQuery field"}},ConstantVariable:{constantOptionsQueryInput:{[u]:"Variable editor Form Constant Query field"},constantOptionsQueryInputV2:{[u]:"data-testid Variable editor Form Constant Query field"}},DatasourceVariable:{datasourceSelect:{[u]:"data-testid datasource variable datasource type"},nameFilter:{[u]:"data-testid datasource variable datasource name filter"}},TextBoxVariable:{textBoxOptionsQueryInput:{[u]:"Variable editor Form TextBox Query field"},textBoxOptionsQueryInputV2:{[u]:"data-testid Variable editor Form TextBox Query field"}},CustomVariable:{customValueInput:{[u]:"data-testid custom-variable-input"}},IntervalVariable:{intervalsValueInput:{[u]:"data-testid interval variable intervals input"},autoEnabledCheckbox:{"10.4.0":"data-testid interval variable auto value checkbox"},stepCountIntervalSelect:{"10.4.0":"data-testid interval variable step count input"},minIntervalInput:{"10.4.0":"data-testid interval variable mininum interval input"}},GroupByVariable:{dataSourceSelect:{"10.4.0":"data-testid Select a data source"},infoText:{"10.4.0":"data-testid group by variable info text"},modeToggle:{"10.4.0":"data-testid group by variable mode toggle"}},AdHocFiltersVariable:{datasourceSelect:{"10.4.0":"data-testid Select a data source"},infoText:{"10.4.0":"data-testid ad-hoc filters variable info text"},modeToggle:{"11.0.0":"data-testid ad-hoc filters variable mode toggle"}}}}},Annotations:{marker:{"10.0.0":"data-testid annotation-marker"}},Rows:{Repeated:{ConfigSection:{warningMessage:{"10.2.0":"data-testid Repeated rows warning message"}}}}},Dashboards:{url:{[u]:"/dashboards"},dashboards:{"10.2.0":e=>`Dashboard search item ${e}`},toggleView:{[u]:"data-testid radio-button"}},SaveDashboardAsModal:{newName:{"10.2.0":"Save dashboard title field"},save:{"10.2.0":"Save dashboard button"}},SaveDashboardModal:{save:{"10.2.0":"Dashboard settings Save Dashboard Modal Save button"},saveVariables:{"10.2.0":"Dashboard settings Save Dashboard Modal Save variables checkbox"},saveTimerange:{"10.2.0":"Dashboard settings Save Dashboard Modal Save timerange checkbox"},saveRefresh:{"11.1.0":"Dashboard settings Save Dashboard Modal Save refresh checkbox"}},SharePanelModal:{linkToRenderedImage:{[u]:"Link to rendered image"}},ShareDashboardModal:{PublicDashboard:{WillBePublicCheckbox:{"9.1.0":"data-testid public dashboard will be public checkbox"},LimitedDSCheckbox:{"9.1.0":"data-testid public dashboard limited datasources checkbox"},CostIncreaseCheckbox:{"9.1.0":"data-testid public dashboard cost may increase checkbox"},PauseSwitch:{"9.5.0":"data-testid public dashboard pause switch"},EnableAnnotationsSwitch:{"9.3.0":"data-testid public dashboard on off switch for annotations"},CreateButton:{"9.5.0":"data-testid public dashboard create button"},DeleteButton:{"9.3.0":"data-testid public dashboard delete button"},CopyUrlInput:{"9.1.0":"data-testid public dashboard copy url input"},CopyUrlButton:{"9.1.0":"data-testid public dashboard copy url button"},SettingsDropdown:{"10.1.0":"data-testid public dashboard settings dropdown"},TemplateVariablesWarningAlert:{"9.1.0":"data-testid public dashboard disabled template variables alert"},UnsupportedDataSourcesWarningAlert:{"9.5.0":"data-testid public dashboard unsupported data sources alert"},NoUpsertPermissionsWarningAlert:{"9.5.0":"data-testid public dashboard no upsert permissions alert"},EnableTimeRangeSwitch:{"9.4.0":"data-testid public dashboard on off switch for time range"},EmailSharingConfiguration:{Container:{"9.5.0":"data-testid email sharing config container"},ShareType:{"9.5.0":"data-testid public dashboard share type"},EmailSharingInput:{"9.5.0":"data-testid public dashboard email sharing input"},EmailSharingInviteButton:{"9.5.0":"data-testid public dashboard email sharing invite button"},EmailSharingList:{"9.5.0":"data-testid public dashboard email sharing list"},DeleteEmail:{"9.5.0":"data-testid public dashboard delete email button"},ReshareLink:{"9.5.0":"data-testid public dashboard reshare link button"}}},SnapshotScene:{url:{"11.1.0":e=>`/dashboard/snapshot/${e}`},PublishSnapshot:{"11.1.0":"data-testid publish snapshot button"},CopyUrlButton:{"11.1.0":"data-testid snapshot copy url button"},CopyUrlInput:{"11.1.0":"data-testid snapshot copy url input"}}},ShareDashboardDrawer:{ShareInternally:{container:{"11.3.0":"data-testid share internally drawer container"},lockTimeRangeSwitch:{"11.3.0":"data-testid share internally lock time range switch"},shortenUrlSwitch:{"11.3.0":"data-testid share internally shorten url switch"},copyUrlButton:{"11.3.0":"data-testid share internally copy url button"},SharePanel:{preview:{"11.5.0":"data-testid share panel internally image generation preview"},widthInput:{"11.5.0":"data-testid share panel internally width input"},heightInput:{"11.5.0":"data-testid share panel internally height input"},scaleFactorInput:{"11.5.0":"data-testid share panel internally scale factor input"},generateImageButton:{"11.5.0":"data-testid share panel internally generate image button"},downloadImageButton:{"11.5.0":"data-testid share panel internally download image button"}}},ShareExternally:{container:{"11.3.0":"data-testid share externally drawer container"},publicAlert:{"11.3.0":"data-testid public share alert"},emailSharingAlert:{"11.3.0":"data-testid email share alert"},shareTypeSelect:{"11.3.0":"data-testid share externally share type select"},Creation:{PublicShare:{createButton:{"11.3.0":"data-testid public share dashboard create button"},cancelButton:{"11.3.0":"data-testid public share dashboard cancel button"}},EmailShare:{createButton:{"11.3.0":"data-testid email share dashboard create button"},cancelButton:{"11.3.0":"data-testid email share dashboard cancel button"}},willBePublicCheckbox:{"11.3.0":"data-testid share dashboard will be public checkbox"}},Configuration:{enableTimeRangeSwitch:{"11.3.0":"data-testid share externally enable time range switch"},enableAnnotationsSwitch:{"11.3.0":"data-testid share externally enable annotations switch"},copyUrlButton:{"11.3.0":"data-testid share externally copy url button"},revokeAccessButton:{"11.3.0":"data-testid share externally revoke access button"},toggleAccessButton:{"11.3.0":"data-testid share externally pause or resume access button"}}},ShareSnapshot:{url:{"11.3.0":e=>`/dashboard/snapshot/${e}`},container:{"11.3.0":"data-testid share snapshot drawer container"},publishSnapshot:{"11.3.0":"data-testid share snapshot publish button"},copyUrlButton:{"11.3.0":"data-testid share snapshot copy url button"}}},ExportDashboardDrawer:{ExportAsJson:{container:{"11.3.0":"data-testid export as json drawer container"},codeEditor:{"11.3.0":"data-testid export as json code editor"},exportExternallyToggle:{"11.3.0":"data-testid export as json externally switch"},saveToFileButton:{"11.3.0":"data-testid export as json save to file button"},copyToClipboardButton:{"11.3.0":"data-testid export as json copy to clipboard button"},cancelButton:{"11.3.0":"data-testid export as json cancel button"}}},PublicDashboard:{page:{"9.5.0":"public-dashboard-page"},NotAvailable:{container:{"9.5.0":"public-dashboard-not-available"},title:{"9.5.0":"public-dashboard-title"},pausedDescription:{"9.5.0":"public-dashboard-paused-description"}},footer:{"11.0.0":"public-dashboard-footer"}},PublicDashboardScene:{loadingPage:{"11.0.0":"public-dashboard-scene-loading-page"},page:{"11.0.0":"public-dashboard-scene-page"},controls:{"11.0.0":"public-dashboard-controls"}},RequestViewAccess:{form:{"9.5.0":"request-view-access-form"},recipientInput:{"9.5.0":"request-view-access-recipient-input"},submitButton:{"9.5.0":"request-view-access-submit-button"}},PublicDashboardConfirmAccess:{submitButton:{"10.2.0":"data-testid confirm-access-submit-button"}},Explore:{url:{[u]:"/explore"},General:{container:{[u]:"data-testid Explore"},graph:{[u]:"Explore Graph"},table:{[u]:"Explore Table"},scrollView:{"9.0.0":"data-testid explorer scroll view"},addFromQueryLibrary:{"11.5.0":"data-testid explore add from query library button"}},QueryHistory:{container:{"11.1.0":"data-testid QueryHistory"}}},SoloPanel:{url:{[u]:e=>`/d-solo/${e}`}},PluginsList:{page:{[u]:"Plugins list page"},list:{[u]:"Plugins list"},listItem:{[u]:"Plugins list item"},signatureErrorNotice:{"10.3.0":"data-testid Unsigned plugins notice",[u]:"Unsigned plugins notice"}},PluginPage:{page:{[u]:"Plugin page"},signatureInfo:{"10.3.0":"data-testid Plugin signature info",[u]:"Plugin signature info"},disabledInfo:{"10.3.0":"data-testid Plugin disabled info",[u]:"Plugin disabled info"}},PlaylistForm:{name:{[u]:"Playlist name"},interval:{[u]:"Playlist interval"},itemDelete:{"10.2.0":"data-testid playlist-form-delete-item"}},BrowseDashboards:{table:{body:{"10.2.0":"data-testid browse-dashboards-table"},row:{"10.2.0":e=>`data-testid browse dashboards row ${e}`},checkbox:{"10.0.0":e=>`data-testid ${e} checkbox`}},NewFolderForm:{form:{"10.2.0":"data-testid new folder form"},nameInput:{"10.2.0":"data-testid new-folder-name-input"},createButton:{"10.2.0":"data-testid new-folder-create-button"}}},SearchDashboards:{table:{"10.2.0":"Search results table"}},Search:{url:{"9.3.0":"/?search=openn"},FolderView:{url:{"9.3.0":"/?search=open&layout=folders"}}},PublicDashboards:{ListItem:{linkButton:{"9.3.0":"public-dashboard-link-button"},configButton:{"9.3.0":"public-dashboard-configuration-button"},trashcanButton:{"9.3.0":"public-dashboard-remove-button"},pauseSwitch:{"10.1.0":"data-testid public dashboard pause switch"}}},UserListPage:{tabs:{allUsers:{"10.0.0":"data-testid all-users-tab"},orgUsers:{"10.0.0":"data-testid org-users-tab"},anonUserDevices:{"10.2.3":"data-testid anon-user-devices-tab"},publicDashboardsUsers:{"10.0.0":"data-testid public-dashboards-users-tab"},users:{"10.0.0":"data-testid users-tab"}},org:{url:{"10.2.0":"/admin/users","9.5.0":"/org/users"}},admin:{url:{"9.5.0":"/admin/users"}},publicDashboards:{container:{"11.1.0":"data-testid public-dashboards-users-list"}},UserListAdminPage:{container:{"10.0.0":"data-testid user-list-admin-page"}},UsersListPage:{container:{"10.0.0":"data-testid users-list-page"}},UserAnonListPage:{container:{"10.4.0":"data-testid user-anon-list-page"}},UsersListPublicDashboardsPage:{container:{"10.0.0":"data-testid users-list-public-dashboards-page"},DashboardsListModal:{listItem:{"10.0.0":e=>`data-testid dashboards-list-item-${e}`}}}},ProfilePage:{url:{"10.2.0":"/profile"}},Plugin:{url:{[u]:e=>`/plugins/${e}`}},MigrateToCloud:{url:{"11.2.0":"/admin/migrate-to-cloud"}}}),components:a(c)}},47190(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buffer=void 0;var r=n(35416),a=n(16129),i=n(1266),o=n(52296);t.buffer=function(e){return r.operate(function(t,n){var r=[];return t.subscribe(i.createOperatorSubscriber(n,function(e){return r.push(e)},function(){n.next(r),n.complete()})),o.innerFrom(e).subscribe(i.createOperatorSubscriber(n,function(){var e=r;r=[],n.next(e)},a.noop)),function(){r=null}})}},47209(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.empty=t.EMPTY=void 0;var r=n(92023);t.EMPTY=new r.Observable(function(e){return e.complete()}),t.empty=function(e){return e?function(e){return new r.Observable(function(t){return e.schedule(function(){return t.complete()})})}(e):t.EMPTY}},47222(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resizeHandleType=t.resizeHandleAxesType=t.default=void 0;var r=i(n(62688)),a=i(n(85959));function i(e){return e&&e.__esModule?e:{default:e}}var o=r.default.arrayOf(r.default.oneOf(["s","w","e","n","sw","nw","se","ne"]));t.resizeHandleAxesType=o;var s=r.default.oneOfType([r.default.node,r.default.func]);t.resizeHandleType=s;var l={className:r.default.string,style:r.default.object,width:r.default.number,autoSize:r.default.bool,cols:r.default.number,draggableCancel:r.default.string,draggableHandle:r.default.string,verticalCompact:function(e){e.verticalCompact,0},compactType:r.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;void 0!==t&&n(20414).validateLayout(t,"layout")},margin:r.default.arrayOf(r.default.number),containerPadding:r.default.arrayOf(r.default.number),rowHeight:r.default.number,maxRows:r.default.number,isBounded:r.default.bool,isDraggable:r.default.bool,isResizable:r.default.bool,allowOverlap:r.default.bool,preventCollision:r.default.bool,useCSSTransforms:r.default.bool,transformScale:r.default.number,isDroppable:r.default.bool,resizeHandles:o,resizeHandle:s,onLayoutChange:r.default.func,onDragStart:r.default.func,onDrag:r.default.func,onDragStop:r.default.func,onResizeStart:r.default.func,onResize:r.default.func,onResizeStop:r.default.func,onDrop:r.default.func,droppingItem:r.default.shape({i:r.default.string.isRequired,w:r.default.number.isRequired,h:r.default.number.isRequired}),children:function(e,t){var n=e[t],r={};a.default.Children.forEach(n,function(e){if(null!=(null==e?void 0:e.key)){if(r[e.key])throw new Error('Duplicate child key "'+e.key+'" found! This will cause problems in ReactGridLayout.');r[e.key]=!0}})},innerRef:r.default.any};t.default=l},47350(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=a,t.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},t.default=void 0,t.getPrefix=r;const n=["Moz","Webkit","O","ms"];function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const t=window.document?.documentElement?.style;if(!t)return"";if(e in t)return"";for(let r=0;r=10?e:e+12},week:{dow:0,doy:6}})}(n(42689))},47770(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeWhile=void 0;var r=n(35416),a=n(1266);t.takeWhile=function(e,t){return void 0===t&&(t=!1),r.operate(function(n,r){var i=0;n.subscribe(a.createOperatorSubscriber(r,function(n){var a=e(n,i++);(a||t)&&r.next(n),!a&&r.complete()}))})}},47786(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(68435)),a=i(n(6105));function i(e){return e&&e.__esModule?e:{default:e}}var o=(0,r.default)("v3",48,a.default);t.default=o},47840(e,t,n){"use strict";const r=n(37944),a=n(68395);e.exports=(e,t,n)=>{let i=null,o=null,s=null;try{s=new a(t,n)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(i&&-1!==o.compare(e)||(i=e,o=new r(i,n)))}),i}},47953(e,t){"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Редактировать фильтр с ключом {{keyLabel}}","managed-filter":"фильтр, управляемый {{origin}}","non-applicable":"","remove-filter-with-key":"Удалить фильтр с ключом {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Удалить значение фильтра ({{itemLabel}})","use-custom-value":"Использовать пользовательское значение: {{itemLabel}}"},"fallback-page":{content:"Если вы попали сюда по ссылке, возможна ошибка в приложении.",subTitle:"URL-адрес не соответствует ни одной странице",title:"Не найдена"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Свернуть сцену","expand-button-label":"Развернуть сцену","remove-button-label":"Удалить сцену"},"scene-debugger":{"object-details":"Сведения об объекте","scene-graph":"Граф сцены","title-scene-debugger":"Отладчик сцен"},"scene-grid-row":{"collapse-row":"Свернуть строку","expand-row":"Развернуть строку"},"scene-refresh-picker":{"text-cancel":"Отмена","text-refresh":"Обновить","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Сравнение","button-tooltip":"Включить сравнение временных рамок"},splitter:{"aria-label-pane-resize-widget":"Виджет изменения размера панелей"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Заголовок"}},"viz-panel-explore-button":{explore:"Обзор"},"viz-panel-renderer":{"loading-plugin-panel":"Загрузка панели плагинов...","panel-plugin-has-no-panel-component":"Плагин не имеет свойства панели"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Отображение слишком большого количества рядов на одной панели может повлиять на производительность и затруднить чтение данных.","warning-message":"Макс. количество отображаемых рядов: {{seriesLimit}}"}},utils:{"controls-label":{"tooltip-remove":"Удалить"},"loading-indicator":{"content-cancel-query":"Отмена запроса"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Оператор редактирования фильтра"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Добавить фильтр","title-add-filter":"Добавить фильтр"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Удалить фильтр","key-select":{"placeholder-select-label":"Выбрать метку"},"label-select-label":"Выбрать метку","title-remove-filter":"Удалить фильтр","value-select":{"placeholder-select-value":"Выбрать значение"}},"data-source-variable":{label:{default:"по умолчанию"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"очистить",tooltip:"Применяется по умолчанию на этом дашборде. При редактировании переносится на другие дашборды.","tooltip-restore-groupby-set-by-this-dashboard":"Восстановить критерий группирования, заданный этим дашбордом."},"format-registry":{formats:{description:{"commaseparated-values":"Значения, разделенные запятыми","double-quoted-values":"Значения в двойных кавычках","format-date-in-different-ways":"Форматируйте дату разными способами","format-multivalued-variables-using-syntax-example":"Форматируйте многозначные переменные с использованием синтаксиса glob, например {value1,value2}","html-escaping-of-values":"HTML-экранирование значений","join-values-with-a-comma":"","json-stringify-value":"Значение преобразования JSON в строку","keep-value-as-is":"Сохраните значение как есть","multiple-values-are-formatted-like-variablevalue":"Несколько значений форматируются как «переменная=значение»","single-quoted-values":"Значения в одинарных кавычках","useful-escaping-values-taking-syntax-characters":"Функция удобна при URL-экранировании значений с учетом символов синтаксиса URI","useful-for-url-escaping-values":"Функция удобна при URL-экранировании значений","values-are-separated-by-character":"Значения разделяются символом |"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Группировать по селектору","placeholder-group-by-label":"Группировать по меткам"},"interval-variable":{"placeholder-select-value":"Выбрать значение"},"loading-options-placeholder":{"loading-options":"Загрузка параметров..."},"multi-value-apply-button":{apply:"Применить"},"no-options-placeholder":{"no-options-found":"Параметры не найдены"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Ошибка при получении меток. Нажмите, чтобы повторить попытку"},"test-object-with-variable-dependency":{title:{hello:"Привет"}},"test-variable":{text:{text:"Текст"}},"variable-value-input":{"placeholder-enter-value":"Ввести значение"},"variable-value-select":{"placeholder-select-value":"Выбрать значение"}}}}},48294(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(42689))},48478(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"хвилина":"хвилину":"h"===r?n?"година":"годину":e+" "+t({ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[r],+e)}function r(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative}function a(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:r,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:a("[Сьогодні "),nextDay:a("[Завтра "),lastDay:a("[Вчора "),nextWeek:a("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return a("[Минулої] dddd [").call(this);case 1:case 2:case 4:return a("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(42689))},48743(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.of=void 0;var r=n(11824),a=n(45294);t.of=function(){for(var e=[],t=0;t12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n(42689))},49148(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentOutOfRangeError=void 0;var r=n(56871);t.ArgumentOutOfRangeError=r.createErrorClass(function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},49338(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(42689))},49568(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=(r=n(35696))&&r.__esModule?r:{default:r},i=n(69676);let o,s,l=0,u=0;var c=function(e,t,n){let r=t&&n||0;const c=t||new Array(16);let d=(e=e||{}).node||o,p=void 0!==e.clockseq?e.clockseq:s;if(null==d||null==p){const t=e.random||(e.rng||a.default)();null==d&&(d=o=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==p&&(p=s=16383&(t[6]<<8|t[7]))}let f=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:u+1;const m=f-l+(h-u)/1e4;if(m<0&&void 0===e.clockseq&&(p=p+1&16383),(m<0||f>l)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=f,u=h,s=p,f+=122192928e5;const g=(1e4*(268435455&f)+h)%4294967296;c[r++]=g>>>24&255,c[r++]=g>>>16&255,c[r++]=g>>>8&255,c[r++]=255&g;const v=f/4294967296*1e4&268435455;c[r++]=v>>>8&255,c[r++]=255&v,c[r++]=v>>>24&15|16,c[r++]=v>>>16&255,c[r++]=p>>>8|128,c[r++]=255&p;for(let e=0;e<6;++e)c[r+e]=d[e];return t||(0,i.unsafeStringify)(c)};t.default=c},49617(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],a=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:r,longMonthsParse:r,shortMonthsParse:a,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(42689))},49893(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var a=void 0!==n.layer;a&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,a&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},50230(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(42689))},50544(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findOrGenerateResponsiveLayout=function(e,t,n,i,o,s){if(e[n])return(0,r.cloneLayout)(e[n]);for(var l=e[i],u=a(t),c=u.slice(u.indexOf(n)),d=0,p=c.length;de[s]&&(r=s)}return r},t.getColsFromBreakpoint=function(e,t){if(!t[e])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]},t.sortBreakpoints=a;var r=n(20414);function a(e){return Object.keys(e).sort(function(t,n){return e[t]-e[n]})}},50765(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n(42689))},50936(e,t,n){"use strict";e.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},e.exports.Resizable=n(11794).default,e.exports.ResizableBox=n(96609).default},50971(e,t){"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"使用键 {{keyLabel}} 编辑筛选器","managed-filter":"{{origin}} 托管筛选器","non-applicable":"","remove-filter-with-key":"使用键 {{keyLabel}} 移除筛选器"},"adhoc-filters-combobox":{"remove-filter-value":"移除筛选器值 - {{itemLabel}}","use-custom-value":"使用自定义值:{{itemLabel}}"},"fallback-page":{content:"如果您使用链接找到了此处的路径,则此应用程序中可能存在错误。",subTitle:"URL 与任何页面都不匹配",title:"未找到"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"折叠场景","expand-button-label":"展开场景","remove-button-label":"移除场景"},"scene-debugger":{"object-details":"对象详情","scene-graph":"场景图","title-scene-debugger":"场景调试器"},"scene-grid-row":{"collapse-row":"折叠行","expand-row":"展开行"},"scene-refresh-picker":{"text-cancel":"取消","text-refresh":"刷新","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"比较","button-tooltip":"启用时间范围比较"},splitter:{"aria-label-pane-resize-widget":"窗格大小调整小部件"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"标题"}},"viz-panel-explore-button":{explore:"探索"},"viz-panel-renderer":{"loading-plugin-panel":"正在加载插件面板…","panel-plugin-has-no-panel-component":"面板插件没有面板组件"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"在单个面板中呈现太多系列可能会影响性能,并使数据难以阅读。","warning-message":"仅显示 {{seriesLimit}} 系列"}},utils:{"controls-label":{"tooltip-remove":"移除"},"loading-indicator":{"content-cancel-query":"取消查询"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"编辑筛选器运算符"},"ad-hoc-filter-builder":{"aria-label-add-filter":"添加筛选条件","title-add-filter":"添加筛选条件"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"移除筛选条件","key-select":{"placeholder-select-label":"选择标签"},"label-select-label":"选择标签","title-remove-filter":"移除筛选条件","value-select":{"placeholder-select-value":"选择值"}},"data-source-variable":{label:{default:"默认"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"清除",tooltip:"在此数据面板中默认应用。如果编辑,它将转移到其他数据面板。","tooltip-restore-groupby-set-by-this-dashboard":"还原此数据面板设置的分组。"},"format-registry":{formats:{description:{"commaseparated-values":"逗号分隔值","double-quoted-values":"双引号值","format-date-in-different-ways":"以不同方式格式化日期","format-multivalued-variables-using-syntax-example":"使用 glob 语法格式化多值变量,例如 {value1,value2}","html-escaping-of-values":"值的 HTML 转义","join-values-with-a-comma":"","json-stringify-value":"JSON 字符串化值","keep-value-as-is":"保持值不变","multiple-values-are-formatted-like-variablevalue":"多个值的格式为 variable=value","single-quoted-values":"单引号值","useful-escaping-values-taking-syntax-characters":"用于 URL 转义值,采用 URI 语法字符","useful-for-url-escaping-values":"适用于 URL 转义值","values-are-separated-by-character":"值由 | 字符分隔"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"按选择器分组","placeholder-group-by-label":"按标签分组"},"interval-variable":{"placeholder-select-value":"选择值"},"loading-options-placeholder":{"loading-options":"正在加载选项…"},"multi-value-apply-button":{apply:"应用"},"no-options-placeholder":{"no-options-found":"未找到选项"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"获取标签时发生错误。单击重试"},"test-object-with-variable-dependency":{title:{hello:"您好"}},"test-variable":{text:{text:"文本"}},"variable-value-input":{"placeholder-enter-value":"输入数值"},"variable-value-select":{"placeholder-select-value":"选择值"}}}}},50973(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},51326(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(42689))},51507(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectableObservable=void 0;var i=n(92023),o=n(27491),s=n(85884),l=n(1266),u=n(35416),c=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,u.hasLift(t)&&(r.lift=t.lift),r}return a(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new o.Subscription;var n=this.getSubject();t.add(this.source.subscribe(l.createOperatorSubscriber(n,void 0,function(){e._teardown(),n.complete()},function(t){e._teardown(),n.error(t)},function(){return e._teardown()}))),t.closed&&(this._connection=null,t=o.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return s.refCount()(this)},t}(i.Observable);t.ConnectableObservable=c},51689(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchScan=void 0;var r=n(6300),a=n(35416);t.switchScan=function(e,t){return a.operate(function(n,a){var i=t;return r.switchMap(function(t,n){return e(i,t,n)},function(e,t){return i=t,t})(n).subscribe(a),function(){i=null}})}},51944(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var a=t.words[r];return 1===r.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(42689))},52e3(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.fromReadableStreamLike=t.fromAsyncIterable=t.fromIterable=t.fromPromise=t.fromArrayLike=t.fromInteropObservable=t.innerFrom=void 0;var s=n(65547),l=n(60452),u=n(92023),c=n(31801),d=n(69451),p=n(63533),f=n(26847),h=n(43026),m=n(44717),g=n(34696),v=n(84512);function y(e){return new u.Observable(function(t){var n=e[v.observable]();if(m.isFunction(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function b(e){return new u.Observable(function(t){for(var n=0;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},r=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};t.default=i},55109(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceEqual=void 0;var r=n(35416),a=n(1266),i=n(52296);t.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),r.operate(function(n,r){var o={buffer:[],complete:!1},s={buffer:[],complete:!1},l=function(e){r.next(e),r.complete()},u=function(e,n){var i=a.createOperatorSubscriber(r,function(r){var a=n.buffer,i=n.complete;0===a.length?i?l(!1):e.buffer.push(r):!t(r,a.shift())&&l(!1)},function(){e.complete=!0;var t=n.complete,r=n.buffer;t&&l(0===r.length),null==i||i.unsubscribe()});return i};n.subscribe(u(o,s)),i.innerFrom(e).subscribe(u(s,o))})}},55366(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncSubject=void 0;var i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return a(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t._hasValue,a=t._value,i=t.thrownError,o=t.isStopped,s=t._isComplete;n?e.error(i):(o||s)&&(r&&e.next(a),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,n=t._hasValue,r=t._value;t._isComplete||(this._isComplete=!0,n&&e.prototype.next.call(this,r),e.prototype.complete.call(this))},t}(n(20020).Subject);t.AsyncSubject=i},55377(e,t,n){"use strict";const r={barShape:"flat",barWidthFactor:.5,effects:{},endpointMarker:"point",minVizHeight:75,minVizWidth:75,segmentCount:1,segmentSpacing:.3,shape:"gauge",showThresholdLabels:!1,showThresholdMarkers:!0,sizing:n(181).BarGaugeSizing.Auto,sparkline:!0,textMode:"auto"};t.defaultGaugePanelEffects={barGlow:!1,centerGlow:!1,gradient:!0},t.defaultOptions=r,t.pluginVersion="12.4.1"},55380(e,t,n){"use strict";const r=n(37944);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},55463(e,t,n){"use strict";var r=n(33776).t;t.v=function(e){if(e.client){0;var t=e.kebab;n.prototype.diff=function(e){var n,r=this.decl,a=this.rule.style;for(n in r)void 0===e[n]&&a.removeProperty(n);for(n in e)e[n]!==r[n]&&a.setProperty(t(n),e[n]);this.decl=e},n.prototype.del=function(){r(this.rule)},a.prototype.diff=function(e){var t=this.tree;for(var r in t)if(void 0===e[r]){var a=t[r];for(var i in a)a[i].del()}for(var r in e)if(void 0===t[r])for(var i in e[r]){(l=new n(i,r)).diff(e[r][i]),e[r][i]=l}else{var o=t[r],s=e[r];for(var i in o)s[i]||o[i].del();for(var i in s){var l;(l=o[i])?(l.diff(s[i]),s[i]=l):((l=new n(i,r)).diff(s[i]),s[i]=l)}}this.tree=e},e.VRule=n,e.VSheet=a}function n(t,n){this.rule=e.createRule(t,n),this.decl={}}function a(){this.tree={}}}},55865(e,t){"use strict";var n=(e=>(e.Code="code",e.HTML="html",e.Markdown="markdown",e))(n||{}),r=(e=>(e.Go="go",e.Html="html",e.Json="json",e.Markdown="markdown",e.Plaintext="plaintext",e.Sql="sql",e.Typescript="typescript",e.Xml="xml",e.Yaml="yaml",e))(r||{});const a={content:"# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)",mode:"markdown"};t.CodeLanguage=r,t.TextMode=n,t.defaultCodeLanguage="plaintext",t.defaultCodeOptions={language:"plaintext",showLineNumbers:!1,showMiniMap:!1},t.defaultOptions=a,t.pluginVersion="12.4.1"},55887(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(42689))},56118(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function a(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var r=e+" ";switch(n){case"ss":return r+(a(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(a(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(a(e)?"godziny":"godzin");case"ww":return r+(a(e)?"tygodnie":"tygodni");case"MM":return r+(a(e)?"miesiące":"miesięcy");case"yy":return r+(a(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:i,M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(42689))},56235(e){"use strict";const t=e=>"string"==typeof e,n=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},r=e=>null==e?"":""+e,a=/###/g,i=e=>e&&e.indexOf("###")>-1?e.replace(a,"."):e,o=e=>!e||t(e),s=(e,n,r)=>{const a=t(n)?n.split("."):n;let s=0;for(;s{const{obj:r,k:a}=s(e,t,Object);if(void 0!==r||1===t.length)return void(r[a]=n);let i=t[t.length-1],o=t.slice(0,t.length-1),l=s(e,o,Object);for(;void 0===l.obj&&o.length;)i=`${o[o.length-1]}.${i}`,o=o.slice(0,o.length-1),l=s(e,o,Object),l?.obj&&void 0!==l.obj[`${l.k}.${i}`]&&(l.obj=void 0);l.obj[`${l.k}.${i}`]=n},u=(e,t)=>{const{obj:n,k:r}=s(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},c=(e,n,r)=>{for(const a in n)"__proto__"!==a&&"constructor"!==a&&(a in e?t(e[a])||e[a]instanceof String||t(n[a])||n[a]instanceof String?r&&(e[a]=n[a]):c(e[a],n[a],r):e[a]=n[a]);return e},d=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var p={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const f=e=>t(e)?e.replace(/[&<>"'\/]/g,e=>p[e]):e;const h=[" ",",","?","!",";"],m=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),g=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const r=t.split(n);let a=e;for(let e=0;e-1&&oe?.replace(/_/g,"-"),y={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class b{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||y,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,a){return a&&!this.debug?null:(t(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new b(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new b(this.logger,e)}}var _=new b;class w{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r{for(let a=0;a-1&&this.options.ns.splice(t,1)}getResource(e,n,r,a={}){const i=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,o=void 0!==a.ignoreJSONStructure?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,n],r&&(Array.isArray(r)?s.push(...r):t(r)&&i?s.push(...r.split(i)):s.push(r)));const l=u(this.data,s);return!l&&!n&&!r&&e.indexOf(".")>-1&&(e=s[0],n=s[1],r=s.slice(2).join(".")),!l&&o&&t(r)?g(this.data?.[e]?.[n],r,i):l}addResource(e,t,n,r,a={silent:!1}){const i=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator;let o=[e,t];n&&(o=o.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(o=e.split("."),r=t,t=o[1]),this.addNamespaces(t),l(this.data,o,r),a.silent||this.emit("added",e,t,n,r)}addResources(e,n,r,a={silent:!1}){for(const a in r)(t(r[a])||Array.isArray(r[a]))&&this.addResource(e,n,a,r[a],{silent:!0});a.silent||this.emit("added",e,n,r)}addResourceBundle(e,t,n,r,a,i={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=u(this.data,o)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?c(s,n,a):s={...s,...n},l(this.data,o,s),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var S={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,a)??t}),t}};const k=Symbol("i18next/PATH_KEY");function L(e,t){const{[k]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,a)=>(n?.revoke?.(),a===k?e:(e.push(a),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}()),r=t?.keySeparator??".",a=t?.nsSeparator??":";if(n.length>1&&a){const e=t?.ns,i=Array.isArray(e)?e:null;if(i&&i.length>1&&i.slice(1).includes(n[0]))return`${n[0]}${a}${n.slice(1).join(r)}`}return n.join(r)}const x={},D=e=>!t(e)&&"boolean"!=typeof e&&"number"!=typeof e;class T extends w{constructor(e,t={}){var n,r;super(),n=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{n[e]&&(r[e]=n[e])}),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=_.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const n={...t};if(null==e)return!1;const r=this.resolve(e,n);if(void 0===r?.res)return!1;const a=D(r.res);return!1!==n.returnObjects||!a}extractFromKey(e,n){let r=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");const a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=r&&e.indexOf(r)>-1,s=!(this.options.userDefinedKeySeparator||n.keySeparator||this.options.userDefinedNsSeparator||n.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=h.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const a=m.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!a.test(e);if(!i){const t=e.indexOf(n);t>0&&!a.test(e.substring(0,t))&&(i=!0)}return i})(e,r,a));if(o&&!s){const n=e.match(this.interpolator.nestingRegexp);if(n&&n.length>0)return{key:e,namespaces:t(i)?[i]:i};const o=e.split(r);(r!==a||r===a&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(a)}return{key:e,namespaces:t(i)?[i]:i}}translate(e,n,r){let a="object"==typeof n?{...n}:n;if("object"!=typeof a&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof a&&(a={...a}),a||(a={}),null==e)return"";"function"==typeof e&&(e=L(e,{...this.options,...a})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?L(e,{...this.options,...a}):String(e));const i=void 0!==a.returnDetails?a.returnDetails:this.options.returnDetails,o=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(e[e.length-1],a),u=l[l.length-1];let c=void 0!==a.nsSeparator?a.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const d=a.lng||this.language,p=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===d?.toLowerCase())return p?i?{res:`${u}${c}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(a)}:`${u}${c}${s}`:i?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(a)}:s;const f=this.resolve(e,a);let h=f?.res;const m=f?.usedKey||s,g=f?.exactUsedKey||s,v=void 0!==a.joinArrays?a.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=void 0!==a.count&&!t(a.count),_=T.hasDefaultValue(a),w=b?this.pluralResolver.getSuffix(d,a.count,a):"",M=a.ordinal&&b?this.pluralResolver.getSuffix(d,a.count,{ordinal:!1}):"",S=b&&!a.ordinal&&0===a.count,k=S&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${w}`]||a[`defaultValue${M}`]||a.defaultValue;let x=h;y&&!h&&_&&(x=k);const O=D(x),E=Object.prototype.toString.apply(x);if(!(y&&x&&O&&["[object Number]","[object Function]","[object RegExp]"].indexOf(E)<0)||t(v)&&Array.isArray(x))if(y&&t(v)&&Array.isArray(h))h=h.join(v),h&&(h=this.extendTranslation(h,e,a,r));else{let t=!1,n=!1;!this.isValidLookup(h)&&_&&(t=!0,h=k),this.isValidLookup(h)||(n=!0,h=s);const i=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:h,l=_&&k!==h&&this.options.updateMissing;if(n||t||l){if(this.logger.log(l?"updateKey":"missingKey",d,u,s,l?k:h),o){const e=this.resolve(s,{...a,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n{const r=_&&n!==h?n:i;this.options.missingKeyHandler?this.options.missingKeyHandler(e,u,t,r,l,a):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,u,t,r,l,a),this.emit("missingKey",e,u,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,a);S&&a[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,a[`defaultValue${t}`]||k)})}):n(e,s,k))}h=this.extendTranslation(h,e,a,f,r),n&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${u}${c}${s}`),(n||t)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${c}${s}`:s,t?h:void 0,a))}else{if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,x,{...a,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(f.res=e,f.usedParams=this.getUsedParamsDetails(a),f):e}if(o){const e=Array.isArray(x),t=e?[]:{},n=e?g:m;for(const e in x)if(Object.prototype.hasOwnProperty.call(x,e)){const r=`${n}${o}${e}`;t[e]=_&&!h?this.translate(r,{...a,defaultValue:D(k)?k[e]:void 0,joinArrays:!1,ns:l}):this.translate(r,{...a,joinArrays:!1,ns:l}),t[e]===r&&(t[e]=x[e])}h=t}}return i?(f.res=h,f.usedParams=this.getUsedParamsDetails(a),f):h}extendTranslation(e,n,r,a,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const o=t(e)&&(void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(o){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=r.replace&&!t(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,r.lng||this.language||a.usedLng,r),o){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(...e)=>i?.[0]!==e[0]||r.context?this.translate(...e,n):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${n[0]}`),null),r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,s=t(o)?[o]:o;return null!=e&&s?.length&&!1!==r.applyPostProcessor&&(e=S.handle(s,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,n={}){let r,a,i,o,s;return t(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?L(e,{...this.options,...n}):e)),e.forEach(e=>{if(this.isValidLookup(r))return;const l=this.extractFromKey(e,n),u=l.key;a=u;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const d=void 0!==n.count&&!t(n.count),p=d&&!n.ordinal&&0===n.count,f=void 0!==n.context&&(t(n.context)||"number"==typeof n.context)&&""!==n.context,h=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);c.forEach(e=>{this.isValidLookup(r)||(s=e,x[`${h[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(s)||(x[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${a}" for languages "${h.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(t=>{if(this.isValidLookup(r))return;o=t;const a=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(a,u,t,e,n);else{let e;d&&(e=this.pluralResolver.getSuffix(t,n.count,n));const r=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(n.ordinal&&0===e.indexOf(i)&&a.push(u+e.replace(i,this.options.pluralSeparator)),a.push(u+e),p&&a.push(u+r)),f){const t=`${u}${this.options.contextSeparator||"_"}${n.context}`;a.push(t),d&&(n.ordinal&&0===e.indexOf(i)&&a.push(t+e.replace(i,this.options.pluralSeparator)),a.push(t+e),p&&a.push(t+r))}}let s;for(;s=a.pop();)this.isValidLookup(r)||(i=s,r=this.getResource(t,e,s,n))}))})}),{res:r,usedKey:a,exactUsedKey:i,usedLng:o,usedNS:s}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!t(e.replace);let a=r?e.replace:e;if(r&&void 0!==e.count&&(a.count=e.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const e of n)delete a[e]}return a}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}class O{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_.create("languageUtils")}getScriptPartFromCode(e){if(!(e=v(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=v(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(t(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,n){if(!e)return[];if("function"==typeof e&&(e=e(n)),t(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes((!1===n?[]:n)||this.options.fallbackLng||[],e),a=[],i=e=>{e&&(this.isSupportedCode(e)?a.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return t(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):t(e)&&i(this.formatLanguageCode(e)),r.forEach(e=>{a.indexOf(e)<0&&i(this.formatLanguageCode(e))}),a}}const E={zero:0,one:1,two:2,few:3,many:4,other:5},P={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class C{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=_.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=v("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:n,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let i;try{i=new Intl.PluralRules(n,{type:r})}catch(n){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),P;if(!e.match(/-|_/))return P;const r=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(r,t)}return this.pluralRulesCache[a]=i,i}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>E[e]-E[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){const r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const Y=(e,n,r,a=".",i=!0)=>{let o=((e,t,n)=>{const r=u(e,n);return void 0!==r?r:u(t,n)})(e,n,r);return!o&&i&&t(r)&&(o=g(e,r,a),void 0===o&&(o=g(n,r,a))),o},A=e=>e.replace(/\$/g,"$$$$");class R{constructor(e={}){this.logger=_.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:a,prefixEscaped:i,suffix:o,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:p,nestingPrefixEscaped:h,nestingSuffix:m,nestingSuffixEscaped:g,nestingOptionsSeparator:v,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:f,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=a?d(a):i||"{{",this.suffix=o?d(o):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=p?d(p):h||d("$t("),this.nestingSuffix=m?d(m):g||d(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,n,a,i){let o,s,l;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){const t=Y(n,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(t,void 0,a,{...i,...n,interpolationkey:e}):t}const t=e.split(this.formatSeparator),r=t.shift().trim(),o=t.join(this.formatSeparator).trim();return this.format(Y(n,u,r,this.options.keySeparator,this.options.ignoreJSONStructure),o,a,{...i,...n,interpolationkey:r})};this.resetRegExp();const d=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,p=void 0!==i?.interpolation?.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>A(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?A(this.escape(e)):A(e)}].forEach(n=>{for(l=0;o=n.regex.exec(e);){const a=o[1].trim();if(s=c(a),void 0===s)if("function"==typeof d){const n=d(e,o,i);s=t(n)?n:""}else if(i&&Object.prototype.hasOwnProperty.call(i,a))s="";else{if(p){s=o[0];continue}this.logger.warn(`missed to pass in variable ${a} for interpolating ${e}`),s=""}else t(s)||this.useRawValueToEscape||(s=r(s));const u=n.safeValue(s);if(e=e.replace(o[0],u),p?(n.regex.lastIndex+=s.length,n.regex.lastIndex-=o[0].length):n.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,n,a={}){let i,o,s;const l=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${d(n)}[ ]*{`));let a=`{${r[1]}`;e=r[0],a=this.interpolate(a,s);const i=a.match(/'/g),o=a.match(/"/g);((i?.length??0)%2==0&&!o||(o?.length??0)%2!=0)&&(a=a.replace(/'/g,'"'));try{s=JSON.parse(a),t&&(s={...t,...s})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${a}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,e};for(;i=this.nestingRegexp.exec(e);){let u=[];s={...a},s=s.replace&&!t(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;const c=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(-1!==c&&(u=i[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),i[1]=i[1].slice(0,c)),o=n(l.call(this,i[1].trim(),s),s),o&&i[0]===e&&!t(o))return o;t(o)||(o=r(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),o=""),u.length&&(o=u.reduce((e,t)=>this.format(e,t,a.lng,{...a,interpolationkey:i[1].trim()}),o.trim())),e=e.replace(i[0],o),this.regexp.lastIndex=0}return e}}const j=e=>{const t={};return(n,r,a)=>{let i=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(i={...i,[a.interpolationkey]:void 0});const o=r+JSON.stringify(i);let s=t[o];return s||(s=e(v(r),a),t[o]=s),s(n)}},I=e=>(t,n,r)=>e(v(n),r)(t);class F{constructor(e={}){this.logger=_.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?j:I;this.formats={number:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=j(t)}format(e,t,n,r={}){const a=t.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(e=>e.indexOf(")")>-1)){const e=a.findIndex(e=>e.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,e)].join(this.formatSeparator)}return a.reduce((e,t)=>{const{formatName:a,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);"currency"===t&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):"relativetime"===t&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),a=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=a),"false"===a&&(n[i]=!1),"true"===a&&(n[i]=!0),isNaN(a)||(n[i]=parseInt(a,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[a]){let t=e;try{const o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[a](e,s,{...i,...r,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${a}`),e},e)}}class H extends w{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=_.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){const a={},i={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===i[o]&&(i[o]=!0):(this.state[o]=1,r=!1,void 0===i[o]&&(i[o]=!0),void 0===a[o]&&(a[o]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),a=r[0],i=r[1];t&&this.emit("failedLoading",a,i,t),!t&&n&&this.store.addResourceBundle(a,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const o={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:a}=s(e,t,Object);r[a]=r[a]||[],r[a].push(n)})(n.loaded,[a],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===o[e][t]&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,a=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:a,callback:i});this.readingCalls++;const o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}o&&s&&r{this.read.call(this,e,t,n,r+1,2*a,i)},a):i(o,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,o);try{const n=s(e,t);n&&"function"==typeof n.then?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}}prepareLoading(e,n,r={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();t(e)&&(e=this.languageUtils.toResolveHierarchy(e)),t(n)&&(n=[n]);const i=this.queueLoad(e,n,r,a);if(!i.toLoad.length)return i.pending.length||a(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){const n=e.split("|"),r=n[0],a=n[1];this.read(r,a,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${a} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${a} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,a,i={},o=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=n&&""!==n){if(this.backend?.create){const s={...i,isUpdate:a},l=this.backend.create.bind(this.backend);if(l.length<6)try{let a;a=5===l.length?l(e,t,n,r,s):l(e,t,n,r),a&&"function"==typeof a.then?a.then(e=>o(null,e)).catch(o):o(null,a)}catch(e){o(e)}else l(e,t,n,r,o,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const N=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let n={};if("object"==typeof e[1]&&(n=e[1]),t(e[1])&&(n.defaultValue=e[1]),t(e[2])&&(n.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const t=e[3]||e[2];Object.keys(t).forEach(e=>{n[e]=t[e]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),z=e=>(t(e.ns)&&(e.ns=[e.ns]),t(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),t(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),V=()=>{},W="__i18next_supportNoticeShown";class $ extends w{constructor(e={},t){var n;if(super(),this.options=z(e),this.services={},this.logger=_,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},r){this.isInitializing=!0,"function"==typeof e&&(r=e,e={}),null==e.defaultNS&&e.ns&&(t(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const a=N();var i;this.options={...a,...this.options,...z(e)},this.options.interpolation={...a.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=a.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||(i=this,i?.modules?.backend?.name?.indexOf("Locize")>0||i?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||i?.options?.backend?.backends&&i.options.backend.backends.some(e=>e?.name?.indexOf("Locize")>0||e?.constructor?.name?.indexOf("Locize")>0)||i?.options?.backend?.projectId||i?.options?.backend?.backendOptions&&i.options.backend.backendOptions.some(e=>e?.projectId))||"undefined"!=typeof globalThis&&globalThis[W]||("undefined"!=typeof console&&console.info,"undefined"!=typeof globalThis&&(globalThis[W]=!0));const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?_.init(o(this.modules.logger),this.options):_.init(null,this.options),e=this.modules.formatter?this.modules.formatter:F;const t=new O(this.options);this.store=new M(this.options.resources,this.options);const n=this.services;n.logger=_,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new C(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==a.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==a.interpolation.format||(n.formatter=o(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new R(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new H(o(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=o(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=o(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new T(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,r||(r=V),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const s=n(),l=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(t),r(e,t)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),s}loadResources(e,n=V){let r=n;const a=t(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===a?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();const e=[],t=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(a)t(a);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e))}this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){const a=n();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=V),this.services.backendConnector.reload(e,t,e=>{a.resolve(),r(e)}),a}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&S.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,r){this.isLanguageChangingTo=e;const a=n();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(t,n)=>{n?this.isLanguageChangingTo===e&&(i(n),this.translator.changeLanguage(n),this.isLanguageChangingTo=void 0,this.emit("languageChanged",n),this.logger.log("languageChanged",n)):this.isLanguageChangingTo=void 0,a.resolve((...e)=>this.t(...e)),r&&r(t,(...e)=>this.t(...e))},s=n=>{e||n||!this.services.languageDetector||(n=[]);const r=t(n)?n:n&&n[0],a=this.store.hasLanguageSomeTranslations(r)?r:this.services.languageUtils.getBestMatchFromCodes(t(n)?[n]:n);a&&(this.language||i(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{o(e,a)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),a}getFixedT(e,n,r){const a=(e,t,...n)=>{let i;i="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(n)):{...t},i.lng=i.lng||a.lng,i.lngs=i.lngs||a.lngs,i.ns=i.ns||a.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||r||a.keyPrefix);const o={...this.options,...i},s=this.options.keySeparator||".";let l;return i.keyPrefix&&Array.isArray(e)?l=e.map(e=>("function"==typeof e&&(e=L(e,o)),`${i.keyPrefix}${s}${e}`)):("function"==typeof e&&(e=L(e,o)),l=i.keyPrefix?`${i.keyPrefix}${s}${e}`:e),this.t(l,i)};return t(e)?a.lng=e:a.lngs=e,a.ns=n,a.keyPrefix=r,a}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(a,e)))}loadNamespaces(e,r){const a=n();return this.options.ns?(t(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{a.resolve(),r&&r(e)}),a):(r&&r(),Promise.resolve())}loadLanguages(e,r){const a=n();t(e)&&(e=[e]);const i=this.options.preload||[],o=e.filter(e=>i.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=i.concat(o),this.loadResources(e=>{a.resolve(),r&&r(e)}),a):(r&&r(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new O(N());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const n=new $(e,t);return n.createInstance=$.createInstance,n}cloneInstance(e={},t=V){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},a=new $(r);void 0===e.debug&&void 0===e.prefix||(a.logger=a.logger.clone(e));if(["store","services","language"].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{});a.store=new M(e,r),a.services.resourceStore=a.store}if(e.interpolation){const t={...N().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};a.services.interpolator=new R(n)}return a.translator=new T(a.services,r),a.translator.on("*",(e,...t)=>{a.emit(e,...t)}),a.init(r,t),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const U=$.createInstance();U.keyFromSelector=L,e.exports=U},56441(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},56476(e,t){"use strict";var n=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},r=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowCount=void 0;var a=n(20020),i=n(35416),o=n(1266);t.windowCount=function(e,t){void 0===t&&(t=0);var n=t>0?t:e;return i.operate(function(t,i){var s=[new a.Subject],l=0;i.next(s[0].asObservable()),t.subscribe(o.createOperatorSubscriber(i,function(t){var o,u;try{for(var c=r(s),d=c.next();!d.done;d=c.next()){d.value.next(t)}}catch(e){o={error:e}}finally{try{d&&!d.done&&(u=c.return)&&u.call(c)}finally{if(o)throw o.error}}var p=l-e+1;if(p>=0&&p%n===0&&s.shift().complete(),++l%n===0){var f=new a.Subject;s.push(f),i.next(f.asObservable())}},function(){for(;s.length>0;)s.shift().complete();i.complete()},function(e){for(;s.length>0;)s.shift().error(e);i.error(e)},function(){s=null}))})}},56871(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createErrorClass=void 0,t.createErrorClass=function(e){var t=e(function(e){Error.call(e),e.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}},56884(e,t,n){"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},57095(e){"use strict";const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},57705(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(42689))},57786(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n(42689))},57988(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){0}},58015(e,t,n){"use strict";n.d(t,{B1:()=>E,C0:()=>h,DD:()=>i,Dz:()=>b,Jx:()=>c,LI:()=>l,PG:()=>g,RI:()=>u,Sg:()=>m,T9:()=>s,TV:()=>y,WJ:()=>w,_3:()=>f,aD:()=>M,bV:()=>T,jk:()=>o,lP:()=>D,nI:()=>O,qE:()=>p,r_:()=>r,sq:()=>v,w7:()=>_});const r=["top","right","bottom","left"],a=["start","end"],i=r.reduce((e,t)=>e.concat(t,t+"-"+a[0],t+"-"+a[1]),[]),o=Math.min,s=Math.max,l=Math.round,u=Math.floor,c=e=>({x:e,y:e}),d={left:"right",right:"left",bottom:"top",top:"bottom"};function p(e,t,n){return s(e,o(t,n))}function f(e,t){return"function"==typeof e?e(t):e}function h(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}function y(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function b(e){return g(y(e))}function _(e,t,n){void 0===n&&(n=!1);const r=m(e),a=b(e),i=v(a);let o="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=T(o)),[o,T(o)]}function w(e){const t=T(e);return[M(e),t,M(t)]}function M(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const S=["left","right"],k=["right","left"],L=["top","bottom"],x=["bottom","top"];function D(e,t,n,r){const a=m(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?k:S:t?S:k;case"left":case"right":return t?L:x;default:return[]}}(h(e),"start"===n,r);return a&&(i=i.map(e=>e+"-"+a),t&&(i=i.concat(i.map(M)))),i}function T(e){const t=h(e);return d[t]+e.slice(t.length)}function O(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function E(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}},58229(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishLast=void 0;var r=n(55366),a=n(51507);t.publishLast=function(){return function(e){var t=new r.AsyncSubject;return new a.ConnectableObservable(e,function(){return t})}}},58251(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.catchError=void 0;var r=n(52296),a=n(1266),i=n(35416);t.catchError=function e(t){return i.operate(function(n,i){var o,s=null,l=!1;s=n.subscribe(a.createOperatorSubscriber(i,void 0,void 0,function(a){o=r.innerFrom(t(a,e(t)(n))),s?(s.unsubscribe(),s=null,o.subscribe(i)):l=!0})),l&&(s.unsubscribe(),s=null,o.subscribe(i))})}},58473(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(42689))},59083(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,function(e){return n[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(42689))},59482(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}a.default=e,n&&n.set(e,a);return a}(n(85959)),i=d(n(77842)),o=d(n(97256)),s=n(20414),l=n(20906),u=d(n(18100)),c=d(n(47222));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function f(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){var i=1/0,o=1/0;a.forEach(function(t){t.x>e.x&&(i=Math.min(i,t.x)),t.y>e.y&&(o=Math.min(o,t.y))}),Number.isFinite(i)&&(e.w=i-e.x),Number.isFinite(o)&&(e.h=o-e.y)}}return t||(e.w=n,e.h=r),e}),y=g(v,2),b=y[0],_=y[1];if(_){var w={w:_.w,h:_.h,x:_.x,y:_.y,static:!0,i:t};e.props.onResize(b,c,_,w,i,o),e.setState({layout:h?b:(0,s.compact)(b,(0,s.compactType)(e.props),p),activeDrag:w})}}),k(M(e),"onResizeStop",function(t,n,r,a){var i=a.e,o=a.node,l=e.state,u=l.layout,c=l.oldResizeItem,d=e.props,p=d.cols,f=d.allowOverlap,h=(0,s.getLayoutItem)(u,t);e.props.onResizeStop(u,c,h,null,i,o);var m=f?u:(0,s.compact)(u,(0,s.compactType)(e.props),p),g=e.state.oldLayout;e.setState({activeDrag:null,layout:m,oldResizeItem:null,oldLayout:null}),e.onLayoutMaybeChanged(m,g)}),k(M(e),"onDragOver",function(t){var n;if(t.preventDefault(),t.stopPropagation(),x&&(null===(n=t.nativeEvent.target)||void 0===n||!n.classList.contains(L)))return!1;var r=e.props,i=r.droppingItem,o=r.onDropDragOver,s=r.margin,u=r.cols,c=r.rowHeight,d=r.maxRows,p=r.width,h=r.containerPadding,g=r.transformScale,v=null==o?void 0:o(t);if(!1===v)return e.state.droppingDOMNode&&e.removeDroppingPlaceholder(),!1;var y=m(m({},i),v),b=e.state.layout,_=t.nativeEvent,w=_.layerX,M=_.layerY,S={left:w/g,top:M/g,e:t};if(e.state.droppingDOMNode){if(e.state.droppingPosition){var k=e.state.droppingPosition,D=k.left,T=k.top;(D!=w||T!=M)&&e.setState({droppingPosition:S})}}else{var O={cols:u,margin:s,maxRows:d,rowHeight:c,containerWidth:p,containerPadding:h||s},E=(0,l.calcXY)(O,M,w,y.w,y.h);e.setState({droppingDOMNode:a.createElement("div",{key:y.i}),droppingPosition:S,layout:[].concat(f(b),[m(m({},y),{},{x:E.x,y:E.y,static:!1,isDraggable:!0})])})}}),k(M(e),"removeDroppingPlaceholder",function(){var t=e.props,n=t.droppingItem,r=t.cols,a=e.state.layout,i=(0,s.compact)(a.filter(function(e){return e.i!==n.i}),(0,s.compactType)(e.props),r);e.setState({layout:i,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),k(M(e),"onDragLeave",function(t){t.preventDefault(),t.stopPropagation(),e.dragEnterCounter--,0===e.dragEnterCounter&&e.removeDroppingPlaceholder()}),k(M(e),"onDragEnter",function(t){t.preventDefault(),t.stopPropagation(),e.dragEnterCounter++}),k(M(e),"onDrop",function(t){t.preventDefault(),t.stopPropagation();var n=e.props.droppingItem,r=e.state.layout,a=r.find(function(e){return e.i===n.i});e.dragEnterCounter=0,e.removeDroppingPlaceholder(),e.props.onDrop(r,a,t)}),e}return t=d,r=[{key:"getDerivedStateFromProps",value:function(e,t){var n;return t.activeDrag?null:((0,i.default)(e.layout,t.propsLayout)&&e.compactType===t.compactType?(0,s.childrenEqual)(e.children,t.children)||(n=t.layout):n=e.layout,n?{layout:(0,s.synchronizeLayoutWithChildren)(n,e.children,e.cols,(0,s.compactType)(e),e.allowOverlap),compactType:e.compactType,children:e.children,propsLayout:e.layout}:null)}}],(n=[{key:"componentDidMount",value:function(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}},{key:"shouldComponentUpdate",value:function(e,t){return this.props.children!==e.children||!(0,s.fastRGLPropsEqual)(this.props,e,i.default)||this.state.activeDrag!==t.activeDrag||this.state.mounted!==t.mounted||this.state.droppingPosition!==t.droppingPosition}},{key:"componentDidUpdate",value:function(e,t){if(!this.state.activeDrag){var n=this.state.layout,r=t.layout;this.onLayoutMaybeChanged(n,r)}}},{key:"containerHeight",value:function(){if(this.props.autoSize){var e=(0,s.bottom)(this.state.layout),t=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return e*this.props.rowHeight+(e-1)*this.props.margin[1]+2*t+"px"}}},{key:"onLayoutMaybeChanged",value:function(e,t){t||(t=this.state.layout),(0,i.default)(t,e)||this.props.onLayoutChange(e)}},{key:"placeholder",value:function(){var e=this.state.activeDrag;if(!e)return null;var t=this.props,n=t.width,r=t.cols,i=t.margin,o=t.containerPadding,s=t.rowHeight,l=t.maxRows,c=t.useCSSTransforms,d=t.transformScale;return a.createElement(u.default,{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,className:"react-grid-placeholder",containerWidth:n,cols:r,margin:i,containerPadding:o||i,maxRows:l,rowHeight:s,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:c,transformScale:d},a.createElement("div",null))}},{key:"processGridItem",value:function(e,t){if(e&&e.key){var n=(0,s.getLayoutItem)(this.state.layout,String(e.key));if(!n)return null;var r=this.props,i=r.width,o=r.cols,l=r.margin,c=r.containerPadding,d=r.rowHeight,p=r.maxRows,f=r.isDraggable,h=r.isResizable,m=r.isBounded,g=r.useCSSTransforms,v=r.transformScale,y=r.draggableCancel,b=r.draggableHandle,_=r.resizeHandles,w=r.resizeHandle,M=this.state,S=M.mounted,k=M.droppingPosition,L="boolean"==typeof n.isDraggable?n.isDraggable:!n.static&&f,x="boolean"==typeof n.isResizable?n.isResizable:!n.static&&h,D=n.resizeHandles||_,T=L&&m&&!1!==n.isBounded;return a.createElement(u.default,{containerWidth:i,cols:o,margin:l,containerPadding:c||l,maxRows:p,rowHeight:d,cancel:y,handle:b,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:L,isResizable:x,isBounded:T,useCSSTransforms:g&&S,usePercentages:!S,transformScale:v,w:n.w,h:n.h,x:n.x,y:n.y,i:n.i,minH:n.minH,minW:n.minW,maxH:n.maxH,maxW:n.maxW,static:n.static,droppingPosition:t?k:void 0,resizeHandles:D,resizeHandle:w},e)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.style,i=t.isDroppable,l=t.innerRef,u=(0,o.default)(L,n),c=m({height:this.containerHeight()},r);return a.createElement("div",{ref:l,className:u,style:c,onDrop:i?this.onDrop:s.noop,onDragLeave:i?this.onDragLeave:s.noop,onDragEnter:i?this.onDragEnter:s.noop,onDragOver:i?this.onDragOver:s.noop},a.Children.map(this.props.children,function(t){return e.processGridItem(t)}),i&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}])&&b(t.prototype,n),r&&b(t,r),Object.defineProperty(t,"prototype",{writable:!1}),d}(a.Component);t.default=D,k(D,"displayName","ReactGridLayout"),k(D,"propTypes",c.default),k(D,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:s.noop,onDragStart:s.noop,onDrag:s.noop,onDragStop:s.noop,onResizeStart:s.noop,onResize:s.noop,onResizeStop:s.noop,onDrop:s.noop,onDropDragOver:s.noop})},59613(e,t,n){"use strict";const r=n(15860);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},59630(e){"use strict";const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},59724(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(68435)),a=i(n(40628));function i(e){return e&&e.__esModule?e:{default:e}}var o=(0,r.default)("v5",80,a.default);t.default=o},59880(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.divWrapper=void 0;var r=n(34629),a=r.__importStar(n(85959)),i=r.__importDefault(n(93333)),o=a.createElement,s=function(e,t,n,a){var i;return o(e,t?r.__assign(((i={})[t]=a,i),n):r.__assign(r.__assign({},a),n))};t.divWrapper=function(e,t,n,r){return o("div",null,s(e,t,n,r))};t.default=function(e,t,n){void 0===n&&(n=s);var r=function(a,s,l){void 0===s&&(s=t),void 0===l&&(l=null);var u="string"==typeof a;if(u)return function(e){return r(e,a||t,s)};var c=function(t){return o(e,l,function(e){return n(a,s,t,e)})};return u?i.default(c):c};return r}},59924(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicast=void 0;var r=n(51507),a=n(44717),i=n(32216);t.multicast=function(e,t){var n=a.isFunction(e)?e:function(){return e};return a.isFunction(t)?i.connect(t,{connector:n}):function(e){return new r.ConnectableObservable(e,n)}}},60016(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"}function r(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"}function a(e,t,n,r){var a=i(e);switch(n){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}function i(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),a=e%10,i="";return n>0&&(i+=t[n]+"vatlh"),r>0&&(i+=(""!==i?" ":"")+t[r]+"maH"),a>0&&(i+=(""!==i?" ":"")+t[a]),""===i?"pagh":i}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:n,past:r,s:"puS lup",ss:a,m:"wa’ tup",mm:a,h:"wa’ rep",hh:a,d:"wa’ jaj",dd:a,M:"wa’ jar",MM:a,y:"wa’ DIS",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(42689))},60062(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;rr(e,t,n)>0},60278(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,a,i){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var s=0;s0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),a&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=a):c[4]="".concat(a)),t.push(c))}},t}},60341(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var a=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return a+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return a+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return a+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return a+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return a+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return a+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(42689))},60360(e,t){"use strict";var n=(e=>(e.Donut="donut",e.Pie="pie",e))(n||{}),r=(e=>(e.Name="name",e.Percent="percent",e.Value="value",e))(r||{}),a=(e=>(e.Percent="percent",e.Value="value",e))(a||{});t.PieChartLabels=r,t.PieChartLegendValues=a,t.PieChartType=n,t.defaultOptions={displayLabels:[]},t.defaultPieChartLegendOptions={values:[]},t.pluginVersion="12.4.1"},60452(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;var r=n(44717);t.isPromise=function(e){return r.isFunction(null==e?void 0:e.then)}},60901(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(42689))},61017(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncScheduler=void 0;var i=n(30469),o=function(e){function t(t,n){void 0===n&&(n=i.Scheduler.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return a(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(i.Scheduler);t.AsyncScheduler=o},61157(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMapTo=void 0;var r=n(71012),a=n(44717);t.concatMapTo=function(e,t){return a.isFunction(t)?r.concatMap(function(){return e},t):r.concatMap(function(){return e})}},61195(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elementAt=void 0;var r=n(49148),a=n(72914),i=n(45956),o=n(87507),s=n(46803);t.elementAt=function(e,t){if(e<0)throw new r.ArgumentOutOfRangeError;var n=arguments.length>=2;return function(l){return l.pipe(a.filter(function(t,n){return n===e}),s.take(1),n?o.defaultIfEmpty(t):i.throwIfEmpty(function(){return new r.ArgumentOutOfRangeError}))}}},61306(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.min=void 0;var r=n(3818),a=n(44717);t.min=function(e){return r.reduce(a.isFunction(e)?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(42689))},61465(e,t,n){"use strict";const r=n(81722),a=n(55380);e.exports=(e,t,n)=>{const i=[];let o=null,s=null;const l=e.sort((e,t)=>a(e,t,n));for(const e of l){r(e,t,n)?(s=e,o||(o=e)):(s&&i.push([o,s]),s=null,o=null)}o&&i.push([o,null]);const u=[];for(const[e,t]of i)e===t?u.push(e):t||e!==l[0]?t?e===l[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");const c=u.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return c.length0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n1&&e<5&&1!=~~(e/10)}function o(e,t,n,r){var a=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?a+(i(e)?"sekundy":"sekund"):a+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?a+(i(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?a+(i(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?a+(i(e)?"dny":"dní"):a+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?a+(i(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?a+(i(e)?"roky":"let"):a+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(42689))},61584(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(42689))},61691(){},61763(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,a=e.length;n=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(42689))},62001(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutWith=void 0;var r=n(4386),a=n(96349),i=n(87517);t.timeoutWith=function(e,t,n){var o,s,l;if(n=null!=n?n:r.async,a.isValidDate(e)?o=e:"number"==typeof e&&(s=e),!t)throw new TypeError("No observable provided to switch to");if(l=function(){return t},null==o&&null==s)throw new TypeError("No timeout provided.");return i.timeout({first:o,each:s,scheduler:n,with:l})}},62070(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var r=n(80861),a=n(11824),i=n(45294);t.concat=function(){for(var e=[],t=0;t=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(42689))},62409(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;var r=n(4386),a=n(85137),i=n(35461);t.delay=function(e,t){void 0===t&&(t=r.asyncScheduler);var n=i.timer(e,t);return a.delayWhen(function(){return n})}},62419(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(42689))},62688(e,t,n){e.exports=n(40362)()},62757(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(a=r;0!==a--;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(a=r;0!==a--;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;0!==a--;){var o=i[a];if(!e(t[o],n[o]))return!1}return!0}return t!=t&&n!=n}},62778(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startWith=void 0;var r=n(62070),a=n(11824),i=n(35416);t.startWith=function(){for(var e=[],t=0;t=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,a,i,o){var s=n(t),l=r[e][n(t)];return 2===s&&(l=l[a?0:1]),l.replace(/%d/i,t)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(42689))},64401(e,t,n){"use strict";n.d(t,{A:()=>l});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let a;const i=new Uint8Array(16);const o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));function s(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}const l=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random??e.rng?.()??function(){if(!a){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");a=crypto.getRandomValues.bind(crypto)}return a(i)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=o[e];return t}return s(o)}},64568(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScheduler=void 0;var r=n(44717);t.isScheduler=function(e){return e&&r.isFunction(e.schedule)}},64825(e,t,n){"use strict";n.d(t,{A:()=>s});var r=n(34942),a=n.n(r),i=n(60278),o=n.n(i)()(a());o.push([e.id,".rc-drawer {\n inset: 0;\n position: fixed;\n z-index: 1050;\n pointer-events: none;\n}\n.rc-drawer-inline {\n position: absolute;\n}\n.rc-drawer-mask {\n inset: 0;\n position: absolute;\n z-index: 1050;\n background: rgba(0, 0, 0, 0.5);\n pointer-events: auto;\n}\n.rc-drawer-content-wrapper {\n position: absolute;\n z-index: 1050;\n overflow: hidden;\n transition: transform 0.3s;\n}\n.rc-drawer-content-wrapper-hidden {\n display: none;\n}\n.rc-drawer-left .rc-drawer-content-wrapper {\n top: 0;\n bottom: 0;\n left: 0;\n}\n.rc-drawer-right .rc-drawer-content-wrapper {\n top: 0;\n right: 0;\n bottom: 0;\n}\n.rc-drawer-content {\n width: 100%;\n height: 100%;\n overflow: auto;\n background: #fff;\n pointer-events: auto;\n}\n","",{version:3,sources:["webpack://./../node_modules/rc-drawer/assets/index.css"],names:[],mappings:"AAAA;EACE,QAAQ;EACR,eAAe;EACf,aAAa;EACb,oBAAoB;AACtB;AACA;EACE,kBAAkB;AACpB;AACA;EACE,QAAQ;EACR,kBAAkB;EAClB,aAAa;EACb,8BAA8B;EAC9B,oBAAoB;AACtB;AACA;EACE,kBAAkB;EAClB,aAAa;EACb,gBAAgB;EAChB,0BAA0B;AAC5B;AACA;EACE,aAAa;AACf;AACA;EACE,MAAM;EACN,SAAS;EACT,OAAO;AACT;AACA;EACE,MAAM;EACN,QAAQ;EACR,SAAS;AACX;AACA;EACE,WAAW;EACX,YAAY;EACZ,cAAc;EACd,gBAAgB;EAChB,oBAAoB;AACtB",sourcesContent:[".rc-drawer {\n inset: 0;\n position: fixed;\n z-index: 1050;\n pointer-events: none;\n}\n.rc-drawer-inline {\n position: absolute;\n}\n.rc-drawer-mask {\n inset: 0;\n position: absolute;\n z-index: 1050;\n background: rgba(0, 0, 0, 0.5);\n pointer-events: auto;\n}\n.rc-drawer-content-wrapper {\n position: absolute;\n z-index: 1050;\n overflow: hidden;\n transition: transform 0.3s;\n}\n.rc-drawer-content-wrapper-hidden {\n display: none;\n}\n.rc-drawer-left .rc-drawer-content-wrapper {\n top: 0;\n bottom: 0;\n left: 0;\n}\n.rc-drawer-right .rc-drawer-content-wrapper {\n top: 0;\n right: 0;\n bottom: 0;\n}\n.rc-drawer-content {\n width: 100%;\n height: 100%;\n overflow: auto;\n background: #fff;\n pointer-events: auto;\n}\n"],sourceRoot:""}]);const s=o},65547(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayLike=void 0,t.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},65698(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(e=>(e.AlertStates="alertStates",e.Annotations="annotations",e.Series="series",e))(n||{}),r=(e=>(e.Linear="linear",e.Quad="quad",e))(r||{}),a=(e=>(e.Clamped="clamped",e.Mod="mod",e))(a||{}),i=(e=>(e.Field="field",e.Fixed="fixed",e.Template="template",e))(i||{}),o=(e=>(e.Field="field",e.Fixed="fixed",e.Mapping="mapping",e))(o||{}),s=(e=>(e.Both="both",e.Forward="forward",e.None="none",e.Reverse="reverse",e))(s||{}),l=(e=>(e.Field="field",e.Fixed="fixed",e))(l||{}),u=(e=>(e.Auto="auto",e.Coords="coords",e.Geohash="geohash",e.Lookup="lookup",e))(u||{}),c=(e=>(e.Count="count",e.Size="size",e))(c||{}),d=(e=>(e.auto="auto",e.ge="ge",e.le="le",e.unknown="unknown",e))(d||{}),p=(e=>(e.Ascending="Ascending",e.Descending="Descending",e))(p||{}),f=(e=>(e.Auto="auto",e.Bottom="bottom",e.Hidden="hidden",e.Left="left",e.Right="right",e.Top="top",e))(f||{}),h=(e=>(e.Series="series",e.Text="text",e))(h||{}),m=(e=>(e.Always="always",e.Auto="auto",e.Never="never",e))(m||{}),g=(e=>(e.Bars="bars",e.Line="line",e.Points="points",e))(g||{}),v=(e=>(e.Constant="constant",e.NegativeY="negative-Y",e))(v||{}),y=(e=>(e.Linear="linear",e.Smooth="smooth",e.StepAfter="stepAfter",e.StepBefore="stepBefore",e))(y||{}),b=(e=>(e.Linear="linear",e.Log="log",e.Ordinal="ordinal",e.Symlog="symlog",e))(b||{}),_=(e=>(e.Hue="hue",e.None="none",e.Opacity="opacity",e.Scheme="scheme",e))(_||{}),w=(e=>(e.None="none",e.Normal="normal",e.Percent="percent",e))(w||{}),M=(e=>(e[e.After=1]="After",e[e.Before=-1]="Before",e[e.Center=0]="Center",e))(M||{}),S=(e=>(e[e.Horizontal=0]="Horizontal",e[e.Vertical=1]="Vertical",e))(S||{}),k=(e=>(e[e.Down=-1]="Down",e[e.Left=-1]="Left",e[e.Right=1]="Right",e[e.Up=1]="Up",e))(k||{});var L=(e=>(e.Area="area",e.Dashed="dashed",e.DashedAndArea="dashed+area",e.Line="line",e.LineAndArea="line+area",e.Off="off",e.Series="series",e))(L||{}),x=(e=>(e.Hidden="hidden",e.List="list",e.Table="table",e))(x||{});var D=(e=>(e.Auto="auto",e.Horizontal="horizontal",e.Vertical="vertical",e))(D||{});var T=(e=>(e.Background="background",e.BackgroundSolid="background_solid",e.None="none",e.Value="value",e))(T||{}),O=(e=>(e.Area="area",e.Line="line",e.None="none",e))(O||{}),E=(e=>(e.Auto="auto",e.Center="center",e))(E||{}),P=(e=>(e.Auto="auto",e.Name="name",e.None="none",e.Value="value",e.ValueAndName="value_and_name",e))(P||{}),C=(e=>(e.Inverted="inverted",e.SameAsValue="same_as_value",e.Standard="standard",e))(C||{}),Y=(e=>(e.Multi="multi",e.None="none",e.Single="single",e))(Y||{}),A=(e=>(e.Ascending="asc",e.Descending="desc",e.None="none",e))(A||{});var R=(e=>(e.Basic="basic",e.Gradient="gradient",e.Lcd="lcd",e))(R||{}),j=(e=>(e.Color="color",e.Hidden="hidden",e.Text="text",e))(j||{}),I=(e=>(e.Auto="auto",e.Hidden="hidden",e.Left="left",e.Top="top",e))(I||{}),F=(e=>(e.Auto="auto",e.Manual="manual",e))(F||{}),H=(e=>(e.Actions="actions",e.Auto="auto",e.BasicGauge="basic",e.ColorBackground="color-background",e.ColorBackgroundSolid="color-background-solid",e.ColorText="color-text",e.Custom="custom",e.DataLinks="data-links",e.Gauge="gauge",e.Geo="geo",e.GradientGauge="gradient-gauge",e.Image="image",e.JSONView="json-view",e.LcdGauge="lcd-gauge",e.Markdown="markdown",e.Pill="pill",e.Sparkline="sparkline",e))(H||{}),N=(e=>(e.Basic="basic",e.Gradient="gradient",e))(N||{}),z=(e=>(e.CSV="csv",e.CustomQueryParam="customqueryparam",e.Date="date",e.Distributed="distributed",e.DoubleQuote="doublequote",e.Glob="glob",e.HTML="html",e.JSON="json",e.Join="join",e.Lucene="lucene",e.PercentEncode="percentencode",e.Pipe="pipe",e.QueryParam="queryparam",e.Raw="raw",e.Regex="regex",e.SQLString="sqlstring",e.SingleQuote="singlequote",e.Text="text",e.UriEncode="uriencode",e))(z||{}),V=(e=>(e.exact="exact",e.none="none",e.numbers="numbers",e.signature="signature",e))(V||{}),W=(e=>(e.EQ="eq",e.GT="gt",e.GTE="gte",e.LT="lt",e.LTE="lte",e.NEQ="neq",e))(W||{}),$=(e=>(e.Auto="auto",e.Lg="lg",e.Md="md",e.Sm="sm",e))($||{}),U=(e=>(e.Auto="auto",e.Bottom="bottom",e.Left="left",e.Right="right",e.Top="top",e))(U||{});t.AxisColorMode=h,t.AxisPlacement=f,t.BarAlignment=M,t.BarGaugeDisplayMode=R,t.BarGaugeNamePlacement=I,t.BarGaugeSizing=F,t.BarGaugeValueMode=j,t.BigValueColorMode=T,t.BigValueGraphMode=O,t.BigValueJustifyMode=E,t.BigValueTextMode=P,t.ComparisonOperation=W,t.ConnectionDirection=s,t.DataTopic=n,t.DirectionDimensionMode=l,t.FrameGeometrySourceMode=u,t.GraphDrawStyle=g,t.GraphGradientMode=_,t.GraphThresholdsStyleMode=L,t.GraphTransform=v,t.HeatmapCalculationMode=c,t.HeatmapCellLayout=d,t.LegendDisplayMode=x,t.LineInterpolation=y,t.LogsDedupStrategy=V,t.LogsSortOrder=p,t.PercentChangeColorMode=C,t.ResourceDimensionMode=o,t.ScalarDimensionMode=a,t.ScaleDimensionMode=r,t.ScaleDirection=k,t.ScaleDistribution=b,t.ScaleOrientation=S,t.SortOrder=A,t.StackingMode=w,t.TableCellBackgroundDisplayMode=N,t.TableCellDisplayMode=H,t.TableCellHeight=$,t.TableCellTooltipPlacement=U,t.TextDimensionMode=i,t.TooltipDisplayMode=Y,t.VariableFormatID=z,t.VisibilityMode=m,t.VizOrientation=D,t.defaultLineStyle={dash:[]},t.defaultOptionsWithTimezones={timezone:[]},t.defaultReduceDataOptions={calcs:[]},t.defaultTableFieldOptions={align:"auto",inspect:!1},t.defaultTableFooterOptions={reducers:[]},t.defaultTableOptions={cellHeight:"sm",frameIndex:0,showHeader:!0,showTypeIcons:!1,sortBy:[]},t.defaultTimeZone="browser",t.defaultVizLegendOptions={calcs:[]}},65805(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return l.default}});var r=p(n(49568)),a=p(n(47786)),i=p(n(67827)),o=p(n(59724)),s=p(n(84646)),l=p(n(30277)),u=p(n(43215)),c=p(n(69676)),d=p(n(54738));function p(e){return e&&e.__esModule?e:{default:e}}},65986(e,t,n){"use strict";const r=n(37944);e.exports=(e,t)=>new r(e,t).minor},66095(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=void 0;var r=n(35416),a=n(1266);t.isEmpty=function(){return r.operate(function(e,t){e.subscribe(a.createOperatorSubscriber(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}},66467(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=void 0;var r=n(92023),a=n(90160),i=n(1266),o=n(16129),s=n(52296);t.onErrorResumeNext=function(){for(var e=[],t=0;t(e[e.never=0]="never",e[e.onDashboardLoad=1]="onDashboardLoad",e[e.onTimeRangeChanged=2]="onTimeRangeChanged",e))(n||{}),r=(e=>(e[e.dontHide=0]="dontHide",e[e.hideLabel=1]="hideLabel",e[e.hideVariable=2]="hideVariable",e[e.inControlsMenu=3]="inControlsMenu",e))(r||{}),a=(e=>(e[e.alphabeticalAsc=1]="alphabeticalAsc",e[e.alphabeticalCaseInsensitiveAsc=5]="alphabeticalCaseInsensitiveAsc",e[e.alphabeticalCaseInsensitiveDesc=6]="alphabeticalCaseInsensitiveDesc",e[e.alphabeticalDesc=2]="alphabeticalDesc",e[e.disabled=0]="disabled",e[e.naturalAsc=7]="naturalAsc",e[e.naturalDesc=8]="naturalDesc",e[e.numericalAsc=3]="numericalAsc",e[e.numericalDesc=4]="numericalDesc",e))(a||{});var i=(e=>(e.ContinuousBlPu="continuous-BlPu",e.ContinuousBlYlRd="continuous-BlYlRd",e.ContinuousBlues="continuous-blues",e.ContinuousCividis="continuous-cividis",e.ContinuousGrYlRd="continuous-GrYlRd",e.ContinuousGreens="continuous-greens",e.ContinuousInferno="continuous-inferno",e.ContinuousMagma="continuous-magma",e.ContinuousPlasma="continuous-plasma",e.ContinuousPurples="continuous-purples",e.ContinuousRdYlGr="continuous-RdYlGr",e.ContinuousReds="continuous-reds",e.ContinuousViridis="continuous-viridis",e.ContinuousYlBl="continuous-YlBl",e.ContinuousYlRd="continuous-YlRd",e.Fixed="fixed",e.PaletteClassic="palette-classic",e.PaletteClassicByName="palette-classic-by-name",e.Shades="shades",e.Thresholds="thresholds",e))(i||{});var o=(e=>(e.Absolute="absolute",e.Percentage="percentage",e))(o||{});var s=(e=>(e.RangeToText="range",e.RegexToText="regex",e.SpecialValue="special",e.ValueToText="value",e))(s||{}),l=(e=>(e.Empty="empty",e.False="false",e.NaN="nan",e.Null="null",e.NullAndNan="null+nan",e.True="true",e))(l||{});var u=(e=>(e[e.Crosshair=1]="Crosshair",e[e.Off=0]="Off",e[e.Tooltip=2]="Tooltip",e))(u||{});t.DashboardCursorSync=u,t.FieldColorModeId=i,t.MappingType=s,t.SpecialValueMatch=l,t.ThresholdsMode=o,t.VariableHide=r,t.VariableRefresh=n,t.VariableSort=a,t.defaultAction={variables:[]},t.defaultAnnotationContainer={list:[]},t.defaultAnnotationPanelFilter={exclude:!1,ids:[]},t.defaultAnnotationQuery={builtIn:0,enable:!0,hide:!1},t.defaultAnnotationTarget={tags:[]},t.defaultDashboard={editable:!0,fiscalYearStartMonth:0,graphTooltip:0,links:[],panels:[],schemaVersion:42,tags:[],timezone:"browser"},t.defaultDashboardCursorSync=0,t.defaultDashboardLink={asDropdown:!1,includeVars:!1,keepTime:!1,tags:[],targetBlank:!1},t.defaultFetchOptions={headers:[],queryParams:[]},t.defaultFieldConfig={actions:[],links:[],mappings:[]},t.defaultFieldConfigSource={overrides:[]},t.defaultGridPos={h:9,w:12,x:0,y:0},t.defaultInfinityOptions={headers:[],queryParams:[]},t.defaultMatcherConfig={id:""},t.defaultPanel={links:[],repeatDirection:"h",targets:[],transformations:[],transparent:!1},t.defaultRowPanel={collapsed:!1,panels:[]},t.defaultThresholdsConfig={steps:[]},t.defaultTimePickerConfig={hidden:!1,quick_ranges:[],refresh_intervals:["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"]},t.defaultVariableModel={allowCustomValue:!0,includeAll:!1,multi:!1,options:[],skipUrlSync:!1,staticOptions:[],valuesFormat:"csv"}},67195(e,t){"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"Filter bewerken met sleutel {{keyLabel}}","managed-filter":"{{origin}} beheerde filter","non-applicable":"","remove-filter-with-key":"Filter verwijderen met sleutel {{keyLabel}}"},"adhoc-filters-combobox":{"remove-filter-value":"Filterwaarde verwijderen - {{itemLabel}}","use-custom-value":"Aangepaste waarde gebruiken: {{itemLabel}}"},"fallback-page":{content:"Als je hier bent gekomen via een link, dan kan er een bug in deze applicatie zijn.",subTitle:"De URL kwam met geen enkele pagina overeen",title:"Niet gevonden"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Scène samenvouwen","expand-button-label":"Scène uitvouwen","remove-button-label":"Scène verwijderen"},"scene-debugger":{"object-details":"Objectdetails","scene-graph":"Scènegrafiek","title-scene-debugger":"Scène-debugger"},"scene-grid-row":{"collapse-row":"Rij samenvouwen","expand-row":"Rij uitvouwen"},"scene-refresh-picker":{"text-cancel":"Annuleren","text-refresh":"Vernieuwen","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Vergelijking","button-tooltip":"Tijdsbestekvergelijking inschakelen"},splitter:{"aria-label-pane-resize-widget":"Grootte widget wijzigen"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Titel"}},"viz-panel-explore-button":{explore:"Verkennen"},"viz-panel-renderer":{"loading-plugin-panel":"Plug-inpaneel laden...","panel-plugin-has-no-panel-component":"Paneelplug-in heeft geen paneelcomponent"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Het renderen van te veel reeksen in één paneel kan de prestaties beïnvloeden en de leesbaarheid van de gegevens verminderen. ","warning-message":"Alleen {{seriesLimit}}-series weergeven"}},utils:{"controls-label":{"tooltip-remove":"Verwijderen"},"loading-indicator":{"content-cancel-query":"Query annuleren"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Filteroperator bewerken"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Filter toevoegen","title-add-filter":"Filter toevoegen"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Filter verwijderen","key-select":{"placeholder-select-label":"Selecteer label"},"label-select-label":"Selecteer label","title-remove-filter":"Filter verwijderen","value-select":{"placeholder-select-value":"Waarde selecteren"}},"data-source-variable":{label:{default:"standaard"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"wissen",tooltip:"Standaard toegepast in dit dashboard. Als het wordt bewerkt, wordt het overgenomen naar andere dashboards.","tooltip-restore-groupby-set-by-this-dashboard":"Herstel groupby ingesteld door dit dashboard."},"format-registry":{formats:{description:{"commaseparated-values":"Kommagescheiden waarden","double-quoted-values":"Dubbel geciteerde waarden","format-date-in-different-ways":"Datum op verschillende manieren opmaken","format-multivalued-variables-using-syntax-example":"Formatteer variabelen met meerdere waarden met behulp van glob-syntaxis, bijvoorbeeld {value1,value2}","html-escaping-of-values":"HTML-escaping van waarden","join-values-with-a-comma":"","json-stringify-value":"JSON-stringify-waarde","keep-value-as-is":"Huidige waarde behouden","multiple-values-are-formatted-like-variablevalue":"Meerdere waarden zijn opgemaakt als variabele=waarde","single-quoted-values":"Enkel geciteerde waarden","useful-escaping-values-taking-syntax-characters":"Handig voor URL-escapingwaarden, rekening houdend met URI-syntaxis tekens","useful-for-url-escaping-values":"Handig voor URL-escaping-waarden","values-are-separated-by-character":"Waarden worden gescheiden door | teken"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Groeperen op kiezer","placeholder-group-by-label":"Groeperen op label"},"interval-variable":{"placeholder-select-value":"Waarde selecteren"},"loading-options-placeholder":{"loading-options":"Opties laden…"},"multi-value-apply-button":{apply:"Toepassen"},"no-options-placeholder":{"no-options-found":"Geen opties gevonden"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Er is een fout opgetreden bij het ophalen van labels. Klik om opnieuw te proberen"},"test-object-with-variable-dependency":{title:{hello:"Hallo"}},"test-variable":{text:{text:"Tekst"}},"variable-value-input":{"placeholder-enter-value":"Voer waarde in"},"variable-value-select":{"placeholder-select-value":"Waarde selecteren"}}}}},67827(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(6682)),a=o(n(35696)),i=n(69676);function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();const o=(e=e||{}).random||(e.rng||a.default)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return(0,i.unsafeStringify)(o)};t.default=s},67871(e,t,n){"use strict";const r=n(45463);e.exports=(e,t,n)=>r(e,t,">",n)},68102(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tr})},68158(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=void 0;var r=n(4575),a=n(74828);t.timestamp=function(e){return void 0===e&&(e=r.dateTimestampProvider),a.map(function(t){return{value:t,timestamp:e.now()}})}},68324(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand=void 0;var r=n(35416),a=n(13754);t.expand=function(e,t,n){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,r.operate(function(r,i){return a.mergeInternals(r,i,e,t,void 0,!0,n)})}},68395(e,t,n){"use strict";const r=/\s+/g;class a{constructor(e,t){if(t=o(t),e instanceof a)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new a(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(r," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!v(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&y(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&g))+":"+e,n=i.get(t);if(n)return n;const r=this.options.loose,a=r?c[d.HYPHENRANGELOOSE]:c[d.HYPHENRANGE];e=e.replace(a,E(this.options.includePrerelease)),l("hyphen replace",e),e=e.replace(c[d.COMPARATORTRIM],p),l("comparator trim",e),e=e.replace(c[d.TILDETRIM],f),l("tilde trim",e),e=e.replace(c[d.CARETTRIM],h),l("caret trim",e);let o=e.split(" ").map(e=>_(e,this.options)).join(" ").split(/\s+/).map(e=>O(e,this.options));r&&(o=o.filter(e=>(l("loose invalid filter",e,this.options),!!e.match(c[d.COMPARATORLOOSE])))),l("range list",o);const u=new Map,y=o.map(e=>new s(e,this.options));for(const e of y){if(v(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");const b=[...u.values()];return i.set(t,b),b}intersects(e,t){if(!(e instanceof a))throw new TypeError("a Range is required");return this.set.some(n=>b(n,t)&&e.set.some(e=>b(e,t)&&n.every(n=>e.every(e=>n.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,y=e=>""===e.value,b=(e,t)=>{let n=!0;const r=e.slice();let a=r.pop();for(;n&&r.length;)n=r.every(e=>a.intersects(e,t)),a=r.pop();return n},_=(e,t)=>(e=e.replace(c[d.BUILD],""),l("comp",e,t),e=k(e,t),l("caret",e),e=M(e,t),l("tildes",e),e=x(e,t),l("xrange",e),e=T(e,t),l("stars",e),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,M=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{const n=t.loose?c[d.TILDELOOSE]:c[d.TILDE];return e.replace(n,(t,n,r,a,i)=>{let o;return l("tilde",e,t,n,r,a,i),w(n)?o="":w(r)?o=`>=${n}.0.0 <${+n+1}.0.0-0`:w(a)?o=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:i?(l("replaceTilde pr",i),o=`>=${n}.${r}.${a}-${i} <${n}.${+r+1}.0-0`):o=`>=${n}.${r}.${a} <${n}.${+r+1}.0-0`,l("tilde return",o),o})},k=(e,t)=>e.trim().split(/\s+/).map(e=>L(e,t)).join(" "),L=(e,t)=>{l("caret",e,t);const n=t.loose?c[d.CARETLOOSE]:c[d.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,(t,n,a,i,o)=>{let s;return l("caret",e,t,n,a,i,o),w(n)?s="":w(a)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:w(i)?s="0"===n?`>=${n}.${a}.0${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.0${r} <${+n+1}.0.0-0`:o?(l("replaceCaret pr",o),s="0"===n?"0"===a?`>=${n}.${a}.${i}-${o} <${n}.${a}.${+i+1}-0`:`>=${n}.${a}.${i}-${o} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${i}-${o} <${+n+1}.0.0-0`):(l("no pr"),s="0"===n?"0"===a?`>=${n}.${a}.${i}${r} <${n}.${a}.${+i+1}-0`:`>=${n}.${a}.${i}${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${i} <${+n+1}.0.0-0`),l("caret return",s),s})},x=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map(e=>D(e,t)).join(" ")),D=(e,t)=>{e=e.trim();const n=t.loose?c[d.XRANGELOOSE]:c[d.XRANGE];return e.replace(n,(n,r,a,i,o,s)=>{l("xRange",e,n,r,a,i,o,s);const u=w(a),c=u||w(i),d=c||w(o),p=d;return"="===r&&p&&(r=""),s=t.includePrerelease?"-0":"",u?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(c&&(i=0),o=0,">"===r?(r=">=",c?(a=+a+1,i=0,o=0):(i=+i+1,o=0)):"<="===r&&(r="<",c?a=+a+1:i=+i+1),"<"===r&&(s="-0"),n=`${r+a}.${i}.${o}${s}`):c?n=`>=${a}.0.0${s} <${+a+1}.0.0-0`:d&&(n=`>=${a}.${i}.0${s} <${a}.${+i+1}.0-0`),l("xRange return",n),n})},T=(e,t)=>(l("replaceStars",e,t),e.trim().replace(c[d.STAR],"")),O=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),E=e=>(t,n,r,a,i,o,s,l,u,c,d,p)=>`${n=w(r)?"":w(a)?`>=${r}.0.0${e?"-0":""}`:w(i)?`>=${r}.${a}.0${e?"-0":""}`:o?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=w(u)?"":w(c)?`<${+u+1}.0.0-0`:w(d)?`<${u}.${+c+1}.0-0`:p?`<=${u}.${c}.${d}-${p}`:e?`<${u}.${c}.${+d+1}-0`:`<=${l}`}`.trim(),P=(e,t,n)=>{for(let n=0;n0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},68435(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,o,s){var l;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;nc});var r=n(85959);function a(e){for(var t=[],n=1;nYt});var r=n(27405),a=n(97850),i=n(85959),o=n.n(i),s=n(48398),l=n.n(s);function u(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var c={},d=[];function p(e,t){}function f(e,t){}function h(e,t,n){t||c[n]||(e(!1,n),c[n]=!0)}function m(e,t){h(p,e,t)}m.preMessage=function(e){d.push(e)},m.resetWarned=function(){c={}},m.noteOnce=function(e,t){h(f,e,t)};const g=m;var v=n(40694),y=n(84271);var b=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),w=Symbol.for("react.fragment");var M=Number(i.version.split(".")[0]),S=function(e,t){"function"==typeof e?e(t):"object"===(0,v.A)(e)&&e&&"current"in e&&(e.current=t)},k=function(){for(var e=arguments.length,t=new Array(e),n=0;n=19)return!0;var r=(0,y.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===y.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===y.ForwardRef)};function D(e){return(0,i.isValidElement)(e)&&!((t=e)&&"object"===(0,v.A)(t)&&(t.$$typeof===b||t.$$typeof===_)&&t.type===w);var t}const T=i.createContext(null);var O=n(17451);var E=n(16438);function P(e){return function(e){if(Array.isArray(e))return(0,O.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,E.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var C=u()?i.useLayoutEffect:i.useEffect,Y=function(e,t){var n=i.useRef(!0);C(function(){return e(n.current)},t),C(function(){return n.current=!1,function(){n.current=!0}},[])};const A=Y;var R=[];var j="data-rc-order",I="data-rc-priority",F=new Map;function H(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function N(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function z(e){return Array.from((F.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function V(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!u())return null;var n=t.csp,r=t.prepend,a=t.priority,i=void 0===a?0:a,o=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),s="prependQueue"===o,l=document.createElement("style");l.setAttribute(j,o),s&&i&&l.setAttribute(I,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var c=N(t),d=c.firstChild;if(r){if(s){var p=(t.styles||z(c)).filter(function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(j)))return!1;var t=Number(e.getAttribute(I)||0);return i>=t});if(p.length)return c.insertBefore(l,p[p.length-1].nextSibling),l}c.insertBefore(l,d)}else c.appendChild(l);return l}function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=N(t);return(t.styles||z(n)).find(function(n){return n.getAttribute(H(t))===e})}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=W(e,t);n&&N(t).removeChild(n)}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=N(n),i=z(a),o=(0,r.A)((0,r.A)({},n),{},{styles:i});!function(e,t){var n=F.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=V("",t),a=r.parentNode;F.set(e,a),e.removeChild(r)}}(a,o);var s=W(t,o);if(s){var l,u,c;if(null!==(l=o.csp)&&void 0!==l&&l.nonce&&s.nonce!==(null===(u=o.csp)||void 0===u?void 0:u.nonce))s.nonce=null===(c=o.csp)||void 0===c?void 0:c.nonce;return s.innerHTML!==e&&(s.innerHTML=e),s}var d=V(e,o);return d.setAttribute(H(o),t),d}function B(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,a,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var o=getComputedStyle(e);i.scrollbarColor=o.scrollbarColor,i.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),u=parseInt(s.height,10);try{var c=l?"width: ".concat(s.width,";"):"",d=u?"height: ".concat(s.height,";"):"";U("\n#".concat(t,"::-webkit-scrollbar {\n").concat(c,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=l,a=u}}document.body.appendChild(n);var p=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,f=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),$(t),{width:p,height:f}}var q="rc-util-locker-".concat(Date.now()),G=0;function K(e){var t=!!e,n=i.useState(function(){return G+=1,"".concat(q,"_").concat(G)}),r=(0,a.A)(n,1)[0];A(function(){if(t){var e=(a=document.body,"undefined"!=typeof document&&a&&a instanceof Element?B(a):{width:0,height:0}).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;U("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else $(r);var a;return function(){$(r)}},[t,r])}var J=!1;var Q=function(e){return!1!==e&&(u()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Z=i.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,l=(e.debug,e.autoDestroy),c=void 0===l||l,d=e.children,p=i.useState(n),f=(0,a.A)(p,2),h=f[0],m=f[1],g=h||n;i.useEffect(function(){(c||n)&&m(n)},[n,c]);var v=i.useState(function(){return Q(o)}),y=(0,a.A)(v,2),b=y[0],_=y[1];i.useEffect(function(){var e=Q(o);_(null!=e?e:null)});var w=function(e){var t=i.useState(function(){return u()?document.createElement("div"):null}),n=(0,a.A)(t,1)[0],r=i.useRef(!1),o=i.useContext(T),s=i.useState(R),l=(0,a.A)(s,2),c=l[0],d=l[1],p=o||(r.current?void 0:function(e){d(function(t){return[e].concat(P(t))})});function f(){n.parentElement||document.body.appendChild(n),r.current=!0}function h(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return A(function(){return e?o?o(f):f():h(),h},[e]),A(function(){c.length&&(c.forEach(function(e){return e()}),d(R))},[c]),[n,p]}(g&&!b),M=(0,a.A)(w,2),S=M[0],k=M[1],D=null!=b?b:S;K(r&&n&&u()&&(D===S||D===document.body));var O=null;d&&x(d)&&t&&(O=d.ref);var E=L(O,t);if(!g||!u()||void 0===b)return null;var C,Y=!1===D||("boolean"==typeof C&&(J=C),J),j=d;return t&&(j=i.cloneElement(d,{ref:E})),i.createElement(T.Provider,{value:k},Y?j:(0,s.createPortal)(j,D))});const X=Z;var ee=i.createContext(null),te=i.createContext({});const ne=ee;var re=n(41705),ae=n(68102),ie=n(4452),oe=n.n(ie);function se(e){return e instanceof HTMLElement||e instanceof SVGElement}function le(e){var t,n=function(e){return e&&"object"===(0,v.A)(e)&&se(e.nativeElement)?e.nativeElement:se(e)?e:null}(e);return n||(e instanceof o().Component?null===(t=l().findDOMNode)||void 0===t?void 0:t.call(l(),e):null)}var ue=i.createContext({});function ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var de=n(92162);function pe(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:1),t};tt.cancel=function(e){var t=Xe.get(e);return et(e),Qe(t)};const nt=tt;var rt=[Oe,Ee,Pe,Ce],at=[Oe,Ye],it=!1;function ot(e){return e===Pe||e===Ce}const st=function(e,t,n){var r=Se(Te),o=(0,a.A)(r,2),s=o[0],l=o[1],u=function(){var e=i.useRef(null);function t(){nt.cancel(e.current)}return i.useEffect(function(){return function(){t()}},[]),[function n(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=nt(function(){a<=1?r({isCanceled:function(){return i!==e.current}}):n(r,a-1)});e.current=i},t]}(),c=(0,a.A)(u,2),d=c[0],p=c[1];var f=t?at:rt;return Ke(function(){if(s!==Te&&s!==Ce){var e=f.indexOf(s),t=f[e+1],r=n(s);r===it?l(t,!0):t&&d(function(e){function n(){e.isCanceled()||l(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,s]),i.useEffect(function(){return function(){p()}},[]),[function(){l(Oe,!0)},s]};function lt(e,t,n,o){var s,l,u,c,d=o.motionEnter,p=void 0===d||d,f=o.motionAppear,h=void 0===f||f,m=o.motionLeave,g=void 0===m||m,v=o.motionDeadline,y=o.motionLeaveImmediately,b=o.onAppearPrepare,_=o.onEnterPrepare,w=o.onLeavePrepare,M=o.onAppearStart,S=o.onEnterStart,k=o.onLeaveStart,L=o.onAppearActive,x=o.onEnterActive,D=o.onLeaveActive,T=o.onAppearEnd,O=o.onEnterEnd,E=o.onLeaveEnd,P=o.onVisibleChanged,C=Se(),Y=(0,a.A)(C,2),A=Y[0],R=Y[1],j=(s=ke,l=i.useReducer(function(e){return e+1},0),u=(0,a.A)(l,2)[1],c=i.useRef(s),[Me(function(){return c.current}),Me(function(e){c.current="function"==typeof e?e(c.current):e,u()})]),I=(0,a.A)(j,2),F=I[0],H=I[1],N=Se(null),z=(0,a.A)(N,2),V=z[0],W=z[1],$=F(),U=(0,i.useRef)(!1),B=(0,i.useRef)(null);function q(){return n()}var G=(0,i.useRef)(!1);function K(){H(ke),W(null,!0)}var J=Me(function(e){var t=F();if(t!==ke){var n=q();if(!e||e.deadline||e.target===n){var r,a=G.current;t===Le&&a?r=null==T?void 0:T(n,e):t===xe&&a?r=null==O?void 0:O(n,e):t===De&&a&&(r=null==E?void 0:E(n,e)),a&&!1!==r&&K()}}}),Q=function(e){var t=(0,i.useRef)();function n(t){t&&(t.removeEventListener(qe,e),t.removeEventListener(Be,e))}return i.useEffect(function(){return function(){n(t.current)}},[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(qe,e),r.addEventListener(Be,e),t.current=r)},n]}(J),Z=(0,a.A)(Q,1)[0],X=function(e){switch(e){case Le:return(0,re.A)((0,re.A)((0,re.A)({},Oe,b),Ee,M),Pe,L);case xe:return(0,re.A)((0,re.A)((0,re.A)({},Oe,_),Ee,S),Pe,x);case De:return(0,re.A)((0,re.A)((0,re.A)({},Oe,w),Ee,k),Pe,D);default:return{}}},ee=i.useMemo(function(){return X($)},[$]),te=st($,!e,function(e){if(e===Oe){var t=ee[Oe];return t?t(q()):it}var n;ie in ee&&W((null===(n=ee[ie])||void 0===n?void 0:n.call(ee,q(),null))||null);return ie===Pe&&$!==ke&&(Z(q()),v>0&&(clearTimeout(B.current),B.current=setTimeout(function(){J({deadline:!0})},v))),ie===Ye&&K(),true}),ne=(0,a.A)(te,2),ae=ne[0],ie=ne[1],oe=ot(ie);G.current=oe;var se=(0,i.useRef)(null);Ke(function(){if(!U.current||se.current!==t){R(t);var n,r=U.current;U.current=!0,!r&&t&&h&&(n=Le),r&&t&&p&&(n=xe),(r&&!t&&g||!r&&y&&!t&&g)&&(n=De);var a=X(n);n&&(e||a[Oe])?(H(n),ae()):H(ke),se.current=t}},[t]),(0,i.useEffect)(function(){($===Le&&!h||$===xe&&!p||$===De&&!g)&&H(ke)},[h,p,g]),(0,i.useEffect)(function(){return function(){U.current=!1,clearTimeout(B.current)}},[]);var le=i.useRef(!1);(0,i.useEffect)(function(){A&&(le.current=!0),void 0!==A&&$===ke&&((le.current||A)&&(null==P||P(A)),le.current=!0)},[A,$]);var ue=V;return ee[Oe]&&ie===Ee&&(ue=(0,r.A)({transition:"none"},ue)),[$,ie,ue,null!=A?A:t]}const ut=function(e){var t=e;"object"===(0,v.A)(e)&&(t=e.transitionSupport);var n=i.forwardRef(function(e,n){var o=e.visible,s=void 0===o||o,l=e.removeOnLeave,u=void 0===l||l,c=e.forceRender,d=e.children,p=e.motionName,f=e.leavedClassName,h=e.eventProps,m=function(e,n){return!(!e.motionName||!t||!1===n)}(e,i.useContext(ue).motion),g=(0,i.useRef)(),v=(0,i.useRef)();var y=lt(m,s,function(){try{return g.current instanceof HTMLElement?g.current:le(v.current)}catch(e){return null}},e),b=(0,a.A)(y,4),_=b[0],w=b[1],M=b[2],k=b[3],L=i.useRef(k);k&&(L.current=!0);var T,O=i.useCallback(function(e){g.current=e,S(n,e)},[n]),E=(0,r.A)((0,r.A)({},h),{},{visible:s});if(d)if(_===ke)T=k?d((0,r.A)({},E),O):!u&&L.current&&f?d((0,r.A)((0,r.A)({},E),{},{className:f}),O):c||!u&&!f?d((0,r.A)((0,r.A)({},E),{},{style:{display:"none"}}),O):null;else{var P;w===Oe?P="prepare":ot(w)?P="active":w===Ee&&(P="start");var C=Ge(p,"".concat(_,"-").concat(P));T=d((0,r.A)((0,r.A)({},E),{},{className:oe()(Ge(p,_),(0,re.A)((0,re.A)({},C,C&&P),p,"string"==typeof p)),style:M}),O)}else T=null;i.isValidElement(T)&&x(T)&&(function(e){if(e&&D(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null}(T)||(T=i.cloneElement(T,{ref:O})));return i.createElement(we,{ref:v},T)});return n.displayName="CSSMotion",n}(Ue);var ct=n(29644),dt="add",pt="keep",ft="remove",ht="removed";function mt(e){var t;return t=e&&"object"===(0,v.A)(e)&&"key"in e?e:{key:e},(0,r.A)((0,r.A)({},t),{},{key:String(t.key)})}function gt(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(mt)}var vt=["component","children","onVisibleChanged","onAllRemoved"],yt=["status"],bt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ut,t=function(t){me(a,t);var n=be(a);function a(){var e;ce(this,a);for(var t=arguments.length,i=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],a=0,i=t.length,o=gt(e),s=gt(t);o.forEach(function(e){for(var t=!1,o=a;o1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==ft})).forEach(function(t){t.key===e&&(t.status=pt)})}),n}(a,i);return{keyEntities:o.filter(function(e){var t=a.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==ht||e.status!==ft})}}}]),a}(i.Component);(0,re.A)(t,"defaultProps",{component:"div"})}(Ue);const _t=ut;var wt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=wt.F1&&t<=wt.F12)return!1;switch(t){case wt.ALT:case wt.CAPS_LOCK:case wt.CONTEXT_MENU:case wt.CTRL:case wt.DOWN:case wt.END:case wt.ESC:case wt.HOME:case wt.INSERT:case wt.LEFT:case wt.MAC_FF_META:case wt.META:case wt.NUMLOCK:case wt.NUM_CENTER:case wt.PAGE_DOWN:case wt.PAGE_UP:case wt.PAUSE:case wt.PRINT_SCREEN:case wt.RIGHT:case wt.SHIFT:case wt.UP:case wt.WIN_KEY:case wt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=wt.ZERO&&e<=wt.NINE)return!0;if(e>=wt.NUM_ZERO&&e<=wt.NUM_MULTIPLY)return!0;if(e>=wt.A&&e<=wt.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case wt.SPACE:case wt.QUESTION_MARK:case wt.NUM_PLUS:case wt.NUM_MINUS:case wt.NUM_PERIOD:case wt.NUM_DIVISION:case wt.SEMICOLON:case wt.DASH:case wt.EQUALS:case wt.COMMA:case wt.PERIOD:case wt.SLASH:case wt.APOSTROPHE:case wt.SINGLE_QUOTE:case wt.OPEN_SQUARE_BRACKET:case wt.BACKSLASH:case wt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Mt=wt;var St="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function kt(e,t){return 0===e.indexOf(t)}function Lt(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,r.A)({},n);var a={};return Object.keys(e).forEach(function(n){(t.aria&&("role"===n||kt(n,"aria-"))||t.data&&kt(n,"data-")||t.attr&&St.includes(n))&&(a[n]=e[n])}),a}var xt=["prefixCls","className","containerRef"];const Dt=function(e){var t=e.prefixCls,n=e.className,r=e.containerRef,a=(0,ct.A)(e,xt),o=i.useContext(te).panel,s=L(o,r);return i.createElement("div",(0,ae.A)({className:oe()("".concat(t,"-content"),n),role:"dialog",ref:s},Lt(e,{aria:!0}),{"aria-modal":"true"},a))};function Tt(e){return"string"==typeof e&&String(Number(e))===e?(g(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var Ot={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Et(e,t){var n,o,s,l=e.prefixCls,u=e.open,c=e.placement,d=e.inline,p=e.push,f=e.forceRender,h=e.autoFocus,m=e.keyboard,g=e.classNames,v=e.rootClassName,y=e.rootStyle,b=e.zIndex,_=e.className,w=e.id,M=e.style,S=e.motion,k=e.width,L=e.height,x=e.children,D=e.mask,T=e.maskClosable,O=e.maskMotion,E=e.maskClassName,P=e.maskStyle,C=e.afterOpenChange,Y=e.onClose,A=e.onMouseEnter,R=e.onMouseOver,j=e.onMouseLeave,I=e.onClick,F=e.onKeyDown,H=e.onKeyUp,N=e.styles,z=e.drawerRender,V=i.useRef(),W=i.useRef(),$=i.useRef();i.useImperativeHandle(t,function(){return V.current});i.useEffect(function(){var e;u&&h&&(null===(e=V.current)||void 0===e||e.focus({preventScroll:!0}))},[u]);var U=i.useState(!1),B=(0,a.A)(U,2),q=B[0],G=B[1],K=i.useContext(ne),J=null!==(n=null!==(o=null===(s="boolean"==typeof p?p?{}:{distance:0}:p||{})||void 0===s?void 0:s.distance)&&void 0!==o?o:null==K?void 0:K.pushDistance)&&void 0!==n?n:180,Q=i.useMemo(function(){return{pushDistance:J,push:function(){G(!0)},pull:function(){G(!1)}}},[J]);i.useEffect(function(){var e,t;u?null==K||null===(e=K.push)||void 0===e||e.call(K):null==K||null===(t=K.pull)||void 0===t||t.call(K)},[u]),i.useEffect(function(){return function(){var e;null==K||null===(e=K.pull)||void 0===e||e.call(K)}},[]);var Z=i.createElement(_t,(0,ae.A)({key:"mask"},O,{visible:D&&u}),function(e,t){var n=e.className,a=e.style;return i.createElement("div",{className:oe()("".concat(l,"-mask"),n,null==g?void 0:g.mask,E),style:(0,r.A)((0,r.A)((0,r.A)({},a),P),null==N?void 0:N.mask),onClick:T&&u?Y:void 0,ref:t})}),X="function"==typeof S?S(c):S,ee={};if(q&&J)switch(c){case"top":ee.transform="translateY(".concat(J,"px)");break;case"bottom":ee.transform="translateY(".concat(-J,"px)");break;case"left":ee.transform="translateX(".concat(J,"px)");break;default:ee.transform="translateX(".concat(-J,"px)")}"left"===c||"right"===c?ee.width=Tt(k):ee.height=Tt(L);var te={onMouseEnter:A,onMouseOver:R,onMouseLeave:j,onClick:I,onKeyDown:F,onKeyUp:H},ie=i.createElement(_t,(0,ae.A)({key:"panel"},X,{visible:u,forceRender:f,onVisibleChanged:function(e){null==C||C(e)},removeOnLeave:!1,leavedClassName:"".concat(l,"-content-wrapper-hidden")}),function(t,n){var a=t.className,o=t.style,s=i.createElement(Dt,(0,ae.A)({id:w,containerRef:n,prefixCls:l,className:oe()(_,null==g?void 0:g.content),style:(0,r.A)((0,r.A)({},M),null==N?void 0:N.content)},Lt(e,{aria:!0}),te),x);return i.createElement("div",(0,ae.A)({className:oe()("".concat(l,"-content-wrapper"),null==g?void 0:g.wrapper,a),style:(0,r.A)((0,r.A)((0,r.A)({},ee),o),null==N?void 0:N.wrapper)},Lt(e,{data:!0})),z?z(s):s)}),se=(0,r.A)({},y);return b&&(se.zIndex=b),i.createElement(ne.Provider,{value:Q},i.createElement("div",{className:oe()(l,"".concat(l,"-").concat(c),v,(0,re.A)((0,re.A)({},"".concat(l,"-open"),u),"".concat(l,"-inline"),d)),style:se,tabIndex:-1,ref:V,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case Mt.TAB:var r;if(t===Mt.TAB)if(n||document.activeElement!==$.current){if(n&&document.activeElement===W.current){var a;null===(a=$.current)||void 0===a||a.focus({preventScroll:!0})}}else null===(r=W.current)||void 0===r||r.focus({preventScroll:!0});break;case Mt.ESC:Y&&m&&(e.stopPropagation(),Y(e))}}},Z,i.createElement("div",{tabIndex:0,ref:W,style:Ot,"aria-hidden":"true","data-sentinel":"start"}),ie,i.createElement("div",{tabIndex:0,ref:$,style:Ot,"aria-hidden":"true","data-sentinel":"end"})))}const Pt=i.forwardRef(Et);const Ct=function(e){var t=e.open,n=void 0!==t&&t,o=e.prefixCls,s=void 0===o?"rc-drawer":o,l=e.placement,u=void 0===l?"right":l,c=e.autoFocus,d=void 0===c||c,p=e.keyboard,f=void 0===p||p,h=e.width,m=void 0===h?378:h,g=e.mask,v=void 0===g||g,y=e.maskClosable,b=void 0===y||y,_=e.getContainer,w=e.forceRender,M=e.afterOpenChange,S=e.destroyOnClose,k=e.onMouseEnter,L=e.onMouseOver,x=e.onMouseLeave,D=e.onClick,T=e.onKeyDown,O=e.onKeyUp,E=e.panelRef,P=i.useState(!1),C=(0,a.A)(P,2),Y=C[0],R=C[1];var j=i.useState(!1),I=(0,a.A)(j,2),F=I[0],H=I[1];A(function(){H(!0)},[]);var N=!!F&&n,z=i.useRef(),V=i.useRef();A(function(){N&&(V.current=document.activeElement)},[N]);var W=i.useMemo(function(){return{panel:E}},[E]);if(!w&&!Y&&!N&&S)return null;var $={onMouseEnter:k,onMouseOver:L,onMouseLeave:x,onClick:D,onKeyDown:T,onKeyUp:O},U=(0,r.A)((0,r.A)({},e),{},{open:N,prefixCls:s,placement:u,autoFocus:d,keyboard:f,width:m,mask:v,maskClosable:b,inline:!1===_,afterOpenChange:function(e){var t,n;(R(e),null==M||M(e),e||!V.current||null!==(t=z.current)&&void 0!==t&&t.contains(V.current))||(null===(n=V.current)||void 0===n||n.focus({preventScroll:!0}))},ref:z},$);return i.createElement(te.Provider,{value:W},i.createElement(X,{open:N||w||Y,autoDestroy:!1,getContainer:_,autoLock:v&&(N||Y)},i.createElement(Pt,U)))},Yt=Ct},71570(e,t,n){"use strict";n.d(t,{Ng:()=>i,TW:()=>r,mD:()=>a});const r=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},a=e=>{if(e&&"window"in e&&e.window===e)return e;return r(e).defaultView||window};function i(e){return null!==(t=e)&&"object"==typeof t&&"nodeType"in t&&"number"==typeof t.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e;var t}},71617(e,t,n){"use strict";const r=n(37944);e.exports=(e,t)=>new r(e,t).patch},71792(e,t,n){"use strict";n.d(t,{A:()=>L});var r=n(85959);var a=["br","col","colgroup","dl","hr","iframe","img","input","link","menuitem","meta","ol","param","select","table","tbody","tfoot","thead","tr","ul","wbr"],i={"accept-charset":"acceptCharset",acceptcharset:"acceptCharset",accesskey:"accessKey",allowfullscreen:"allowFullScreen",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",class:"className",classid:"classID",classname:"className",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",controlslist:"controlsList",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",datetime:"dateTime",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",enctype:"encType",for:"htmlFor",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",innerhtml:"innerHTML",inputmode:"inputMode",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",marginwidth:"marginWidth",marginheight:"marginHeight",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",nomodule:"noModule",novalidate:"noValidate",playsinline:"playsInline",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",typemustmatch:"typeMustMatch",usemap:"useMap",accentheight:"accentHeight","accent-height":"accentHeight",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",arabicform:"arabicForm","arabic-form":"arabicForm",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",edgemode:"edgeMode",enablebackground:"enableBackground","enable-background":"enableBackground",externalresourcesrequired:"externalResourcesRequired",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",imagerendering:"imageRendering","image-rendering":"imageRendering",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",vmathematical:"vMathematical","v-mathematical":"vMathematical",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan",onblur:"onBlur",onchange:"onChange",onclick:"onClick",oncontextmenu:"onContextMenu",ondoubleclick:"onDoubleClick",ondrag:"onDrag",ondragend:"onDragEnd",ondragenter:"onDragEnter",ondragexit:"onDragExit",ondragleave:"onDragLeave",ondragover:"onDragOver",ondragstart:"onDragStart",ondrop:"onDrop",onerror:"onError",onfocus:"onFocus",oninput:"onInput",oninvalid:"onInvalid",onkeydown:"onKeyDown",onkeypress:"onKeyPress",onkeyup:"onKeyUp",onload:"onLoad",onmousedown:"onMouseDown",onmouseenter:"onMouseEnter",onmouseleave:"onMouseLeave",onmousemove:"onMouseMove",onmouseout:"onMouseOut",onmouseover:"onMouseOver",onmouseup:"onMouseUp",onscroll:"onScroll",onsubmit:"onSubmit",ontouchcancel:"onTouchCancel",ontouchend:"onTouchEnd",ontouchmove:"onTouchMove",ontouchstart:"onTouchStart",onwheel:"onWheel"};function o(e,t){const{key:n,level:o,...l}=t;switch(e.nodeType){case 1:return r.createElement(function(e){if(/[a-z]+[A-Z]+[a-z]+/.test(e))return e;return e.toLowerCase()}(e.nodeName),function(e,t){const n={key:t};if(e instanceof Element){const t=e.getAttribute("class");t&&(n.className=t),[...e.attributes].forEach(e=>{switch(e.name){case"class":break;case"style":n[e.name]="string"!=typeof(t=e.value)?{}:t.split(/ ?; ?/).reduce((e,t)=>{const[n,r]=t.split(/ ?: ?/).map((e,t)=>0===t?e.replace(/\s+/g,""):e.trim());if(n&&r){const t=n.replace(/(\w)-(\w)/g,(e,t,n)=>`${t}${n.toUpperCase()}`);let a=r.trim();Number.isNaN(Number(r))||(a=Number(r)),e[n.startsWith("-")?n:t]=a}return e},{});break;case"allowfullscreen":case"allowpaymentrequest":case"async":case"autofocus":case"autoplay":case"checked":case"controls":case"default":case"defer":case"disabled":case"formnovalidate":case"hidden":case"ismap":case"itemscope":case"loop":case"multiple":case"muted":case"nomodule":case"novalidate":case"open":case"readonly":case"required":case"reversed":case"selected":case"typemustmatch":n[i[e.name]||e.name]=!0;break;default:n[i[e.name]||e.name]=e.value}var t})}return n}(e,n),s(e.childNodes,o,l));case 3:{const t=e.nodeValue?.toString()??"";if(!l.allowWhiteSpaces&&/^\s+$/.test(t)&&!/[\u00A0\u202F]/.test(t))return null;if(!e.parentNode)return t;const n=e.parentNode.nodeName.toLowerCase();return a.includes(n)?(/\S/.test(t)&&console.warn(`A textNode is not allowed inside '${n}'. Your text "${t}" will be ignored`),null):t}case 8:default:return null;case 11:return s(e.childNodes,o,t)}}function s(e,t,n){const r=[...e].map((e,r)=>u(e,{...n,index:r,level:t+1})).filter(Boolean);return r.length?r:null}function l(e,t={}){return"string"==typeof e?function(e,t={}){if(!e||"string"!=typeof e)return null;const{includeAllNodes:n=!1,nodeOnly:r=!1,selector:a="body > *",type:i="text/html"}=t;try{const o=(new DOMParser).parseFromString(e,i);if(n){const{childNodes:e}=o.body;return r?e:[...e].map(e=>u(e,t))}const s=o.querySelector(a)||o.body.childNodes[0];if(!(s instanceof Node))throw new TypeError("Error parsing input");return r?s:u(s,t)}catch(e){0}return null}(e,t):e instanceof Node?u(e,t):null}function u(e,t={}){if(!(e&&e instanceof Node))return null;const{actions:n=[],index:r=0,level:a=0,randomKey:i}=t;let s=e,l=`${a}-${r}`;const u=[];return i&&0===a&&(l=`${function(e=6){const t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let n="";for(let r=e;r>0;--r)n+=t[Math.round(61*Math.random())];return n}()}-${l}`),Array.isArray(n)&&n.forEach(t=>{t.condition(s,l,a)&&("function"==typeof t.pre&&(s=t.pre(s,l,a),s instanceof Node||(s=e)),"function"==typeof t.post&&u.push(t.post(s,l,a)))}),u.length?u:o(s,{key:l,level:a,...t})}var c=Object.defineProperty,d=(e,t,n)=>((e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),p="react-inlinesvg",f={IDLE:"idle",LOADING:"loading",LOADED:"loaded",FAILED:"failed",READY:"ready",UNSUPPORTED:"unsupported"};function h(e){return e[Math.floor(Math.random()*e.length)]}function m(){return!("undefined"==typeof window||!window.document?.createElement)}function g(){return function(){if(!document)return!1;const e=document.createElement("div");e.innerHTML="";const t=e.firstChild;return!!t&&"http://www.w3.org/2000/svg"===t.namespaceURI}()&&"undefined"!=typeof window&&null!==window}async function v(e,t){const n=await fetch(e,t),r=n.headers.get("content-type"),[a]=(r??"").split(/ ?; ?/);if(n.status>299)throw new Error("Not found");if(!["image/svg+xml","text/plain"].some(e=>a.includes(e)))throw new Error(`Content type isn't valid: ${a}`);return n.text()}function y(e=1){return new Promise(t=>{setTimeout(t,1e3*e)})}var b,_=class{constructor(){d(this,"cacheApi"),d(this,"cacheStore"),d(this,"subscribers",[]),d(this,"isReady",!1),this.cacheStore=new Map;let e=p,t=!1;m()&&(e=window.REACT_INLINESVG_CACHE_NAME??p,t=!!window.REACT_INLINESVG_PERSISTENT_CACHE&&"caches"in window),t?caches.open(e).then(e=>{this.cacheApi=e}).catch(e=>{console.error(`Failed to open cache: ${e.message}`),this.cacheApi=void 0}).finally(()=>{this.isReady=!0;const e=[...this.subscribers];this.subscribers.length=0,e.forEach(e=>{try{e()}catch(e){console.error(`Error in CacheStore subscriber callback: ${e.message}`)}})}):this.isReady=!0}onReady(e){this.isReady?e():this.subscribers.push(e)}async get(e,t){return await(this.cacheApi?this.fetchAndAddToPersistentCache(e,t):this.fetchAndAddToInternalCache(e,t)),this.cacheStore.get(e)?.content??""}set(e,t){this.cacheStore.set(e,t)}isCached(e){return this.cacheStore.get(e)?.status===f.LOADED}async fetchAndAddToInternalCache(e,t){const n=this.cacheStore.get(e);if(n?.status!==f.LOADING){if(!n?.content){this.cacheStore.set(e,{content:"",status:f.LOADING});try{const n=await v(e,t);this.cacheStore.set(e,{content:n,status:f.LOADED})}catch(t){throw this.cacheStore.set(e,{content:"",status:f.FAILED}),t}}}else await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:f.IDLE}),await this.fetchAndAddToInternalCache(e,t)})}async fetchAndAddToPersistentCache(e,t){const n=this.cacheStore.get(e);if(n?.status===f.LOADED)return;if(n?.status===f.LOADING)return void await this.handleLoading(e,async()=>{this.cacheStore.set(e,{content:"",status:f.IDLE}),await this.fetchAndAddToPersistentCache(e,t)});this.cacheStore.set(e,{content:"",status:f.LOADING});const r=await(this.cacheApi?.match(e));if(r){const t=await r.text();return void this.cacheStore.set(e,{content:t,status:f.LOADED})}try{await(this.cacheApi?.add(new Request(e,t)));const n=await(this.cacheApi?.match(e)),r=await(n?.text())??"";this.cacheStore.set(e,{content:r,status:f.LOADED})}catch(t){throw this.cacheStore.set(e,{content:"",status:f.FAILED}),t}}async handleLoading(e,t){for(let t=0;t<10;t++){if(this.cacheStore.get(e)?.status!==f.LOADING)return;await y(.1)}await t()}keys(){return[...this.cacheStore.keys()]}data(){return[...this.cacheStore.entries()].map(([e,t])=>({[e]:t}))}async delete(e){this.cacheApi&&await this.cacheApi.delete(e),this.cacheStore.delete(e)}async clear(){if(this.cacheApi){const e=await this.cacheApi.keys();await Promise.allSettled(e.map(e=>this.cacheApi.delete(e)))}this.cacheStore.clear()}};function w(e){const t=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>{t.current=e}),t.current}function M(e){const{baseURL:t,content:n,description:r,handleError:a,hash:i,preProcessor:o,title:s,uniquifyIDs:u=!1}=e;try{const e=function(e,t){if(t)return t(e);return e}(n,o),a=l(e,{nodeOnly:!0});if(!(a&&a instanceof SVGSVGElement))throw new Error("Could not convert the src to a DOM Node");const c=S(a,{baseURL:t,hash:i,uniquifyIDs:u});if(r){const e=c.querySelector("desc");e?.parentNode&&e.parentNode.removeChild(e);const t=document.createElementNS("http://www.w3.org/2000/svg","desc");t.innerHTML=r,c.prepend(t)}if(void 0!==s){const e=c.querySelector("title");if(e?.parentNode&&e.parentNode.removeChild(e),s){const e=document.createElementNS("http://www.w3.org/2000/svg","title");e.innerHTML=s,c.prepend(e)}}return c}catch(e){return a(e)}}function S(e,t){const{baseURL:n="",hash:r,uniquifyIDs:a}=t,i=["id","href","xlink:href","xlink:role","xlink:arcrole"],o=["href","xlink:href"];return a?([...e.children].forEach(e=>{if(e.attributes?.length){const t=Object.values(e.attributes).map(e=>{const t=e,a=/url\((.*?)\)/.exec(e.value);return a?.[1]&&(t.value=e.value.replace(a[0],`url(${n}${a[1]}__${r})`)),t});i.forEach(e=>{const n=t.find(t=>t.name===e);var a,i;n&&(a=e,i=n.value,!o.includes(a)||!i||i.includes("#"))&&(n.value=`${n.value}__${r}`)})}return e.children.length?S(e,t):e}),e):e}function k(e){const{cacheRequests:t=!0,children:n=null,description:a,fetchOptions:i,innerRef:o,loader:s=null,onError:u,onLoad:c,src:d,title:p,uniqueHash:y}=e,[_,S]=(0,r.useReducer)((e,t)=>({...e,...t}),{content:"",element:null,isCached:t&&b.isCached(e.src),status:f.IDLE}),{content:k,element:L,isCached:x,status:D}=_,T=w(e),O=w(_),E=(0,r.useRef)(y??function(e){const t="abcdefghijklmnopqrstuvwxyz",n=`${t}${t.toUpperCase()}1234567890`;let r="";for(let t=0;t{P.current&&(S({status:"Browser does not support SVG"===e.message?f.UNSUPPORTED:f.FAILED}),u?.(e))},[u]),A=(0,r.useCallback)((e,t=!1)=>{P.current&&S({content:e,isCached:t,status:f.LOADED})},[]),R=(0,r.useCallback)(async()=>{const e=await v(d,i);A(e)},[i,A,d]),j=(0,r.useCallback)(()=>{try{const t=l(M({...e,handleError:Y,hash:E.current,content:k}));if(!t||!(0,r.isValidElement)(t))throw new Error("Could not convert the src to a React element");S({element:t,status:f.READY})}catch(e){Y(e)}},[k,Y,e]),I=(0,r.useCallback)(async()=>{const e=/^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(d);let n;if(e?n=e[1]?window.atob(e[2]):decodeURIComponent(e[2]):d.includes("{P.current&&S({content:"",element:null,isCached:!1,status:f.LOADING})},[]);(0,r.useEffect)(()=>{if(P.current=!0,m()&&!C.current){try{if(D===f.IDLE){if(!g())throw new Error("Browser does not support SVG");if(!d)throw new Error("Missing src");F()}}catch(e){Y(e)}return C.current=!0,()=>{P.current=!1}}},[]),(0,r.useEffect)(()=>{if(m()&&T&&T.src!==d){if(!d)return void Y(new Error("Missing src"));F()}},[Y,F,T,d]),(0,r.useEffect)(()=>{D===f.LOADED&&j()},[D,j]),(0,r.useEffect)(()=>{m()&&T&&T.src===d&&(T.title===p&&T.description===a||j())},[a,j,T,d,p]),(0,r.useEffect)(()=>{if(O)switch(D){case f.LOADING:O.status!==f.LOADING&&I();break;case f.LOADED:O.status!==f.LOADED&&j();break;case f.READY:O.status!==f.READY&&c?.(d,x)}},[I,j,x,c,O,d,D]);const H=function(e,...t){const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}(e,"baseURL","cacheRequests","children","description","fetchOptions","innerRef","loader","onError","onLoad","preProcessor","src","title","uniqueHash","uniquifyIDs");return m()?L?(0,r.cloneElement)(L,{ref:o,...H}):[f.UNSUPPORTED,f.FAILED].includes(D)?n:s:s}function L(e){b||(b=new _);const{loader:t}=e,[n,a]=(0,r.useState)(b.isReady);return(0,r.useEffect)(()=>{n||b.onReady(()=>{a(!0)})},[n]),n?r.createElement(k,{...e}):t}},72393(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pipeFromArray=t.pipe=void 0;var r=n(79391);function a(e){return 0===e.length?r.identity:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}t.pipe=function(){for(var e=[],t=0;tr(e,t,"<",n)},74379(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(42689))},74492(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairwise=void 0;var r=n(35416),a=n(1266);t.pairwise=function(){return r.operate(function(e,t){var n,r=!1;e.subscribe(a.createOperatorSubscriber(t,function(e){var a=n;n=e,r&&t.next([a,e]),r=!0}))})}},74636(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.default=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(a,o,s):a[o]=e[o]}a.default=e,n&&n.set(e,a);return a}(n(85959)),i=d(n(62688)),o=d(n(77842)),s=n(20414),l=n(50544),u=d(n(59482)),c=["breakpoint","breakpoints","cols","layouts","margin","containerPadding","onBreakpointChange","onLayoutChange","onWidthChange"];function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function f(){return f=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;te[n]})}return t.default=e,Object.freeze(t)}const s=o(r),l="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;function u({useFlushSync:e=!0,...t}){const n=s.useReducer(()=>({}),{})[1],r={...t,onChange:(r,i)=>{var o;e&&i?a.flushSync(n):n(),null==(o=t.onChange)||o.call(t,r,i)}},[o]=s.useState(()=>new i.Virtualizer(r));return o.setOptions(r),l(()=>o._didMount(),[]),l(()=>o._willUpdate()),o}t.useVirtualizer=function(e){return u({observeElementRect:i.observeElementRect,observeElementOffset:i.observeElementOffset,scrollToFn:i.elementScroll,...e})},t.useWindowVirtualizer=function(e){return u({getScrollElement:()=>"undefined"!=typeof document?window:null,observeElementRect:i.observeWindowRect,observeElementOffset:i.observeWindowOffset,scrollToFn:i.windowScroll,initialOffset:()=>"undefined"!=typeof document?window.scrollY:0,...e})},Object.keys(i).forEach(e=>{"default"===e||Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:()=>i[e]})})},74828(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.map=void 0;var r=n(35416),a=n(1266);t.map=function(e,t){return r.operate(function(n,r){var i=0;n.subscribe(a.createOperatorSubscriber(r,function(n){r.next(e.call(t,n,i++))}))})}},75031(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeSchedule=void 0,t.executeSchedule=function(e,t,n,r,a){void 0===r&&(r=0),void 0===a&&(a=!1);var i=t.schedule(function(){n(),a?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!a)return i}},75251(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(42689))},75305(e,t,n){!function(e){"use strict";function t(e,t,n,r){var a={s:["çend sanîye","çend sanîyeyan"],ss:[e+" sanîye",e+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[e+" deqîqe",e+" deqîqeyan"],h:["saetek","saetekê"],hh:[e+" saet",e+" saetan"],d:["rojek","rojekê"],dd:[e+" roj",e+" rojan"],w:["hefteyek","hefteyekê"],ww:[e+" hefte",e+" hefteyan"],M:["mehek","mehekê"],MM:[e+" meh",e+" mehan"],y:["salek","salekê"],yy:[e+" sal",e+" salan"]};return t?a[n][0]:a[n][1]}function n(e){var t=(e=""+e).substring(e.length-1),n=e.length>1?e.substring(e.length-2):"";return 12==n||13==n||"2"!=t&&"3"!=t&&"50"!=n&&"70"!=t&&"80"!=t?"ê":"yê"}e.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(e,t,n){return e<12?n?"bn":"BN":n?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,w:t,ww:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(e,t){var r=t.toLowerCase();return r.includes("w")||r.includes("m")?e+".":e+n(e)},week:{dow:1,doy:4}})}(n(42689))},75492(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.window=void 0;var r=n(20020),a=n(35416),i=n(1266),o=n(16129),s=n(52296);t.window=function(e){return a.operate(function(t,n){var a=new r.Subject;n.next(a.asObservable());var l=function(e){a.error(e),n.error(e)};return t.subscribe(i.createOperatorSubscriber(n,function(e){return null==a?void 0:a.next(e)},function(){a.complete(),n.complete()},l)),s.innerFrom(e).subscribe(i.createOperatorSubscriber(n,function(){a.complete(),n.next(a=new r.Subject)},o.noop,l)),function(){null==a||a.unsubscribe(),a=null}})}},75945(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttleTime=void 0;var r=n(4386),a=n(16516),i=n(35461);t.throttleTime=function(e,t,n){void 0===t&&(t=r.asyncScheduler);var o=i.timer(e,t);return a.throttle(function(){return o},n)}},76506(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},76511(e,t){var n=Object.keys;t.L=function(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;for(var r=n(e),a=r.length,i=0;i=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferCount=void 0;var a=n(35416),i=n(1266),o=n(7394);t.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,a.operate(function(n,a){var s=[],l=0;n.subscribe(i.createOperatorSubscriber(a,function(n){var i,u,c,d,p=null;l++%t===0&&s.push([]);try{for(var f=r(s),h=f.next();!h.done;h=f.next()){(v=h.value).push(n),e<=v.length&&(p=null!=p?p:[]).push(v)}}catch(e){i={error:e}}finally{try{h&&!h.done&&(u=f.return)&&u.call(f)}finally{if(i)throw i.error}}if(p)try{for(var m=r(p),g=m.next();!g.done;g=m.next()){var v=g.value;o.arrRemove(s,v),a.next(v)}}catch(e){c={error:e}}finally{try{g&&!g.done&&(d=m.return)&&d.call(m)}finally{if(c)throw c.error}}},function(){var e,t;try{for(var n=r(s),i=n.next();!i.done;i=n.next()){var o=i.value;a.next(o)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}a.complete()},void 0,function(){s=null}))})}},77243(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(42689))},77270(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(42689))},77638(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Action=void 0;var i=function(e){function t(t,n){return e.call(this)||this}return a(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(27491).Subscription);t.Action=i},77842(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",a=9007199254740991,i="[object Arguments]",o="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",d="[object Map]",p="[object Number]",f="[object Object]",h="[object Promise]",m="[object RegExp]",g="[object Set]",v="[object String]",y="[object Symbol]",b="[object WeakMap]",_="[object ArrayBuffer]",w="[object DataView]",M=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,k={};k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k[i]=k[o]=k[_]=k[s]=k[w]=k[l]=k[u]=k[c]=k[d]=k[p]=k[f]=k[m]=k[g]=k[v]=k[b]=!1;var L="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,x="object"==typeof self&&self&&self.Object===Object&&self,D=L||x||Function("return this")(),T=t&&!t.nodeType&&t,O=T&&e&&!e.nodeType&&e,E=O&&O.exports===T,P=E&&L.process,C=function(){try{return P&&P.binding&&P.binding("util")}catch(e){}}(),Y=C&&C.isTypedArray;function A(e,t){for(var n=-1,r=null==e?0:e.length;++ns))return!1;var u=i.get(e);if(u&&i.get(t))return u==t;var c=-1,d=!0,p=2&n?new _e:void 0;for(i.set(e,t),i.set(t,e);++c-1},ye.prototype.set=function(e,t){var n=this.__data__,r=Se(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},be.prototype.clear=function(){this.size=0,this.__data__={hash:new ve,map:new(ie||ye),string:new ve}},be.prototype.delete=function(e){var t=Pe(this,e).delete(e);return this.size-=t?1:0,t},be.prototype.get=function(e){return Pe(this,e).get(e)},be.prototype.has=function(e){return Pe(this,e).has(e)},be.prototype.set=function(e,t){var n=Pe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},_e.prototype.add=_e.prototype.push=function(e){return this.__data__.set(e,r),this},_e.prototype.has=function(e){return this.__data__.has(e)},we.prototype.clear=function(){this.__data__=new ye,this.size=0},we.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},we.prototype.get=function(e){return this.__data__.get(e)},we.prototype.has=function(e){return this.__data__.has(e)},we.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ye){var r=n.__data__;if(!ie||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new be(r)}return n.set(e,t),this.size=n.size,this};var Ye=te?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n-1&&e%1==0&&e-1&&e%1==0&&e<=a}function We(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function $e(e){return null!=e&&"object"==typeof e}var Ue=Y?function(e){return function(t){return e(t)}}(Y):function(e){return $e(e)&&Ve(e.length)&&!!k[ke(e)]};function Be(e){return null!=(t=e)&&Ve(t.length)&&!ze(t)?Me(e):Te(e);var t}e.exports=function(e,t){return xe(e,t)}},77893(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(42689))},78346(e,t){"use strict";t.pluginVersion="12.4.1"},78477(e,t){"use strict";t.default={"grafana-scenes":{components:{"adhoc-filter-pill":{"edit-filter-with-key":"{{keyLabel}} kulcsos szűrő szerkesztése","managed-filter":"{{origin}} által kezelt szűrő","non-applicable":"","remove-filter-with-key":"{{keyLabel}} kulcsos szűrő eltávolítása"},"adhoc-filters-combobox":{"remove-filter-value":"Szűrőérték eltávolítása – {{itemLabel}}","use-custom-value":"Egyéni érték használata: {{itemLabel}}"},"fallback-page":{content:"Ha egy hivatkozáson keresztül lépett ide, akkor lehet, hogy hiba van ebben az alkalmazásban.",subTitle:"Az URL-cím nem egyezett egyetlen oldallal sem",title:"Nem található"},"lazy-loader":{placeholder:""},"nested-scene-renderer":{"collapse-button-label":"Jelenet összecsukása","expand-button-label":"Jelenet kibontása","remove-button-label":"Jelenet eltávolítása"},"scene-debugger":{"object-details":"Az objektum részletei","scene-graph":"Jelenetdiagram","title-scene-debugger":"Jelenet-hibakereső"},"scene-grid-row":{"collapse-row":"Sor összecsukása","expand-row":"Sor kibontása"},"scene-refresh-picker":{"text-cancel":"Mégse","text-refresh":"Frissítés","tooltip-cancel":""},"scene-time-range-compare-renderer":{"button-label":"Összehasonlítás","button-tooltip":"Időkeret-összehasonlítás engedélyezése"},splitter:{"aria-label-pane-resize-widget":"Ablaktábla-átméretezési widget"},"time-picker":{"move-backward-tooltip":"","move-forward-tooltip":""},"viz-panel":{title:{title:"Cím"}},"viz-panel-explore-button":{explore:"Explore"},"viz-panel-renderer":{"loading-plugin-panel":"Bővítménypanel betöltése…","panel-plugin-has-no-panel-component":"A panelbővítménynek nincs panelösszetevője"},"viz-panel-series-limit":{"content-rendering-series-single-panel-impact-performance":"Ha túl sok sorozatot jelenít meg egyetlen panelen, az hatással lehet a teljesítményre, és megnehezítheti az adatok olvasását.","warning-message":"Csak {{seriesLimit}} sorozat megjelenítése"}},utils:{"controls-label":{"tooltip-remove":"Eltávolítás"},"loading-indicator":{"content-cancel-query":"A lekérdezés megszakítása"}},variables:{"ad-hoc-combobox":{"aria-label-edit-filter-operator":"Szűrőoperátor szerkesztése"},"ad-hoc-filter-builder":{"aria-label-add-filter":"Szűrő hozzáadása","title-add-filter":"Szűrő hozzáadása"},"ad-hoc-filter-renderer":{"aria-label-remove-filter":"Szűrő eltávolítása","key-select":{"placeholder-select-label":"Címke kiválasztása"},"label-select-label":"Címke kiválasztása","title-remove-filter":"Szűrő eltávolítása","value-select":{"placeholder-select-value":"Érték kiválasztása"}},"data-source-variable":{label:{default:"alapértelmezés"}},"default-group-by-custom-indicator-container":{"aria-label-clear":"törlés",tooltip:"Alapértelmezés szerint alkalmazva ezen az irányítópulton. A szerkesztést átviszi más irányítópultokra.","tooltip-restore-groupby-set-by-this-dashboard":"A jelen irányítópult által beállított csoportosítási szempont visszaállítása."},"format-registry":{formats:{description:{"commaseparated-values":"Vesszővel elválasztott értékek","double-quoted-values":"Dupla idézőjeles értékek","format-date-in-different-ways":"Dátum formázása különböző módokon","format-multivalued-variables-using-syntax-example":"Többértékű változók formázása glob szintaxissal, például: {érték1,érték2}","html-escaping-of-values":"Értékek módosított HTML-értelmezése","join-values-with-a-comma":"","json-stringify-value":"A JSON stringify értéke","keep-value-as-is":"Érték megtartása adott állapotban","multiple-values-are-formatted-like-variablevalue":"Több érték formázása változó=érték formátumban","single-quoted-values":"Egyszeres idézőjeles értékek","useful-escaping-values-taking-syntax-characters":"Hasznos az értékek módosított URL-értelmezéséhez, az URI-szintaktikai karakterek figyelembevételével","useful-for-url-escaping-values":"Hasznos az értékek módosított URL-értelmezéséhez","values-are-separated-by-character":"Az értékeket | karakter választja el"}}},"group-by-variable-renderer":{"aria-label-group-by-selector":"Csoportosításiszempont-választó","placeholder-group-by-label":"Csoportosítási szempont címkéje"},"interval-variable":{"placeholder-select-value":"Érték kiválasztása"},"loading-options-placeholder":{"loading-options":"Beállítások betöltése…"},"multi-value-apply-button":{apply:"Alkalmaz"},"no-options-placeholder":{"no-options-found":"Nem található beállítás"},"options-error-placeholder":{"error-occurred-fetching-labels-click-retry":"Hiba történt a címkék lekérése során. Kattintson az újrapróbálkozáshoz"},"test-object-with-variable-dependency":{title:{hello:"Üdv"}},"test-variable":{text:{text:"Szöveg"}},"variable-value-input":{"placeholder-enter-value":"Érték megadása"},"variable-value-select":{"placeholder-select-value":"Érték kiválasztása"}}}}},78510(e,t,n){"use strict";n.r(t),n.d(t,{AbortedDeferredError:()=>o.AbortedDeferredError,Await:()=>o.Await,BrowserRouter:()=>yt,Form:()=>Lt,HashRouter:()=>bt,Link:()=>St,MemoryRouter:()=>o.MemoryRouter,NavLink:()=>kt,Navigate:()=>o.Navigate,NavigationType:()=>o.NavigationType,Outlet:()=>o.Outlet,Route:()=>o.Route,Router:()=>o.Router,RouterProvider:()=>mt,Routes:()=>o.Routes,ScrollRestoration:()=>xt,UNSAFE_DataRouterContext:()=>o.UNSAFE_DataRouterContext,UNSAFE_DataRouterStateContext:()=>o.UNSAFE_DataRouterStateContext,UNSAFE_ErrorResponseImpl:()=>z,UNSAFE_FetchersContext:()=>ut,UNSAFE_LocationContext:()=>o.UNSAFE_LocationContext,UNSAFE_NavigationContext:()=>o.UNSAFE_NavigationContext,UNSAFE_RouteContext:()=>o.UNSAFE_RouteContext,UNSAFE_ViewTransitionContext:()=>lt,UNSAFE_useRouteId:()=>o.UNSAFE_useRouteId,UNSAFE_useScrollRestoration:()=>zt,createBrowserRouter:()=>at,createHashRouter:()=>it,createMemoryRouter:()=>o.createMemoryRouter,createPath:()=>o.createPath,createRoutesFromChildren:()=>o.createRoutesFromChildren,createRoutesFromElements:()=>o.createRoutesFromElements,createSearchParams:()=>Je,defer:()=>o.defer,generatePath:()=>o.generatePath,isRouteErrorResponse:()=>o.isRouteErrorResponse,json:()=>o.json,matchPath:()=>o.matchPath,matchRoutes:()=>o.matchRoutes,parsePath:()=>o.parsePath,redirect:()=>o.redirect,redirectDocument:()=>o.redirectDocument,renderMatches:()=>o.renderMatches,replace:()=>o.replace,resolvePath:()=>o.resolvePath,unstable_HistoryRouter:()=>_t,unstable_usePrompt:()=>Wt,useActionData:()=>o.useActionData,useAsyncError:()=>o.useAsyncError,useAsyncValue:()=>o.useAsyncValue,useBeforeUnload:()=>Vt,useBlocker:()=>o.useBlocker,useFetcher:()=>It,useFetchers:()=>Ft,useFormAction:()=>jt,useHref:()=>o.useHref,useInRouterContext:()=>o.useInRouterContext,useLinkClickHandler:()=>Pt,useLoaderData:()=>o.useLoaderData,useLocation:()=>o.useLocation,useMatch:()=>o.useMatch,useMatches:()=>o.useMatches,useNavigate:()=>o.useNavigate,useNavigation:()=>o.useNavigation,useNavigationType:()=>o.useNavigationType,useOutlet:()=>o.useOutlet,useOutletContext:()=>o.useOutletContext,useParams:()=>o.useParams,useResolvedPath:()=>o.useResolvedPath,useRevalidator:()=>o.useRevalidator,useRouteError:()=>o.useRouteError,useRouteLoaderData:()=>o.useRouteLoaderData,useRoutes:()=>o.useRoutes,useSearchParams:()=>Ct,useSubmit:()=>Rt,useViewTransitionState:()=>$t});var r,a=n(85959),i=n(48398),o=n(81159);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function v(e,t,n,a){void 0===a&&(a={});let{window:i=document.defaultView,v5Compat:o=!1}=a,u=i.history,c=r.Pop,p=null,g=v();function v(){return(u.state||{idx:null}).idx}function y(){c=r.Pop;let e=v(),t=null==e?null:e-g;g=e,p&&p({action:c,location:_.location,delta:t})}function b(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"==typeof e?e:m(e);return n=n.replace(/ $/,"%20"),d(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,u.replaceState(s({},u.state,{idx:g}),""));let _={get action(){return c},get location(){return e(i,u)},listen(e){if(p)throw new Error("A history only accepts one active listener");return i.addEventListener(l,y),p=e,()=>{i.removeEventListener(l,y),p=null}},createHref:e=>t(i,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=r.Push;let a=h(_.location,e,t);n&&n(a,e),g=v()+1;let s=f(a,g),l=_.createHref(a);try{u.pushState(s,"",l)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;i.location.assign(l)}o&&p&&p({action:c,location:_.location,delta:1})},replace:function(e,t){c=r.Replace;let a=h(_.location,e,t);n&&n(a,e),g=v();let i=f(a,g),s=_.createHref(a);u.replaceState(i,"",s),o&&p&&p({action:c,location:_.location,delta:0})},go:e=>u.go(e)};return _}var y;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(y||(y={}));const b=new Set(["lazy","caseSensitive","path","id","index","children"]);function _(e,t,n,r){return void 0===n&&(n=[]),void 0===r&&(r={}),e.map((e,a)=>{let i=[...n,String(a)],o="string"==typeof e.id?e.id:i.join("-");if(d(!0!==e.index||!e.children,"Cannot specify children on an index route"),d(!r[o],'Found a route id collision on id "'+o+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=s({},e,t(e),{id:o});return r[o]=n,n}{let n=s({},e,t(e),{id:o,children:void 0});return r[o]=n,e.children&&(n.children=_(e.children,t,i,r)),n}})}function w(e,t,n){return void 0===n&&(n="/"),M(e,t,n,!1)}function M(e,t,n,r){let a=P(("string"==typeof t?g(t):t).pathname||"/",n);if(null==a)return null;let i=S(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let o=null;for(let e=0;null==o&&e{let o={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};o.relativePath.startsWith("/")&&(d(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(r.length));let s=I([r,o.relativePath]),l=n.concat(o);e.children&&e.children.length>0&&(d(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),S(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:D(s,e.index),routesMeta:l})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of k(e.path))a(e,t,n);else a(e,t)}),t}function k(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return a?[i,""]:[i];let o=k(r.join("/")),s=[];return s.push(...o.map(e=>""===e?i:[i,e].join("/"))),a&&s.push(...o),s.map(t=>e.startsWith("/")&&""===t?"/":t)}const L=/^:[\w-]+$/,x=e=>"*"===e;function D(e,t){let n=e.split("/"),r=n.length;return n.some(x)&&(r+=-2),t&&(r+=2),n.filter(e=>!x(e)).reduce((e,t)=>e+(L.test(t)?3:""===t?1:10),r)}function T(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,a={},i="/",o=[];for(let e=0;e(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");let i=new RegExp(a,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=s[n]||"";o=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=a&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{}),pathname:i,pathnameBase:o,pattern:e}}function E(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return p(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function P(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}const C=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Y(e,t){void 0===t&&(t="/");let n,{pathname:r,search:a="",hash:i=""}="string"==typeof e?g(e):e;if(r)if(o=r,C.test(o))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),p(!1,"Pathnames cannot have embedded double slashes - normalizing "+e+" -> "+r)}n=r.startsWith("/")?A(r.substring(1),"/"):A(r,t)}else n=t;var o;return{pathname:n,search:H(a),hash:N(i)}}function A(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function R(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function j(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}const I=e=>e.join("/").replace(/\/\/+/g,"/"),F=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),H=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",N=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class z{constructor(e,t,n,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function V(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const W=["post","put","patch","delete"],$=new Set(W),U=["get",...W],B=new Set(U),q=new Set([301,302,303,307,308]),G=new Set([307,308]),K={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},J={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Q={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Z=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,X=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ee="remix-router-transitions";function te(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,a=!n;let i;if(d(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;i=e=>({hasErrorBoundary:t(e)})}else i=X;let o,l,u,c={},f=_(e.routes,i,void 0,c),m=e.basename||"/",g=e.dataStrategy||de,v=e.patchRoutesOnNavigation,b=s({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),S=null,k=new Set,L=null,x=null,D=null,T=null!=e.hydrationData,O=w(f,e.history.location,m),E=!1,C=null;if(null==O&&!v){let t=Le(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=ke(f);O=n,C={[r.id]:t}}if(O&&!e.hydrationData){ut(O,f,e.history.location.pathname).active&&(O=null)}if(O)if(O.some(e=>e.route.lazy))l=!1;else if(O.some(e=>e.route.loader))if(b.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=O.findIndex(e=>void 0!==n[e.route.id]);l=O.slice(0,e+1).every(e=>!oe(e.route,t,n))}else l=O.every(e=>!oe(e.route,t,n))}else l=null!=e.hydrationData;else l=!0;else if(l=!1,O=[],b.v7_partialHydration){let t=ut(null,f,e.history.location.pathname);t.active&&t.matches&&(E=!0,O=t.matches)}let Y,A,R={historyAction:e.history.action,location:e.history.location,matches:O,initialized:l,navigation:K,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||C,fetchers:new Map,blockers:new Map},j=r.Pop,I=!1,F=!1,H=new Map,N=null,z=!1,W=!1,$=[],U=new Set,B=new Map,q=0,te=-1,ae=new Map,se=new Set,le=new Map,ce=new Map,ve=new Set,ye=new Map,be=new Map;function De(e,t){void 0===t&&(t={}),R=s({},R,e);let n=[],r=[];b.v7_fetcherPersist&&R.fetchers.forEach((e,t)=>{"idle"===e.state&&(ve.has(t)?r.push(t):n.push(t))}),ve.forEach(e=>{R.fetchers.has(e)||B.has(e)||r.push(e)}),[...k].forEach(e=>e(R,{deletedFetchers:r,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),b.v7_fetcherPersist?(n.forEach(e=>R.fetchers.delete(e)),r.forEach(e=>Qe(e))):r.forEach(e=>ve.delete(e))}function Ce(t,n,a){var i,l;let u,{flushSync:c}=void 0===a?{}:a,d=null!=R.actionData&&null!=R.navigation.formMethod&&Re(R.navigation.formMethod)&&"loading"===R.navigation.state&&!0!==(null==(i=t.state)?void 0:i._isRedirect);u=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:d?R.actionData:null;let p=n.loaderData?we(R.loaderData,n.loaderData,n.matches||[],n.errors):R.loaderData,h=R.blockers;h.size>0&&(h=new Map(h),h.forEach((e,t)=>h.set(t,Q)));let m,g=!0===I||null!=R.navigation.formMethod&&Re(R.navigation.formMethod)&&!0!==(null==(l=t.state)?void 0:l._isRedirect);if(o&&(f=o,o=void 0),z||j===r.Pop||(j===r.Push?e.history.push(t,t.state):j===r.Replace&&e.history.replace(t,t.state)),j===r.Pop){let e=H.get(R.location.pathname);e&&e.has(t.pathname)?m={currentLocation:R.location,nextLocation:t}:H.has(t.pathname)&&(m={currentLocation:t,nextLocation:R.location})}else if(F){let e=H.get(R.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),H.set(R.location.pathname,e)),m={currentLocation:R.location,nextLocation:t}}De(s({},n,{actionData:u,loaderData:p,historyAction:j,location:t,initialized:!0,navigation:K,revalidation:"idle",restoreScrollPosition:lt(t,n.matches||R.matches),preventScrollReset:g,blockers:h}),{viewTransitionOpts:m,flushSync:!0===c}),j=r.Pop,I=!1,F=!1,z=!1,W=!1,$=[]}async function Ye(t,n,a){Y&&Y.abort(),Y=null,j=t,z=!0===(a&&a.startUninterruptedRevalidation),function(e,t){if(L&&D){let n=st(e,t);L[n]=D()}}(R.location,R.matches),I=!0===(a&&a.preventScrollReset),F=!0===(a&&a.enableViewTransition);let i=o||f,l=a&&a.overrideNavigation,u=null!=a&&a.initialHydration&&R.matches&&R.matches.length>0&&!E?R.matches:w(i,n,m),c=!0===(a&&a.flushSync);if(u&&R.initialized&&!W&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(R.location,n)&&!(a&&a.submission&&Re(a.submission.formMethod)))return void Ce(n,{matches:u},{flushSync:c});let d=ut(u,i,n.pathname);if(d.active&&d.matches&&(u=d.matches),!u){let{error:e,notFoundMatches:t,route:r}=it(n.pathname);return void Ce(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:c})}Y=new AbortController;let p,h=ge(e.history,n,Y.signal,a&&a.submission);if(a&&a.pendingError)p=[Se(u).route.id,{type:y.error,error:a.pendingError}];else if(a&&a.submission&&Re(a.submission.formMethod)){let t=await async function(t,n,a,i,o,s){void 0===s&&(s={});qe();let l,u=function(e,t){let n={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return n}(n,a);if(De({navigation:u},{flushSync:!0===s.flushSync}),o){let e=await ct(i,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Se(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:y.error,error:e.error}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:r}=it(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:y.error,error:t}]}}i=e.matches}let c=Ne(i,n);if(c.route.action||c.route.lazy){if(l=(await Ue("action",R,t,[c],i,null))[c.route.id],t.signal.aborted)return{shortCircuited:!0}}else l={type:y.error,error:Le(405,{method:t.method,pathname:n.pathname,routeId:c.route.id})};if(Pe(l)){let n;if(s&&null!=s.replace)n=s.replace;else{n=me(l.response.headers.get("Location"),new URL(t.url),m,e.history)===R.location.pathname+R.location.search}return await He(t,l,!0,{submission:a,replace:n}),{shortCircuited:!0}}if(Oe(l))throw Le(400,{type:"defer-action"});if(Ee(l)){let e=Se(i,c.route.id);return!0!==(s&&s.replace)&&(j=r.Push),{matches:i,pendingActionResult:[e.route.id,l]}}return{matches:i,pendingActionResult:[c.route.id,l]}}(h,n,a.submission,u,d.active,{replace:a.replace,flushSync:c});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Ee(r)&&V(r.error)&&404===r.error.status)return Y=null,void Ce(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}u=t.matches||u,p=t.pendingActionResult,l=Ve(n,a.submission),c=!1,d.active=!1,h=ge(e.history,h.url,h.signal)}let{shortCircuited:g,matches:v,loaderData:_,errors:M}=await async function(t,n,r,a,i,l,u,c,d,p,h){let g=i||Ve(n,l),v=l||u||ze(g),y=!(z||b.v7_partialHydration&&d);if(a){if(y){let e=Ae(h);De(s({navigation:g},void 0!==e?{actionData:e}:{}),{flushSync:p})}let e=await ct(r,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=Se(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=it(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}r=e.matches}let _=o||f,[w,M]=ie(e.history,R,r,v,n,b.v7_partialHydration&&!0===d,b.v7_skipActionErrorRevalidation,W,$,U,ve,le,se,_,m,h);if(ot(e=>!(r&&r.some(t=>t.route.id===e))||w&&w.some(t=>t.route.id===e)),te=++q,0===w.length&&0===M.length){let e=et();return Ce(n,s({matches:r,loaderData:{},errors:h&&Ee(h[1])?{[h[0]]:h[1].error}:null},Me(h),e?{fetchers:new Map(R.fetchers)}:{}),{flushSync:p}),{shortCircuited:!0}}if(y){let e={};if(!a){e.navigation=g;let t=Ae(h);void 0!==t&&(e.actionData=t)}M.length>0&&(e.fetchers=function(e){return e.forEach(e=>{let t=R.fetchers.get(e.key),n=We(void 0,t?t.data:void 0);R.fetchers.set(e.key,n)}),new Map(R.fetchers)}(M)),De(e,{flushSync:p})}M.forEach(e=>{Ze(e.key),e.controller&&B.set(e.key,e.controller)});let S=()=>M.forEach(e=>Ze(e.key));Y&&Y.signal.addEventListener("abort",S);let{loaderResults:k,fetcherResults:L}=await Be(R,r,w,M,t);if(t.signal.aborted)return{shortCircuited:!0};Y&&Y.signal.removeEventListener("abort",S);M.forEach(e=>B.delete(e.key));let x=xe(k);if(x)return await He(t,x.result,!0,{replace:c}),{shortCircuited:!0};if(x=xe(L),x)return se.add(x.key),await He(t,x.result,!0,{replace:c}),{shortCircuited:!0};let{loaderData:D,errors:T}=_e(R,r,k,h,M,L,ye);ye.forEach((e,t)=>{e.subscribe(n=>{(n||e.done)&&ye.delete(t)})}),b.v7_partialHydration&&d&&R.errors&&(T=s({},R.errors,T));let O=et(),E=tt(te),P=O||E||M.length>0;return s({matches:r,loaderData:D,errors:T},P?{fetchers:new Map(R.fetchers)}:{})}(h,n,u,d.active,l,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,c,p);g||(Y=null,Ce(n,s({matches:v||u},Me(p),{loaderData:_,errors:M})))}function Ae(e){return e&&!Ee(e[1])?{[e[0]]:e[1].data}:R.actionData?0===Object.keys(R.actionData).length?null:R.actionData:void 0}async function He(a,i,o,l){let{submission:u,fetcherSubmission:c,preventScrollReset:p,replace:f}=void 0===l?{}:l;i.response.headers.has("X-Remix-Revalidate")&&(W=!0);let g=i.response.headers.get("Location");d(g,"Expected a Location header on the redirect Response"),g=me(g,new URL(a.url),m,e.history);let v=h(R.location,g,{_isRedirect:!0});if(n){let n=!1;if(i.response.headers.has("X-Remix-Reload-Document"))n=!0;else if(Z.test(g)){const r=e.history.createURL(g);n=r.origin!==t.location.origin||null==P(r.pathname,m)}if(n)return void(f?t.location.replace(g):t.location.assign(g))}Y=null;let y=!0===f||i.response.headers.has("X-Remix-Replace")?r.Replace:r.Push,{formMethod:b,formAction:_,formEncType:w}=R.navigation;!u&&!c&&b&&_&&w&&(u=ze(R.navigation));let M=u||c;if(G.has(i.response.status)&&M&&Re(M.formMethod))await Ye(y,v,{submission:s({},M,{formAction:g}),preventScrollReset:p||I,enableViewTransition:o?F:void 0});else{let e=Ve(v,u);await Ye(y,v,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:p||I,enableViewTransition:o?F:void 0})}}async function Ue(e,t,n,r,a,o){let s,l={};try{s=await pe(g,e,t,n,r,a,o,c,i)}catch(e){return r.forEach(t=>{l[t.route.id]={type:y.error,error:e}}),l}for(let[e,t]of Object.entries(s))if(Te(t)){let r=t.result;l[e]={type:y.redirect,response:he(r,n,e,a,m,b.v7_relativeSplatPath)}}else l[e]=await fe(t);return l}async function Be(t,n,r,a,i){let o=t.matches,s=Ue("loader",t,i,r,n,null),l=Promise.all(a.map(async n=>{if(n.matches&&n.match&&n.controller){let r=(await Ue("loader",t,ge(e.history,n.path,n.controller.signal),[n.match],n.matches,n.key))[n.match.route.id];return{[n.key]:r}}return Promise.resolve({[n.key]:{type:y.error,error:Le(404,{pathname:n.path})}})})),u=await s,c=(await l).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([je(n,u,i.signal,o,t.loaderData),Ie(n,c,a)]),{loaderResults:u,fetcherResults:c}}function qe(){W=!0,$.push(...ot()),le.forEach((e,t)=>{B.has(t)&&U.add(t),Ze(t)})}function Ge(e,t,n){void 0===n&&(n={}),R.fetchers.set(e,t),De({fetchers:new Map(R.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Ke(e,t,n,r){void 0===r&&(r={});let a=Se(R.matches,t);Qe(e),De({errors:{[a.route.id]:n},fetchers:new Map(R.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Je(e){return ce.set(e,(ce.get(e)||0)+1),ve.has(e)&&ve.delete(e),R.fetchers.get(e)||J}function Qe(e){let t=R.fetchers.get(e);!B.has(e)||t&&"loading"===t.state&&ae.has(e)||Ze(e),le.delete(e),ae.delete(e),se.delete(e),b.v7_fetcherPersist&&ve.delete(e),U.delete(e),R.fetchers.delete(e)}function Ze(e){let t=B.get(e);t&&(t.abort(),B.delete(e))}function Xe(e){for(let t of e){let e=$e(Je(t).data);R.fetchers.set(t,e)}}function et(){let e=[],t=!1;for(let n of se){let r=R.fetchers.get(n);d(r,"Expected fetcher: "+n),"loading"===r.state&&(se.delete(n),e.push(n),t=!0)}return Xe(e),t}function tt(e){let t=[];for(let[n,r]of ae)if(r0}function nt(e){R.blockers.delete(e),be.delete(e)}function rt(e,t){let n=R.blockers.get(e)||Q;d("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(R.blockers);r.set(e,t),De({blockers:r})}function at(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===be.size)return;be.size>1&&p(!1,"A router only supports one blocker at a time");let a=Array.from(be.entries()),[i,o]=a[a.length-1],s=R.blockers.get(i);return s&&"proceeding"===s.state?void 0:o({currentLocation:t,nextLocation:n,historyAction:r})?i:void 0}function it(e){let t=Le(404,{pathname:e}),n=o||f,{matches:r,route:a}=ke(n);return ot(),{notFoundMatches:r,route:a,error:t}}function ot(e){let t=[];return ye.forEach((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),ye.delete(r))}),t}function st(e,t){if(x){return x(e,t.map(e=>function(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],handle:n.handle}}(e,R.loaderData)))||e.key}return e.key}function lt(e,t){if(L){let n=st(e,t),r=L[n];if("number"==typeof r)return r}return null}function ut(e,t,n){if(v){if(!e){return{active:!0,matches:M(t,n,m,!0)||[]}}if(Object.keys(e[0].params).length>0){return{active:!0,matches:M(t,n,m,!0)}}}return{active:!1,matches:null}}async function ct(e,t,n,r){if(!v)return{type:"success",matches:e};let a=e;for(;;){let e=null==o,s=o||f,l=c;try{await v({signal:n,path:t,matches:a,fetcherKey:r,patch:(e,t)=>{n.aborted||ue(e,t,s,l,i)}})}catch(e){return{type:"error",error:e,partialMatches:a}}finally{e&&!n.aborted&&(f=[...f])}if(n.aborted)return{type:"aborted"};let u=w(s,t,m);if(u)return{type:"success",matches:u};let d=M(s,t,m,!0);if(!d||a.length===d.length&&a.every((e,t)=>e.route.id===d[t].route.id))return{type:"success",matches:null};a=d}}return u={get basename(){return m},get future(){return b},get state(){return R},get routes(){return f},get window(){return t},initialize:function(){if(S=e.history.listen(t=>{let{action:n,location:r,delta:a}=t;if(A)return A(),void(A=void 0);p(0===be.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=at({currentLocation:R.location,nextLocation:r,historyAction:n});if(i&&null!=a){let t=new Promise(e=>{A=e});return e.history.go(-1*a),void rt(i,{state:"blocked",location:r,proceed(){rt(i,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then(()=>e.history.go(a))},reset(){let e=new Map(R.blockers);e.set(i,Q),De({blockers:e})}})}return Ye(n,r)}),n){!function(e,t){try{let n=e.sessionStorage.getItem(ee);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,H);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(ee,JSON.stringify(n))}catch(e){p(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,H);t.addEventListener("pagehide",e),N=()=>t.removeEventListener("pagehide",e)}return R.initialized||Ye(r.Pop,R.location,{initialHydration:!0}),u},subscribe:function(e){return k.add(e),()=>k.delete(e)},enableScrollRestoration:function(e,t,n){if(L=e,D=t,x=n||null,!T&&R.navigation===K){T=!0;let e=lt(R.location,R.matches);null!=e&&De({restoreScrollPosition:e})}return()=>{L=null,D=null,x=null}},navigate:async function t(n,a){if("number"==typeof n)return void e.history.go(n);let i=ne(R.location,R.matches,m,b.v7_prependBasename,n,b.v7_relativeSplatPath,null==a?void 0:a.fromRouteId,null==a?void 0:a.relative),{path:o,submission:l,error:u}=re(b.v7_normalizeFormMethod,!1,i,a),c=R.location,d=h(R.location,o,a&&a.state);d=s({},d,e.history.encodeLocation(d));let p=a&&null!=a.replace?a.replace:void 0,f=r.Push;!0===p?f=r.Replace:!1===p||null!=l&&Re(l.formMethod)&&l.formAction===R.location.pathname+R.location.search&&(f=r.Replace);let g=a&&"preventScrollReset"in a?!0===a.preventScrollReset:void 0,v=!0===(a&&a.flushSync),y=at({currentLocation:c,nextLocation:d,historyAction:f});if(!y)return await Ye(f,d,{submission:l,pendingError:u,preventScrollReset:g,replace:a&&a.replace,enableViewTransition:a&&a.viewTransition,flushSync:v});rt(y,{state:"blocked",location:d,proceed(){rt(y,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(n,a)},reset(){let e=new Map(R.blockers);e.set(y,Q),De({blockers:e})}})},fetch:function(t,n,r,i){if(a)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Ze(t);let s=!0===(i&&i.flushSync),l=o||f,u=ne(R.location,R.matches,m,b.v7_prependBasename,r,b.v7_relativeSplatPath,n,null==i?void 0:i.relative),c=w(l,u,m),p=ut(c,l,u);if(p.active&&p.matches&&(c=p.matches),!c)return void Ke(t,n,Le(404,{pathname:u}),{flushSync:s});let{path:h,submission:g,error:v}=re(b.v7_normalizeFormMethod,!0,u,i);if(v)return void Ke(t,n,v,{flushSync:s});let y=Ne(c,h),_=!0===(i&&i.preventScrollReset);g&&Re(g.formMethod)?async function(t,n,r,a,i,s,l,u,c){function p(e){if(!e.route.action&&!e.route.lazy){let e=Le(405,{method:c.formMethod,pathname:r,routeId:n});return Ke(t,n,e,{flushSync:l}),!0}return!1}if(qe(),le.delete(t),!s&&p(a))return;let h=R.fetchers.get(t);Ge(t,function(e,t){let n={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return n}(c,h),{flushSync:l});let g=new AbortController,v=ge(e.history,r,g.signal,c);if(s){let e=await ct(i,new URL(v.url).pathname,v.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Ke(t,n,e.error,{flushSync:l});if(!e.matches)return void Ke(t,n,Le(404,{pathname:r}),{flushSync:l});if(p(a=Ne(i=e.matches,r)))return}B.set(t,g);let y=q,_=await Ue("action",R,v,[a],i,t),M=_[a.route.id];if(v.signal.aborted)return void(B.get(t)===g&&B.delete(t));if(b.v7_fetcherPersist&&ve.has(t)){if(Pe(M)||Ee(M))return void Ge(t,$e(void 0))}else{if(Pe(M))return B.delete(t),te>y?void Ge(t,$e(void 0)):(se.add(t),Ge(t,We(c)),He(v,M,!1,{fetcherSubmission:c,preventScrollReset:u}));if(Ee(M))return void Ke(t,n,M.error)}if(Oe(M))throw Le(400,{type:"defer-action"});let S=R.navigation.location||R.location,k=ge(e.history,S,g.signal),L=o||f,x="idle"!==R.navigation.state?w(L,R.navigation.location,m):R.matches;d(x,"Didn't find any matches after fetcher action");let D=++q;ae.set(t,D);let T=We(c,M.data);R.fetchers.set(t,T);let[O,E]=ie(e.history,R,x,c,S,!1,b.v7_skipActionErrorRevalidation,W,$,U,ve,le,se,L,m,[a.route.id,M]);E.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=R.fetchers.get(t),r=We(void 0,n?n.data:void 0);R.fetchers.set(t,r),Ze(t),e.controller&&B.set(t,e.controller)}),De({fetchers:new Map(R.fetchers)});let P=()=>E.forEach(e=>Ze(e.key));g.signal.addEventListener("abort",P);let{loaderResults:C,fetcherResults:A}=await Be(R,x,O,E,k);if(g.signal.aborted)return;g.signal.removeEventListener("abort",P),ae.delete(t),B.delete(t),E.forEach(e=>B.delete(e.key));let I=xe(C);if(I)return He(k,I.result,!1,{preventScrollReset:u});if(I=xe(A),I)return se.add(I.key),He(k,I.result,!1,{preventScrollReset:u});let{loaderData:F,errors:H}=_e(R,x,C,void 0,E,A,ye);if(R.fetchers.has(t)){let e=$e(M.data);R.fetchers.set(t,e)}tt(D),"loading"===R.navigation.state&&D>te?(d(j,"Expected pending action"),Y&&Y.abort(),Ce(R.navigation.location,{matches:x,loaderData:F,errors:H,fetchers:new Map(R.fetchers)})):(De({errors:H,loaderData:we(R.loaderData,F,x,H),fetchers:new Map(R.fetchers)}),W=!1)}(t,n,h,y,c,p.active,s,_,g):(le.set(t,{routeId:n,path:h}),async function(t,n,r,a,i,o,s,l,u){let c=R.fetchers.get(t);Ge(t,We(u,c?c.data:void 0),{flushSync:s});let p=new AbortController,f=ge(e.history,r,p.signal);if(o){let e=await ct(i,new URL(f.url).pathname,f.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Ke(t,n,e.error,{flushSync:s});if(!e.matches)return void Ke(t,n,Le(404,{pathname:r}),{flushSync:s});a=Ne(i=e.matches,r)}B.set(t,p);let h=q,m=await Ue("loader",R,f,[a],i,t),g=m[a.route.id];Oe(g)&&(g=await Fe(g,f.signal,!0)||g);B.get(t)===p&&B.delete(t);if(f.signal.aborted)return;if(ve.has(t))return void Ge(t,$e(void 0));if(Pe(g))return te>h?void Ge(t,$e(void 0)):(se.add(t),void await He(f,g,!1,{preventScrollReset:l}));if(Ee(g))return void Ke(t,n,g.error);d(!Oe(g),"Unhandled fetcher deferred data"),Ge(t,$e(g.data))}(t,n,h,y,c,p.active,s,_,g))},revalidate:function(){qe(),De({revalidation:"loading"}),"submitting"!==R.navigation.state&&("idle"!==R.navigation.state?Ye(j||R.historyAction,R.navigation.location,{overrideNavigation:R.navigation,enableViewTransition:!0===F}):Ye(R.historyAction,R.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Je,deleteFetcher:function(e){let t=(ce.get(e)||0)-1;t<=0?(ce.delete(e),ve.add(e),b.v7_fetcherPersist||Qe(e)):ce.set(e,t),De({fetchers:new Map(R.fetchers)})},dispose:function(){S&&S(),N&&N(),k.clear(),Y&&Y.abort(),R.fetchers.forEach((e,t)=>Qe(t)),R.blockers.forEach((e,t)=>nt(t))},getBlocker:function(e,t){let n=R.blockers.get(e)||Q;return be.get(e)!==t&&be.set(e,t),n},deleteBlocker:nt,patchRoutes:function(e,t){let n=null==o;ue(e,t,o||f,c,i),n&&(f=[...f],De({}))},_internalFetchControllers:B,_internalActiveDeferreds:ye,_internalSetRoutes:function(e){c={},o=_(e,i,void 0,c)}},u}Symbol("deferred");function ne(e,t,n,r,a,i,o,l){let u,c;if(o){u=[];for(let e of t)if(u.push(e),e.route.id===o){c=e;break}}else u=t,c=t[t.length-1];let p=function(e,t,n,r){let a;void 0===r&&(r=!1),"string"==typeof e?a=g(e):(a=s({},e),d(!a.pathname||!a.pathname.includes("?"),R("?","pathname","search",a)),d(!a.pathname||!a.pathname.includes("#"),R("#","pathname","hash",a)),d(!a.search||!a.search.includes("#"),R("#","search","hash",a)));let i,o=""===e||""===a.pathname,l=o?"/":a.pathname;if(null==l)i=n;else{let e=t.length-1;if(!r&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}i=e>=0?t[e]:"/"}let u=Y(a,i),c=l&&"/"!==l&&l.endsWith("/"),p=(o||"."===l)&&n.endsWith("/");return u.pathname.endsWith("/")||!c&&!p||(u.pathname+="/"),u}(a||".",function(e,t){let n=j(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}(u,i),P(e.pathname,n)||e.pathname,"path"===l);if(null==a&&(p.search=e.search,p.hash=e.hash),(null==a||""===a||"."===a)&&c){let e=He(p.search);if(c.route.index&&!e)p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&e){let e=new URLSearchParams(p.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();p.search=n?"?"+n:""}}return r&&"/"!==n&&(p.pathname="/"===p.pathname?n:I([n,p.pathname])),m(p)}function re(e,t,n,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:n};if(r.formMethod&&!Ae(r.formMethod))return{path:n,error:Le(405,{method:r.formMethod})};let a,i,o=()=>({path:n,error:Le(400,{type:"invalid-body"})}),s=r.formMethod||"get",l=e?s.toUpperCase():s.toLowerCase(),u=De(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!Re(l))return o();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,t)=>{let[n,r]=t;return""+e+n+"="+r+"\n"},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:u,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!Re(l))return o();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:u,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return o()}}}if(d("function"==typeof FormData,"FormData is not available in this environment"),r.formData)a=ve(r.formData),i=r.formData;else if(r.body instanceof FormData)a=ve(r.body),i=r.body;else if(r.body instanceof URLSearchParams)a=r.body,i=ye(a);else if(null==r.body)a=new URLSearchParams,i=new FormData;else try{a=new URLSearchParams(r.body),i=ye(a)}catch(e){return o()}let c={formMethod:l,formAction:u,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(Re(c.formMethod))return{path:n,submission:c};let p=g(n);return t&&p.search&&He(p.search)&&a.append("index",""),p.search="?"+a,{path:m(p),submission:c}}function ae(e,t,n){void 0===n&&(n=!1);let r=e.findIndex(e=>e.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function ie(e,t,n,r,a,i,o,l,u,c,d,p,f,h,m,g){let v=g?Ee(g[1])?g[1].error:g[1].data:void 0,y=e.createURL(t.location),b=e.createURL(a),_=n;i&&t.errors?_=ae(n,Object.keys(t.errors)[0],!0):g&&Ee(g[1])&&(_=ae(n,g[0]));let M=g?g[1].statusCode:void 0,S=o&&M&&M>=400,k=_.filter((e,n)=>{let{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(i)return oe(a,t.loaderData,t.errors);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,a=void 0===e[n.route.id];return r||a}(t.loaderData,t.matches[n],e)||u.some(t=>t===e.route.id))return!0;let o=t.matches[n],c=e;return le(e,s({currentUrl:y,currentParams:o.params,nextUrl:b,nextParams:c.params},r,{actionResult:v,actionStatus:M,defaultShouldRevalidate:!S&&(l||y.pathname+y.search===b.pathname+b.search||y.search!==b.search||se(o,c))}))}),L=[];return p.forEach((e,a)=>{if(i||!n.some(t=>t.route.id===e.routeId)||d.has(a))return;let o=w(h,e.path,m);if(!o)return void L.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(a),p=Ne(o,e.path),g=!1;f.has(a)?g=!1:c.has(a)?(c.delete(a),g=!0):g=u&&"idle"!==u.state&&void 0===u.data?l:le(p,s({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:v,actionStatus:M,defaultShouldRevalidate:!S&&l})),g&&L.push({key:a,routeId:e.routeId,path:e.path,matches:o,match:p,controller:new AbortController})}),[k,L]}function oe(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=null!=t&&void 0!==t[e.id],a=null!=n&&void 0!==n[e.id];return!(!r&&a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!r&&!a)}function se(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function le(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function ue(e,t,n,r,a){var i;let o;if(e){let t=r[e];d(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),o=t.children}else o=n;let s=_(t.filter(e=>!o.some(t=>ce(e,t))),a,[e||"_","patch",String((null==(i=o)?void 0:i.length)||"0")],r);o.push(...s)}function ce(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every((e,n)=>{var r;return null==(r=t.children)?void 0:r.some(t=>ce(e,t))}))}async function de(e){let{matches:t}=e,n=t.filter(e=>e.shouldLoad);return(await Promise.all(n.map(e=>e.resolve()))).reduce((e,t,r)=>Object.assign(e,{[n[r].route.id]:t}),{})}async function pe(e,t,n,r,a,i,o,l,u,c){let f=i.map(e=>e.route.lazy?async function(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let a=n[e.id];d(a,"No route found in manifest");let i={};for(let e in r){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;p(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||b.has(e)||(i[e]=r[e])}Object.assign(a,i),Object.assign(a,s({},t(a),{lazy:void 0}))}(e.route,u,l):void 0),h=i.map((e,n)=>{let i=f[n],o=a.some(t=>t.route.id===e.route.id);return s({},e,{shouldLoad:o,resolve:async n=>(n&&"GET"===r.method&&(e.route.lazy||e.route.loader)&&(o=!0),o?async function(e,t,n,r,a,i){let o,s,l=r=>{let o,l=new Promise((e,t)=>o=t);s=()=>o(),t.signal.addEventListener("abort",s);let u=a=>"function"!=typeof r?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+n.route.id+"]")):r({request:t,params:n.params,context:i},...void 0!==a?[a]:[]),c=(async()=>{try{return{type:"data",result:await(a?a(e=>u(e)):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([c,l])};try{let a=n.route[e];if(r)if(a){let e,[t]=await Promise.all([l(a).catch(t=>{e=t}),r]);if(void 0!==e)throw e;o=t}else{if(await r,a=n.route[e],!a){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Le(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:y.data,result:void 0}}o=await l(a)}else{if(!a){let e=new URL(t.url);throw Le(404,{pathname:e.pathname+e.search})}o=await l(a)}d(void 0!==o.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:y.error,result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return o}(t,r,e,i,n,c):Promise.resolve({type:y.data,result:void 0}))})}),m=await e({matches:h,request:r,params:i[0].params,fetcherKey:o,context:c});try{await Promise.all(f)}catch(e){}return m}async function fe(e){let{result:t,type:n}=e;if(Ye(t)){let e;try{let n=t.headers.get("Content-Type");e=n&&/\bapplication\/json\b/.test(n)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:y.error,error:e}}return n===y.error?{type:y.error,error:new z(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:y.data,data:e,statusCode:t.status,headers:t.headers}}var r,a,i,o,s,l,u,c;return n===y.error?Ce(t)?t.data instanceof Error?{type:y.error,error:t.data,statusCode:null==(i=t.init)?void 0:i.status,headers:null!=(o=t.init)&&o.headers?new Headers(t.init.headers):void 0}:{type:y.error,error:new z((null==(r=t.init)?void 0:r.status)||500,void 0,t.data),statusCode:V(t)?t.status:void 0,headers:null!=(a=t.init)&&a.headers?new Headers(t.init.headers):void 0}:{type:y.error,error:t,statusCode:V(t)?t.status:void 0}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:y.deferred,deferredData:t,statusCode:null==(s=t.init)?void 0:s.status,headers:(null==(l=t.init)?void 0:l.headers)&&new Headers(t.init.headers)}:Ce(t)?{type:y.data,data:t.data,statusCode:null==(u=t.init)?void 0:u.status,headers:null!=(c=t.init)&&c.headers?new Headers(t.init.headers):void 0}:{type:y.data,data:t}}function he(e,t,n,r,a,i){let o=e.headers.get("Location");if(d(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!Z.test(o)){let s=r.slice(0,r.findIndex(e=>e.route.id===n)+1);o=ne(new URL(t.url),s,a,!0,o,i),e.headers.set("Location",o)}return e}function me(e,t,n,r){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Z.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r);if(a.includes(i.protocol))throw new Error("Invalid redirect location");let o=null!=P(i.pathname,n);if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}try{let t=r.createURL(e);if(a.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function ge(e,t,n,r){let a=e.createURL(De(t)).toString(),i={signal:n};if(r&&Re(r.formMethod)){let{formMethod:e,formEncType:t}=r;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(r.json)):"text/plain"===t?i.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?i.body=ve(r.formData):i.body=r.formData}return new Request(a,i)}function ve(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function ye(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function be(e,t,n,r,a){let i,o={},s=null,l=!1,u={},c=n&&Ee(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let p=n.route.id,f=t[p];if(d(!Pe(f),"Cannot handle redirect results in processLoaderData"),Ee(f)){let t=f.error;if(void 0!==c&&(t=c,c=void 0),s=s||{},a)s[p]=t;else{let n=Se(e,p);null==s[n.route.id]&&(s[n.route.id]=t)}o[p]=void 0,l||(l=!0,i=V(f.error)?f.error.status:500),f.headers&&(u[p]=f.headers)}else Oe(f)?(r.set(p,f.deferredData),o[p]=f.deferredData.data,null==f.statusCode||200===f.statusCode||l||(i=f.statusCode),f.headers&&(u[p]=f.headers)):(o[p]=f.data,f.statusCode&&200!==f.statusCode&&!l&&(i=f.statusCode),f.headers&&(u[p]=f.headers))}),void 0!==c&&n&&(s={[n[0]]:c},o[n[0]]=void 0),{loaderData:o,errors:s,statusCode:i||200,loaderHeaders:u}}function _e(e,t,n,r,a,i,o){let{loaderData:l,errors:u}=be(t,n,r,o,!1);return a.forEach(t=>{let{key:n,match:r,controller:a}=t,o=i[n];if(d(o,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(Ee(o)){let t=Se(e.matches,null==r?void 0:r.route.id);u&&u[t.route.id]||(u=s({},u,{[t.route.id]:o.error})),e.fetchers.delete(n)}else if(Pe(o))d(!1,"Unhandled fetcher revalidation redirect");else if(Oe(o))d(!1,"Unhandled fetcher deferred data");else{let t=$e(o.data);e.fetchers.set(n,t)}}),{loaderData:l,errors:u}}function we(e,t,n,r){let a=s({},t);for(let i of n){let n=i.route.id;if(t.hasOwnProperty(n)?void 0!==t[n]&&(a[n]=t[n]):void 0!==e[n]&&i.route.loader&&(a[n]=e[n]),r&&r.hasOwnProperty(n))break}return a}function Me(e){return e?Ee(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Se(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function ke(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Le(e,t){let{pathname:n,routeId:r,method:a,type:i,message:o}=void 0===t?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(s="Bad Request",a&&n&&r?l="You made a "+a+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===i?l="defer() is not supported in actions":"invalid-body"===i&&(l="Unable to encode submission body")):403===e?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):404===e?(s="Not Found",l='No route matches URL "'+n+'"'):405===e&&(s="Method Not Allowed",a&&n&&r?l="You made a "+a.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new z(e||500,s,new Error(l),!0)}function xe(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Pe(r))return{key:n,result:r}}}function De(e){return m(s({},"string"==typeof e?g(e):e,{hash:""}))}function Te(e){return Ye(e.result)&&q.has(e.result.status)}function Oe(e){return e.type===y.deferred}function Ee(e){return e.type===y.error}function Pe(e){return(e&&e.type)===y.redirect}function Ce(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Ye(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Ae(e){return B.has(e.toLowerCase())}function Re(e){return $.has(e.toLowerCase())}async function je(e,t,n,r,a){let i=Object.entries(t);for(let o=0;o(null==e?void 0:e.route.id)===s);if(!u)continue;let c=r.find(e=>e.route.id===u.route.id),d=null!=c&&!se(c,u)&&void 0!==(a&&a[u.route.id]);Oe(l)&&d&&await Fe(l,n,!1).then(e=>{e&&(t[s]=e)})}}async function Ie(e,t,n){for(let r=0;r(null==e?void 0:e.route.id)===i)&&(Oe(s)&&(d(o,"Expected an AbortController for revalidating fetcher deferred result"),await Fe(s,o.signal,!0).then(e=>{e&&(t[a]=e)})))}}async function Fe(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:y.data,data:e.deferredData.unwrappedData}}catch(e){return{type:y.error,error:e}}return{type:y.data,data:e.deferredData.data}}}function He(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function Ne(e,t){let n="string"==typeof t?g(t).search:t.search;if(e[e.length-1].route.index&&He(n||""))return e[e.length-1];let r=j(e);return r[r.length-1]}function ze(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:i,json:o}=e;if(t&&n&&r)return null!=a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a}:null!=i?{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0}:void 0!==o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}:void 0}function Ve(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function We(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function $e(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Ue(){return Ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}const qe="get",Ge="application/x-www-form-urlencoded";function Ke(e){return null!=e&&"string"==typeof e.tagName}function Je(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}let Qe=null;const Ze=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xe(e){return null==e||Ze.has(e)?e:null}function et(e,t){let n,r,a,i,o;if(Ke(s=e)&&"form"===s.tagName.toLowerCase()){let o=e.getAttribute("action");r=o?P(o,t):null,n=e.getAttribute("method")||qe,a=Xe(e.getAttribute("enctype"))||Ge,i=new FormData(e)}else if(function(e){return Ke(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Ke(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let o=e.form;if(null==o)throw new Error('Cannot submit a