@esri/solutions-components 0.7.24 → 0.7.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. package/dist/cjs/{info-card_4.cjs.entry.js → basemap-gallery_7.cjs.entry.js} +410 -324
  2. package/dist/cjs/buffer-tools_3.cjs.entry.js +3 -4
  3. package/dist/cjs/{calcite-alert_3.cjs.entry.js → calcite-alert_4.cjs.entry.js} +296 -3
  4. package/dist/cjs/calcite-combobox_6.cjs.entry.js +1 -2
  5. package/dist/cjs/calcite-flow_4.cjs.entry.js +3 -4
  6. package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +1 -2
  7. package/dist/cjs/{card-manager_2.cjs.entry.js → card-manager_3.cjs.entry.js} +182 -5
  8. package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -2
  9. package/dist/cjs/crowdsource-reporter.cjs.entry.js +32 -90
  10. package/dist/cjs/{downloadUtils-401356b5.js → downloadUtils-83c6d3c3.js} +6 -6
  11. package/dist/cjs/{index.es-a9a4ff08.js → index.es-bd1a93b2.js} +2 -2
  12. package/dist/cjs/layout-manager.cjs.entry.js +1 -2
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/cjs/{locale-1ff119f5.js → locale-a476e15d.js} +24 -3
  15. package/dist/cjs/map-select-tools_3.cjs.entry.js +4 -5
  16. package/dist/cjs/{popupUtils-8d5b6e94.js → popupUtils-a73902a6.js} +2 -2
  17. package/dist/cjs/public-notification.cjs.entry.js +3 -4
  18. package/dist/cjs/solution-configuration.cjs.entry.js +1 -2
  19. package/dist/cjs/solution-contents_3.cjs.entry.js +1 -2
  20. package/dist/cjs/solutions-components.cjs.js +1 -1
  21. package/dist/cjs/spatial-ref.cjs.entry.js +1 -2
  22. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.css +5 -27
  23. package/dist/collection/components/crowdsource-reporter/crowdsource-reporter.js +69 -95
  24. package/dist/collection/demos/crowdsource-reporter.html +96 -45
  25. package/dist/components/crowdsource-reporter.js +95 -209
  26. package/dist/esm/{info-card_4.entry.js → basemap-gallery_7.entry.js} +406 -323
  27. package/dist/esm/buffer-tools_3.entry.js +1 -2
  28. package/dist/esm/{calcite-alert_3.entry.js → calcite-alert_4.entry.js} +295 -3
  29. package/dist/esm/calcite-combobox_6.entry.js +1 -2
  30. package/dist/esm/calcite-flow_4.entry.js +3 -4
  31. package/dist/esm/calcite-shell-panel_14.entry.js +1 -2
  32. package/dist/esm/{card-manager_2.entry.js → card-manager_3.entry.js} +181 -5
  33. package/dist/esm/crowdsource-manager.entry.js +1 -2
  34. package/dist/esm/crowdsource-reporter.entry.js +32 -90
  35. package/dist/esm/{downloadUtils-067dc2ff.js → downloadUtils-a301c193.js} +2 -2
  36. package/dist/esm/{index.es-92e46d8b.js → index.es-37a9907e.js} +2 -2
  37. package/dist/esm/layout-manager.entry.js +1 -2
  38. package/dist/esm/loader.js +1 -1
  39. package/dist/esm/{locale-13e3c96c.js → locale-731e75a8.js} +22 -2
  40. package/dist/esm/map-select-tools_3.entry.js +2 -3
  41. package/dist/esm/{popupUtils-b71f30fc.js → popupUtils-a593bd78.js} +1 -1
  42. package/dist/esm/public-notification.entry.js +2 -3
  43. package/dist/esm/solution-configuration.entry.js +1 -2
  44. package/dist/esm/solution-contents_3.entry.js +1 -2
  45. package/dist/esm/solutions-components.js +1 -1
  46. package/dist/esm/spatial-ref.entry.js +1 -2
  47. package/dist/solutions-components/demos/crowdsource-reporter.html +96 -45
  48. package/dist/solutions-components/{p-36cbf14f.js → p-0587972d.js} +1 -1
  49. package/dist/solutions-components/p-0b4f4b0e.entry.js +6 -0
  50. package/dist/solutions-components/{p-f54f3719.entry.js → p-0b619197.entry.js} +1 -1
  51. package/dist/solutions-components/{p-d50f34c4.entry.js → p-2656c6e4.entry.js} +1 -1
  52. package/dist/solutions-components/p-284cc5cd.entry.js +6 -0
  53. package/dist/solutions-components/{p-01032eec.entry.js → p-29f661f5.entry.js} +2 -2
  54. package/dist/solutions-components/p-5af99fd8.entry.js +6 -0
  55. package/dist/solutions-components/{p-d9061e5d.entry.js → p-7116f96d.entry.js} +1 -1
  56. package/dist/solutions-components/p-7c13406e.entry.js +6 -0
  57. package/dist/solutions-components/{p-685257d1.entry.js → p-7dbccc10.entry.js} +1 -1
  58. package/dist/solutions-components/p-8308f64c.entry.js +6 -0
  59. package/dist/solutions-components/{p-ca4023f4.entry.js → p-891682da.entry.js} +1 -1
  60. package/dist/solutions-components/{p-14ff1465.js → p-a603e673.js} +2 -2
  61. package/dist/solutions-components/p-b37ec1f3.entry.js +6 -0
  62. package/dist/solutions-components/{p-fec77450.js → p-db868283.js} +1 -1
  63. package/dist/solutions-components/{p-fb1c6811.entry.js → p-dded59a7.entry.js} +1 -1
  64. package/dist/solutions-components/p-e88a64be.entry.js +6 -0
  65. package/dist/solutions-components/p-e902ba19.js +36 -0
  66. package/dist/solutions-components/p-fe295e9d.entry.js +6 -0
  67. package/dist/solutions-components/solutions-components.esm.js +1 -1
  68. package/dist/types/components/crowdsource-reporter/crowdsource-reporter.d.ts +14 -28
  69. package/dist/types/components.d.ts +16 -0
  70. package/package.json +1 -1
  71. package/dist/cjs/basemap-gallery_5.cjs.entry.js +0 -573
  72. package/dist/cjs/loadModules-46d14e81.js +0 -30
  73. package/dist/esm/basemap-gallery_5.entry.js +0 -565
  74. package/dist/esm/loadModules-cea493da.js +0 -28
  75. package/dist/solutions-components/p-3606c4b8.entry.js +0 -6
  76. package/dist/solutions-components/p-48ff9cea.js +0 -21
  77. package/dist/solutions-components/p-5e832d65.entry.js +0 -6
  78. package/dist/solutions-components/p-8fc072ca.entry.js +0 -6
  79. package/dist/solutions-components/p-a2d3df14.entry.js +0 -6
  80. package/dist/solutions-components/p-ab006ace.js +0 -21
  81. package/dist/solutions-components/p-ba56035f.entry.js +0 -6
  82. package/dist/solutions-components/p-c0ed2b83.entry.js +0 -6
  83. package/dist/solutions-components/p-cc88bb42.entry.js +0 -6
  84. package/dist/solutions-components/p-db69f4ba.entry.js +0 -6
  85. package/dist/solutions-components/p-e3061220.entry.js +0 -6
@@ -4,9 +4,8 @@
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
6
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-7183ce4a.js';
7
- import { g as getLocaleComponentStrings } from './locale-13e3c96c.js';
7
+ import { g as getLocaleComponentStrings } from './locale-731e75a8.js';
8
8
  import { n as nodeListToArray } from './common-d04ccc0d.js';
9
- import './loadModules-cea493da.js';
10
9
  import './esri-loader-eda07632.js';
11
10
  import './_commonjsHelpers-d5f9d613.js';
12
11
  import './solution-resource-7b8d302d.js';
@@ -22,9 +22,34 @@
22
22
  | limitations under the License.
23
23
  -->
24
24
  <style>
25
- .reporter {
26
- height: 100vh;
27
- width: 100vw;
25
+ #viewDiv {
26
+ position: absolute;
27
+ top: 0px;
28
+ right: 0px;
29
+ bottom: 0px;
30
+ left: 390px;
31
+ }
32
+ #viewDiv[dir="rtl"] {
33
+ right: 390px;
34
+ left: 0px;
35
+ }
36
+ .over-map {
37
+ position: absolute;
38
+ left: 0px;
39
+ background-color: var(--calcite-color-foreground-1);
40
+ }
41
+ .over-map[dir="rtl"] {
42
+ right: 0px;
43
+ }
44
+ .column {
45
+ width: 360px;
46
+ padding: 1rem;
47
+ border: 1px solid var(--calcite-color-border-2);
48
+ height: -webkit-fill-available;
49
+ height: 100%;
50
+ }
51
+ .column[dir="rtl"] {
52
+ float: right;
28
53
  }
29
54
  </style>
30
55
 
@@ -37,64 +62,90 @@
37
62
  <script type="module" src="../solutions-components.esm.js"></script>
38
63
 
39
64
  <script>
40
- function addValues() {
65
+ require(["esri/WebMap", "esri/views/MapView", "esri/widgets/Legend", "esri/config"], (
66
+ WebMap,
67
+ MapView,
68
+ Legend,
69
+ esriConfig
70
+ ) => {
41
71
  const demo = document.getElementById("demo");
42
72
 
43
- let headerSet = false;
44
- let custom = [];
45
- let portal;
46
- //Support id and portal URL parameter
47
- var vars = window.location.search.substring(1).split("&");
48
- vars.forEach((param) => {
49
- let vals = param.split("=");
50
- const v = vals[1];
51
- switch (vals[0]) {
52
- case "id":
53
- custom = [{
54
- id: v,
55
- name: "Map from URL"
56
- }];
57
- break;
58
- case "portal":
59
- portal = v;
60
- default:
61
- break;
73
+ // let headerSet = false;
74
+ // let custom = [];
75
+ // let portal;
76
+ // //Support id and portal URL parameter
77
+ // var vars = window.location.search.substring(1).split("&");
78
+ // vars.forEach((param) => {
79
+ // let vals = param.split("=");
80
+ // const v = vals[1];
81
+ // switch (vals[0]) {
82
+ // case "id":
83
+ // custom = [{
84
+ // id: v,
85
+ // name: "Map from URL"
86
+ // }];
87
+ // break;
88
+ // case "portal":
89
+ // portal = v;
90
+ // default:
91
+ // break;
92
+ // }
93
+ // });
94
+
95
+ // if (portal) {
96
+ // esriConfig.portalUrl = portal;
97
+ // }
98
+
99
+ // demo.mapInfos = [{
100
+ // //id: "f8c4d99deb3c483cac296cc261e18a25", //blank no layers
101
+ // //id: "a7e880f7afbb471991d43c8c4f1438ac" // Se mapping
102
+ // //id: "c720e337ff814fe4a83bc244c46f8e43" //15 Layers
103
+ // //id: "f5186c798b9e40dab1078658ddbc28cf" // 30K features
104
+ // //id: "dda88d905a6748a5ab46bea5be795f33" // screening layers
105
+ // id: "b5bdcb1e5d684dd3b21a2d44b8e4f928" //Popup content
106
+ // }];
107
+ // //if id is passed in the url parameter use that mapInfos
108
+ // if (custom?.length > 0) {
109
+ // demo.mapInfos = custom;
110
+ // }
111
+
112
+ //esriConfig.portalUrl = "https://solutions.mapsdevext.arcgis.com";
113
+ var webMap = new WebMap({
114
+ portalItem: {
115
+ id: "b5bdcb1e5d684dd3b21a2d44b8e4f928"
62
116
  }
63
117
  });
64
118
 
65
- if (portal) {
66
- esriConfig.portalUrl = portal;
67
- }
119
+ demo.mapView = new MapView({
120
+ container: "viewDiv",
121
+ map: webMap
122
+ });
123
+
124
+ demo.mapView.when(() => {
125
+ // const legend = new Legend({
126
+ // view: demo.mapView
127
+ // });
128
+ // demo.mapView.ui.add(legend, "top-left");
129
+ });
68
130
 
69
- demo.mapInfos = [{
70
- //id: "f8c4d99deb3c483cac296cc261e18a25", //blank no layers
71
- //id: "a7e880f7afbb471991d43c8c4f1438ac" // Se mapping
72
- //id: "c720e337ff814fe4a83bc244c46f8e43" //15 Layers
73
- //id: "f5186c798b9e40dab1078658ddbc28cf" // 30K features
74
- //id: "dda88d905a6748a5ab46bea5be795f33" // screening layers
75
- id: "b5bdcb1e5d684dd3b21a2d44b8e4f928" //Popup content
76
- }];
77
- //if id is passed in the url parameter use that mapInfos
78
- if (custom?.length > 0) {
79
- demo.mapInfos = custom;
80
- }
81
- demo.enableHome = true;
82
- demo.enableSearch = true;
83
- demo.enableZoom = true;
131
+ // demo.enableHome = true;
132
+ // demo.enableSearch = true;
133
+ // demo.enableZoom = true;
84
134
  demo.reportsHeader = "Reports";
85
135
  demo.reportButtonText = "Report an incident";
86
136
  demo.enableNewReports = true;
87
- //Select reporting layers -
137
+ //Select reporting layers -
88
138
  //demo.layers = ['SE_field_mapping_9688', 'SE_field_mapping_5784', 'SE_field_mapping_1853'];
89
139
  //demo.layers = ['Three_Layers_nested_4042', 'SE_sort_2889', 'SE_sort_756']; //screening layers
90
140
  demo.theme = "light";
91
141
  demo.reportSubmittedMessage = "Thank you";
92
- }
142
+ });
93
143
  </script>
94
144
  </head>
95
145
 
96
146
  <!-- <body class="calcite-mode-dark"> -->
97
- <body onload="addValues()">
98
- <crowdsource-reporter id="demo" class="reporter"></crowdsource-reporter>
147
+ <body>
148
+ <div id="viewDiv"></div>
149
+ <crowdsource-reporter id="demo" class="over-map column"></crowdsource-reporter>
99
150
  </body>
100
151
  </html>
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{a as t,c as r,g as i}from"./p-e1a4994d.js";import{_ as e}from"./p-14ff1465.js";import"./p-78780f63.js";import"./p-48ff9cea.js";import"./p-d918ec36.js";import"./p-4566438a.js";import"./p-c1cf3ebc.js";import"./p-d89fff3a.js";import"./p-a230b270.js";import"./p-220ec0d1.js";var n,s,a=function(t){return t&&t.Math==Math&&t},o=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof t&&t)||function(){return this}()||Function("return this")(),h=function(t){try{return!!t()}catch(t){return!0}},u=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!h((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,l=c?f.bind(f):function(){return f.apply(f,arguments)},v={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,p=d&&!v.call({1:2},1)?function(t){var r=d(this,t);return!!r&&r.enumerable}:v,y={f:p},g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},m=Function.prototype,b=m.call,w=c&&m.bind.bind(b,b),x=c?w:function(t){return function(){return b.apply(t,arguments)}},M=x({}.toString),k=x("".slice),S=function(t){return k(M(t),8,-1)},N=Object,j=x("".split),P=h((function(){return!N("z").propertyIsEnumerable(0)}))?function(t){return"String"==S(t)?j(t,""):N(t)}:N,O=function(t){return null==t},E=TypeError,T=function(t){if(O(t))throw E("Can't call method on "+t);return t},C=function(t){return P(T(t))},A="object"==typeof document&&document.all,R={all:A,IS_HTMLDDA:void 0===A&&void 0!==A},B=R.all,L=R.IS_HTMLDDA?function(t){return"function"==typeof t||t===B}:function(t){return"function"==typeof t},$=R.all,I=R.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:L(t)||t===$}:function(t){return"object"==typeof t?null!==t:L(t)},D=function(t,r){return arguments.length<2?L(i=o[t])?i:void 0:o[t]&&o[t][r];var i},F=x({}.isPrototypeOf),z="undefined"!=typeof navigator&&String(navigator.userAgent)||"",_=o.process,Y=o.Deno,X=_&&_.versions||Y&&Y.version,q=X&&X.v8;q&&(s=(n=q.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&z&&(!(n=z.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=z.match(/Chrome\/(\d+)/))&&(s=+n[1]);var G=s,U=!!Object.getOwnPropertySymbols&&!h((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&G&&G<41})),V=U&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,H=Object,W=V?function(t){return"symbol"==typeof t}:function(t){var r=D("Symbol");return L(r)&&F(r.prototype,H(t))},Q=String,Z=function(t){try{return Q(t)}catch(t){return"Object"}},K=TypeError,J=function(t){if(L(t))return t;throw K(Z(t)+" is not a function")},tt=function(t,r){var i=t[r];return O(i)?void 0:J(i)},rt=TypeError,it=Object.defineProperty,et=function(t,r){try{it(o,t,{value:r,configurable:!0,writable:!0})}catch(i){o[t]=r}return r},nt="__core-js_shared__",st=o[nt]||et(nt,{}),at=r((function(t){(t.exports=function(t,r){return st[t]||(st[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.27.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})})),ot=Object,ht=function(t){return ot(T(t))},ut=x({}.hasOwnProperty),ct=Object.hasOwn||function(t,r){return ut(ht(t),r)},ft=0,lt=Math.random(),vt=x(1..toString),dt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+vt(++ft+lt,36)},pt=o.Symbol,yt=at("wks"),gt=V?pt.for||pt:pt&&pt.withoutSetter||dt,mt=function(t){return ct(yt,t)||(yt[t]=U&&ct(pt,t)?pt[t]:gt("Symbol."+t)),yt[t]},bt=TypeError,wt=mt("toPrimitive"),xt=function(t){var r=function(t,r){if(!I(t)||W(t))return t;var i,e=tt(t,wt);if(e){if(void 0===r&&(r="default"),i=l(e,t,r),!I(i)||W(i))return i;throw bt("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var i,e;if("string"===r&&L(i=t.toString)&&!I(e=l(i,t)))return e;if(L(i=t.valueOf)&&!I(e=l(i,t)))return e;if("string"!==r&&L(i=t.toString)&&!I(e=l(i,t)))return e;throw rt("Can't convert object to primitive value")}(t,r)}(t,"string");return W(r)?r:r+""},Mt=o.document,kt=I(Mt)&&I(Mt.createElement),St=function(t){return kt?Mt.createElement(t):{}},Nt=!u&&!h((function(){return 7!=Object.defineProperty(St("div"),"a",{get:function(){return 7}}).a})),jt=Object.getOwnPropertyDescriptor,Pt=u?jt:function(t,r){if(t=C(t),r=xt(r),Nt)try{return jt(t,r)}catch(t){}if(ct(t,r))return g(!l(y.f,t,r),t[r])},Ot={f:Pt},Et=u&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Tt=String,Ct=TypeError,At=function(t){if(I(t))return t;throw Ct(Tt(t)+" is not an object")},Rt=TypeError,Bt=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,$t="enumerable",It="configurable",Dt="writable",Ft=u?Et?function(t,r,i){if(At(t),r=xt(r),At(i),"function"==typeof t&&"prototype"===r&&"value"in i&&Dt in i&&!i[Dt]){var e=Lt(t,r);e&&e[Dt]&&(t[r]=i.value,i={configurable:It in i?i[It]:e[It],enumerable:$t in i?i[$t]:e[$t],writable:!1})}return Bt(t,r,i)}:Bt:function(t,r,i){if(At(t),r=xt(r),At(i),Nt)try{return Bt(t,r,i)}catch(t){}if("get"in i||"set"in i)throw Rt("Accessors not supported");return"value"in i&&(t[r]=i.value),t},zt={f:Ft},_t=u?function(t,r,i){return zt.f(t,r,g(1,i))}:function(t,r,i){return t[r]=i,t},Yt=Function.prototype,Xt=u&&Object.getOwnPropertyDescriptor,qt=ct(Yt,"name"),Gt={EXISTS:qt,PROPER:qt&&"something"===function(){}.name,CONFIGURABLE:qt&&(!u||u&&Xt(Yt,"name").configurable)},Ut=x(Function.toString);L(st.inspectSource)||(st.inspectSource=function(t){return Ut(t)});var Vt,Ht,Wt,Qt=st.inspectSource,Zt=o.WeakMap,Kt=L(Zt)&&/native code/.test(String(Zt)),Jt=at("keys"),tr=function(t){return Jt[t]||(Jt[t]=dt(t))},rr={},ir="Object already initialized",er=o.TypeError;if(Kt||st.state){var nr=st.state||(st.state=new(0,o.WeakMap));nr.get=nr.get,nr.has=nr.has,nr.set=nr.set,Vt=function(t,r){if(nr.has(t))throw er(ir);return r.facade=t,nr.set(t,r),r},Ht=function(t){return nr.get(t)||{}},Wt=function(t){return nr.has(t)}}else{var sr=tr("state");rr[sr]=!0,Vt=function(t,r){if(ct(t,sr))throw er(ir);return r.facade=t,_t(t,sr,r),r},Ht=function(t){return ct(t,sr)?t[sr]:{}},Wt=function(t){return ct(t,sr)}}var ar={set:Vt,get:Ht,has:Wt,enforce:function(t){return Wt(t)?Ht(t):Vt(t,{})},getterFor:function(t){return function(r){var i;if(!I(r)||(i=Ht(r)).type!==t)throw er("Incompatible receiver, "+t+" required");return i}}},or=r((function(t){var r=Gt.CONFIGURABLE,i=ar.enforce,e=ar.get,n=String,s=Object.defineProperty,a=x("".slice),o=x("".replace),c=x([].join),f=u&&!h((function(){return 8!==s((function(){}),"length",{value:8}).length})),l=String(String).split("String"),v=t.exports=function(t,e,h){"Symbol("===a(n(e),0,7)&&(e="["+o(n(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),h&&h.getter&&(e="get "+e),h&&h.setter&&(e="set "+e),(!ct(t,"name")||r&&t.name!==e)&&(u?s(t,"name",{value:e,configurable:!0}):t.name=e),f&&h&&ct(h,"arity")&&t.length!==h.arity&&s(t,"length",{value:h.arity});try{h&&ct(h,"constructor")&&h.constructor?u&&s(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var v=i(t);return ct(v,"source")||(v.source=c(l,"string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return L(this)&&e(this).source||Qt(this)}),"toString")})),hr=function(t,r,i,e){e||(e={});var n=e.enumerable,s=void 0!==e.name?e.name:r;if(L(i)&&or(i,s,e),e.global)n?t[r]=i:et(r,i);else{try{e.unsafe?t[r]&&(n=!0):delete t[r]}catch(t){}n?t[r]=i:zt.f(t,r,{value:i,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return t},ur=Math.ceil,cr=Math.floor,fr=Math.trunc||function(t){var r=+t;return(r>0?cr:ur)(r)},lr=function(t){var r=+t;return r!=r||0===r?0:fr(r)},vr=Math.max,dr=Math.min,pr=function(t,r){var i=lr(t);return i<0?vr(i+r,0):dr(i,r)},yr=Math.min,gr=function(t){return t>0?yr(lr(t),9007199254740991):0},mr=function(t){return gr(t.length)},br=function(t){return function(r,i,e){var n,s=C(r),a=mr(s),o=pr(e,a);if(t&&i!=i){for(;a>o;)if((n=s[o++])!=n)return!0}else for(;a>o;o++)if((t||o in s)&&s[o]===i)return t||o||0;return!t&&-1}},wr={includes:br(!0),indexOf:br(!1)},xr=wr.indexOf,Mr=x([].push),kr=function(t,r){var i,e=C(t),n=0,s=[];for(i in e)!ct(rr,i)&&ct(e,i)&&Mr(s,i);for(;r.length>n;)ct(e,i=r[n++])&&(~xr(s,i)||Mr(s,i));return s},Sr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nr=Sr.concat("length","prototype"),jr=Object.getOwnPropertyNames||function(t){return kr(t,Nr)},Pr={f:jr},Or={f:Object.getOwnPropertySymbols},Er=x([].concat),Tr=D("Reflect","ownKeys")||function(t){var r=Pr.f(At(t)),i=Or.f;return i?Er(r,i(t)):r},Cr=function(t,r,i){for(var e=Tr(r),n=zt.f,s=Ot.f,a=0;a<e.length;a++){var o=e[a];ct(t,o)||i&&ct(i,o)||n(t,o,s(r,o))}},Ar=/#|\.prototype\./,Rr=function(t,r){var i=Lr[Br(t)];return i==Ir||i!=$r&&(L(r)?h(r):!!r)},Br=Rr.normalize=function(t){return String(t).replace(Ar,".").toLowerCase()},Lr=Rr.data={},$r=Rr.NATIVE="N",Ir=Rr.POLYFILL="P",Dr=Rr,Fr=Ot.f,zr=function(t,r){var i,e,n,s,a,h=t.target,u=t.global,c=t.stat;if(i=u?o:c?o[h]||et(h,{}):(o[h]||{}).prototype)for(e in r){if(s=r[e],n=t.dontCallGetSet?(a=Fr(i,e))&&a.value:i[e],!Dr(u?e:h+(c?".":"#")+e,t.forced)&&void 0!==n){if(typeof s==typeof n)continue;Cr(s,n)}(t.sham||n&&n.sham)&&_t(s,"sham",!0),hr(i,e,s,t)}},_r="undefined"!=typeof process&&"process"==S(process),Yr=String,Xr=TypeError,qr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,i={};try{(t=x(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]),r=i instanceof Array}catch(t){}return function(i,e){return At(i),function(t){if("object"==typeof t||L(t))return t;throw Xr("Can't set "+Yr(t)+" as a prototype")}(e),r?t(i,e):i.__proto__=e,i}}():void 0),Gr=zt.f,Ur=mt("toStringTag"),Vr=function(t,r,i){t&&!i&&(t=t.prototype),t&&!ct(t,Ur)&&Gr(t,Ur,{configurable:!0,value:r})},Hr=mt("species"),Wr=TypeError,Qr={};Qr[mt("toStringTag")]="z";var Zr="[object z]"===String(Qr),Kr=mt("toStringTag"),Jr=Object,ti="Arguments"==S(function(){return arguments}()),ri=Zr?S:function(t){var r,i,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,r){try{return t[r]}catch(t){}}(r=Jr(t),Kr))?i:ti?S(r):"Object"==(e=S(r))&&L(r.callee)?"Arguments":e},ii=function(){},ei=[],ni=D("Reflect","construct"),si=/^\s*(?:class|function)\b/,ai=x(si.exec),oi=!si.exec(ii),hi=function(t){if(!L(t))return!1;try{return ni(ii,ei,t),!0}catch(t){return!1}},ui=function(t){if(!L(t))return!1;switch(ri(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return oi||!!ai(si,Qt(t))}catch(t){return!0}};ui.sham=!0;var ci,fi,li,vi,di=!ni||h((function(){var t;return hi(hi.call)||!hi(Object)||!hi((function(){t=!0}))||t}))?ui:hi,pi=TypeError,yi=mt("species"),gi=function(t,r){var i,e=At(t).constructor;return void 0===e||O(i=At(e)[yi])?r:function(t){if(di(t))return t;throw pi(Z(t)+" is not a constructor")}(i)},mi=Function.prototype,bi=mi.apply,wi=mi.call,xi="object"==typeof Reflect&&Reflect.apply||(c?wi.bind(bi):function(){return wi.apply(bi,arguments)}),Mi=function(t){if("Function"===S(t))return x(t)},ki=Mi(Mi.bind),Si=function(t,r){return J(t),void 0===r?t:c?ki(t,r):function(){return t.apply(r,arguments)}},Ni=D("document","documentElement"),ji=x([].slice),Pi=TypeError,Oi=/(?:ipad|iphone|ipod).*applewebkit/i.test(z),Ei=o.setImmediate,Ti=o.clearImmediate,Ci=o.process,Ai=o.Dispatch,Ri=o.Function,Bi=o.MessageChannel,Li=o.String,$i=0,Ii={},Di="onreadystatechange";h((function(){ci=o.location}));var Fi=function(t){if(ct(Ii,t)){var r=Ii[t];delete Ii[t],r()}},zi=function(t){return function(){Fi(t)}},_i=function(t){Fi(t.data)},Yi=function(t){o.postMessage(Li(t),ci.protocol+"//"+ci.host)};Ei&&Ti||(Ei=function(t){!function(t){if(t<1)throw Pi("Not enough arguments")}(arguments.length);var r=L(t)?t:Ri(t),i=ji(arguments,1);return Ii[++$i]=function(){xi(r,void 0,i)},fi($i),$i},Ti=function(t){delete Ii[t]},_r?fi=function(t){Ci.nextTick(zi(t))}:Ai&&Ai.now?fi=function(t){Ai.now(zi(t))}:Bi&&!Oi?(vi=(li=new Bi).port2,li.port1.onmessage=_i,fi=Si(vi.postMessage,vi)):o.addEventListener&&L(o.postMessage)&&!o.importScripts&&ci&&"file:"!==ci.protocol&&!h(Yi)?(fi=Yi,o.addEventListener("message",_i,!1)):fi=Di in St("script")?function(t){Ni.appendChild(St("script"))[Di]=function(){Ni.removeChild(this),Fi(t)}}:function(t){setTimeout(zi(t),0)});var Xi={set:Ei,clear:Ti},qi=function(){this.head=null,this.tail=null};qi.prototype={add:function(t){var r={item:t,next:null},i=this.tail;i?i.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Gi,Ui,Vi,Hi,Wi,Qi=qi,Zi=/ipad|iphone|ipod/i.test(z)&&"undefined"!=typeof Pebble,Ki=/web0s(?!.*chrome)/i.test(z),Ji=Xi.set,te=o.MutationObserver||o.WebKitMutationObserver,re=o.document,ie=o.process,ee=o.Promise,ne=(0,Ot.f)(o,"queueMicrotask"),se=ne&&ne.value;if(!se){var ae=new Qi,oe=function(){var t,r;for(_r&&(t=ie.domain)&&t.exit();r=ae.get();)try{r()}catch(t){throw ae.head&&Gi(),t}t&&t.enter()};Oi||_r||Ki||!te||!re?!Zi&&ee&&ee.resolve?((Hi=ee.resolve(void 0)).constructor=ee,Wi=Si(Hi.then,Hi),Gi=function(){Wi(oe)}):_r?Gi=function(){ie.nextTick(oe)}:(Ji=Si(Ji,o),Gi=function(){Ji(oe)}):(Ui=!0,Vi=re.createTextNode(""),new te(oe).observe(Vi,{characterData:!0}),Gi=function(){Vi.data=Ui=!Ui}),se=function(t){ae.head||Gi(),ae.add(t)}}var he,ue,ce,fe,le=se,ve=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},de=o.Promise,pe="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,ye=!pe&&!_r&&"object"==typeof window&&"object"==typeof document,ge=mt("species"),me=!1,be=L(o.PromiseRejectionEvent),we=Dr("Promise",(function(){var t=Qt(de),r=t!==String(de);if(!r&&66===G)return!0;if(!G||G<51||!/native code/.test(t)){var i=new de((function(t){t(1)})),e=function(t){t((function(){}),(function(){}))};if((i.constructor={})[ge]=e,!(me=i.then((function(){}))instanceof e))return!0}return!r&&(ye||pe)&&!be})),xe={CONSTRUCTOR:we,REJECTION_EVENT:be,SUBCLASSING:me},Me=TypeError,ke=function(t){var r,i;this.promise=new t((function(t,e){if(void 0!==r||void 0!==i)throw Me("Bad Promise constructor");r=t,i=e})),this.resolve=J(r),this.reject=J(i)},Se={f:function(t){return new ke(t)}},Ne=Xi.set,je="Promise",Pe=xe.CONSTRUCTOR,Oe=xe.REJECTION_EVENT,Ee=xe.SUBCLASSING,Te=ar.getterFor(je),Ce=ar.set,Ae=de&&de.prototype,Re=de,Be=Ae,Le=o.TypeError,$e=o.document,Ie=o.process,De=Se.f,Fe=De,ze=!!($e&&$e.createEvent&&o.dispatchEvent),_e="unhandledrejection",Ye=function(t){var r;return!(!I(t)||!L(r=t.then))&&r},Xe=function(t,r){var i,e,n,s=r.value,a=1==r.state,o=a?t.ok:t.fail,h=t.resolve,u=t.reject,c=t.domain;try{o?(a||(2===r.rejection&&He(r),r.rejection=1),!0===o?i=s:(c&&c.enter(),i=o(s),c&&(c.exit(),n=!0)),i===t.promise?u(Le("Promise-chain cycle")):(e=Ye(i))?l(e,i,h,u):h(i)):u(s)}catch(t){c&&!n&&c.exit(),u(t)}},qe=function(t,r){t.notified||(t.notified=!0,le((function(){for(var i,e=t.reactions;i=e.get();)Xe(i,t);t.notified=!1,r&&!t.rejection&&Ue(t)})))},Ge=function(t,r,i){var e,n;ze?((e=$e.createEvent("Event")).promise=r,e.reason=i,e.initEvent(t,!1,!0),o.dispatchEvent(e)):e={promise:r,reason:i},!Oe&&(n=o["on"+t])?n(e):t===_e&&function(t,r){try{1==arguments.length?console.error(t):console.error(t,r)}catch(t){}}("Unhandled promise rejection",i)},Ue=function(t){l(Ne,o,(function(){var r,i=t.facade,e=t.value;if(Ve(t)&&(r=ve((function(){_r?Ie.emit("unhandledRejection",e,i):Ge(_e,i,e)})),t.rejection=_r||Ve(t)?2:1,r.error))throw r.value}))},Ve=function(t){return 1!==t.rejection&&!t.parent},He=function(t){l(Ne,o,(function(){var r=t.facade;_r?Ie.emit("rejectionHandled",r):Ge("rejectionhandled",r,t.value)}))},We=function(t,r,i){return function(e){t(r,e,i)}},Qe=function(t,r,i){t.done||(t.done=!0,i&&(t=i),t.value=r,t.state=2,qe(t,!0))},Ze=function(t,r,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===r)throw Le("Promise can't be resolved itself");var e=Ye(r);e?le((function(){var i={done:!1};try{l(e,r,We(Ze,i,t),We(Qe,i,t))}catch(r){Qe(i,r,t)}})):(t.value=r,t.state=1,qe(t,!1))}catch(r){Qe({done:!1},r,t)}}};if(Pe&&(Re=function(t){!function(t){if(F(Be,t))return t;throw Wr("Incorrect invocation")}(this),J(t),l(he,this);var r=Te(this);try{t(We(Ze,r),We(Qe,r))}catch(t){Qe(r,t)}},(he=function(){Ce(this,{type:je,done:!1,notified:!1,parent:!1,reactions:new Qi,rejection:!1,state:0,value:void 0})}).prototype=hr(Be=Re.prototype,"then",(function(t,r){var i=Te(this),e=De(gi(this,Re));return i.parent=!0,e.ok=!L(t)||t,e.fail=L(r)&&r,e.domain=_r?Ie.domain:void 0,0==i.state?i.reactions.add(e):le((function(){Xe(e,i)})),e.promise})),ue=function(){var t=new he,r=Te(t);this.promise=t,this.resolve=We(Ze,r),this.reject=We(Qe,r)},Se.f=De=function(t){return t===Re||void 0===t?new ue(t):Fe(t)},L(de)&&Ae!==Object.prototype)){ce=Ae.then,Ee||hr(Ae,"then",(function(t,r){var i=this;return new Re((function(t,r){l(ce,i,t,r)})).then(t,r)}),{unsafe:!0});try{delete Ae.constructor}catch(t){}qr&&qr(Ae,Be)}zr({global:!0,constructor:!0,wrap:!0,forced:Pe},{Promise:Re}),Vr(Re,je,!1),fe=D(je),u&&fe&&!fe[Hr]&&(0,zt.f)(fe,Hr,{configurable:!0,get:function(){return this}});var Ke={},Je=mt("iterator"),tn=Array.prototype,rn=mt("iterator"),en=function(t){if(!O(t))return tt(t,rn)||tt(t,"@@iterator")||Ke[ri(t)]},nn=TypeError,sn=function(t,r,i){var e,n;At(t);try{if(!(e=tt(t,"return"))){if("throw"===r)throw i;return i}e=l(e,t)}catch(t){n=!0,e=t}if("throw"===r)throw i;if(n)throw e;return At(e),i},an=TypeError,on=function(t,r){this.stopped=t,this.result=r},hn=on.prototype,un=function(t,r,i){var e,n,s,a,o,h,u,c,f=!(!i||!i.AS_ENTRIES),v=!(!i||!i.IS_RECORD),d=!(!i||!i.IS_ITERATOR),p=!(!i||!i.INTERRUPTED),y=Si(r,i&&i.that),g=function(t){return e&&sn(e,"normal",t),new on(!0,t)},m=function(t){return f?(At(t),p?y(t[0],t[1],g):y(t[0],t[1])):p?y(t,g):y(t)};if(v)e=t.iterator;else if(d)e=t;else{if(!(n=en(t)))throw an(Z(t)+" is not iterable");if(void 0!==(c=n)&&(Ke.Array===c||tn[Je]===c)){for(s=0,a=mr(t);a>s;s++)if((o=m(t[s]))&&F(hn,o))return o;return new on(!1)}e=function(t,r){var i=arguments.length<2?en(t):r;if(J(i))return At(l(i,t));throw nn(Z(t)+" is not iterable")}(t,n)}for(h=v?t.next:e.next;!(u=l(h,e)).done;){try{o=m(u.value)}catch(t){sn(e,"throw",t)}if("object"==typeof o&&o&&F(hn,o))return o}return new on(!1)},cn=mt("iterator"),fn=!1;try{var ln=0,vn={next:function(){return{done:!!ln++}},return:function(){fn=!0}};vn[cn]=function(){return this},Array.from(vn,(function(){throw 2}))}catch(t){}var dn=xe.CONSTRUCTOR||!function(){if(!fn)return!1;var t=!1;try{var r={};r[cn]=function(){return{next:function(){return{done:t=!0}}}},de.all(r).then(void 0,(function(){}))}catch(t){}return t}();zr({target:"Promise",stat:!0,forced:dn},{all:function(t){var r=this,i=Se.f(r),e=i.resolve,n=i.reject,s=ve((function(){var i=J(r.resolve),s=[],a=0,o=1;un(t,(function(t){var h=a++,u=!1;o++,l(i,r,t).then((function(t){u||(u=!0,s[h]=t,--o||e(s))}),n)})),--o||e(s)}));return s.error&&n(s.value),i.promise}});var pn=de&&de.prototype;if(zr({target:"Promise",proto:!0,forced:xe.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(de)){var yn=D("Promise").prototype.catch;pn.catch!==yn&&hr(pn,"catch",yn,{unsafe:!0})}zr({target:"Promise",stat:!0,forced:dn},{race:function(t){var r=this,i=Se.f(r),e=i.reject,n=ve((function(){var n=J(r.resolve);un(t,(function(t){l(n,r,t).then(i.resolve,e)}))}));return n.error&&e(n.value),i.promise}}),zr({target:"Promise",stat:!0,forced:xe.CONSTRUCTOR},{reject:function(t){var r=Se.f(this);return l(r.reject,void 0,t),r.promise}}),zr({target:"Promise",stat:!0,forced:xe.CONSTRUCTOR},{resolve:function(t){return function(t,r){if(At(t),I(r)&&r.constructor===t)return r;var i=Se.f(t);return(0,i.resolve)(r),i.promise}(this,t)}});const gn=i(r((function(t){function r(t,r,i,e,n,s,a){try{var o=t[s](a),h=o.value}catch(t){return void i(t)}o.done?r(h):Promise.resolve(h).then(e,n)}t.exports=function(t){return function(){var i=this,e=arguments;return new Promise((function(n,s){var a=t.apply(i,e);function o(t){r(a,n,s,o,h,"next",t)}function h(t){r(a,n,s,o,h,"throw",t)}o(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports})));var mn,bn=String,wn=function(t){if("Symbol"===ri(t))throw TypeError("Cannot convert a Symbol value to a string");return bn(t)},xn=function(){var t=At(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},Mn=o.RegExp,kn=h((function(){var t=Mn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Sn=kn||h((function(){return!Mn("a","y").sticky})),Nn={BROKEN_CARET:kn||h((function(){var t=Mn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Sn,UNSUPPORTED_Y:kn},jn=Object.keys||function(t){return kr(t,Sr)},Pn=u&&!Et?Object.defineProperties:function(t,r){At(t);for(var i,e=C(r),n=jn(r),s=n.length,a=0;s>a;)zt.f(t,i=n[a++],e[i]);return t},On={f:Pn},En="prototype",Tn="script",Cn=tr("IE_PROTO"),An=function(){},Rn=function(t){return"<"+Tn+">"+t+"</"+Tn+">"},Bn=function(t){t.write(Rn("")),t.close();var r=t.parentWindow.Object;return t=null,r},Ln=function(){try{mn=new ActiveXObject("htmlfile")}catch(t){}var t,r,i;Ln="undefined"!=typeof document?document.domain&&mn?Bn(mn):(r=St("iframe"),i="java"+Tn+":",r.style.display="none",Ni.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(Rn("document.F=Object")),t.close(),t.F):Bn(mn);for(var e=Sr.length;e--;)delete Ln[En][Sr[e]];return Ln()};rr[Cn]=!0;var $n,In,Dn=Object.create||function(t,r){var i;return null!==t?(An[En]=At(t),i=new An,An[En]=null,i[Cn]=t):i=Ln(),void 0===r?i:On.f(i,r)},Fn=o.RegExp,zn=h((function(){var t=Fn(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),_n=o.RegExp,Yn=h((function(){var t=_n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Xn=ar.get,qn=at("native-string-replace",String.prototype.replace),Gn=RegExp.prototype.exec,Un=Gn,Vn=x("".charAt),Hn=x("".indexOf),Wn=x("".replace),Qn=x("".slice),Zn=(In=/b*/g,l(Gn,$n=/a/,"a"),l(Gn,In,"a"),0!==$n.lastIndex||0!==In.lastIndex),Kn=Nn.BROKEN_CARET,Jn=void 0!==/()??/.exec("")[1];(Zn||Jn||Kn||zn||Yn)&&(Un=function(t){var r,i,e,n,s,a,o,h=this,u=Xn(h),c=wn(t),f=u.raw;if(f)return f.lastIndex=h.lastIndex,r=l(Un,f,c),h.lastIndex=f.lastIndex,r;var v=u.groups,d=Kn&&h.sticky,p=l(xn,h),y=h.source,g=0,m=c;if(d&&(p=Wn(p,"y",""),-1===Hn(p,"g")&&(p+="g"),m=Qn(c,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==Vn(c,h.lastIndex-1))&&(y="(?: "+y+")",m=" "+m,g++),i=new RegExp("^(?:"+y+")",p)),Jn&&(i=new RegExp("^"+y+"$(?!\\s)",p)),Zn&&(e=h.lastIndex),n=l(Gn,d?i:h,m),d?n?(n.input=Qn(n.input,g),n[0]=Qn(n[0],g),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:Zn&&n&&(h.lastIndex=h.global?n.index+n[0].length:e),Jn&&n&&n.length>1&&l(qn,n[0],i,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)})),n&&v)for(n.groups=a=Dn(null),s=0;s<v.length;s++)a[(o=v[s])[0]]=n[o[1]];return n});var ts=Un;zr({target:"RegExp",proto:!0,forced:/./.exec!==ts},{exec:ts});var rs=mt("species"),is=RegExp.prototype,es=function(t,r,i,e){var n=mt(t),s=!h((function(){var r={};return r[n]=function(){return 7},7!=""[t](r)})),a=s&&!h((function(){var r=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[rs]=function(){return i},i.flags="",i[n]=/./[n]),i.exec=function(){return r=!0,null},i[n](""),!r}));if(!s||!a||i){var o=Mi(/./[n]),u=r(n,""[t],(function(t,r,i,e,n){var a=Mi(t),h=r.exec;return h===ts||h===is.exec?s&&!n?{done:!0,value:o(r,i,e)}:{done:!0,value:a(i,r,e)}:{done:!1}}));hr(String.prototype,t,u[0]),hr(is,n,u[1])}e&&_t(is[n],"sham",!0)},ns=x("".charAt),ss=x("".charCodeAt),as=x("".slice),os=function(t){return function(r,i){var e,n,s=wn(T(r)),a=lr(i),o=s.length;return a<0||a>=o?t?"":void 0:(e=ss(s,a))<55296||e>56319||a+1===o||(n=ss(s,a+1))<56320||n>57343?t?ns(s,a):e:t?as(s,a,a+2):n-56320+(e-55296<<10)+65536}},hs=(os(!1),os(!0)),us=function(t,r,i){return r+(i?hs(t,r).length:1)},cs=TypeError,fs=function(t,r){var i=t.exec;if(L(i)){var e=l(i,t,r);return null!==e&&At(e),e}if("RegExp"===S(t))return l(ts,t,r);throw cs("RegExp#exec called on incompatible receiver")};es("match",(function(t,r,i){return[function(r){var i=T(this),e=O(r)?void 0:tt(r,t);return e?l(e,r,i):new RegExp(r)[t](wn(i))},function(t){var e=At(this),n=wn(t),s=i(r,e,n);if(s.done)return s.value;if(!e.global)return fs(e,n);var a=e.unicode;e.lastIndex=0;for(var o,h=[],u=0;null!==(o=fs(e,n));){var c=wn(o[0]);h[u]=c,""===c&&(e.lastIndex=us(n,gr(e.lastIndex),a)),u++}return 0===u?null:h}]}));var ls=Math.floor,vs=x("".charAt),ds=x("".replace),ps=x("".slice),ys=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,gs=/\$([$&'`]|\d{1,2})/g,ms=function(t,r,i,e,n,s){var a=i+t.length,o=e.length,h=gs;return void 0!==n&&(n=ht(n),h=ys),ds(s,h,(function(s,h){var u;switch(vs(h,0)){case"$":return"$";case"&":return t;case"`":return ps(r,0,i);case"'":return ps(r,a);case"<":u=n[ps(h,1,-1)];break;default:var c=+h;if(0===c)return s;if(c>o){var f=ls(c/10);return 0===f?s:f<=o?void 0===e[f-1]?vs(h,1):e[f-1]+vs(h,1):s}u=e[c-1]}return void 0===u?"":u}))},bs=mt("replace"),ws=Math.max,xs=Math.min,Ms=x([].concat),ks=x([].push),Ss=x("".indexOf),Ns=x("".slice),js="$0"==="a".replace(/./,"$0"),Ps=!!/./[bs]&&""===/./[bs]("a","$0");es("replace",(function(t,r,i){var e=Ps?"$":"$0";return[function(t,i){var e=T(this),n=O(t)?void 0:tt(t,bs);return n?l(n,t,e,i):l(r,wn(e),t,i)},function(t,n){var s=At(this),a=wn(t);if("string"==typeof n&&-1===Ss(n,e)&&-1===Ss(n,"$<")){var o=i(r,s,a,n);if(o.done)return o.value}var h=L(n);h||(n=wn(n));var u=s.global;if(u){var c=s.unicode;s.lastIndex=0}for(var f=[];;){var l=fs(s,a);if(null===l)break;if(ks(f,l),!u)break;""===wn(l[0])&&(s.lastIndex=us(a,gr(s.lastIndex),c))}for(var v,d="",p=0,y=0;y<f.length;y++){for(var g=wn((l=f[y])[0]),m=ws(xs(lr(l.index),a.length),0),b=[],w=1;w<l.length;w++)ks(b,void 0===(v=l[w])?v:String(v));var x=l.groups;if(h){var M=Ms([g],b,m,a);void 0!==x&&ks(M,x);var k=wn(xi(n,void 0,M))}else k=ms(g,a,m,b,x,n);m>=p&&(d+=Ns(a,p,m)+k,p=m+g.length)}return d+Ns(a,p)}]}),!!h((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!js||Ps);var Os,Es=mt("match"),Ts=function(t){var r;return I(t)&&(void 0!==(r=t[Es])?!!r:"RegExp"==S(t))},Cs=TypeError,As=function(t){if(Ts(t))throw Cs("The method doesn't accept regular expressions");return t},Rs=mt("match"),Bs=function(t){var r=/./;try{"/./"[t](r)}catch(i){try{return r[Rs]=!1,"/./"[t](r)}catch(t){}}return!1},Ls=Ot.f,$s=Mi("".startsWith),Is=Mi("".slice),Ds=Math.min,Fs=Bs("startsWith"),zs=!(Fs||(Os=Ls(String.prototype,"startsWith"),!Os||Os.writable));zr({target:"String",proto:!0,forced:!zs&&!Fs},{startsWith:function(t){var r=wn(T(this));As(t);var i=gr(Ds(arguments.length>1?arguments[1]:void 0,r.length)),e=wn(t);return $s?$s(r,e,i):Is(r,i,i+e.length)===e}});var _s=zt.f,Ys=mt("unscopables"),Xs=Array.prototype;null==Xs[Ys]&&_s(Xs,Ys,{configurable:!0,value:Dn(null)});var qs,Gs,Us,Vs=function(t){Xs[Ys][t]=!0},Hs=!h((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Ws=tr("IE_PROTO"),Qs=Object,Zs=Qs.prototype,Ks=Hs?Qs.getPrototypeOf:function(t){var r=ht(t);if(ct(r,Ws))return r[Ws];var i=r.constructor;return L(i)&&r instanceof i?i.prototype:r instanceof Qs?Zs:null},Js=mt("iterator"),ta=!1;[].keys&&("next"in(Us=[].keys())?(Gs=Ks(Ks(Us)))!==Object.prototype&&(qs=Gs):ta=!0);var ra=!I(qs)||h((function(){var t={};return qs[Js].call(t)!==t}));ra&&(qs={}),L(qs[Js])||hr(qs,Js,(function(){return this}));var ia={IteratorPrototype:qs,BUGGY_SAFARI_ITERATORS:ta},ea=ia.IteratorPrototype,na=function(){return this},sa=Gt.PROPER,aa=Gt.CONFIGURABLE,oa=ia.IteratorPrototype,ha=ia.BUGGY_SAFARI_ITERATORS,ua=mt("iterator"),ca="keys",fa="values",la="entries",va=function(){return this},da=function(t,r){return{value:t,done:r}},pa=zt.f,ya="Array Iterator",ga=ar.set,ma=ar.getterFor(ya),ba=function(t,r,i,e,n){!function(t,r,i){var e=r+" Iterator";t.prototype=Dn(ea,{next:g(1,i)}),Vr(t,e,!1),Ke[e]=na}(i,r,(function(){var t=ma(this),r=t.target,i=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,da(void 0,!0)):da("keys"==i?e:"values"==i?r[e]:[e,r[e]],!1)}));var s,a,o,h=function(t){if(t===n&&d)return d;if(!ha&&t in f)return f[t];switch(t){case ca:case fa:case la:return function(){return new i(this,t)}}return function(){return new i(this)}},u=r+" Iterator",c=!1,f=t.prototype,v=f[ua]||f["@@iterator"]||n&&f[n],d=!ha&&v||h(n),p=f.entries||v;if(p&&(s=Ks(p.call(new t)))!==Object.prototype&&s.next&&(Ks(s)!==oa&&(qr?qr(s,oa):L(s[ua])||hr(s,ua,va)),Vr(s,u,!0)),sa&&v&&v.name!==fa&&(aa?_t(f,"name",fa):(c=!0,d=function(){return l(v,this)})),n)if(void(a={values:h(fa),keys:h(ca),entries:h(la)}))for(o in a)(ha||c||!(o in f))&&hr(f,o,a[o]);else zr({target:r,proto:!0,forced:ha||c},a);return f[ua]!==d&&hr(f,ua,d,{name:n}),Ke[r]=d,a}(Array,"Array",(function(t,r){ga(this,{type:ya,target:C(t),index:0,kind:r})}),0,"values"),wa=Ke.Arguments=Ke.Array;if(Vs("keys"),Vs("values"),Vs("entries"),u&&"values"!==wa.name)try{pa(wa,"name",{value:"values"})}catch(t){}var xa={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ma=St("span").classList,ka=Ma&&Ma.constructor&&Ma.constructor.prototype,Sa=ka===Object.prototype?void 0:ka,Na=mt("iterator"),ja=mt("toStringTag"),Pa=ba.values,Oa=function(t,r){if(t){if(t[Na]!==Pa)try{_t(t,Na,Pa)}catch(r){t[Na]=Pa}if(t[ja]||_t(t,ja,r),xa[r])for(var i in ba)if(t[i]!==ba[i])try{_t(t,i,ba[i])}catch(r){t[i]=ba[i]}}};for(var Ea in xa)Oa(o[Ea]&&o[Ea].prototype,Ea);Oa(Sa,"DOMTokenList");var Ta=r((function(t){var r=e.default;t.exports=function(t,i){if("object"!==r(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports})),Ca=r((function(t){var r=e.default;t.exports=function(t){var i=Ta(t,"string");return"symbol"===r(i)?i:String(i)},t.exports.__esModule=!0,t.exports.default=t.exports}));const Aa=i(r((function(t){t.exports=function(t,r,i){return(r=Ca(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t},t.exports.__esModule=!0,t.exports.default=t.exports})));var Ra=TypeError,Ba=function(t){return function(r,i,e,n){J(i);var s=ht(r),a=P(s),o=mr(s),h=t?o-1:0,u=t?-1:1;if(e<2)for(;;){if(h in a){n=a[h],h+=u;break}if(h+=u,t?h<0:o<=h)throw Ra("Reduce of empty array with no initial value")}for(;t?h>=0:o>h;h+=u)h in a&&(n=i(n,a[h],h,s));return n}},La=function(t,r){var i=[][t];return!!i&&h((function(){i.call(null,r||function(){return 1},1)}))},$a=[Ba(!1),Ba(!0)][0],Ia=!_r&&G>79&&G<83||!La("reduce");zr({target:"Array",proto:!0,forced:Ia},{reduce:function(t){var r=arguments.length;return $a(this,t,r,r>1?arguments[1]:void 0)}});var Da=Ot.f,Fa=Mi("".endsWith),za=Mi("".slice),_a=Math.min,Ya=Bs("endsWith"),Xa=!Ya&&!!function(){var t=Da(String.prototype,"endsWith");return t&&!t.writable}();zr({target:"String",proto:!0,forced:!Xa&&!Ya},{endsWith:function(t){var r=wn(T(this));As(t);var i=arguments.length>1?arguments[1]:void 0,e=r.length,n=void 0===i?e:_a(gr(i),e),s=wn(t);return Fa?Fa(r,s,n):za(r,n-s.length,n)===s}});var qa=Array,Ga=Math.max,Ua=function(t,r,i){for(var e,n,s,a=mr(t),o=pr(r,a),h=pr(void 0===i?a:i,a),u=qa(Ga(h-o,0)),c=0;o<h;o++,c++)e=u,n=t[o],void 0,(s=xt(c))in e?zt.f(e,s,g(0,n)):e[s]=n;return u.length=c,u},Va=Nn.UNSUPPORTED_Y,Ha=4294967295,Wa=Math.min,Qa=[].push,Za=x(/./.exec),Ka=x(Qa),Ja=x("".slice);es("split",(function(t,r,i){var e;return e="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,i){var e=wn(T(this)),n=void 0===i?Ha:i>>>0;if(0===n)return[];if(void 0===t)return[e];if(!Ts(t))return l(r,e,t,n);for(var s,a,o,h=[],u=0,c=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(s=l(ts,c,e))&&!((a=c.lastIndex)>u&&(Ka(h,Ja(e,u,s.index)),s.length>1&&s.index<e.length&&xi(Qa,h,Ua(s,1)),o=s[0].length,u=a,h.length>=n));)c.lastIndex===s.index&&c.lastIndex++;return u===e.length?!o&&Za(c,"")||Ka(h,""):Ka(h,Ja(e,u)),h.length>n?Ua(h,0,n):h}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:l(r,this,t,i)}:r,[function(r,i){var n=T(this),s=O(r)?void 0:tt(r,t);return s?l(s,r,n,i):l(e,wn(n),r,i)},function(t,n){var s=At(this),a=wn(t),o=i(e,s,a,n,e!==r);if(o.done)return o.value;var h=gi(s,RegExp),u=s.unicode,c=new h(Va?"^(?:"+s.source+")":s,(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(Va?"g":"y")),f=void 0===n?Ha:n>>>0;if(0===f)return[];if(0===a.length)return null===fs(c,a)?[a]:[];for(var l=0,v=0,d=[];v<a.length;){c.lastIndex=Va?0:v;var p,y=fs(c,Va?Ja(a,v):a);if(null===y||(p=Wa(gr(c.lastIndex+(Va?v:0)),a.length))===l)v=us(a,v,u);else{if(Ka(d,Ja(a,l,v)),d.length===f)return d;for(var g=1;g<=y.length-1;g++)if(Ka(d,y[g]),d.length===f)return d;v=l=p}}return Ka(d,Ja(a,l)),d}]}),!!h((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),Va);for(var to=r((function(r){(function(){var t,i,e,n,s,a;"undefined"!=typeof performance&&null!==performance&&performance.now?r.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(r.exports=function(){return(t()-s)/1e6},i=process.hrtime,n=(t=function(){var t;return 1e9*(t=i())[0]+t[1]})(),a=1e9*process.uptime(),s=n-a):Date.now?(r.exports=function(){return Date.now()-e},e=Date.now()):(r.exports=function(){return(new Date).getTime()-e},e=(new Date).getTime())}).call(t)})),ro="undefined"==typeof window?t:window,io=["moz","webkit"],eo="AnimationFrame",no=ro["request"+eo],so=ro["cancel"+eo]||ro["cancelRequest"+eo],ao=0;!no&&ao<io.length;ao++)no=ro[io[ao]+"Request"+eo],so=ro[io[ao]+"Cancel"+eo]||ro[io[ao]+"CancelRequest"+eo];if(!no||!so){var oo=0,ho=0,uo=[];no=function(t){if(0===uo.length){var r=to(),i=Math.max(0,16.666666666666668-(r-oo));oo=i+r,setTimeout((function(){var t=uo.slice(0);uo.length=0;for(var r=0;r<t.length;r++)if(!t[r].cancelled)try{t[r].callback(oo)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(i))}return uo.push({handle:++ho,callback:t,cancelled:!1}),ho},so=function(t){for(var r=0;r<uo.length;r++)uo[r].handle===t&&(uo[r].cancelled=!0)}}var co=function(t){return no.call(ro,t)};co.cancel=function(){so.apply(ro,arguments)},co.polyfill=function(t){t||(t=ro),t.requestAnimationFrame=no,t.cancelAnimationFrame=so};var fo,lo="\t\n\v\f\r                 \u2028\u2029\ufeff",vo=x("".replace),po="["+lo+"]",yo=RegExp("^"+po+po+"*"),go=RegExp(po+po+"*$"),mo=function(t){return function(r){var i=wn(T(r));return 1&t&&(i=vo(i,yo,"")),2&t&&(i=vo(i,go,"")),i}},bo={start:mo(1),end:mo(2),trim:mo(3)},wo=Gt.PROPER,xo=bo.trim;zr({target:"String",proto:!0,forced:(fo="trim",h((function(){return!!lo[fo]()||"​…᠎"!=="​…᠎"[fo]()||wo&&lo[fo].name!==fo})))},{trim:function(){return xo(this)}});var Mo=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=r[t]||t;for(var i=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],e=0;e<i.length;e++){var n=i[e].process,s=i[e].re.exec(t);if(s){var a=n(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),r=this.g.toString(16),i=this.b.toString(16);return 1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),1==i.length&&(i="0"+i),"#"+t+r+i},this.getHelpXML=function(){for(var t=new Array,e=0;e<i.length;e++)for(var n=i[e].example,s=0;s<n.length;s++)t[t.length]=n[s];for(var a in r)t[t.length]=a;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),e=0;e<t.length;e++)try{var h=document.createElement("li"),u=new RGBColor(t[e]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),c.appendChild(document.createTextNode("test"));var f=document.createTextNode(" "+t[e]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(c),h.appendChild(f),o.appendChild(h)}catch(t){}return o}},ko=wr.indexOf,So=Mi([].indexOf),No=!!So&&1/So([1],1,-0)<0,jo=No||!La("indexOf");zr({target:"Array",proto:!0,forced:jo},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return No?So(this,t,r)||0:ko(this,t,r)}});var Po=x("".indexOf);zr({target:"String",proto:!0,forced:!Bs("includes")},{includes:function(t){return!!~Po(wn(T(this)),wn(As(t)),arguments.length>1?arguments[1]:void 0)}});var Oo=Array.isArray||function(t){return"Array"==S(t)},Eo=x([].reverse),To=[1,2];zr({target:"Array",proto:!0,forced:String(To)===String(To.reverse())},{reverse:function(){return Oo(this)&&(this.length=this.length),Eo(this)}});
6
+ import{a as t,c as r,g as i}from"./p-e1a4994d.js";import{_ as e}from"./p-a603e673.js";import"./p-78780f63.js";import"./p-e902ba19.js";import"./p-d918ec36.js";import"./p-4566438a.js";import"./p-c1cf3ebc.js";import"./p-d89fff3a.js";import"./p-a230b270.js";import"./p-220ec0d1.js";var n,s,a=function(t){return t&&t.Math==Math&&t},o=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof t&&t)||function(){return this}()||Function("return this")(),h=function(t){try{return!!t()}catch(t){return!0}},u=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=!h((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=Function.prototype.call,l=c?f.bind(f):function(){return f.apply(f,arguments)},v={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,p=d&&!v.call({1:2},1)?function(t){var r=d(this,t);return!!r&&r.enumerable}:v,y={f:p},g=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},m=Function.prototype,b=m.call,w=c&&m.bind.bind(b,b),x=c?w:function(t){return function(){return b.apply(t,arguments)}},M=x({}.toString),k=x("".slice),S=function(t){return k(M(t),8,-1)},N=Object,j=x("".split),P=h((function(){return!N("z").propertyIsEnumerable(0)}))?function(t){return"String"==S(t)?j(t,""):N(t)}:N,O=function(t){return null==t},E=TypeError,T=function(t){if(O(t))throw E("Can't call method on "+t);return t},C=function(t){return P(T(t))},A="object"==typeof document&&document.all,R={all:A,IS_HTMLDDA:void 0===A&&void 0!==A},B=R.all,L=R.IS_HTMLDDA?function(t){return"function"==typeof t||t===B}:function(t){return"function"==typeof t},$=R.all,I=R.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:L(t)||t===$}:function(t){return"object"==typeof t?null!==t:L(t)},D=function(t,r){return arguments.length<2?L(i=o[t])?i:void 0:o[t]&&o[t][r];var i},F=x({}.isPrototypeOf),z="undefined"!=typeof navigator&&String(navigator.userAgent)||"",_=o.process,Y=o.Deno,X=_&&_.versions||Y&&Y.version,q=X&&X.v8;q&&(s=(n=q.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&z&&(!(n=z.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=z.match(/Chrome\/(\d+)/))&&(s=+n[1]);var G=s,U=!!Object.getOwnPropertySymbols&&!h((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&G&&G<41})),V=U&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,H=Object,W=V?function(t){return"symbol"==typeof t}:function(t){var r=D("Symbol");return L(r)&&F(r.prototype,H(t))},Q=String,Z=function(t){try{return Q(t)}catch(t){return"Object"}},K=TypeError,J=function(t){if(L(t))return t;throw K(Z(t)+" is not a function")},tt=function(t,r){var i=t[r];return O(i)?void 0:J(i)},rt=TypeError,it=Object.defineProperty,et=function(t,r){try{it(o,t,{value:r,configurable:!0,writable:!0})}catch(i){o[t]=r}return r},nt="__core-js_shared__",st=o[nt]||et(nt,{}),at=r((function(t){(t.exports=function(t,r){return st[t]||(st[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.27.2",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})})),ot=Object,ht=function(t){return ot(T(t))},ut=x({}.hasOwnProperty),ct=Object.hasOwn||function(t,r){return ut(ht(t),r)},ft=0,lt=Math.random(),vt=x(1..toString),dt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+vt(++ft+lt,36)},pt=o.Symbol,yt=at("wks"),gt=V?pt.for||pt:pt&&pt.withoutSetter||dt,mt=function(t){return ct(yt,t)||(yt[t]=U&&ct(pt,t)?pt[t]:gt("Symbol."+t)),yt[t]},bt=TypeError,wt=mt("toPrimitive"),xt=function(t){var r=function(t,r){if(!I(t)||W(t))return t;var i,e=tt(t,wt);if(e){if(void 0===r&&(r="default"),i=l(e,t,r),!I(i)||W(i))return i;throw bt("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var i,e;if("string"===r&&L(i=t.toString)&&!I(e=l(i,t)))return e;if(L(i=t.valueOf)&&!I(e=l(i,t)))return e;if("string"!==r&&L(i=t.toString)&&!I(e=l(i,t)))return e;throw rt("Can't convert object to primitive value")}(t,r)}(t,"string");return W(r)?r:r+""},Mt=o.document,kt=I(Mt)&&I(Mt.createElement),St=function(t){return kt?Mt.createElement(t):{}},Nt=!u&&!h((function(){return 7!=Object.defineProperty(St("div"),"a",{get:function(){return 7}}).a})),jt=Object.getOwnPropertyDescriptor,Pt=u?jt:function(t,r){if(t=C(t),r=xt(r),Nt)try{return jt(t,r)}catch(t){}if(ct(t,r))return g(!l(y.f,t,r),t[r])},Ot={f:Pt},Et=u&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Tt=String,Ct=TypeError,At=function(t){if(I(t))return t;throw Ct(Tt(t)+" is not an object")},Rt=TypeError,Bt=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,$t="enumerable",It="configurable",Dt="writable",Ft=u?Et?function(t,r,i){if(At(t),r=xt(r),At(i),"function"==typeof t&&"prototype"===r&&"value"in i&&Dt in i&&!i[Dt]){var e=Lt(t,r);e&&e[Dt]&&(t[r]=i.value,i={configurable:It in i?i[It]:e[It],enumerable:$t in i?i[$t]:e[$t],writable:!1})}return Bt(t,r,i)}:Bt:function(t,r,i){if(At(t),r=xt(r),At(i),Nt)try{return Bt(t,r,i)}catch(t){}if("get"in i||"set"in i)throw Rt("Accessors not supported");return"value"in i&&(t[r]=i.value),t},zt={f:Ft},_t=u?function(t,r,i){return zt.f(t,r,g(1,i))}:function(t,r,i){return t[r]=i,t},Yt=Function.prototype,Xt=u&&Object.getOwnPropertyDescriptor,qt=ct(Yt,"name"),Gt={EXISTS:qt,PROPER:qt&&"something"===function(){}.name,CONFIGURABLE:qt&&(!u||u&&Xt(Yt,"name").configurable)},Ut=x(Function.toString);L(st.inspectSource)||(st.inspectSource=function(t){return Ut(t)});var Vt,Ht,Wt,Qt=st.inspectSource,Zt=o.WeakMap,Kt=L(Zt)&&/native code/.test(String(Zt)),Jt=at("keys"),tr=function(t){return Jt[t]||(Jt[t]=dt(t))},rr={},ir="Object already initialized",er=o.TypeError;if(Kt||st.state){var nr=st.state||(st.state=new(0,o.WeakMap));nr.get=nr.get,nr.has=nr.has,nr.set=nr.set,Vt=function(t,r){if(nr.has(t))throw er(ir);return r.facade=t,nr.set(t,r),r},Ht=function(t){return nr.get(t)||{}},Wt=function(t){return nr.has(t)}}else{var sr=tr("state");rr[sr]=!0,Vt=function(t,r){if(ct(t,sr))throw er(ir);return r.facade=t,_t(t,sr,r),r},Ht=function(t){return ct(t,sr)?t[sr]:{}},Wt=function(t){return ct(t,sr)}}var ar={set:Vt,get:Ht,has:Wt,enforce:function(t){return Wt(t)?Ht(t):Vt(t,{})},getterFor:function(t){return function(r){var i;if(!I(r)||(i=Ht(r)).type!==t)throw er("Incompatible receiver, "+t+" required");return i}}},or=r((function(t){var r=Gt.CONFIGURABLE,i=ar.enforce,e=ar.get,n=String,s=Object.defineProperty,a=x("".slice),o=x("".replace),c=x([].join),f=u&&!h((function(){return 8!==s((function(){}),"length",{value:8}).length})),l=String(String).split("String"),v=t.exports=function(t,e,h){"Symbol("===a(n(e),0,7)&&(e="["+o(n(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),h&&h.getter&&(e="get "+e),h&&h.setter&&(e="set "+e),(!ct(t,"name")||r&&t.name!==e)&&(u?s(t,"name",{value:e,configurable:!0}):t.name=e),f&&h&&ct(h,"arity")&&t.length!==h.arity&&s(t,"length",{value:h.arity});try{h&&ct(h,"constructor")&&h.constructor?u&&s(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var v=i(t);return ct(v,"source")||(v.source=c(l,"string"==typeof e?e:"")),t};Function.prototype.toString=v((function(){return L(this)&&e(this).source||Qt(this)}),"toString")})),hr=function(t,r,i,e){e||(e={});var n=e.enumerable,s=void 0!==e.name?e.name:r;if(L(i)&&or(i,s,e),e.global)n?t[r]=i:et(r,i);else{try{e.unsafe?t[r]&&(n=!0):delete t[r]}catch(t){}n?t[r]=i:zt.f(t,r,{value:i,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return t},ur=Math.ceil,cr=Math.floor,fr=Math.trunc||function(t){var r=+t;return(r>0?cr:ur)(r)},lr=function(t){var r=+t;return r!=r||0===r?0:fr(r)},vr=Math.max,dr=Math.min,pr=function(t,r){var i=lr(t);return i<0?vr(i+r,0):dr(i,r)},yr=Math.min,gr=function(t){return t>0?yr(lr(t),9007199254740991):0},mr=function(t){return gr(t.length)},br=function(t){return function(r,i,e){var n,s=C(r),a=mr(s),o=pr(e,a);if(t&&i!=i){for(;a>o;)if((n=s[o++])!=n)return!0}else for(;a>o;o++)if((t||o in s)&&s[o]===i)return t||o||0;return!t&&-1}},wr={includes:br(!0),indexOf:br(!1)},xr=wr.indexOf,Mr=x([].push),kr=function(t,r){var i,e=C(t),n=0,s=[];for(i in e)!ct(rr,i)&&ct(e,i)&&Mr(s,i);for(;r.length>n;)ct(e,i=r[n++])&&(~xr(s,i)||Mr(s,i));return s},Sr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nr=Sr.concat("length","prototype"),jr=Object.getOwnPropertyNames||function(t){return kr(t,Nr)},Pr={f:jr},Or={f:Object.getOwnPropertySymbols},Er=x([].concat),Tr=D("Reflect","ownKeys")||function(t){var r=Pr.f(At(t)),i=Or.f;return i?Er(r,i(t)):r},Cr=function(t,r,i){for(var e=Tr(r),n=zt.f,s=Ot.f,a=0;a<e.length;a++){var o=e[a];ct(t,o)||i&&ct(i,o)||n(t,o,s(r,o))}},Ar=/#|\.prototype\./,Rr=function(t,r){var i=Lr[Br(t)];return i==Ir||i!=$r&&(L(r)?h(r):!!r)},Br=Rr.normalize=function(t){return String(t).replace(Ar,".").toLowerCase()},Lr=Rr.data={},$r=Rr.NATIVE="N",Ir=Rr.POLYFILL="P",Dr=Rr,Fr=Ot.f,zr=function(t,r){var i,e,n,s,a,h=t.target,u=t.global,c=t.stat;if(i=u?o:c?o[h]||et(h,{}):(o[h]||{}).prototype)for(e in r){if(s=r[e],n=t.dontCallGetSet?(a=Fr(i,e))&&a.value:i[e],!Dr(u?e:h+(c?".":"#")+e,t.forced)&&void 0!==n){if(typeof s==typeof n)continue;Cr(s,n)}(t.sham||n&&n.sham)&&_t(s,"sham",!0),hr(i,e,s,t)}},_r="undefined"!=typeof process&&"process"==S(process),Yr=String,Xr=TypeError,qr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,i={};try{(t=x(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]),r=i instanceof Array}catch(t){}return function(i,e){return At(i),function(t){if("object"==typeof t||L(t))return t;throw Xr("Can't set "+Yr(t)+" as a prototype")}(e),r?t(i,e):i.__proto__=e,i}}():void 0),Gr=zt.f,Ur=mt("toStringTag"),Vr=function(t,r,i){t&&!i&&(t=t.prototype),t&&!ct(t,Ur)&&Gr(t,Ur,{configurable:!0,value:r})},Hr=mt("species"),Wr=TypeError,Qr={};Qr[mt("toStringTag")]="z";var Zr="[object z]"===String(Qr),Kr=mt("toStringTag"),Jr=Object,ti="Arguments"==S(function(){return arguments}()),ri=Zr?S:function(t){var r,i,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,r){try{return t[r]}catch(t){}}(r=Jr(t),Kr))?i:ti?S(r):"Object"==(e=S(r))&&L(r.callee)?"Arguments":e},ii=function(){},ei=[],ni=D("Reflect","construct"),si=/^\s*(?:class|function)\b/,ai=x(si.exec),oi=!si.exec(ii),hi=function(t){if(!L(t))return!1;try{return ni(ii,ei,t),!0}catch(t){return!1}},ui=function(t){if(!L(t))return!1;switch(ri(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return oi||!!ai(si,Qt(t))}catch(t){return!0}};ui.sham=!0;var ci,fi,li,vi,di=!ni||h((function(){var t;return hi(hi.call)||!hi(Object)||!hi((function(){t=!0}))||t}))?ui:hi,pi=TypeError,yi=mt("species"),gi=function(t,r){var i,e=At(t).constructor;return void 0===e||O(i=At(e)[yi])?r:function(t){if(di(t))return t;throw pi(Z(t)+" is not a constructor")}(i)},mi=Function.prototype,bi=mi.apply,wi=mi.call,xi="object"==typeof Reflect&&Reflect.apply||(c?wi.bind(bi):function(){return wi.apply(bi,arguments)}),Mi=function(t){if("Function"===S(t))return x(t)},ki=Mi(Mi.bind),Si=function(t,r){return J(t),void 0===r?t:c?ki(t,r):function(){return t.apply(r,arguments)}},Ni=D("document","documentElement"),ji=x([].slice),Pi=TypeError,Oi=/(?:ipad|iphone|ipod).*applewebkit/i.test(z),Ei=o.setImmediate,Ti=o.clearImmediate,Ci=o.process,Ai=o.Dispatch,Ri=o.Function,Bi=o.MessageChannel,Li=o.String,$i=0,Ii={},Di="onreadystatechange";h((function(){ci=o.location}));var Fi=function(t){if(ct(Ii,t)){var r=Ii[t];delete Ii[t],r()}},zi=function(t){return function(){Fi(t)}},_i=function(t){Fi(t.data)},Yi=function(t){o.postMessage(Li(t),ci.protocol+"//"+ci.host)};Ei&&Ti||(Ei=function(t){!function(t){if(t<1)throw Pi("Not enough arguments")}(arguments.length);var r=L(t)?t:Ri(t),i=ji(arguments,1);return Ii[++$i]=function(){xi(r,void 0,i)},fi($i),$i},Ti=function(t){delete Ii[t]},_r?fi=function(t){Ci.nextTick(zi(t))}:Ai&&Ai.now?fi=function(t){Ai.now(zi(t))}:Bi&&!Oi?(vi=(li=new Bi).port2,li.port1.onmessage=_i,fi=Si(vi.postMessage,vi)):o.addEventListener&&L(o.postMessage)&&!o.importScripts&&ci&&"file:"!==ci.protocol&&!h(Yi)?(fi=Yi,o.addEventListener("message",_i,!1)):fi=Di in St("script")?function(t){Ni.appendChild(St("script"))[Di]=function(){Ni.removeChild(this),Fi(t)}}:function(t){setTimeout(zi(t),0)});var Xi={set:Ei,clear:Ti},qi=function(){this.head=null,this.tail=null};qi.prototype={add:function(t){var r={item:t,next:null},i=this.tail;i?i.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Gi,Ui,Vi,Hi,Wi,Qi=qi,Zi=/ipad|iphone|ipod/i.test(z)&&"undefined"!=typeof Pebble,Ki=/web0s(?!.*chrome)/i.test(z),Ji=Xi.set,te=o.MutationObserver||o.WebKitMutationObserver,re=o.document,ie=o.process,ee=o.Promise,ne=(0,Ot.f)(o,"queueMicrotask"),se=ne&&ne.value;if(!se){var ae=new Qi,oe=function(){var t,r;for(_r&&(t=ie.domain)&&t.exit();r=ae.get();)try{r()}catch(t){throw ae.head&&Gi(),t}t&&t.enter()};Oi||_r||Ki||!te||!re?!Zi&&ee&&ee.resolve?((Hi=ee.resolve(void 0)).constructor=ee,Wi=Si(Hi.then,Hi),Gi=function(){Wi(oe)}):_r?Gi=function(){ie.nextTick(oe)}:(Ji=Si(Ji,o),Gi=function(){Ji(oe)}):(Ui=!0,Vi=re.createTextNode(""),new te(oe).observe(Vi,{characterData:!0}),Gi=function(){Vi.data=Ui=!Ui}),se=function(t){ae.head||Gi(),ae.add(t)}}var he,ue,ce,fe,le=se,ve=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},de=o.Promise,pe="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,ye=!pe&&!_r&&"object"==typeof window&&"object"==typeof document,ge=mt("species"),me=!1,be=L(o.PromiseRejectionEvent),we=Dr("Promise",(function(){var t=Qt(de),r=t!==String(de);if(!r&&66===G)return!0;if(!G||G<51||!/native code/.test(t)){var i=new de((function(t){t(1)})),e=function(t){t((function(){}),(function(){}))};if((i.constructor={})[ge]=e,!(me=i.then((function(){}))instanceof e))return!0}return!r&&(ye||pe)&&!be})),xe={CONSTRUCTOR:we,REJECTION_EVENT:be,SUBCLASSING:me},Me=TypeError,ke=function(t){var r,i;this.promise=new t((function(t,e){if(void 0!==r||void 0!==i)throw Me("Bad Promise constructor");r=t,i=e})),this.resolve=J(r),this.reject=J(i)},Se={f:function(t){return new ke(t)}},Ne=Xi.set,je="Promise",Pe=xe.CONSTRUCTOR,Oe=xe.REJECTION_EVENT,Ee=xe.SUBCLASSING,Te=ar.getterFor(je),Ce=ar.set,Ae=de&&de.prototype,Re=de,Be=Ae,Le=o.TypeError,$e=o.document,Ie=o.process,De=Se.f,Fe=De,ze=!!($e&&$e.createEvent&&o.dispatchEvent),_e="unhandledrejection",Ye=function(t){var r;return!(!I(t)||!L(r=t.then))&&r},Xe=function(t,r){var i,e,n,s=r.value,a=1==r.state,o=a?t.ok:t.fail,h=t.resolve,u=t.reject,c=t.domain;try{o?(a||(2===r.rejection&&He(r),r.rejection=1),!0===o?i=s:(c&&c.enter(),i=o(s),c&&(c.exit(),n=!0)),i===t.promise?u(Le("Promise-chain cycle")):(e=Ye(i))?l(e,i,h,u):h(i)):u(s)}catch(t){c&&!n&&c.exit(),u(t)}},qe=function(t,r){t.notified||(t.notified=!0,le((function(){for(var i,e=t.reactions;i=e.get();)Xe(i,t);t.notified=!1,r&&!t.rejection&&Ue(t)})))},Ge=function(t,r,i){var e,n;ze?((e=$e.createEvent("Event")).promise=r,e.reason=i,e.initEvent(t,!1,!0),o.dispatchEvent(e)):e={promise:r,reason:i},!Oe&&(n=o["on"+t])?n(e):t===_e&&function(t,r){try{1==arguments.length?console.error(t):console.error(t,r)}catch(t){}}("Unhandled promise rejection",i)},Ue=function(t){l(Ne,o,(function(){var r,i=t.facade,e=t.value;if(Ve(t)&&(r=ve((function(){_r?Ie.emit("unhandledRejection",e,i):Ge(_e,i,e)})),t.rejection=_r||Ve(t)?2:1,r.error))throw r.value}))},Ve=function(t){return 1!==t.rejection&&!t.parent},He=function(t){l(Ne,o,(function(){var r=t.facade;_r?Ie.emit("rejectionHandled",r):Ge("rejectionhandled",r,t.value)}))},We=function(t,r,i){return function(e){t(r,e,i)}},Qe=function(t,r,i){t.done||(t.done=!0,i&&(t=i),t.value=r,t.state=2,qe(t,!0))},Ze=function(t,r,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===r)throw Le("Promise can't be resolved itself");var e=Ye(r);e?le((function(){var i={done:!1};try{l(e,r,We(Ze,i,t),We(Qe,i,t))}catch(r){Qe(i,r,t)}})):(t.value=r,t.state=1,qe(t,!1))}catch(r){Qe({done:!1},r,t)}}};if(Pe&&(Re=function(t){!function(t){if(F(Be,t))return t;throw Wr("Incorrect invocation")}(this),J(t),l(he,this);var r=Te(this);try{t(We(Ze,r),We(Qe,r))}catch(t){Qe(r,t)}},(he=function(){Ce(this,{type:je,done:!1,notified:!1,parent:!1,reactions:new Qi,rejection:!1,state:0,value:void 0})}).prototype=hr(Be=Re.prototype,"then",(function(t,r){var i=Te(this),e=De(gi(this,Re));return i.parent=!0,e.ok=!L(t)||t,e.fail=L(r)&&r,e.domain=_r?Ie.domain:void 0,0==i.state?i.reactions.add(e):le((function(){Xe(e,i)})),e.promise})),ue=function(){var t=new he,r=Te(t);this.promise=t,this.resolve=We(Ze,r),this.reject=We(Qe,r)},Se.f=De=function(t){return t===Re||void 0===t?new ue(t):Fe(t)},L(de)&&Ae!==Object.prototype)){ce=Ae.then,Ee||hr(Ae,"then",(function(t,r){var i=this;return new Re((function(t,r){l(ce,i,t,r)})).then(t,r)}),{unsafe:!0});try{delete Ae.constructor}catch(t){}qr&&qr(Ae,Be)}zr({global:!0,constructor:!0,wrap:!0,forced:Pe},{Promise:Re}),Vr(Re,je,!1),fe=D(je),u&&fe&&!fe[Hr]&&(0,zt.f)(fe,Hr,{configurable:!0,get:function(){return this}});var Ke={},Je=mt("iterator"),tn=Array.prototype,rn=mt("iterator"),en=function(t){if(!O(t))return tt(t,rn)||tt(t,"@@iterator")||Ke[ri(t)]},nn=TypeError,sn=function(t,r,i){var e,n;At(t);try{if(!(e=tt(t,"return"))){if("throw"===r)throw i;return i}e=l(e,t)}catch(t){n=!0,e=t}if("throw"===r)throw i;if(n)throw e;return At(e),i},an=TypeError,on=function(t,r){this.stopped=t,this.result=r},hn=on.prototype,un=function(t,r,i){var e,n,s,a,o,h,u,c,f=!(!i||!i.AS_ENTRIES),v=!(!i||!i.IS_RECORD),d=!(!i||!i.IS_ITERATOR),p=!(!i||!i.INTERRUPTED),y=Si(r,i&&i.that),g=function(t){return e&&sn(e,"normal",t),new on(!0,t)},m=function(t){return f?(At(t),p?y(t[0],t[1],g):y(t[0],t[1])):p?y(t,g):y(t)};if(v)e=t.iterator;else if(d)e=t;else{if(!(n=en(t)))throw an(Z(t)+" is not iterable");if(void 0!==(c=n)&&(Ke.Array===c||tn[Je]===c)){for(s=0,a=mr(t);a>s;s++)if((o=m(t[s]))&&F(hn,o))return o;return new on(!1)}e=function(t,r){var i=arguments.length<2?en(t):r;if(J(i))return At(l(i,t));throw nn(Z(t)+" is not iterable")}(t,n)}for(h=v?t.next:e.next;!(u=l(h,e)).done;){try{o=m(u.value)}catch(t){sn(e,"throw",t)}if("object"==typeof o&&o&&F(hn,o))return o}return new on(!1)},cn=mt("iterator"),fn=!1;try{var ln=0,vn={next:function(){return{done:!!ln++}},return:function(){fn=!0}};vn[cn]=function(){return this},Array.from(vn,(function(){throw 2}))}catch(t){}var dn=xe.CONSTRUCTOR||!function(){if(!fn)return!1;var t=!1;try{var r={};r[cn]=function(){return{next:function(){return{done:t=!0}}}},de.all(r).then(void 0,(function(){}))}catch(t){}return t}();zr({target:"Promise",stat:!0,forced:dn},{all:function(t){var r=this,i=Se.f(r),e=i.resolve,n=i.reject,s=ve((function(){var i=J(r.resolve),s=[],a=0,o=1;un(t,(function(t){var h=a++,u=!1;o++,l(i,r,t).then((function(t){u||(u=!0,s[h]=t,--o||e(s))}),n)})),--o||e(s)}));return s.error&&n(s.value),i.promise}});var pn=de&&de.prototype;if(zr({target:"Promise",proto:!0,forced:xe.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(de)){var yn=D("Promise").prototype.catch;pn.catch!==yn&&hr(pn,"catch",yn,{unsafe:!0})}zr({target:"Promise",stat:!0,forced:dn},{race:function(t){var r=this,i=Se.f(r),e=i.reject,n=ve((function(){var n=J(r.resolve);un(t,(function(t){l(n,r,t).then(i.resolve,e)}))}));return n.error&&e(n.value),i.promise}}),zr({target:"Promise",stat:!0,forced:xe.CONSTRUCTOR},{reject:function(t){var r=Se.f(this);return l(r.reject,void 0,t),r.promise}}),zr({target:"Promise",stat:!0,forced:xe.CONSTRUCTOR},{resolve:function(t){return function(t,r){if(At(t),I(r)&&r.constructor===t)return r;var i=Se.f(t);return(0,i.resolve)(r),i.promise}(this,t)}});const gn=i(r((function(t){function r(t,r,i,e,n,s,a){try{var o=t[s](a),h=o.value}catch(t){return void i(t)}o.done?r(h):Promise.resolve(h).then(e,n)}t.exports=function(t){return function(){var i=this,e=arguments;return new Promise((function(n,s){var a=t.apply(i,e);function o(t){r(a,n,s,o,h,"next",t)}function h(t){r(a,n,s,o,h,"throw",t)}o(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports})));var mn,bn=String,wn=function(t){if("Symbol"===ri(t))throw TypeError("Cannot convert a Symbol value to a string");return bn(t)},xn=function(){var t=At(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},Mn=o.RegExp,kn=h((function(){var t=Mn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Sn=kn||h((function(){return!Mn("a","y").sticky})),Nn={BROKEN_CARET:kn||h((function(){var t=Mn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Sn,UNSUPPORTED_Y:kn},jn=Object.keys||function(t){return kr(t,Sr)},Pn=u&&!Et?Object.defineProperties:function(t,r){At(t);for(var i,e=C(r),n=jn(r),s=n.length,a=0;s>a;)zt.f(t,i=n[a++],e[i]);return t},On={f:Pn},En="prototype",Tn="script",Cn=tr("IE_PROTO"),An=function(){},Rn=function(t){return"<"+Tn+">"+t+"</"+Tn+">"},Bn=function(t){t.write(Rn("")),t.close();var r=t.parentWindow.Object;return t=null,r},Ln=function(){try{mn=new ActiveXObject("htmlfile")}catch(t){}var t,r,i;Ln="undefined"!=typeof document?document.domain&&mn?Bn(mn):(r=St("iframe"),i="java"+Tn+":",r.style.display="none",Ni.appendChild(r),r.src=String(i),(t=r.contentWindow.document).open(),t.write(Rn("document.F=Object")),t.close(),t.F):Bn(mn);for(var e=Sr.length;e--;)delete Ln[En][Sr[e]];return Ln()};rr[Cn]=!0;var $n,In,Dn=Object.create||function(t,r){var i;return null!==t?(An[En]=At(t),i=new An,An[En]=null,i[Cn]=t):i=Ln(),void 0===r?i:On.f(i,r)},Fn=o.RegExp,zn=h((function(){var t=Fn(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),_n=o.RegExp,Yn=h((function(){var t=_n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Xn=ar.get,qn=at("native-string-replace",String.prototype.replace),Gn=RegExp.prototype.exec,Un=Gn,Vn=x("".charAt),Hn=x("".indexOf),Wn=x("".replace),Qn=x("".slice),Zn=(In=/b*/g,l(Gn,$n=/a/,"a"),l(Gn,In,"a"),0!==$n.lastIndex||0!==In.lastIndex),Kn=Nn.BROKEN_CARET,Jn=void 0!==/()??/.exec("")[1];(Zn||Jn||Kn||zn||Yn)&&(Un=function(t){var r,i,e,n,s,a,o,h=this,u=Xn(h),c=wn(t),f=u.raw;if(f)return f.lastIndex=h.lastIndex,r=l(Un,f,c),h.lastIndex=f.lastIndex,r;var v=u.groups,d=Kn&&h.sticky,p=l(xn,h),y=h.source,g=0,m=c;if(d&&(p=Wn(p,"y",""),-1===Hn(p,"g")&&(p+="g"),m=Qn(c,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==Vn(c,h.lastIndex-1))&&(y="(?: "+y+")",m=" "+m,g++),i=new RegExp("^(?:"+y+")",p)),Jn&&(i=new RegExp("^"+y+"$(?!\\s)",p)),Zn&&(e=h.lastIndex),n=l(Gn,d?i:h,m),d?n?(n.input=Qn(n.input,g),n[0]=Qn(n[0],g),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:Zn&&n&&(h.lastIndex=h.global?n.index+n[0].length:e),Jn&&n&&n.length>1&&l(qn,n[0],i,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)})),n&&v)for(n.groups=a=Dn(null),s=0;s<v.length;s++)a[(o=v[s])[0]]=n[o[1]];return n});var ts=Un;zr({target:"RegExp",proto:!0,forced:/./.exec!==ts},{exec:ts});var rs=mt("species"),is=RegExp.prototype,es=function(t,r,i,e){var n=mt(t),s=!h((function(){var r={};return r[n]=function(){return 7},7!=""[t](r)})),a=s&&!h((function(){var r=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[rs]=function(){return i},i.flags="",i[n]=/./[n]),i.exec=function(){return r=!0,null},i[n](""),!r}));if(!s||!a||i){var o=Mi(/./[n]),u=r(n,""[t],(function(t,r,i,e,n){var a=Mi(t),h=r.exec;return h===ts||h===is.exec?s&&!n?{done:!0,value:o(r,i,e)}:{done:!0,value:a(i,r,e)}:{done:!1}}));hr(String.prototype,t,u[0]),hr(is,n,u[1])}e&&_t(is[n],"sham",!0)},ns=x("".charAt),ss=x("".charCodeAt),as=x("".slice),os=function(t){return function(r,i){var e,n,s=wn(T(r)),a=lr(i),o=s.length;return a<0||a>=o?t?"":void 0:(e=ss(s,a))<55296||e>56319||a+1===o||(n=ss(s,a+1))<56320||n>57343?t?ns(s,a):e:t?as(s,a,a+2):n-56320+(e-55296<<10)+65536}},hs=(os(!1),os(!0)),us=function(t,r,i){return r+(i?hs(t,r).length:1)},cs=TypeError,fs=function(t,r){var i=t.exec;if(L(i)){var e=l(i,t,r);return null!==e&&At(e),e}if("RegExp"===S(t))return l(ts,t,r);throw cs("RegExp#exec called on incompatible receiver")};es("match",(function(t,r,i){return[function(r){var i=T(this),e=O(r)?void 0:tt(r,t);return e?l(e,r,i):new RegExp(r)[t](wn(i))},function(t){var e=At(this),n=wn(t),s=i(r,e,n);if(s.done)return s.value;if(!e.global)return fs(e,n);var a=e.unicode;e.lastIndex=0;for(var o,h=[],u=0;null!==(o=fs(e,n));){var c=wn(o[0]);h[u]=c,""===c&&(e.lastIndex=us(n,gr(e.lastIndex),a)),u++}return 0===u?null:h}]}));var ls=Math.floor,vs=x("".charAt),ds=x("".replace),ps=x("".slice),ys=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,gs=/\$([$&'`]|\d{1,2})/g,ms=function(t,r,i,e,n,s){var a=i+t.length,o=e.length,h=gs;return void 0!==n&&(n=ht(n),h=ys),ds(s,h,(function(s,h){var u;switch(vs(h,0)){case"$":return"$";case"&":return t;case"`":return ps(r,0,i);case"'":return ps(r,a);case"<":u=n[ps(h,1,-1)];break;default:var c=+h;if(0===c)return s;if(c>o){var f=ls(c/10);return 0===f?s:f<=o?void 0===e[f-1]?vs(h,1):e[f-1]+vs(h,1):s}u=e[c-1]}return void 0===u?"":u}))},bs=mt("replace"),ws=Math.max,xs=Math.min,Ms=x([].concat),ks=x([].push),Ss=x("".indexOf),Ns=x("".slice),js="$0"==="a".replace(/./,"$0"),Ps=!!/./[bs]&&""===/./[bs]("a","$0");es("replace",(function(t,r,i){var e=Ps?"$":"$0";return[function(t,i){var e=T(this),n=O(t)?void 0:tt(t,bs);return n?l(n,t,e,i):l(r,wn(e),t,i)},function(t,n){var s=At(this),a=wn(t);if("string"==typeof n&&-1===Ss(n,e)&&-1===Ss(n,"$<")){var o=i(r,s,a,n);if(o.done)return o.value}var h=L(n);h||(n=wn(n));var u=s.global;if(u){var c=s.unicode;s.lastIndex=0}for(var f=[];;){var l=fs(s,a);if(null===l)break;if(ks(f,l),!u)break;""===wn(l[0])&&(s.lastIndex=us(a,gr(s.lastIndex),c))}for(var v,d="",p=0,y=0;y<f.length;y++){for(var g=wn((l=f[y])[0]),m=ws(xs(lr(l.index),a.length),0),b=[],w=1;w<l.length;w++)ks(b,void 0===(v=l[w])?v:String(v));var x=l.groups;if(h){var M=Ms([g],b,m,a);void 0!==x&&ks(M,x);var k=wn(xi(n,void 0,M))}else k=ms(g,a,m,b,x,n);m>=p&&(d+=Ns(a,p,m)+k,p=m+g.length)}return d+Ns(a,p)}]}),!!h((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!js||Ps);var Os,Es=mt("match"),Ts=function(t){var r;return I(t)&&(void 0!==(r=t[Es])?!!r:"RegExp"==S(t))},Cs=TypeError,As=function(t){if(Ts(t))throw Cs("The method doesn't accept regular expressions");return t},Rs=mt("match"),Bs=function(t){var r=/./;try{"/./"[t](r)}catch(i){try{return r[Rs]=!1,"/./"[t](r)}catch(t){}}return!1},Ls=Ot.f,$s=Mi("".startsWith),Is=Mi("".slice),Ds=Math.min,Fs=Bs("startsWith"),zs=!(Fs||(Os=Ls(String.prototype,"startsWith"),!Os||Os.writable));zr({target:"String",proto:!0,forced:!zs&&!Fs},{startsWith:function(t){var r=wn(T(this));As(t);var i=gr(Ds(arguments.length>1?arguments[1]:void 0,r.length)),e=wn(t);return $s?$s(r,e,i):Is(r,i,i+e.length)===e}});var _s=zt.f,Ys=mt("unscopables"),Xs=Array.prototype;null==Xs[Ys]&&_s(Xs,Ys,{configurable:!0,value:Dn(null)});var qs,Gs,Us,Vs=function(t){Xs[Ys][t]=!0},Hs=!h((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Ws=tr("IE_PROTO"),Qs=Object,Zs=Qs.prototype,Ks=Hs?Qs.getPrototypeOf:function(t){var r=ht(t);if(ct(r,Ws))return r[Ws];var i=r.constructor;return L(i)&&r instanceof i?i.prototype:r instanceof Qs?Zs:null},Js=mt("iterator"),ta=!1;[].keys&&("next"in(Us=[].keys())?(Gs=Ks(Ks(Us)))!==Object.prototype&&(qs=Gs):ta=!0);var ra=!I(qs)||h((function(){var t={};return qs[Js].call(t)!==t}));ra&&(qs={}),L(qs[Js])||hr(qs,Js,(function(){return this}));var ia={IteratorPrototype:qs,BUGGY_SAFARI_ITERATORS:ta},ea=ia.IteratorPrototype,na=function(){return this},sa=Gt.PROPER,aa=Gt.CONFIGURABLE,oa=ia.IteratorPrototype,ha=ia.BUGGY_SAFARI_ITERATORS,ua=mt("iterator"),ca="keys",fa="values",la="entries",va=function(){return this},da=function(t,r){return{value:t,done:r}},pa=zt.f,ya="Array Iterator",ga=ar.set,ma=ar.getterFor(ya),ba=function(t,r,i,e,n){!function(t,r,i){var e=r+" Iterator";t.prototype=Dn(ea,{next:g(1,i)}),Vr(t,e,!1),Ke[e]=na}(i,r,(function(){var t=ma(this),r=t.target,i=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,da(void 0,!0)):da("keys"==i?e:"values"==i?r[e]:[e,r[e]],!1)}));var s,a,o,h=function(t){if(t===n&&d)return d;if(!ha&&t in f)return f[t];switch(t){case ca:case fa:case la:return function(){return new i(this,t)}}return function(){return new i(this)}},u=r+" Iterator",c=!1,f=t.prototype,v=f[ua]||f["@@iterator"]||n&&f[n],d=!ha&&v||h(n),p=f.entries||v;if(p&&(s=Ks(p.call(new t)))!==Object.prototype&&s.next&&(Ks(s)!==oa&&(qr?qr(s,oa):L(s[ua])||hr(s,ua,va)),Vr(s,u,!0)),sa&&v&&v.name!==fa&&(aa?_t(f,"name",fa):(c=!0,d=function(){return l(v,this)})),n)if(void(a={values:h(fa),keys:h(ca),entries:h(la)}))for(o in a)(ha||c||!(o in f))&&hr(f,o,a[o]);else zr({target:r,proto:!0,forced:ha||c},a);return f[ua]!==d&&hr(f,ua,d,{name:n}),Ke[r]=d,a}(Array,"Array",(function(t,r){ga(this,{type:ya,target:C(t),index:0,kind:r})}),0,"values"),wa=Ke.Arguments=Ke.Array;if(Vs("keys"),Vs("values"),Vs("entries"),u&&"values"!==wa.name)try{pa(wa,"name",{value:"values"})}catch(t){}var xa={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ma=St("span").classList,ka=Ma&&Ma.constructor&&Ma.constructor.prototype,Sa=ka===Object.prototype?void 0:ka,Na=mt("iterator"),ja=mt("toStringTag"),Pa=ba.values,Oa=function(t,r){if(t){if(t[Na]!==Pa)try{_t(t,Na,Pa)}catch(r){t[Na]=Pa}if(t[ja]||_t(t,ja,r),xa[r])for(var i in ba)if(t[i]!==ba[i])try{_t(t,i,ba[i])}catch(r){t[i]=ba[i]}}};for(var Ea in xa)Oa(o[Ea]&&o[Ea].prototype,Ea);Oa(Sa,"DOMTokenList");var Ta=r((function(t){var r=e.default;t.exports=function(t,i){if("object"!==r(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i||"default");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports})),Ca=r((function(t){var r=e.default;t.exports=function(t){var i=Ta(t,"string");return"symbol"===r(i)?i:String(i)},t.exports.__esModule=!0,t.exports.default=t.exports}));const Aa=i(r((function(t){t.exports=function(t,r,i){return(r=Ca(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t},t.exports.__esModule=!0,t.exports.default=t.exports})));var Ra=TypeError,Ba=function(t){return function(r,i,e,n){J(i);var s=ht(r),a=P(s),o=mr(s),h=t?o-1:0,u=t?-1:1;if(e<2)for(;;){if(h in a){n=a[h],h+=u;break}if(h+=u,t?h<0:o<=h)throw Ra("Reduce of empty array with no initial value")}for(;t?h>=0:o>h;h+=u)h in a&&(n=i(n,a[h],h,s));return n}},La=function(t,r){var i=[][t];return!!i&&h((function(){i.call(null,r||function(){return 1},1)}))},$a=[Ba(!1),Ba(!0)][0],Ia=!_r&&G>79&&G<83||!La("reduce");zr({target:"Array",proto:!0,forced:Ia},{reduce:function(t){var r=arguments.length;return $a(this,t,r,r>1?arguments[1]:void 0)}});var Da=Ot.f,Fa=Mi("".endsWith),za=Mi("".slice),_a=Math.min,Ya=Bs("endsWith"),Xa=!Ya&&!!function(){var t=Da(String.prototype,"endsWith");return t&&!t.writable}();zr({target:"String",proto:!0,forced:!Xa&&!Ya},{endsWith:function(t){var r=wn(T(this));As(t);var i=arguments.length>1?arguments[1]:void 0,e=r.length,n=void 0===i?e:_a(gr(i),e),s=wn(t);return Fa?Fa(r,s,n):za(r,n-s.length,n)===s}});var qa=Array,Ga=Math.max,Ua=function(t,r,i){for(var e,n,s,a=mr(t),o=pr(r,a),h=pr(void 0===i?a:i,a),u=qa(Ga(h-o,0)),c=0;o<h;o++,c++)e=u,n=t[o],void 0,(s=xt(c))in e?zt.f(e,s,g(0,n)):e[s]=n;return u.length=c,u},Va=Nn.UNSUPPORTED_Y,Ha=4294967295,Wa=Math.min,Qa=[].push,Za=x(/./.exec),Ka=x(Qa),Ja=x("".slice);es("split",(function(t,r,i){var e;return e="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,i){var e=wn(T(this)),n=void 0===i?Ha:i>>>0;if(0===n)return[];if(void 0===t)return[e];if(!Ts(t))return l(r,e,t,n);for(var s,a,o,h=[],u=0,c=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(s=l(ts,c,e))&&!((a=c.lastIndex)>u&&(Ka(h,Ja(e,u,s.index)),s.length>1&&s.index<e.length&&xi(Qa,h,Ua(s,1)),o=s[0].length,u=a,h.length>=n));)c.lastIndex===s.index&&c.lastIndex++;return u===e.length?!o&&Za(c,"")||Ka(h,""):Ka(h,Ja(e,u)),h.length>n?Ua(h,0,n):h}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:l(r,this,t,i)}:r,[function(r,i){var n=T(this),s=O(r)?void 0:tt(r,t);return s?l(s,r,n,i):l(e,wn(n),r,i)},function(t,n){var s=At(this),a=wn(t),o=i(e,s,a,n,e!==r);if(o.done)return o.value;var h=gi(s,RegExp),u=s.unicode,c=new h(Va?"^(?:"+s.source+")":s,(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(Va?"g":"y")),f=void 0===n?Ha:n>>>0;if(0===f)return[];if(0===a.length)return null===fs(c,a)?[a]:[];for(var l=0,v=0,d=[];v<a.length;){c.lastIndex=Va?0:v;var p,y=fs(c,Va?Ja(a,v):a);if(null===y||(p=Wa(gr(c.lastIndex+(Va?v:0)),a.length))===l)v=us(a,v,u);else{if(Ka(d,Ja(a,l,v)),d.length===f)return d;for(var g=1;g<=y.length-1;g++)if(Ka(d,y[g]),d.length===f)return d;v=l=p}}return Ka(d,Ja(a,l)),d}]}),!!h((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),Va);for(var to=r((function(r){(function(){var t,i,e,n,s,a;"undefined"!=typeof performance&&null!==performance&&performance.now?r.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(r.exports=function(){return(t()-s)/1e6},i=process.hrtime,n=(t=function(){var t;return 1e9*(t=i())[0]+t[1]})(),a=1e9*process.uptime(),s=n-a):Date.now?(r.exports=function(){return Date.now()-e},e=Date.now()):(r.exports=function(){return(new Date).getTime()-e},e=(new Date).getTime())}).call(t)})),ro="undefined"==typeof window?t:window,io=["moz","webkit"],eo="AnimationFrame",no=ro["request"+eo],so=ro["cancel"+eo]||ro["cancelRequest"+eo],ao=0;!no&&ao<io.length;ao++)no=ro[io[ao]+"Request"+eo],so=ro[io[ao]+"Cancel"+eo]||ro[io[ao]+"CancelRequest"+eo];if(!no||!so){var oo=0,ho=0,uo=[];no=function(t){if(0===uo.length){var r=to(),i=Math.max(0,16.666666666666668-(r-oo));oo=i+r,setTimeout((function(){var t=uo.slice(0);uo.length=0;for(var r=0;r<t.length;r++)if(!t[r].cancelled)try{t[r].callback(oo)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(i))}return uo.push({handle:++ho,callback:t,cancelled:!1}),ho},so=function(t){for(var r=0;r<uo.length;r++)uo[r].handle===t&&(uo[r].cancelled=!0)}}var co=function(t){return no.call(ro,t)};co.cancel=function(){so.apply(ro,arguments)},co.polyfill=function(t){t||(t=ro),t.requestAnimationFrame=no,t.cancelAnimationFrame=so};var fo,lo="\t\n\v\f\r                 \u2028\u2029\ufeff",vo=x("".replace),po="["+lo+"]",yo=RegExp("^"+po+po+"*"),go=RegExp(po+po+"*$"),mo=function(t){return function(r){var i=wn(T(r));return 1&t&&(i=vo(i,yo,"")),2&t&&(i=vo(i,go,"")),i}},bo={start:mo(1),end:mo(2),trim:mo(3)},wo=Gt.PROPER,xo=bo.trim;zr({target:"String",proto:!0,forced:(fo="trim",h((function(){return!!lo[fo]()||"​…᠎"!=="​…᠎"[fo]()||wo&&lo[fo].name!==fo})))},{trim:function(){return xo(this)}});var Mo=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=r[t]||t;for(var i=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],e=0;e<i.length;e++){var n=i[e].process,s=i[e].re.exec(t);if(s){var a=n(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),r=this.g.toString(16),i=this.b.toString(16);return 1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),1==i.length&&(i="0"+i),"#"+t+r+i},this.getHelpXML=function(){for(var t=new Array,e=0;e<i.length;e++)for(var n=i[e].example,s=0;s<n.length;s++)t[t.length]=n[s];for(var a in r)t[t.length]=a;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),e=0;e<t.length;e++)try{var h=document.createElement("li"),u=new RGBColor(t[e]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),c.appendChild(document.createTextNode("test"));var f=document.createTextNode(" "+t[e]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(c),h.appendChild(f),o.appendChild(h)}catch(t){}return o}},ko=wr.indexOf,So=Mi([].indexOf),No=!!So&&1/So([1],1,-0)<0,jo=No||!La("indexOf");zr({target:"Array",proto:!0,forced:jo},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return No?So(this,t,r)||0:ko(this,t,r)}});var Po=x("".indexOf);zr({target:"String",proto:!0,forced:!Bs("includes")},{includes:function(t){return!!~Po(wn(T(this)),wn(As(t)),arguments.length>1?arguments[1]:void 0)}});var Oo=Array.isArray||function(t){return"Array"==S(t)},Eo=x([].reverse),To=[1,2];zr({target:"Array",proto:!0,forced:String(To)===String(To.reverse())},{reverse:function(){return Oo(this)&&(this.length=this.length),Eo(this)}});
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
9
9
 
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,c as i,h as e,H as s,g as a}from"./p-78780f63.js";import{s as l}from"./p-b1b768f7.js";import{g as c}from"./p-e902ba19.js";import{n}from"./p-2592e0dd.js";import"./p-225c4ca4.js";import"./p-c1cf3ebc.js";import"./p-d89fff3a.js";import"./p-e1a4994d.js";import"./p-a230b270.js";import"./p-220ec0d1.js";import"./p-d918ec36.js";const r=class{constructor(e){t(this,e),this.solutionItemSelected=i(this,"solutionItemSelected",7),this.selectedItemId=void 0,this.templateHierarchy=[]}valueWatchHandler(t,i){t&&t!==i&&Array.isArray(t)&&t.length>0&&this._treeItemSelected(t[0].id)}componentWillLoad(){this.valueWatchHandler(this.templateHierarchy,[])}render(){return e(s,null,e("calcite-tree",null,this.renderHierarchy(this.templateHierarchy)))}renderHierarchy(t){return t.map((t=>{const i=this.selectedItemId&&this.selectedItemId===t.id;return t.dependencies&&t.dependencies.length>0?e("calcite-tree-item",{onClick:i=>this._treeItemSelected(t.id,i),selected:i},e("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),e("span",{class:"icon-text",title:t.title},t.title),e("calcite-tree",{slot:"children"},this.renderHierarchy(t.dependencies))):e("calcite-tree-item",{onClick:i=>this._treeItemSelected(t.id,i),selected:i},e("solution-item-icon",{type:t.type,typeKeywords:t.typeKeywords}),e("span",{class:"icon-text",title:t.title},t.title))}))}_treeItemSelected(t,i){var e;const s=null===(e=null==i?void 0:i.target)||void 0===e?void 0:e.closest("calcite-tree-item");s&&(s.expanded=!(null==s?void 0:s.expanded)),this.selectedItemId=t,this.solutionItemSelected.emit(t)}static get assetsDirs(){return["item-type-icons"]}get el(){return a(this)}static get watchers(){return{templateHierarchy:["valueWatchHandler"]}}};r.style=".icon-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";const o=class{constructor(i){t(this,i),this.authentication=void 0,this.itemId="",this.solutionVariables="",this.organizationVariables="",this.itemType=void 0,this._translations=void 0}itemIdWatchHandler(){const t=l.getItemInfo(this.itemId);this.itemType=t.type}async componentWillLoad(){return this._getTranslations()}render(){return e(s,null,e("div",{class:"configuration-container"},e("div",{class:"configuration"},this._showGroupTabs("Group"===this.itemType),this._showItemTabs("Group"!==this.itemType))))}_showGroupTabs(t){return e("calcite-tabs",{class:"config-tabs",style:{display:t?"inherit":"none"}},e("calcite-tab-nav",{slot:"tab-nav"},e("calcite-tab-title",null,this._translations.groupDetailsTab),e("calcite-tab-title",null,this._translations.sharingTab)),e("calcite-tab",{class:"config-tab",id:"group-tab",selected:!0},e("solution-item-details",{"item-id":this.itemId})),e("calcite-tab",{class:"config-tab",id:"share-tab"},e("solution-item-sharing",{"group-id":this.itemId})))}_showItemTabs(t){return e("calcite-tabs",{class:"config-tabs",style:{display:t?"inherit":"none"}},e("calcite-tab-nav",{slot:"tab-nav"},e("calcite-tab-title",null,this._translations.itemDetailsTab),e("calcite-tab-title",null,this._translations.dataTab),e("calcite-tab-title",null,this._translations.propertiesTab),e("calcite-tab-title",null,this._translations.resourcesTab)),e("calcite-tab",{class:"config-tab",selected:!0},e("solution-item-details",{"item-id":this.itemId})),e("calcite-tab",{class:"config-tab",id:"data-tab"},e("solution-template-data",{instanceid:"data","item-id":this.itemId,"organization-variables":this.organizationVariables,"solution-variables":this.solutionVariables})),e("calcite-tab",{class:"config-tab",id:"props-tab"},e("solution-template-data",{instanceid:"properties","item-id":this.itemId,"organization-variables":this.organizationVariables,"solution-variables":this.solutionVariables})),e("calcite-tab",{class:"config-tab",id:"resources-tab"},e("solution-resource-item",{authentication:this.authentication,class:"solutions-resource-container","item-id":this.itemId})))}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}get el(){return a(this)}static get watchers(){return{itemId:["itemIdWatchHandler"]}}};o.style=".configuration-container{position:relative;height:100%;width:100%}.configuration{position:absolute;top:0px;right:0px;bottom:0px;left:0px;display:flex;padding:0.5rem;border:1px #808080 solid}.config-tabs{width:100%}.config-tab{width:100%;overflow-y:auto;height:inherit}";const h=class{constructor(e){t(this,e),this.featureServiceSpatialReferenceChange=i(this,"featureServiceSpatialReferenceChange",7),this.lockedSpatialReferenceChange=i(this,"lockedSpatialReferenceChange",7),this.defaultWkid=102100,this.loaded=!1,this.locked=!0,this.services=[],this.value=this.defaultWkid.toString(),this._srSearchText=void 0,this._translations=void 0}lockedChanged(t){t||this._setFeatureServiceDefaults(this.services),this.lockedSpatialReferenceChange.emit({locked:t})}componentWillLoad(){return this._getTranslations()}render(){return e(s,null,e("div",{class:"spatial-ref"},e("div",{class:"spatial-ref-desc"},e("calcite-label",null,this._translations.paramDescription)),e("label",{class:"switch-label"},e("calcite-switch",{checked:!this.locked,class:"spatial-ref-switch",onCalciteSwitchChange:t=>this._updateLocked(t),scale:"m"}),this._translations.specifyParam),e("div",{class:"spatial-ref-component",id:"spatialRefDefn"},e("calcite-label",null,this._translations.spatialReferenceInfo,e("label",{class:"spatial-ref-default"},e("spatial-ref",{defaultWkid:this.defaultWkid,disabled:this.locked,value:this.value}))),this._getFeatureServices(this.services))))}spatialReferenceChange(t){this.value=t.detail.newValue}_updateLocked(t){this.locked=!t.target.checked,this._updateStore(),this.loaded||(t.target.checked&&this._setFeatureServiceDefaults(this.services),this.loaded=!0)}_setFeatureServiceDefaults(t){n(this.el.getElementsByClassName("spatial-ref-item-switch")).forEach((t=>t.checked=!0)),t.forEach((t=>this._updateEnabledServices({detail:{switched:!0}},t)))}_getFeatureServices(t){const i=l.getStoreInfo("spatialReferenceInfo"),s=t.filter((t=>Object.keys(i.services).some((i=>i===t))));return s&&s.length>0?e("div",null,e("label",{class:"spatial-ref-item-title"},this._translations.featureServicesHeading),s.map((t=>e("label",{class:"switch-label"},e("calcite-switch",{checked:i.services[t],class:"spatial-ref-item-switch",disabled:this.locked,onCalciteSwitchChange:i=>this._updateEnabledServices(i,t),scale:"m"}),t)))):null}_updateStore(){const t=l.getStoreInfo("spatialReferenceInfo");t.enabled=!this.locked,t.spatialReference=this.value,l.setStoreInfo("spatialReferenceInfo",t)}_updateEnabledServices(t,i){const e=l.getStoreInfo("spatialReferenceInfo");e.services[i]=t.target.checked,l.setStoreInfo("spatialReferenceInfo",e),this.featureServiceSpatialReferenceChange.emit({name:i,enabled:t.target.checked})}async _getTranslations(){const t=await c(this.el);this._translations=t[0]}get el(){return a(this)}static get watchers(){return{locked:["lockedChanged"]}}};h.style=".spatial-ref-switch{margin-inline-end:0.5rem}.spatial-ref-component{margin-top:0.625rem;margin-inline-start:2.5rem}#spatialRefDefn .sc-calcite-label-h label.sc-calcite-label{margin:0px;background-color:#CBC3E3}.spatial-ref-default{margin:0px}.spatial-ref-item-title{margin-bottom:0.5rem;font-size:0.875rem;line-height:1.25rem}.spatial-ref-item-switch{margin-inline-end:0.5rem}.switch-label{margin:0.25rem;font-size:0.875rem;line-height:1.25rem}.disabled-div{pointer-events:none;opacity:0.4}.spatial-ref-desc{padding-bottom:0.5rem;padding-inline-start:0.25rem}";export{r as solution_contents,o as solution_item,h as solution_spatial_ref}
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,h as i,g as s,c as e,H as a,F as o}from"./p-78780f63.js";import{c as l}from"./p-5b566d55.js";import{c as n,s as c,a as r}from"./p-f10944e6.js";import{a as h}from"./p-83fd31d5.js";import{c as d,u as m,d as p}from"./p-0c97de08.js";import{c as f,d as u}from"./p-de281b08.js";import{c as g,s as v,d as b,u as y}from"./p-981e9549.js";import{S as w}from"./p-35c58364.js";import{P as x}from"./p-fec77450.js";import{g as k,b as L,h as C,c as j,d as z}from"./p-4566438a.js";import{g as I,f as F}from"./p-ab006ace.js";import"./p-fcefdfff.js";import"./p-29d68474.js";import"./p-c92fff33.js";import"./p-1e2ffee3.js";import"./p-48ff9cea.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-c1cf3ebc.js";
6
+ import{r as t,h as i,g as s,c as e,H as a,F as o}from"./p-78780f63.js";import{c as l}from"./p-5b566d55.js";import{c as n,s as c,a as r}from"./p-f10944e6.js";import{a as h}from"./p-83fd31d5.js";import{c as d,u as m,d as p}from"./p-0c97de08.js";import{c as f,d as u}from"./p-de281b08.js";import{c as g,s as v,d as b,u as y}from"./p-981e9549.js";import{S as w}from"./p-35c58364.js";import{P as x}from"./p-db868283.js";import{g as k,b as L,h as C,c as j,d as z}from"./p-4566438a.js";import{g as I,f as F}from"./p-e902ba19.js";import"./p-fcefdfff.js";import"./p-29d68474.js";import"./p-c92fff33.js";import"./p-1e2ffee3.js";import"./p-c1cf3ebc.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
@@ -3,7 +3,7 @@
3
3
  * Licensed under the Apache License, Version 2.0
4
4
  * http://www.apache.org/licenses/LICENSE-2.0
5
5
  */
6
- import{r as t,h as i,f as e,g as s,c as o,H as a,F as n}from"./p-78780f63.js";import{c as l,d as r}from"./p-1be63b50.js";import{a as c,i as h,s as d,u as p,n as b,d as u,y as m,t as v,e as g,g as f}from"./p-83fd31d5.js";import{c as x,d as w}from"./p-de281b08.js";import{c as y}from"./p-475ad635.js";import{c as k,s as z,d as C,u as T}from"./p-981e9549.js";import{C as _}from"./p-29d68474.js";import{g as I}from"./p-fcefdfff.js";import{c as L}from"./p-5b566d55.js";import{c as H,d as j,u as A}from"./p-0c97de08.js";import{g as S}from"./p-0c07ad8a.js";import{s as W,a as D,c as E}from"./p-f10944e6.js";import{q as $,m as F,d as R,a as M,s as N,h as B,b as O,g as U,k as P,t as V,i as J,c as q,f as K,e as G,n as X,r as Y,j as Q,l as Z,o as tt,p as it,L as et}from"./p-17668cb7.js";import{d as st,a as ot,c as at}from"./p-3f279568.js";import{C as nt,S as lt}from"./p-d32e6900.js";import{I as rt}from"./p-b3ebaa79.js";import{g as ct}from"./p-ab006ace.js";import{s as ht}from"./p-b1b768f7.js";import{d as dt}from"./p-c1cf3ebc.js";import{E as pt}from"./p-d89fff3a.js";import"./p-a230b270.js";import"./p-1e2ffee3.js";import"./p-c92fff33.js";import"./p-77b43a94.js";import"./p-993e8bd0.js";import"./p-a82f35c9.js";import"./p-48ff9cea.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-225c4ca4.js";import"./p-220ec0d1.js";
6
+ import{r as t,h as i,f as e,g as s,c as o,H as a,F as n}from"./p-78780f63.js";import{c as l,d as r}from"./p-1be63b50.js";import{a as c,i as h,s as d,u as p,n as b,d as u,y as m,t as v,e as g,g as f}from"./p-83fd31d5.js";import{c as x,d as w}from"./p-de281b08.js";import{c as y}from"./p-475ad635.js";import{c as k,s as z,d as C,u as T}from"./p-981e9549.js";import{C as _}from"./p-29d68474.js";import{g as I}from"./p-fcefdfff.js";import{c as L}from"./p-5b566d55.js";import{c as H,d as j,u as A}from"./p-0c97de08.js";import{g as S}from"./p-0c07ad8a.js";import{s as W,a as D,c as E}from"./p-f10944e6.js";import{q as $,m as F,d as R,a as M,s as N,h as B,b as O,g as U,k as P,t as V,i as J,c as q,f as K,e as G,n as X,r as Y,j as Q,l as Z,o as tt,p as it,L as et}from"./p-17668cb7.js";import{d as st,a as ot,c as at}from"./p-3f279568.js";import{C as nt,S as lt}from"./p-d32e6900.js";import{I as rt}from"./p-b3ebaa79.js";import{g as ct}from"./p-e902ba19.js";import{s as ht}from"./p-b1b768f7.js";import{d as dt}from"./p-c1cf3ebc.js";import{E as pt}from"./p-d89fff3a.js";import"./p-a230b270.js";import"./p-1e2ffee3.js";import"./p-c92fff33.js";import"./p-77b43a94.js";import"./p-993e8bd0.js";import"./p-a82f35c9.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";import"./p-225c4ca4.js";import"./p-220ec0d1.js";
7
7
  /*!
8
8
  * All material copyright ESRI, All Rights Reserved, unless otherwise specified.
9
9
  * See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Copyright 2022 Esri
3
+ * Licensed under the Apache License, Version 2.0
4
+ * http://www.apache.org/licenses/LICENSE-2.0
5
+ */
6
+ import{r as t,h as i,H as s,g as e,c as h}from"./p-78780f63.js";import{l as a,g as o}from"./p-e902ba19.js";import"./p-d918ec36.js";import"./p-e1a4994d.js";const n=class{constructor(i){t(this,i),this.mapView=void 0,this.basemapConfig=void 0,this.basemapWidget=void 0}async mapViewWatchHandler(){await this.mapView.when((()=>{this._initBaseMapGallery(this.mapView)}))}async componentWillLoad(){return this._initModules()}render(){return i(s,null,i("div",{ref:t=>{this._basemapElement=t}}))}async componentDidLoad(){this.mapView&&await this.mapViewWatchHandler()}async _initModules(){const[t,i]=await a(["esri/widgets/BasemapGallery","esri/widgets/BasemapGallery/support/PortalBasemapsSource"]);this.BasemapGallery=t,this.PortalBasemapsSource=i}async _initBaseMapGallery(t){var i;if(this.BasemapGallery){this.basemapWidget&&this.basemapWidget.destroy();const s=new this.PortalBasemapsSource({query:(null===(i=this.basemapConfig)||void 0===i?void 0:i.basemapGroupId)?`id:${this.basemapConfig.basemapGroupId}`:null,filterFunction:this.basemapConfig?t=>!this.basemapConfig.basemapIdsToFilter.includes(t.portalItem.id):()=>!0});await s.refresh(),this.basemapWidget=new this.BasemapGallery({container:this._basemapElement,view:t,source:s})}}get el(){return e(this)}static get watchers(){return{mapView:["mapViewWatchHandler"]}}};n.style=":host{display:block}";const r=class{constructor(i){t(this,i),this.levelChanged=h(this,"levelChanged",7),this.enabled=void 0,this.floorFilterWidget=void 0,this.mapView=void 0}async mapViewWatchHandler(){await this.mapView.when((()=>{this._initFloorFilter(this.mapView)}))}async componentWillLoad(){return this._initModules()}render(){return i(s,null,i("div",{ref:t=>{this._floorFilterElement=t}}))}async _initModules(){const[t,i]=await a(["esri/widgets/FloorFilter","esri/core/reactiveUtils"]);this.FloorFilter=t,this.reactiveUtils=i}_initFloorFilter(t){var i;t&&this.enabled&&this.FloorFilter&&(null===(i=null==t?void 0:t.map)||void 0===i?void 0:i.floorInfo)&&(this.floorFilterWidget?this.floorFilterWidget.view=t:(this.floorFilterWidget=new this.FloorFilter({container:this._floorFilterElement,view:t}),this._levelHandle&&this._levelHandle.remove(),this._levelHandle=this.reactiveUtils.watch((()=>this.floorFilterWidget.level),(t=>{this.levelChanged.emit(t)}))))}get el(){return e(this)}static get watchers(){return{mapView:["mapViewWatchHandler"]}}};r.style=":host{display:block}";const l=class{constructor(i){t(this,i),this.fullscreenStateChange=h(this,"fullscreenStateChange",7),this.mapView=void 0,this.fullscreenWidget=void 0}async mapViewWatchHandler(){await this.mapView.when((async()=>{await this._initFullscreenWidget()}))}async componentWillLoad(){await this._initModules()}render(){return i(s,null,i("div",{class:"fullscreen-widget",ref:t=>{this._fullscreenElement=t}}))}async componentDidUpdate(){await this._initFullscreenWidget()}async componentDidLoad(){await this._initFullscreenWidget()}async _initModules(){const[t,i]=await a(["esri/widgets/Fullscreen","esri/core/reactiveUtils"]);this.Fullscreen=t,this.reactiveUtils=i}async _initFullscreenWidget(){this.mapView&&this._fullscreenElement&&!this.fullscreenWidget?(this.fullscreenWidget=new this.Fullscreen({view:this.mapView}),await this.fullscreenWidget.when((()=>{this._fullscreenStateChangeHandle&&this._fullscreenStateChangeHandle.remove(),this._fullscreenStateChangeHandle=this.reactiveUtils.watch((()=>this.fullscreenWidget.viewModel.state),(t=>this.fullscreenStateChange.emit(t)))}))):this.fullscreenWidget&&(this.fullscreenWidget.view=this.mapView)}static get watchers(){return{mapView:["mapViewWatchHandler"]}}};l.style=":host{display:block}";const c=class{constructor(i){t(this,i),this.mapView=void 0,this.legendWidget=void 0}async mapViewWatchHandler(){await this.mapView.when((()=>{this._initLegend(this.mapView)}))}async componentWillLoad(){return this._initModules()}render(){return i(s,null,i("div",{ref:t=>{this._legendElement=t}}))}async componentDidLoad(){this.mapView&&await this.mapViewWatchHandler()}async _initModules(){const[t]=await a(["esri/widgets/Legend"]);this.Legend=t}_initLegend(t){t&&this.Legend&&(this.legendWidget?this.legendWidget.view=t:this.legendWidget=new this.Legend({container:this._legendElement,view:t}))}get el(){return e(this)}static get watchers(){return{mapView:["mapViewWatchHandler"]}}};c.style=":host{display:block}";const d=class{constructor(i){t(this,i),this.mapInfoChange=h(this,"mapInfoChange",7),this._loadedId="",this.mapInfos=[],this._mapListExpanded=!1,this._translations=void 0,this._webMapInfo=void 0}_webMapInfoWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&(this._loadedId=null==t?void 0:t.id,this.mapInfoChange.emit(t))}async mapInfosWatchHandler(t,i){t&&JSON.stringify(t)!==JSON.stringify(i)&&this._webMapSelected(t[0])}async setMapByID(t){var i;const s=null===(i=this.mapInfos)||void 0===i?void 0:i.filter((i=>i.id===t));t&&(null==s?void 0:s.length)>0&&this._webMapSelected(s[0])}async componentWillLoad(){await this._getTranslations()}render(){return i(s,null,this._getToolbar(),this._getMapNameList(this._mapListExpanded))}async componentDidLoad(){const t=this.mapInfos&&this.mapInfos.length>0?this.mapInfos[0]:void 0;t&&this._webMapSelected(t)}_getMapPicker(){var t;const s="map-picker-expand-toggle";return i("div",{class:"width-full"},i("calcite-button",{alignment:"icon-end-space-between",appearance:"transparent",class:"width-full height-full",iconEnd:this._mapListExpanded?"chevron-up":"chevron-down",id:s,kind:"neutral",onClick:()=>this._chooseMap(),width:"full"},null===(t=this._webMapInfo)||void 0===t?void 0:t.name),i("calcite-tooltip",{label:"",placement:"bottom","reference-element":s},i("span",null,this._translations.switchMap)))}_getToolbar(){return i("div",{class:"display-flex"},i("calcite-action-bar",{class:"border-bottom-1 action-bar-size","expand-disabled":!0,layout:"horizontal",slot:"header"},this._getMapPicker()))}_getMapNameList(t){return i("div",{class:t?"map-list border-bottom-1":"display-none"},i("calcite-list",{id:"mapList",ref:t=>this._list=t,selectionAppearance:"border",selectionMode:"single"},this.mapInfos.map((t=>i("calcite-list-item",{label:t.name,onClick:()=>this._webMapSelected(t),selected:t.id===this._loadedId,value:t.id})))))}_webMapSelected(t){this._mapListExpanded=!1,this._webMapInfo=t}_chooseMap(){this._mapListExpanded=!this._mapListExpanded}async _getTranslations(){const t=await o(this.el);this._translations=t[0]}get el(){return e(this)}static get watchers(){return{_webMapInfo:["_webMapInfoWatchHandler"],mapInfos:["mapInfosWatchHandler"]}}};d.style=":host{display:block;--solutions-theme-foreground-color:var(--calcite-color-foreground-1)}.width-full{width:100%}.height-full{height:100%}.display-flex{display:flex}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:51px;width:100%}.map-list{position:absolute;display:flex;flex-direction:column;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-color-background);z-index:1000;width:100%;height:-moz-fit-content;height:fit-content}.display-none{display:none}.align-center{align-items:center}";const p=class{constructor(i){t(this,i),this.mapView=void 0,this.popupEnabled=!1,this.resultGraphicEnabled=!1,this.searchConfiguration=void 0,this.searchTerm=void 0,this.searchWidget=void 0}async watchSearchConfigurationHandler(){this._initSearchWidget()}async mapViewWatchHandler(){await this.mapView.when((()=>{this._initSearchWidget()}))}async componentWillLoad(){await this._initModules()}async componentDidLoad(){return this._initSearchWidget()}render(){return i(s,null,i("div",{class:"search-widget",ref:t=>{this._searchElement=t}}))}async _initModules(){const[t,i]=await a(["esri/widgets/Search","esri/layers/FeatureLayer"]);this.Search=t,this.FeatureLayer=i}_initSearchWidget(){if(this.mapView&&this._searchElement&&!this.searchWidget){let t={view:this.mapView,container:this._searchElement,searchTerm:this.searchTerm};if(this.searchConfiguration){const i=this._getSearchConfig(this.searchConfiguration,this.mapView);t=Object.assign({},i)}this.searchWidget=new this.Search(t),this.searchWidget.popupEnabled=this.popupEnabled,this.searchWidget.resultGraphicEnabled=this.resultGraphicEnabled}else this.searchWidget&&(this.searchWidget.view=this.mapView)}_getSearchConfig(t,i){const s=t.sources;return(null==s?void 0:s.length)>0?(t.includeDefaultSources=!1,s.forEach((t=>{var s,e;if(t.hasOwnProperty("layer")){const h=t,a=null===(s=h.layer)||void 0===s?void 0:s.id,o=a?i.map.findLayerById(a):null,n=null===(e=null==h?void 0:h.layer)||void 0===e?void 0:e.url;o?h.layer=o:n&&(h.layer=new this.FeatureLayer(n))}})),null==s||s.forEach((t=>{if(t.hasOwnProperty("locator")){const i=t;"ArcGIS World Geocoding Service"===(null==i?void 0:i.name)&&(i.outFields=i.outFields||["Addr_type","Match_addr","StAddr","City"],i.singleLineFieldName="SingleLine"),i.url=i.url,delete i.url}}))):t=Object.assign(Object.assign({},t),{includeDefaultSources:!0}),t}static get watchers(){return{searchConfiguration:["watchSearchConfigurationHandler"],mapView:["mapViewWatchHandler"]}}};p.style=":host{display:block}.search-widget{width:100% !important;border:1px solid var(--calcite-color-border-input)}";const u=class{constructor(i){t(this,i),this._widgets=[],this.basemapConfig=void 0,this.enableLegend=void 0,this.enableFloorFilter=void 0,this.enableFullscreen=void 0,this.enableSearch=void 0,this.enableBasemap=void 0,this.enableHome=void 0,this.enableSingleExpand=void 0,this.homeZoomToolsSize="m",this.layout="vertical",this.mapView=void 0,this.mapWidgetsSize="m",this.position="top-right",this.searchConfiguration=void 0,this.stackTools=!0,this.toolOrder=void 0,this._hasFloorInfo=!1,this._translations=void 0,this._showTools=!0,this._showBasemapWidget=!1,this._showFloorFilter=!1,this._showFullscreen=!1,this._showLegendWidget=!1,this._showSearchWidget=!1}async mapViewWatchHandler(){await this.mapView.when((()=>{var t,i;this._hasFloorInfo=null===(i=null===(t=this.mapView)||void 0===t?void 0:t.map)||void 0===i?void 0:i.floorInfo}))}async _showBasemapWidgetWatchHandler(t){t?this.mapView.ui.add(this._basemapElement.basemapWidget,{position:this.position,index:1}):this.mapView.ui.remove(this._basemapElement.basemapWidget)}async _showFloorFilterWatchHandler(t){const i=this._floorFilterElement.floorFilterWidget;t?this.mapView.ui.add(i,{position:this.position,index:1}):this.mapView.ui.remove(i)}async _showFullscreenWatchHandler(t){const i=this._fullscreenElement.fullscreenWidget;t?"ready"===i.viewModel.state&&i.viewModel.enter():"active"===i.viewModel.state&&i.viewModel.exit()}async _showLegendWidgetWatchHandler(t){t?this.mapView.ui.add(this._legendElement.legendWidget,{position:this.position,index:1}):this.mapView.ui.remove(this._legendElement.legendWidget)}async _showSearchWidgetWatchHandler(t){t?this.mapView.ui.add(this._searchElement.searchWidget,{position:this.position,index:1}):this.mapView.ui.remove(this._searchElement.searchWidget)}async componentWillLoad(){await this._getTranslations(),await this._initModules()}render(){this._setZoomToolsSize();const t=this._showTools?"":"display-none",e=this._showSearchWidget?"":"display-none",h=this._showBasemapWidget?"":"display-none",a=this._showLegendWidget?"":"display-none",o=this._showFloorFilter?"":"display-none",n=this._showFullscreen?"":"display-none",r=this.enableSingleExpand?"margin-top-1-2":"",l=this.toolOrder?this.toolOrder:["legend","search","fullscreen","floorfilter"],c=this.stackTools?"box-shadow":"";return i(s,null,i("div",{class:this.enableBasemap||this.enableFullscreen||this.enableLegend||this.enableSearch?"":"display-none"},this.enableSingleExpand?i("div",{class:"box-shadow"},this._getActionGroup(this._showTools?"chevrons-up":"chevrons-down",!1,this._showTools?this._translations.collapse:this._translations.expand,(()=>this._toggleTools()))):void 0,i("div",{class:`${r} ${c} ${t}`},this._getMapWidgets(l))),i("basemap-gallery",{basemapConfig:this.basemapConfig,class:h,mapView:this.mapView,ref:t=>{this._basemapElement=t}}),i("map-search",{class:e,mapView:this.mapView,ref:t=>{this._searchElement=t},resultGraphicEnabled:!0,searchConfiguration:this.searchConfiguration}),i("map-legend",{class:a,mapView:this.mapView,ref:t=>{this._legendElement=t}}),i("map-fullscreen",{class:n,mapView:this.mapView,onFullscreenStateChange:t=>this._fullscreenStateChange(t.detail),ref:t=>{this._fullscreenElement=t}}),i("floor-filter",{class:o,enabled:this.enableFloorFilter,mapView:this.mapView,ref:t=>{this._floorFilterElement=t}}))}async _initModules(){const[t]=await a(["esri/widgets/Expand"]);this.Expand=t}_setZoomToolsSize(){var t,i;const s=null===(t=document.getElementsByClassName("esri-zoom")[0])||void 0===t?void 0:t.children[0],e=null===(i=document.getElementsByClassName("esri-zoom")[0])||void 0===i?void 0:i.children[1];if(s&&e){const t="s"===this.homeZoomToolsSize?"32px":"m"===this.homeZoomToolsSize?"40px":"48px";s.style.width=t,s.style.height=t,e.style.width=t,e.style.height=t}}_getMapWidgets(t){const i=this._showFullscreen?"full-screen-exit":"full-screen",s=this._showFullscreen?this._translations.exitFullscreen:this._translations.enterFullscreen;return t.map((t=>{var e,h,a,o,n;switch(t){case"legend":return this.enableLegend&&this.enableSingleExpand?this._getActionGroup("legend",!1,this._translations.legend,(()=>this._showLegend())):this.enableLegend?this._getWidget(t,null===(e=this._legendElement)||void 0===e?void 0:e.legendWidget,!0):void 0;case"search":return this.enableSearch&&this.enableSingleExpand?this._getActionGroup("magnifying-glass",!1,this._translations.search,(()=>this._search())):this.enableSearch?this._getWidget(t,null===(h=this._searchElement)||void 0===h?void 0:h.searchWidget,!0):void 0;case"fullscreen":return this.enableFullscreen&&this.enableSingleExpand?this._getActionGroup(i,!1,s,(()=>this._expand())):this.enableFullscreen?this._getWidget(t,null===(a=this._fullscreenElement)||void 0===a?void 0:a.fullscreenWidget,!1):void 0;case"basemap":return this.enableBasemap&&this.enableSingleExpand?this._getActionGroup("basemap",!1,this._translations.basemap,(()=>this._toggleBasemapPicker())):this.enableBasemap?this._getWidget(t,null===(o=this._basemapElement)||void 0===o?void 0:o.basemapWidget,!0):void 0;case"floorfilter":return this.enableFloorFilter&&this._hasFloorInfo&&this.enableSingleExpand?this._getActionGroup("urban-model",!1,this._translations.floorFilter,(()=>this._toggleFloorFilter())):this.enableFloorFilter&&this._hasFloorInfo?this._getWidget(t,null===(n=this._floorFilterElement)||void 0===n?void 0:n.floorFilterWidget,!0):void 0}}))}_fullscreenStateChange(t){"ready"===t&&this._showFullscreen?this._showFullscreen=!1:"active"!==t||this._showFullscreen||(this._showFullscreen=!0)}_getActionGroup(t,s,e,h){return i("div",null,i("calcite-action",{alignment:"center",class:`${"s"===this.mapWidgetsSize?"square-32":"m"===this.mapWidgetsSize?"square-40":"square-48"} ${this.stackTools?"":"margin-bottom-1-2"} border-bottom ${this.stackTools?"":"box-shadow"}`,compact:!1,disabled:s,icon:t,id:t,onClick:h,scale:"s",text:""},i("calcite-icon",{icon:"cheveron-up",scale:"s",slot:"icon"})),i("calcite-tooltip",{label:"",placement:"trailing","reference-element":t},i("span",null,e)))}_getWidget(t,i,s){if(this._widgets.indexOf(t)<0&&this.mapView&&i){const e=this.toolOrder.indexOf(t),h=new this.Expand({view:this.mapView,content:i});this.mapView.ui.add(s?h:i,{position:this.position,index:e>-1?e+(this.enableHome?2:1):1}),this._widgets.push(t)}}_showLegend(){this._showLegendWidget=!this._showLegendWidget,this._showTools=!1}_search(){this._showSearchWidget=!this._showSearchWidget,this._showTools=!1}_toggleBasemapPicker(){this._showBasemapWidget=!this._showBasemapWidget,this._showTools=!1}_toggleFloorFilter(){this._showFloorFilter=!this._showFloorFilter,this._showTools=!1}_expand(){this._showFullscreen=!this._showFullscreen}_toggleTools(){this._showTools||(this._showBasemapWidget=!1,this._showSearchWidget=!1,this._showLegendWidget=!1,this._showFloorFilter=!1),this._showTools=!this._showTools}async _getTranslations(){const t=await o(this.el);this._translations=t[0]}get el(){return e(this)}static get watchers(){return{mapView:["mapViewWatchHandler"],_showBasemapWidget:["_showBasemapWidgetWatchHandler"],_showFloorFilter:["_showFloorFilterWatchHandler"],_showFullscreen:["_showFullscreenWatchHandler"],_showLegendWidget:["_showLegendWidgetWatchHandler"],_showSearchWidget:["_showSearchWidgetWatchHandler"]}}};u.style=":host{display:block}.display-none{display:none}.margin-top-1-2{margin-top:0.5rem}.square-32{width:32px;height:32px}.square-40{width:40px;height:40px}.square-48{width:48px;height:48px}.width-40{width:40px}.square-40-41{width:40px;height:41px}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.box-shadow{box-shadow:0 1px 2px rgba(0, 0, 0, 0.3)}.margin-bottom-1-2{margin-bottom:0.5rem}";export{n as basemap_gallery,r as floor_filter,l as map_fullscreen,c as map_legend,d as map_picker,p as map_search,u as map_tools}