@ututrust/web-components 1.1.2 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/package.json +8 -6
- package/dist/CHANGELOG.md +0 -12
- package/dist/LICENSE.txt +0 -14
- package/dist/README.md +0 -271
- package/dist/index.js +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -10,3 +10,14 @@
|
|
|
10
10
|
* Cleaned up repository to include README, CHANGELOG and LICENSE in the
|
|
11
11
|
utu-web-components sub-package of the utu-trust-sdk workspace
|
|
12
12
|
|
|
13
|
+
## v1.1.1 (7 September 2021)
|
|
14
|
+
* Include README.md, CHANGELOG.md and LICENSE.TXT
|
|
15
|
+
|
|
16
|
+
## v1.1.2 (7 September 2021)
|
|
17
|
+
* Re-publish as production build
|
|
18
|
+
|
|
19
|
+
## v1.1.3 (7 September 2021)
|
|
20
|
+
* Remove explicit including of README.md, CHANGELOG.md and LICENSE.TXT
|
|
21
|
+
because this happens automatically
|
|
22
|
+
|
|
23
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ututrust/web-components",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -8,10 +8,7 @@
|
|
|
8
8
|
"dist/index.js",
|
|
9
9
|
"dist/index.js.map",
|
|
10
10
|
"dist/index.esm.js",
|
|
11
|
-
"dist/index.esm.js.map"
|
|
12
|
-
"dist/README.md",
|
|
13
|
-
"dist/LICENSE.txt",
|
|
14
|
-
"dist/CHANGELOG.md"
|
|
11
|
+
"dist/index.esm.js.map"
|
|
15
12
|
],
|
|
16
13
|
"scripts": {
|
|
17
14
|
"start": "gulp",
|
|
@@ -33,6 +30,7 @@
|
|
|
33
30
|
"core-js": "^3.8.3",
|
|
34
31
|
"enzyme": "^3.11.0",
|
|
35
32
|
"enzyme-adapter-preact-pure": "^3.0.0",
|
|
33
|
+
"ethers": "^5.5.3",
|
|
36
34
|
"gulp-postcss": "^9.0.0",
|
|
37
35
|
"jwt-decode": "^3.1.2",
|
|
38
36
|
"preact": "^10.5.10",
|
|
@@ -57,6 +55,7 @@
|
|
|
57
55
|
"@rollup/plugin-alias": "^3.1.2",
|
|
58
56
|
"@rollup/plugin-babel": "^5.2.2",
|
|
59
57
|
"@rollup/plugin-commonjs": "^17.0.0",
|
|
58
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
60
59
|
"@rollup/plugin-node-resolve": "^11.1.0",
|
|
61
60
|
"@rollup/plugin-replace": "^2.3.4",
|
|
62
61
|
"@rollup/plugin-strip": "^2.0.1",
|
|
@@ -96,5 +95,8 @@
|
|
|
96
95
|
"typescript": "^4.0.0"
|
|
97
96
|
},
|
|
98
97
|
"proxy": "http://localhost:2080",
|
|
99
|
-
"browserslist": "> 0.25%, not dead"
|
|
98
|
+
"browserslist": "> 0.25%, not dead",
|
|
99
|
+
"peerDependencies": {
|
|
100
|
+
"web3": ">=1.6.1"
|
|
101
|
+
}
|
|
100
102
|
}
|
package/dist/CHANGELOG.md
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# UTU Trust SDK Changelog
|
|
2
|
-
|
|
3
|
-
## v1.0.1 (20 April 2021)
|
|
4
|
-
* Initial release supporting feedbac summary, badges, star rating and text
|
|
5
|
-
review
|
|
6
|
-
|
|
7
|
-
## v1.1.0 (7 September 2021)
|
|
8
|
-
* Added video reviews as feedback component
|
|
9
|
-
* Various design improvements
|
|
10
|
-
* Cleaned up repository to include README, CHANGELOG and LICENSE in the
|
|
11
|
-
utu-web-components sub-package of the utu-trust-sdk workspace
|
|
12
|
-
|
package/dist/LICENSE.txt
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
ISC License (ISC)
|
|
2
|
-
Copyright (c) 2021 UTU Protocol
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
5
|
-
with or without fee is hereby granted, provided that the above copyright notice
|
|
6
|
-
and this permission notice appear in all copies.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
10
|
-
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
12
|
-
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
13
|
-
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
14
|
-
THIS SOFTWARE.
|
package/dist/README.md
DELETED
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
# UTU Trust SDK
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
UTU’s Trust API seamlessly serves up personalized recommendations for trusted service providers on sharing platforms to drive your conversion, satisfaction, retention, and viral acquisition.
|
|
5
|
-
|
|
6
|
-
[More information about UTU](https://utu.io)
|
|
7
|
-
|
|
8
|
-
UTU Trust SDK provides web-components that access UTU’s Trust API and allows you simple integration with its services.
|
|
9
|
-
|
|
10
|
-
Find the [repository here](https://bitbucket.org/utu-technologies/utu-trust-sdk)
|
|
11
|
-
|
|
12
|
-
## Features
|
|
13
|
-
|
|
14
|
-
- Integration with UTU's Trust API
|
|
15
|
-
- Compatible with React, Angular, Vue and other popular UI libs and frameworks
|
|
16
|
-
- Shadow DOM
|
|
17
|
-
- Customized styles, which are not interfere with global CSS rules on a page
|
|
18
|
-
|
|
19
|
-
## Install
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
$ npm install @ututrust/web-components
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Examples
|
|
26
|
-
|
|
27
|
-
You can find [some working examples in the repository](https://bitbucket.org/utu-technologies/utu-trust-sdk/src/dev/packages/examples.)
|
|
28
|
-
|
|
29
|
-
Before running examples, run ```npm install``` in the root repository folder, then go to ```/packages/utu-web-components``` and execute ```npm run build``` command. After that local copy of ```@ututrust/web-components``` will be available in all examples.
|
|
30
|
-
|
|
31
|
-
It is advised to review ```Quickstart Vanilla JS``` first before checking another samples.
|
|
32
|
-
|
|
33
|
-
### Quickstart Vanilla JS
|
|
34
|
-
|
|
35
|
-
Place ```<x-utu-root>``` custom tag. It is a parent component for recommendations:
|
|
36
|
-
|
|
37
|
-
```html
|
|
38
|
-
<script src="../../utu-web-components/dist/index.js"></script>
|
|
39
|
-
|
|
40
|
-
<!-- Once UTU SDK is included on your page, -->
|
|
41
|
-
<!-- it registers custom tags: <x-utu-root> and <x-utu-recommendation> -->
|
|
42
|
-
|
|
43
|
-
<!-- <x-utu-root> handles recommendations loading from API. -->
|
|
44
|
-
|
|
45
|
-
<x-utu-root api-key="[place your utu api key here]">
|
|
46
|
-
<ul></ul>
|
|
47
|
-
</x-utu-root>
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
The next step is defining recommendations ```<x-utu-recommendation>```:
|
|
51
|
-
|
|
52
|
-
```html
|
|
53
|
-
<x-utu-root api-key="[place your utu api key here]">
|
|
54
|
-
<ul>
|
|
55
|
-
<li>
|
|
56
|
-
<x-utu-recommendation recommendation-id="e541df40-74b6-478e-a7da-7a9e52778700" />
|
|
57
|
-
</li>
|
|
58
|
-
</ul>
|
|
59
|
-
</x-utu-root>
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
### Quickstart React
|
|
63
|
-
|
|
64
|
-
Just import ```@ututrust/web-components``` and you are ready to start using UTU SKD.
|
|
65
|
-
|
|
66
|
-
```jsx
|
|
67
|
-
import '@ututrust/web-components';
|
|
68
|
-
|
|
69
|
-
function App() {
|
|
70
|
-
|
|
71
|
-
const offerIds = [
|
|
72
|
-
'e541df40-74b6-478e-a7da-7a9e52778700'
|
|
73
|
-
];
|
|
74
|
-
|
|
75
|
-
return <div className="App">
|
|
76
|
-
<x-utu-root api-key="<place your utu api key here>">
|
|
77
|
-
<ul>
|
|
78
|
-
{
|
|
79
|
-
offerIds.map(offerId =>
|
|
80
|
-
<li key={offerId}>
|
|
81
|
-
<x-utu-recommendation target-uuid={offerId} />
|
|
82
|
-
</li>
|
|
83
|
-
)
|
|
84
|
-
}
|
|
85
|
-
</ul>
|
|
86
|
-
</x-utu-root>
|
|
87
|
-
</div>;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export default App;
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
### Quickstart Vue
|
|
94
|
-
We need to tell Vue, that custom components are going to be used. This requires some WebPack configuration:
|
|
95
|
-
|
|
96
|
-
```js
|
|
97
|
-
// vue.config.js
|
|
98
|
-
module.exports = {
|
|
99
|
-
chainWebpack: config => {
|
|
100
|
-
config.module
|
|
101
|
-
.rule('vue')
|
|
102
|
-
.use('vue-loader')
|
|
103
|
-
.tap(options => {
|
|
104
|
-
return {
|
|
105
|
-
...options,
|
|
106
|
-
compilerOptions: {
|
|
107
|
-
...(options.compilerOptions || {}),
|
|
108
|
-
isCustomElement: tag => tag.startsWith('x-')
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
})
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
Once you import ```@ututrust/web-components```, ```<x-utu-root>``` and ```<x-utu-recommendation>``` are ready to use.
|
|
117
|
-
|
|
118
|
-
```html
|
|
119
|
-
<template>
|
|
120
|
-
<div class="offers">
|
|
121
|
-
<x-utu-root ref="utu-root" api-key="[place your utu api key here]">
|
|
122
|
-
<ul>
|
|
123
|
-
<li v-for="offerId in offerIds" :key="offerId">
|
|
124
|
-
<x-utu-recommendation :target-uuid="offerId" />
|
|
125
|
-
</li>
|
|
126
|
-
</ul>
|
|
127
|
-
</x-utu-root>
|
|
128
|
-
</div>
|
|
129
|
-
</template>
|
|
130
|
-
|
|
131
|
-
<script>
|
|
132
|
-
import "@ututrust/web-components";
|
|
133
|
-
|
|
134
|
-
export default {
|
|
135
|
-
name: "Recommendations",
|
|
136
|
-
data: function () {
|
|
137
|
-
return {
|
|
138
|
-
offerIds: ["e541df40-74b6-478e-a7da-7a9e52778700"]
|
|
139
|
-
};
|
|
140
|
-
},
|
|
141
|
-
};
|
|
142
|
-
</script>
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
### Quickstart Angular
|
|
146
|
-
|
|
147
|
-
Add ```CUSTOM_ELEMENTS_SCHEMA``` to module schemas
|
|
148
|
-
|
|
149
|
-
```js
|
|
150
|
-
// app.module.ts
|
|
151
|
-
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
|
152
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
153
|
-
|
|
154
|
-
import { AppComponent } from './app.component';
|
|
155
|
-
|
|
156
|
-
@NgModule({
|
|
157
|
-
declarations: [
|
|
158
|
-
AppComponent
|
|
159
|
-
],
|
|
160
|
-
imports: [
|
|
161
|
-
BrowserModule
|
|
162
|
-
],
|
|
163
|
-
providers: [],
|
|
164
|
-
bootstrap: [AppComponent],
|
|
165
|
-
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
|
166
|
-
})
|
|
167
|
-
export class AppModule { }
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
Import ```@ututrust/web-components```. We assume offer ids are in
|
|
171
|
-
```offerIds``` to your component.
|
|
172
|
-
|
|
173
|
-
```js
|
|
174
|
-
// app.module.ts
|
|
175
|
-
import { Component } from '@angular/core';
|
|
176
|
-
import '@ututrust/web-components';
|
|
177
|
-
|
|
178
|
-
@Component({
|
|
179
|
-
selector: 'app-root',
|
|
180
|
-
templateUrl: './app.component.html',
|
|
181
|
-
styleUrls: ['./app.component.css']
|
|
182
|
-
})
|
|
183
|
-
export class AppComponent {
|
|
184
|
-
offerIds = ['e541df40-74b6-478e-a7da-7a9e52778700']
|
|
185
|
-
}
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
Add template:
|
|
189
|
-
```html
|
|
190
|
-
<!-- app.component.html -->
|
|
191
|
-
<div class="content" role="main">
|
|
192
|
-
<x-utu-root api-key="[place your utu api key here]">
|
|
193
|
-
<ul>
|
|
194
|
-
<li *ngFor="let offerId of offerIds">
|
|
195
|
-
<x-utu-recommendation [target-uuid]="offerId"></x-utu-recommendation>
|
|
196
|
-
</li>
|
|
197
|
-
</ul>
|
|
198
|
-
</x-utu-root>
|
|
199
|
-
</div>
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
## Mocking API Response
|
|
203
|
-
|
|
204
|
-
To mock an UTU API response, specify ```api-url``` of ```<x-utu-root>```:
|
|
205
|
-
|
|
206
|
-
```html
|
|
207
|
-
<x-utu-root api-key="[place your utu api key here]" api-url="/api-mocks/ranking.json">
|
|
208
|
-
<ul id="list"></ul>
|
|
209
|
-
</x-utu-root>
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
Example of a JSON file can be find at ```/packages/utu-web-components/src/api-mock```
|
|
213
|
-
|
|
214
|
-
## Local Development
|
|
215
|
-
Development stack:
|
|
216
|
-
- [preactjs](https://preactjs.com)
|
|
217
|
-
- [web components](https://developer.mozilla.org/en-US/docs/Web/Web_Components)
|
|
218
|
-
- [rollupjs](https://rollupjs.org/guide/en)
|
|
219
|
-
- [babel](https://babeljs.io)
|
|
220
|
-
- [gulp](https://gulpjs.com)
|
|
221
|
-
- [jest](https://jestjs.io)
|
|
222
|
-
- [typescript](https://www.typescriptlang.org)
|
|
223
|
-
- [scss](https://sass-lang.com)
|
|
224
|
-
|
|
225
|
-
```preactjs``` allows developing [React](https://reactjs.org)-like components with state management, hooks and JSX, however its size is about 4kb only, which is create for lib development.
|
|
226
|
-
|
|
227
|
-
To convert React-like component into web component, we use [this](https://preactjs.com/guide/v10/web-components) approach.
|
|
228
|
-
|
|
229
|
-
Follow steps below to start local development of UTU Trust SDK.
|
|
230
|
-
|
|
231
|
-
Install dependencies
|
|
232
|
-
|
|
233
|
-
```bash
|
|
234
|
-
$ npm install
|
|
235
|
-
```
|
|
236
|
-
|
|
237
|
-
Start watch mode with preview in a browser
|
|
238
|
-
|
|
239
|
-
```bash
|
|
240
|
-
$ npm start
|
|
241
|
-
```
|
|
242
|
-
|
|
243
|
-
Production build
|
|
244
|
-
|
|
245
|
-
```bash
|
|
246
|
-
$ npm run build
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
Run tests in watch mode
|
|
250
|
-
|
|
251
|
-
```bash
|
|
252
|
-
$ npm run test
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
Check lint errors and fix them if possible
|
|
256
|
-
|
|
257
|
-
```bash
|
|
258
|
-
$ npm run lint
|
|
259
|
-
```
|
|
260
|
-
|
|
261
|
-
Create tar npm package, so it can be later installed as npm dependency.
|
|
262
|
-
|
|
263
|
-
```bash
|
|
264
|
-
$ npm pack
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
This will generate a ```.tgz``` file at the directory’s root with a structure like this: ```{name}-{version}.tgz```. You can install this package with command like this:
|
|
268
|
-
|
|
269
|
-
```bash
|
|
270
|
-
$ npm install <path to the package>/utu-web-components-1.0.0.tgz
|
|
271
|
-
```
|
package/dist/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t,n,r,o,i,a,s={},u=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function l(e,t){for(var n in t)e[n]=t[n];return e}function f(e){var t=e.parentNode;t&&t.removeChild(e)}function p(t,n,r){var o,i,a,s={};for(a in n)"key"==a?o=n[a]:"ref"==a?i=n[a]:s[a]=n[a];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return d(t,s,o,i,null)}function d(e,r,o,i,a){var s={type:e,props:r,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++n:a};return null!=t.vnode&&t.vnode(s),s}function h(){return{current:null}}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function g(e,t){if(null==t)return e.__?g(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?g(e):null}function v(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return v(e)}}function b(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!_.__r++||i!==t.debounceRendering)&&((i=t.debounceRendering)||o)(_)}function _(){for(var e;_.__r=r.length;)e=r.sort((function(e,t){return e.__v.__b-t.__v.__b})),r=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=l({},o)).__v=o.__v+1,C(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?g(o):i,o.__h),N(n,o),o.__e!=i&&v(o)))}))}function w(e,t,n,r,o,i,a,c,l,f){var p,h,m,v,b,_,w,S=r&&r.__k||u,O=S.length;for(n.__k=[],p=0;p<t.length;p++)if(null!=(v=n.__k[p]=null==(v=t[p])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?d(null,v,null,null,v):Array.isArray(v)?d(y,{children:v},null,null,null):v.__b>0?d(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(m=S[p])||m&&v.key==m.key&&v.type===m.type)S[p]=void 0;else for(h=0;h<O;h++){if((m=S[h])&&v.key==m.key&&v.type===m.type){S[h]=void 0;break}m=null}C(e,v,m=m||s,o,i,a,c,l,f),b=v.__e,(h=v.ref)&&m.ref!=h&&(w||(w=[]),m.ref&&w.push(m.ref,null,v),w.push(h,v.__c||b,v)),null!=b?(null==_&&(_=b),"function"==typeof v.type&&null!=v.__k&&v.__k===m.__k?v.__d=l=x(v,l,e):l=j(e,v,m,S,b,l),f||"option"!==n.type?"function"==typeof n.type&&(n.__d=l):e.value=""):l&&m.__e==l&&l.parentNode!=e&&(l=g(m))}for(n.__e=_,p=O;p--;)null!=S[p]&&("function"==typeof n.type&&null!=S[p].__e&&S[p].__e==n.__d&&(n.__d=g(r,p+1)),R(S[p],S[p]));if(w)for(p=0;p<w.length;p++)P(w[p],w[++p],w[++p])}function x(e,t,n){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,t="function"==typeof o.type?x(o,t,n):j(n,o,o,e.__k,o.__e,t));return t}function S(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){S(e,t)})):t.push(e)),t}function j(e,t,n,r,o,i){var a,s,u;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,u=0;(s=s.nextSibling)&&u<r.length;u+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function O(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||c.test(t)?n:n+"px"}function E(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||O(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||O(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?A:k,i):e.removeEventListener(t,i?A:k,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function k(e){this.l[e.type+!1](t.event?t.event(e):e)}function A(e){this.l[e.type+!0](t.event?t.event(e):e)}function C(n,r,o,i,a,u,c,p,d){var h,v,b,_,x,S,j,O,k,A,C,N=r.type;if(void 0!==r.constructor)return null;null!=o.__h&&(d=o.__h,p=r.__e=o.__e,r.__h=null,u=[p]),(h=t.__b)&&h(r);try{e:if("function"==typeof N){if(O=r.props,k=(h=N.contextType)&&i[h.__c],A=h?k?k.props.value:h.__:i,o.__c?j=(v=r.__c=o.__c).__=v.__E:("prototype"in N&&N.prototype.render?r.__c=v=new N(O,A):(r.__c=v=new m(O,A),v.constructor=N,v.render=U),k&&k.sub(v),v.props=O,v.state||(v.state={}),v.context=A,v.__n=i,b=v.__d=!0,v.__h=[]),null==v.__s&&(v.__s=v.state),null!=N.getDerivedStateFromProps&&(v.__s==v.state&&(v.__s=l({},v.__s)),l(v.__s,N.getDerivedStateFromProps(O,v.__s))),_=v.props,x=v.state,b)null==N.getDerivedStateFromProps&&null!=v.componentWillMount&&v.componentWillMount(),null!=v.componentDidMount&&v.__h.push(v.componentDidMount);else{if(null==N.getDerivedStateFromProps&&O!==_&&null!=v.componentWillReceiveProps&&v.componentWillReceiveProps(O,A),!v.__e&&null!=v.shouldComponentUpdate&&!1===v.shouldComponentUpdate(O,v.__s,A)||r.__v===o.__v){v.props=O,v.state=v.__s,r.__v!==o.__v&&(v.__d=!1),v.__v=r,r.__e=o.__e,r.__k=o.__k,r.__k.forEach((function(e){e&&(e.__=r)})),v.__h.length&&c.push(v);break e}null!=v.componentWillUpdate&&v.componentWillUpdate(O,v.__s,A),null!=v.componentDidUpdate&&v.__h.push((function(){v.componentDidUpdate(_,x,S)}))}v.context=A,v.props=O,v.state=v.__s,(h=t.__r)&&h(r),v.__d=!1,v.__v=r,v.__P=n,h=v.render(v.props,v.state,v.context),v.state=v.__s,null!=v.getChildContext&&(i=l(l({},i),v.getChildContext())),b||null==v.getSnapshotBeforeUpdate||(S=v.getSnapshotBeforeUpdate(_,x)),C=null!=h&&h.type===y&&null==h.key?h.props.children:h,w(n,Array.isArray(C)?C:[C],r,o,i,a,u,c,p,d),v.base=r.__e,r.__h=null,v.__h.length&&c.push(v),j&&(v.__E=v.__=null),v.__e=!1}else null==u&&r.__v===o.__v?(r.__k=o.__k,r.__e=o.__e):r.__e=function(t,n,r,o,i,a,u,c){var l,p,d,h=r.props,y=n.props,m=n.type,v=0;if("svg"===m&&(i=!0),null!=a)for(;v<a.length;v++)if((l=a[v])&&(l===t||(m?l.localName==m:3==l.nodeType))){t=l,a[v]=null;break}if(null==t){if(null===m)return document.createTextNode(y);t=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,y.is&&y),a=null,c=!1}if(null===m)h===y||c&&t.data===y||(t.data=y);else{if(a=a&&e.call(t.childNodes),p=(h=r.props||s).dangerouslySetInnerHTML,d=y.dangerouslySetInnerHTML,!c){if(null!=a)for(h={},v=0;v<t.attributes.length;v++)h[t.attributes[v].name]=t.attributes[v].value;(d||p)&&(d&&(p&&d.__html==p.__html||d.__html===t.innerHTML)||(t.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||E(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||E(e,i,t[i],n[i],r)}(t,y,h,i,c),d)n.__k=[];else if(v=n.props.children,w(t,Array.isArray(v)?v:[v],n,r,o,i&&"foreignObject"!==m,a,u,a?a[0]:r.__k&&g(r,0),c),null!=a)for(v=a.length;v--;)null!=a[v]&&f(a[v]);c||("value"in y&&void 0!==(v=y.value)&&(v!==t.value||"progress"===m&&!v)&&E(t,"value",v,h.value,!1),"checked"in y&&void 0!==(v=y.checked)&&v!==t.checked&&E(t,"checked",v,h.checked,!1))}return t}(o.__e,r,o,i,a,u,c,d);(h=t.diffed)&&h(r)}catch(n){r.__v=null,(d||null!=u)&&(r.__e=p,r.__h=!!d,u[u.indexOf(p)]=null),t.__e(n,r,o)}}function N(e,n){t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function P(e,n,r){try{"function"==typeof e?e(n):e.current=n}catch(e){t.__e(e,r)}}function R(e,n,r){var o,i;if(t.unmount&&t.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||P(o,null,n)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){t.__e(e,n)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&R(o[i],n,"function"!=typeof e.type);r||null==e.__e||f(e.__e),e.__e=e.__d=void 0}function U(e,t,n){return this.constructor(e,n)}function B(n,r,o){var i,a,u;t.__&&t.__(n,r),a=(i="function"==typeof o)?null:o&&o.__k||r.__k,u=[],C(r,n=(!i&&o||r).__k=p(y,null,[n]),a||s,s,void 0!==r.ownerSVGElement,!i&&o?[o]:a?null:r.firstChild?e.call(r.childNodes):null,u,!i&&o?o:a?a.__e:r.firstChild,i),N(u,n)}function F(e,t){B(e,t,F)}function I(t,n,r){var o,i,a,s=l({},t.props);for(a in n)"key"==a?o=n[a]:"ref"==a?i=n[a]:s[a]=n[a];return arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),d(t.type,s,o||t.key,i||t.ref,null)}function z(e,t){var n={__c:t="__cC"+a++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(b)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function D(){return(D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function T(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["context","children"]);return I(t,n)}function M(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=p(T,D({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,s=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[L(a[i].name)]=a[i].value);for(i=s.length;i--;){var u=e(s[i],null),c=s[i].slot;c?o[c]=p(q,{name:c},u):r[i]=u}var l=n?p(q,null,r):r;return p(n||t.nodeName.toLowerCase(),o,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?F:B)(this._vdom,this._root)}function L(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function H(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[L(e)]=n,this._vdom=I(this._vdom,r),B(this._vdom,this._root)}}function V(){B(this._vdom=null,this._root)}function q(e,t){var n=this;return p("slot",D({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function W(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:"open"}):t,t}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=M,o.prototype.attributeChangedCallback=H,o.prototype.disconnectedCallback=V,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t||e.tagName||e.displayName||e.name,o)}e=u.slice,t={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},n=0,m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=l({},this.state),"function"==typeof e&&(e=e(l({},n),this.props)),e&&l(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),b(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),b(this))},m.prototype.render=y,r=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_.__r=0,a=0;var $,G,J,X=0,Y=[],K=t.__b,Z=t.__r,Q=t.diffed,ee=t.__c,te=t.unmount;function ne(e,n){t.__h&&t.__h(G,e,X||n),X=0;var r=G.__H||(G.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function re(e){return X=1,oe(ve,e)}function oe(e,t,n){var r=ne($++,2);return r.t=e,r.__c||(r.__=[n?n(t):ve(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=G),r.__}function ie(e,n){var r=ne($++,3);!t.__s&&ge(r.__H,n)&&(r.__=e,r.__H=n,G.__H.__h.push(r))}function ae(e,n){var r=ne($++,4);!t.__s&&ge(r.__H,n)&&(r.__=e,r.__H=n,G.__h.push(r))}function se(e){return X=5,ce((function(){return{current:e}}),[])}function ue(e,t,n){X=6,ae((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))}function ce(e,t){var n=ne($++,7);return ge(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function le(e,t){return X=8,ce((function(){return e}),t)}function fe(e){var t=G.context[e.__c],n=ne($++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(G)),t.props.value):e.__}function pe(e,n){t.useDebugValue&&t.useDebugValue(n?n(e):e)}function de(){Y.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(ye),e.__H.__h.forEach(me),e.__H.__h=[]}catch(n){e.__H.__h=[],t.__e(n,e.__v)}})),Y=[]}t.__b=function(e){G=null,K&&K(e)},t.__r=function(e){Z&&Z(e),$=0;var t=(G=e.__c).__H;t&&(t.__h.forEach(ye),t.__h.forEach(me),t.__h=[])},t.diffed=function(e){Q&&Q(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==Y.push(n)&&J===t.requestAnimationFrame||((J=t.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),he&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);he&&(t=requestAnimationFrame(n))})(de)),G=void 0},t.__c=function(e,n){n.some((function(e){try{e.__h.forEach(ye),e.__h=e.__h.filter((function(e){return!e.__||me(e)}))}catch(r){n.some((function(e){e.__h&&(e.__h=[])})),n=[],t.__e(r,e.__v)}})),ee&&ee(e,n)},t.unmount=function(e){te&&te(e);var n=e.__c;if(n&&n.__H)try{n.__H.__.forEach(ye)}catch(e){t.__e(e,n.__v)}};var he="function"==typeof requestAnimationFrame;function ye(e){var t=G;"function"==typeof e.__c&&e.__c(),G=t}function me(e){var t=G;e.__c=e.__(),G=t}function ge(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function ve(e,t){return"function"==typeof t?t(e):t}function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?be(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function we(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function xe(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){we(i,r,o,a,s,"next",e)}function s(e){we(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function je(){return(je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Oe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ke(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ke(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ce(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}function Ne(e){var t={exports:{}};return e(t,t.exports),t.exports}Ne((function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new A(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return N()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?h:p,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",y={};function m(){}function g(){}function v(){}var b={};u(b,i,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(C([])));w&&w!==n&&r.call(w,i)&&(b=w);var x=v.prototype=m.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(o,i,a,s){var u=l(e[o],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return y;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:N}}function N(){return{value:t,done:!0}}return g.prototype=v,u(x,"constructor",v),u(v,"constructor",g),g.displayName=u(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},S(j.prototype),u(j.prototype,a,(function(){return this})),e.AsyncIterator=j,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new j(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(x),u(x,s,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));var Pe,Re,Ue=function(e){return e&&e.Math==Math&&e},Be=Ue("object"==typeof globalThis&&globalThis)||Ue("object"==typeof window&&window)||Ue("object"==typeof self&&self)||Ue("object"==typeof Ae&&Ae)||function(){return this}()||Function("return this")(),Fe=function(e){try{return!!e()}catch(e){return!0}},Ie=!Fe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ze={}.propertyIsEnumerable,De=Object.getOwnPropertyDescriptor,Te={f:De&&!ze.call({1:2},1)?function(e){var t=De(this,e);return!!t&&t.enumerable}:ze},Me=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Le={}.toString,He=function(e){return Le.call(e).slice(8,-1)},Ve="".split,qe=Fe((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==He(e)?Ve.call(e,""):Object(e)}:Object,We=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},$e=function(e){return qe(We(e))},Ge=function(e){return"object"==typeof e?null!==e:"function"==typeof e},Je=function(e){return"function"==typeof e?e:void 0},Xe=function(e,t){return arguments.length<2?Je(Be[e]):Be[e]&&Be[e][t]},Ye=Xe("navigator","userAgent")||"",Ke=Be.process,Ze=Be.Deno,Qe=Ke&&Ke.versions||Ze&&Ze.version,et=Qe&&Qe.v8;et?Re=(Pe=et.split("."))[0]<4?1:Pe[0]+Pe[1]:Ye&&(!(Pe=Ye.match(/Edge\/(\d+)/))||Pe[1]>=74)&&(Pe=Ye.match(/Chrome\/(\d+)/))&&(Re=Pe[1]);var tt=Re&&+Re,nt=!!Object.getOwnPropertySymbols&&!Fe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&tt&&tt<41})),rt=nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ot=rt?function(e){return"symbol"==typeof e}:function(e){var t=Xe("Symbol");return"function"==typeof t&&Object(e)instanceof t},it=function(e,t){try{Object.defineProperty(Be,e,{value:t,configurable:!0,writable:!0})}catch(n){Be[e]=t}return t},at="__core-js_shared__",st=Be[at]||it(at,{}),ut=Ne((function(e){(e.exports=function(e,t){return st[e]||(st[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.16.0",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ct=function(e){return Object(We(e))},lt={}.hasOwnProperty,ft=Object.hasOwn||function(e,t){return lt.call(ct(e),t)},pt=0,dt=Math.random(),ht=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++pt+dt).toString(36)},yt=ut("wks"),mt=Be.Symbol,gt=rt?mt:mt&&mt.withoutSetter||ht,vt=function(e){return ft(yt,e)&&(nt||"string"==typeof yt[e])||(nt&&ft(mt,e)?yt[e]=mt[e]:yt[e]=gt("Symbol."+e)),yt[e]},bt=vt("toPrimitive"),_t=function(e,t){if(!Ge(e)||ot(e))return e;var n,r=e[bt];if(void 0!==r){if(void 0===t&&(t="default"),n=r.call(e,t),!Ge(n)||ot(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&"function"==typeof(n=e.toString)&&!Ge(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!Ge(r=n.call(e)))return r;if("string"!==t&&"function"==typeof(n=e.toString)&&!Ge(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(e,t)},wt=function(e){var t=_t(e,"string");return ot(t)?t:String(t)},xt=Be.document,St=Ge(xt)&&Ge(xt.createElement),jt=function(e){return St?xt.createElement(e):{}},Ot=!Ie&&!Fe((function(){return 7!=Object.defineProperty(jt("div"),"a",{get:function(){return 7}}).a})),Et=Object.getOwnPropertyDescriptor,kt={f:Ie?Et:function(e,t){if(e=$e(e),t=wt(t),Ot)try{return Et(e,t)}catch(e){}if(ft(e,t))return Me(!Te.f.call(e,t),e[t])}},At=function(e){if(!Ge(e))throw TypeError(String(e)+" is not an object");return e},Ct=Object.defineProperty,Nt={f:Ie?Ct:function(e,t,n){if(At(e),t=wt(t),At(n),Ot)try{return Ct(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Pt=Ie?function(e,t,n){return Nt.f(e,t,Me(1,n))}:function(e,t,n){return e[t]=n,e},Rt=Function.toString;"function"!=typeof st.inspectSource&&(st.inspectSource=function(e){return Rt.call(e)});var Ut,Bt,Ft,It=st.inspectSource,zt=Be.WeakMap,Dt="function"==typeof zt&&/native code/.test(It(zt)),Tt=ut("keys"),Mt=function(e){return Tt[e]||(Tt[e]=ht(e))},Lt={},Ht="Object already initialized",Vt=Be.WeakMap;if(Dt||st.state){var qt=st.state||(st.state=new Vt),Wt=qt.get,$t=qt.has,Gt=qt.set;Ut=function(e,t){if($t.call(qt,e))throw new TypeError(Ht);return t.facade=e,Gt.call(qt,e,t),t},Bt=function(e){return Wt.call(qt,e)||{}},Ft=function(e){return $t.call(qt,e)}}else{var Jt=Mt("state");Lt[Jt]=!0,Ut=function(e,t){if(ft(e,Jt))throw new TypeError(Ht);return t.facade=e,Pt(e,Jt,t),t},Bt=function(e){return ft(e,Jt)?e[Jt]:{}},Ft=function(e){return ft(e,Jt)}}var Xt={set:Ut,get:Bt,has:Ft,enforce:function(e){return Ft(e)?Bt(e):Ut(e,{})},getterFor:function(e){return function(t){var n;if(!Ge(t)||(n=Bt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Yt=Ne((function(e){var t=Xt.get,n=Xt.enforce,r=String(String).split("String");(e.exports=function(e,t,o,i){var a,s=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,c=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||ft(o,"name")||Pt(o,"name",t),(a=n(o)).source||(a.source=r.join("string"==typeof t?t:""))),e!==Be?(s?!c&&e[t]&&(u=!0):delete e[t],u?e[t]=o:Pt(e,t,o)):u?e[t]=o:it(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||It(this)}))})),Kt=Math.ceil,Zt=Math.floor,Qt=function(e){return isNaN(e=+e)?0:(e>0?Zt:Kt)(e)},en=Math.min,tn=function(e){return e>0?en(Qt(e),9007199254740991):0},nn=Math.max,rn=Math.min,on=function(e){return function(t,n,r){var o,i=$e(t),a=tn(i.length),s=function(e,t){var n=Qt(e);return n<0?nn(n+t,0):rn(n,t)}(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},an={includes:on(!0),indexOf:on(!1)}.indexOf,sn=function(e,t){var n,r=$e(e),o=0,i=[];for(n in r)!ft(Lt,n)&&ft(r,n)&&i.push(n);for(;t.length>o;)ft(r,n=t[o++])&&(~an(i,n)||i.push(n));return i},un=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],cn=un.concat("length","prototype"),ln={f:Object.getOwnPropertyNames||function(e){return sn(e,cn)}},fn={f:Object.getOwnPropertySymbols},pn=Xe("Reflect","ownKeys")||function(e){var t=ln.f(At(e)),n=fn.f;return n?t.concat(n(e)):t},dn=function(e,t){for(var n=pn(t),r=Nt.f,o=kt.f,i=0;i<n.length;i++){var a=n[i];ft(e,a)||r(e,a,o(t,a))}},hn=/#|\.prototype\./,yn=function(e,t){var n=gn[mn(e)];return n==bn||n!=vn&&("function"==typeof t?Fe(t):!!t)},mn=yn.normalize=function(e){return String(e).replace(hn,".").toLowerCase()},gn=yn.data={},vn=yn.NATIVE="N",bn=yn.POLYFILL="P",_n=yn,wn=kt.f,xn=function(e,t){var n,r,o,i,a,s=e.target,u=e.global,c=e.stat;if(n=u?Be:c?Be[s]||it(s,{}):(Be[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=wn(n,r))&&a.value:n[r],!_n(u?r:s+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;dn(i,o)}(e.sham||o&&o.sham)&&Pt(i,"sham",!0),Yt(n,r,i,e)}},Sn=Array.isArray||function(e){return"Array"==He(e)},jn=function(e,t,n){var r=wt(t);r in e?Nt.f(e,r,Me(0,n)):e[r]=n},On=vt("species"),En=function(e,t){return new(function(e){var t;return Sn(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!Sn(t.prototype)?Ge(t)&&null===(t=t[On])&&(t=void 0):t=void 0),void 0===t?Array:t}(e))(0===t?0:t)},kn=vt("species"),An=function(e){return tt>=51||!Fe((function(){var t=[];return(t.constructor={})[kn]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Cn=vt("isConcatSpreadable"),Nn=9007199254740991,Pn="Maximum allowed index exceeded",Rn=tt>=51||!Fe((function(){var e=[];return e[Cn]=!1,e.concat()[0]!==e})),Un=An("concat"),Bn=function(e){if(!Ge(e))return!1;var t=e[Cn];return void 0!==t?!!t:Sn(e)};xn({target:"Array",proto:!0,forced:!Rn||!Un},{concat:function(e){var t,n,r,o,i,a=ct(this),s=En(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(Bn(i=-1===t?a:arguments[t])){if(u+(o=tn(i.length))>Nn)throw TypeError(Pn);for(n=0;n<o;n++,u++)n in i&&jn(s,u,i[n])}else{if(u>=Nn)throw TypeError(Pn);jn(s,u++,i)}return s.length=u,s}});var Fn,In=function(e){if(ot(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},zn=function(){var e=At(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Dn=function(e,t){return RegExp(e,t)},Tn={UNSUPPORTED_Y:Fe((function(){var e=Dn("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:Fe((function(){var e=Dn("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},Mn=Object.keys||function(e){return sn(e,un)},Ln=Ie?Object.defineProperties:function(e,t){At(e);for(var n,r=Mn(t),o=r.length,i=0;o>i;)Nt.f(e,n=r[i++],t[n]);return e},Hn=Xe("document","documentElement"),Vn=Mt("IE_PROTO"),qn=function(){},Wn=function(e){return"<script>"+e+"</"+"script>"},$n=function(e){e.write(Wn("")),e.close();var t=e.parentWindow.Object;return e=null,t},Gn=function(){try{Fn=new ActiveXObject("htmlfile")}catch(e){}Gn=document.domain&&Fn?$n(Fn):function(){var e,t=jt("iframe");if(t.style)return t.style.display="none",Hn.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Wn("document.F=Object")),e.close(),e.F}()||$n(Fn);for(var e=un.length;e--;)delete Gn.prototype[un[e]];return Gn()};Lt[Vn]=!0;var Jn,Xn,Yn=Object.create||function(e,t){var n;return null!==e?(qn.prototype=At(e),n=new qn,qn.prototype=null,n[Vn]=e):n=Gn(),void 0===t?n:Ln(n,t)},Kn=Fe((function(){var e=RegExp(".","string".charAt(0));return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Zn=Fe((function(){var e=RegExp("(?<a>b)","string".charAt(5));return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Qn=Xt.get,er=RegExp.prototype.exec,tr=ut("native-string-replace",String.prototype.replace),nr=er,rr=(Jn=/a/,Xn=/b*/g,er.call(Jn,"a"),er.call(Xn,"a"),0!==Jn.lastIndex||0!==Xn.lastIndex),or=Tn.UNSUPPORTED_Y||Tn.BROKEN_CARET,ir=void 0!==/()??/.exec("")[1];(rr||ir||or||Kn||Zn)&&(nr=function(e){var t,n,r,o,i,a,s,u=this,c=Qn(u),l=In(e),f=c.raw;if(f)return f.lastIndex=u.lastIndex,t=nr.call(f,l),u.lastIndex=f.lastIndex,t;var p=c.groups,d=or&&u.sticky,h=zn.call(u),y=u.source,m=0,g=l;if(d&&(-1===(h=h.replace("y","")).indexOf("g")&&(h+="g"),g=l.slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==l.charAt(u.lastIndex-1))&&(y="(?: "+y+")",g=" "+g,m++),n=new RegExp("^(?:"+y+")",h)),ir&&(n=new RegExp("^"+y+"$(?!\\s)",h)),rr&&(r=u.lastIndex),o=er.call(d?n:u,g),d?o?(o.input=o.input.slice(m),o[0]=o[0].slice(m),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:rr&&o&&(u.lastIndex=u.global?o.index+o[0].length:r),ir&&o&&o.length>1&&tr.call(o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=Yn(null),i=0;i<p.length;i++)a[(s=p[i])[0]]=o[s[1]];return o});var ar=nr;xn({target:"RegExp",proto:!0,forced:/./.exec!==ar},{exec:ar});var sr=vt("species"),ur=RegExp.prototype,cr=vt("match"),lr=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},fr=vt("species"),pr=function(e){return function(t,n){var r,o,i=In(We(t)),a=Qt(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===s||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},dr={codeAt:pr(!1),charAt:pr(!0)}.charAt,hr=function(e,t,n){return t+(n?dr(e,t).length:1)},yr=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==He(e))throw TypeError("RegExp#exec called on incompatible receiver");return ar.call(e,t)},mr=Tn.UNSUPPORTED_Y,gr=[].push,vr=Math.min,br=4294967295;!function(e,t,n,r){var o=vt(e),i=!Fe((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Fe((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[sr]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var s=/./[o],u=t(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===ar||a===ur.exec?i&&!o?{done:!0,value:s.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));Yt(String.prototype,e,u[0]),Yt(ur,o,u[1])}r&&Pt(ur[o],"sham",!0)}("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=In(We(this)),o=void 0===n?br:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!function(e){var t;return Ge(e)&&(void 0!==(t=e[cr])?!!t:"RegExp"==He(e))}(e))return t.call(r,e,o);for(var i,a,s,u=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,f=new RegExp(e.source,c+"g");(i=ar.call(f,r))&&!((a=f.lastIndex)>l&&(u.push(r.slice(l,i.index)),i.length>1&&i.index<r.length&&gr.apply(u,i.slice(1)),s=i[0].length,l=a,u.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return l===r.length?!s&&f.test("")||u.push(""):u.push(r.slice(l)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=We(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(In(o),t,n)},function(e,o){var i=At(this),a=In(e),s=n(r,i,a,o,r!==t);if(s.done)return s.value;var u=function(e,t){var n,r=At(e).constructor;return void 0===r||null==(n=At(r)[fr])?t:lr(n)}(i,RegExp),c=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(mr?"g":"y"),f=new u(mr?"^(?:"+i.source+")":i,l),p=void 0===o?br:o>>>0;if(0===p)return[];if(0===a.length)return null===yr(f,a)?[a]:[];for(var d=0,h=0,y=[];h<a.length;){f.lastIndex=mr?0:h;var m,g=yr(f,mr?a.slice(h):a);if(null===g||(m=vr(tn(f.lastIndex+(mr?h:0)),a.length))===d)h=hr(a,h,c);else{if(y.push(a.slice(d,h)),y.length===p)return y;for(var v=1;v<=g.length-1;v++)if(y.push(g[v]),y.length===p)return y;h=d=m}}return y.push(a.slice(d)),y}]}),!!Fe((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),mr);var _r=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},wr=Object.prototype.toString;function xr(e){return"[object Array]"===wr.call(e)}function Sr(e){return void 0===e}function jr(e){return null!==e&&"object"==typeof e}function Or(e){if("[object Object]"!==wr.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function Er(e){return"[object Function]"===wr.call(e)}function kr(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),xr(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var Ar={isArray:xr,isArrayBuffer:function(e){return"[object ArrayBuffer]"===wr.call(e)},isBuffer:function(e){return null!==e&&!Sr(e)&&null!==e.constructor&&!Sr(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:jr,isPlainObject:Or,isUndefined:Sr,isDate:function(e){return"[object Date]"===wr.call(e)},isFile:function(e){return"[object File]"===wr.call(e)},isBlob:function(e){return"[object Blob]"===wr.call(e)},isFunction:Er,isStream:function(e){return jr(e)&&Er(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:kr,merge:function e(){var t={};function n(n,r){Or(t[r])&&Or(n)?t[r]=e(t[r],n):Or(n)?t[r]=e({},n):xr(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)kr(arguments[r],n);return t},extend:function(e,t,n){return kr(t,(function(t,r){e[r]=n&&"function"==typeof t?_r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}};function Cr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Nr=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(Ar.isURLSearchParams(t))r=t.toString();else{var o=[];Ar.forEach(t,(function(e,t){null!=e&&(Ar.isArray(e)?t+="[]":e=[e],Ar.forEach(e,(function(e){Ar.isDate(e)?e=e.toISOString():Ar.isObject(e)&&(e=JSON.stringify(e)),o.push(Cr(t)+"="+Cr(e))})))})),r=o.join("&")}if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e};function Pr(){this.handlers=[]}Pr.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},Pr.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Pr.prototype.forEach=function(e){Ar.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var Rr=Pr,Ur=function(e,t,n){return Ar.forEach(n,(function(n){e=n(e,t)})),e},Br=function(e){return!(!e||!e.__CANCEL__)},Fr=function(e,t){Ar.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},Ir=function(e,t,n,r,o){return function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}(new Error(e),t,n,r,o)},zr=Ar.isStandardBrowserEnv()?{write:function(e,t,n,r,o,i){var a=[];a.push(e+"="+encodeURIComponent(t)),Ar.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ar.isString(r)&&a.push("path="+r),Ar.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Dr=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],Tr=Ar.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=Ar.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},Mr=function(e){return new Promise((function(t,n){var r=e.data,o=e.headers;Ar.isFormData(r)&&delete o["Content-Type"];var i=new XMLHttpRequest;if(e.auth){var a=e.auth.username||"",s=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(a+":"+s)}var u,c,l=(u=e.baseURL,c=e.url,u&&!/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(c)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(u,c):c);if(i.open(e.method.toUpperCase(),Nr(l,e.params,e.paramsSerializer),!0),i.timeout=e.timeout,i.onreadystatechange=function(){if(i&&4===i.readyState&&(0!==i.status||i.responseURL&&0===i.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in i?function(e){var t,n,r,o={};return e?(Ar.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=Ar.trim(e.substr(0,r)).toLowerCase(),n=Ar.trim(e.substr(r+1)),t){if(o[t]&&Dr.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}(i.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:r,config:e,request:i};!function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(Ir("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}(t,n,o),i=null}},i.onabort=function(){i&&(n(Ir("Request aborted",e,"ECONNABORTED",i)),i=null)},i.onerror=function(){n(Ir("Network Error",e,null,i)),i=null},i.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(Ir(t,e,"ECONNABORTED",i)),i=null},Ar.isStandardBrowserEnv()){var f=(e.withCredentials||Tr(l))&&e.xsrfCookieName?zr.read(e.xsrfCookieName):void 0;f&&(o[e.xsrfHeaderName]=f)}if("setRequestHeader"in i&&Ar.forEach(o,(function(e,t){void 0===r&&"content-type"===t.toLowerCase()?delete o[t]:i.setRequestHeader(t,e)})),Ar.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),e.responseType)try{i.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&i.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){i&&(i.abort(),n(e),i=null)})),r||(r=null),i.send(r)}))},Lr={"Content-Type":"application/x-www-form-urlencoded"};function Hr(e,t){!Ar.isUndefined(e)&&Ar.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var Vr,qr={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(Vr=Mr),Vr),transformRequest:[function(e,t){return Fr(t,"Accept"),Fr(t,"Content-Type"),Ar.isFormData(e)||Ar.isArrayBuffer(e)||Ar.isBuffer(e)||Ar.isStream(e)||Ar.isFile(e)||Ar.isBlob(e)?e:Ar.isArrayBufferView(e)?e.buffer:Ar.isURLSearchParams(e)?(Hr(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Ar.isObject(e)?(Hr(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};qr.headers={common:{Accept:"application/json, text/plain, */*"}},Ar.forEach(["delete","get","head"],(function(e){qr.headers[e]={}})),Ar.forEach(["post","put","patch"],(function(e){qr.headers[e]=Ar.merge(Lr)}));var Wr=qr;function $r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var Gr=function(e){return $r(e),e.headers=e.headers||{},e.data=Ur(e.data,e.headers,e.transformRequest),e.headers=Ar.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Ar.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Wr.adapter)(e).then((function(t){return $r(e),t.data=Ur(t.data,t.headers,e.transformResponse),t}),(function(t){return Br(t)||($r(e),t&&t.response&&(t.response.data=Ur(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Jr=function(e,t){t=t||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function s(e,t){return Ar.isPlainObject(e)&&Ar.isPlainObject(t)?Ar.merge(e,t):Ar.isPlainObject(t)?Ar.merge({},t):Ar.isArray(t)?t.slice():t}function u(r){Ar.isUndefined(t[r])?Ar.isUndefined(e[r])||(n[r]=s(void 0,e[r])):n[r]=s(e[r],t[r])}Ar.forEach(r,(function(e){Ar.isUndefined(t[e])||(n[e]=s(void 0,t[e]))})),Ar.forEach(o,u),Ar.forEach(i,(function(r){Ar.isUndefined(t[r])?Ar.isUndefined(e[r])||(n[r]=s(void 0,e[r])):n[r]=s(void 0,t[r])})),Ar.forEach(a,(function(r){r in t?n[r]=s(e[r],t[r]):r in e&&(n[r]=s(void 0,e[r]))}));var c=r.concat(o).concat(i).concat(a),l=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return Ar.forEach(l,u),n};function Xr(e){this.defaults=e,this.interceptors={request:new Rr,response:new Rr}}Xr.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=Jr(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[Gr,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},Xr.prototype.getUri=function(e){return e=Jr(this.defaults,e),Nr(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},Ar.forEach(["delete","get","head","options"],(function(e){Xr.prototype[e]=function(t,n){return this.request(Jr(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ar.forEach(["post","put","patch"],(function(e){Xr.prototype[e]=function(t,n,r){return this.request(Jr(r||{},{method:e,url:t,data:n}))}}));var Yr=Xr;function Kr(e){this.message=e}Kr.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Kr.prototype.__CANCEL__=!0;var Zr=Kr;function Qr(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new Zr(e),t(n.reason))}))}Qr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Qr.source=function(){var e;return{token:new Qr((function(t){e=t})),cancel:e}};var eo=Qr;function to(e){var t=new Yr(e),n=_r(Yr.prototype.request,t);return Ar.extend(n,Yr.prototype,t),Ar.extend(n,t),n}var no=to(Wr);no.Axios=Yr,no.create=function(e){return to(Jr(no.defaults,e))},no.Cancel=Zr,no.CancelToken=eo,no.isCancel=Br,no.all=function(e){return Promise.all(e)},no.spread=function(e){return function(t){return e.apply(null,t)}},no.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError};var ro=no,oo=no;ro.default=oo;var io,ao=ro,so="undefined"!=typeof Symbol&&Symbol,uo="Function.prototype.bind called on incompatible ",co=Array.prototype.slice,lo=Object.prototype.toString,fo="[object Function]",po=Function.prototype.bind||function(e){var t=this;if("function"!=typeof t||lo.call(t)!==fo)throw new TypeError(uo+t);for(var n,r=co.call(arguments,1),o=function(){if(this instanceof n){var o=t.apply(this,r.concat(co.call(arguments)));return Object(o)===o?o:this}return t.apply(e,r.concat(co.call(arguments)))},i=Math.max(0,t.length-r.length),a=[],s=0;s<i;s++)a.push("$"+s);if(n=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var u=function(){};u.prototype=t.prototype,n.prototype=new u,u.prototype=null}return n},ho=po.call(Function.call,Object.prototype.hasOwnProperty),yo=SyntaxError,mo=Function,go=TypeError,vo=function(e){try{return mo('"use strict"; return ('+e+").constructor;")()}catch(e){}},bo=Object.getOwnPropertyDescriptor;if(bo)try{bo({},"")}catch($l){bo=null}var _o=function(){throw new go},wo=bo?function(){try{return _o}catch(e){try{return bo(arguments,"callee").get}catch(e){return _o}}}():_o,xo="function"==typeof so&&"function"==typeof Symbol&&"symbol"==typeof so("foo")&&"symbol"==typeof Symbol("bar")&&function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}(),So=Object.getPrototypeOf||function(e){return e.__proto__},jo={},Oo="undefined"==typeof Uint8Array?io:So(Uint8Array),Eo={"%AggregateError%":"undefined"==typeof AggregateError?io:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?io:ArrayBuffer,"%ArrayIteratorPrototype%":xo?So([][Symbol.iterator]()):io,"%AsyncFromSyncIteratorPrototype%":io,"%AsyncFunction%":jo,"%AsyncGenerator%":jo,"%AsyncGeneratorFunction%":jo,"%AsyncIteratorPrototype%":jo,"%Atomics%":"undefined"==typeof Atomics?io:Atomics,"%BigInt%":"undefined"==typeof BigInt?io:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?io:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?io:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?io:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?io:FinalizationRegistry,"%Function%":mo,"%GeneratorFunction%":jo,"%Int8Array%":"undefined"==typeof Int8Array?io:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?io:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?io:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xo?So(So([][Symbol.iterator]())):io,"%JSON%":"object"==typeof JSON?JSON:io,"%Map%":"undefined"==typeof Map?io:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&xo?So((new Map)[Symbol.iterator]()):io,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?io:Promise,"%Proxy%":"undefined"==typeof Proxy?io:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?io:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?io:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&xo?So((new Set)[Symbol.iterator]()):io,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?io:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xo?So(""[Symbol.iterator]()):io,"%Symbol%":xo?Symbol:io,"%SyntaxError%":yo,"%ThrowTypeError%":wo,"%TypedArray%":Oo,"%TypeError%":go,"%Uint8Array%":"undefined"==typeof Uint8Array?io:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?io:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?io:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?io:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?io:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?io:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?io:WeakSet},ko=function e(t){var n;if("%AsyncFunction%"===t)n=vo("async function () {}");else if("%GeneratorFunction%"===t)n=vo("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=vo("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=So(o.prototype))}return Eo[t]=n,n},Ao={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Co=po.call(Function.call,Array.prototype.concat),No=po.call(Function.apply,Array.prototype.splice),Po=po.call(Function.call,String.prototype.replace),Ro=po.call(Function.call,String.prototype.slice),Uo=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Bo=/\\(\\)?/g,Fo=function(e){var t=Ro(e,0,1),n=Ro(e,-1);if("%"===t&&"%"!==n)throw new yo("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new yo("invalid intrinsic syntax, expected opening `%`");var r=[];return Po(e,Uo,(function(e,t,n,o){r[r.length]=n?Po(o,Bo,"$1"):t||e})),r},Io=function(e,t){var n,r=e;if(ho(Ao,r)&&(r="%"+(n=Ao[r])[0]+"%"),ho(Eo,r)){var o=Eo[r];if(o===jo&&(o=ko(r)),void 0===o&&!t)throw new go("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new yo("intrinsic "+e+" does not exist!")},zo=function(e,t){if("string"!=typeof e||0===e.length)throw new go("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new go('"allowMissing" argument must be a boolean');var n=Fo(e),r=n.length>0?n[0]:"",o=Io("%"+r+"%",t),i=o.name,a=o.value,s=!1,u=o.alias;u&&(r=u[0],No(n,Co([0,1],u)));for(var c=1,l=!0;c<n.length;c+=1){var f=n[c],p=Ro(f,0,1),d=Ro(f,-1);if(('"'===p||"'"===p||"`"===p||'"'===d||"'"===d||"`"===d)&&p!==d)throw new yo("property names with quotes must have matching quotes");if("constructor"!==f&&l||(s=!0),ho(Eo,i="%"+(r+="."+f)+"%"))a=Eo[i];else if(null!=a){if(!(f in a)){if(!t)throw new go("base intrinsic for "+e+" exists, but the property is not available.");return}if(bo&&c+1>=n.length){var h=bo(a,f);a=(l=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[f]}else l=ho(a,f),a=a[f];l&&!s&&(Eo[i]=a)}}return a},Do=Ne((function(e){var t=zo("%Function.prototype.apply%"),n=zo("%Function.prototype.call%"),r=zo("%Reflect.apply%",!0)||po.call(n,t),o=zo("%Object.getOwnPropertyDescriptor%",!0),i=zo("%Object.defineProperty%",!0),a=zo("%Math.max%");if(i)try{i({},"a",{value:1})}catch(e){i=null}e.exports=function(e){var t=r(po,n,arguments);if(o&&i){var s=o(t,"length");s.configurable&&i(t,"length",{value:1+a(0,e.length-(arguments.length-1))})}return t};var s=function(){return r(po,t,arguments)};i?i(e.exports,"apply",{value:s}):e.exports.apply=s})),To=Do(zo("String.prototype.indexOf")),Mo=function(e,t){var n=zo(e,!!t);return"function"==typeof n&&To(e,".prototype.")>-1?Do(n):n},Lo=Ce(Object.freeze({__proto__:null,default:{}})),Ho="function"==typeof Map&&Map.prototype,Vo=Object.getOwnPropertyDescriptor&&Ho?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,qo=Ho&&Vo&&"function"==typeof Vo.get?Vo.get:null,Wo=Ho&&Map.prototype.forEach,$o="function"==typeof Set&&Set.prototype,Go=Object.getOwnPropertyDescriptor&&$o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Jo=$o&&Go&&"function"==typeof Go.get?Go.get:null,Xo=$o&&Set.prototype.forEach,Yo="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Ko="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Zo="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Qo=Boolean.prototype.valueOf,ei=Object.prototype.toString,ti=Function.prototype.toString,ni=String.prototype.match,ri="function"==typeof BigInt?BigInt.prototype.valueOf:null,oi=Object.getOwnPropertySymbols,ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,ai="function"==typeof Symbol&&"object"==typeof Symbol.iterator,si=Object.prototype.propertyIsEnumerable,ui=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),ci=Lo.custom,li=ci&&mi(ci)?ci:null,fi="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null,pi=function e(t,n,r,o){var i=n||{};if(vi(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(vi(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!vi(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(vi(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return wi(t,i);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var s=void 0===i.depth?5:i.depth;if(void 0===r&&(r=0),r>=s&&s>0&&"object"==typeof t)return yi(t)?"[Array]":"[Object]";var u=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(i,r);if(void 0===o)o=[];else if(_i(o,t)>=0)return"[Circular]";function c(t,n,a){if(n&&(o=o.slice()).push(n),a){var s={depth:i.depth};return vi(i,"quoteStyle")&&(s.quoteStyle=i.quoteStyle),e(t,s,r+1,o)}return e(t,i,r+1,o)}if("function"==typeof t){var l=function(e){if(e.name)return e.name;var t=ni.call(ti.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),f=ki(t,c);return"[Function"+(l?": "+l:" (anonymous)")+"]"+(f.length>0?" { "+f.join(", ")+" }":"")}if(mi(t)){var p=ai?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):ii.call(t);return"object"!=typeof t||ai?p:Si(p)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var d="<"+String(t.nodeName).toLowerCase(),h=t.attributes||[],y=0;y<h.length;y++)d+=" "+h[y].name+"="+di(hi(h[y].value),"double",i);return d+=">",t.childNodes&&t.childNodes.length&&(d+="..."),d+="</"+String(t.nodeName).toLowerCase()+">"}if(yi(t)){if(0===t.length)return"[]";var m=ki(t,c);return u&&!function(e){for(var t=0;t<e.length;t++)if(_i(e[t],"\n")>=0)return!1;return!0}(m)?"["+Ei(m,u)+"]":"[ "+m.join(", ")+" ]"}if(function(e){return!("[object Error]"!==bi(e)||fi&&"object"==typeof e&&fi in e)}(t)){var g=ki(t,c);return 0===g.length?"["+String(t)+"]":"{ ["+String(t)+"] "+g.join(", ")+" }"}if("object"==typeof t&&a){if(li&&"function"==typeof t[li])return t[li]();if("symbol"!==a&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!qo||!e||"object"!=typeof e)return!1;try{qo.call(e);try{Jo.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var v=[];return Wo.call(t,(function(e,n){v.push(c(n,t,!0)+" => "+c(e,t))})),Oi("Map",qo.call(t),v,u)}if(function(e){if(!Jo||!e||"object"!=typeof e)return!1;try{Jo.call(e);try{qo.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var b=[];return Xo.call(t,(function(e){b.push(c(e,t))})),Oi("Set",Jo.call(t),b,u)}if(function(e){if(!Yo||!e||"object"!=typeof e)return!1;try{Yo.call(e,Yo);try{Ko.call(e,Ko)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return ji("WeakMap");if(function(e){if(!Ko||!e||"object"!=typeof e)return!1;try{Ko.call(e,Ko);try{Yo.call(e,Yo)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return ji("WeakSet");if(function(e){if(!Zo||!e||"object"!=typeof e)return!1;try{return Zo.call(e),!0}catch(e){}return!1}(t))return ji("WeakRef");if(function(e){return!("[object Number]"!==bi(e)||fi&&"object"==typeof e&&fi in e)}(t))return Si(c(Number(t)));if(function(e){if(!e||"object"!=typeof e||!ri)return!1;try{return ri.call(e),!0}catch(e){}return!1}(t))return Si(c(ri.call(t)));if(function(e){return!("[object Boolean]"!==bi(e)||fi&&"object"==typeof e&&fi in e)}(t))return Si(Qo.call(t));if(function(e){return!("[object String]"!==bi(e)||fi&&"object"==typeof e&&fi in e)}(t))return Si(c(String(t)));if(!function(e){return!("[object Date]"!==bi(e)||fi&&"object"==typeof e&&fi in e)}(t)&&!function(e){return!("[object RegExp]"!==bi(e)||fi&&"object"==typeof e&&fi in e)}(t)){var _=ki(t,c),w=ui?ui(t)===Object.prototype:t instanceof Object||t.constructor===Object,x=t instanceof Object?"":"null prototype",S=!w&&fi&&Object(t)===t&&fi in t?bi(t).slice(8,-1):x?"Object":"",j=(w||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(S||x?"["+[].concat(S||[],x||[]).join(": ")+"] ":"");return 0===_.length?j+"{}":u?j+"{"+Ei(_,u)+"}":j+"{ "+_.join(", ")+" }"}return String(t)};function di(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function hi(e){return String(e).replace(/"/g,""")}function yi(e){return!("[object Array]"!==bi(e)||fi&&"object"==typeof e&&fi in e)}function mi(e){if(ai)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!ii)return!1;try{return ii.call(e),!0}catch(e){}return!1}var gi=Object.prototype.hasOwnProperty||function(e){return e in this};function vi(e,t){return gi.call(e,t)}function bi(e){return ei.call(e)}function _i(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function wi(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return wi(e.slice(0,t.maxStringLength),t)+r}return di(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,xi),"single",t)}function xi(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function Si(e){return"Object("+e+")"}function ji(e){return e+" { ? }"}function Oi(e,t,n,r){return e+" ("+t+") {"+(r?Ei(n,r):n.join(", "))+"}"}function Ei(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function ki(e,t){var n=yi(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=vi(e,o)?t(e[o],e):""}var i,a="function"==typeof oi?oi(e):[];if(ai){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in e)vi(e,u)&&(n&&String(Number(u))===u&&u<e.length||ai&&i["$"+u]instanceof Symbol||(/[^\w$]/.test(u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if("function"==typeof oi)for(var c=0;c<a.length;c++)si.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}var Ai=zo("%TypeError%"),Ci=zo("%WeakMap%",!0),Ni=zo("%Map%",!0),Pi=Mo("WeakMap.prototype.get",!0),Ri=Mo("WeakMap.prototype.set",!0),Ui=Mo("WeakMap.prototype.has",!0),Bi=Mo("Map.prototype.get",!0),Fi=Mo("Map.prototype.set",!0),Ii=Mo("Map.prototype.has",!0),zi=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},Di=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new Ai("Side channel does not contain "+pi(e))},get:function(r){if(Ci&&r&&("object"==typeof r||"function"==typeof r)){if(e)return Pi(e,r)}else if(Ni){if(t)return Bi(t,r)}else if(n)return function(e,t){var n=zi(e,t);return n&&n.value}(n,r)},has:function(r){if(Ci&&r&&("object"==typeof r||"function"==typeof r)){if(e)return Ui(e,r)}else if(Ni){if(t)return Ii(t,r)}else if(n)return function(e,t){return!!zi(e,t)}(n,r);return!1},set:function(r,o){Ci&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new Ci),Ri(e,r,o)):Ni?(t||(t=new Ni),Fi(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=zi(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r},Ti=String.prototype.replace,Mi=/%20/g,Li="RFC3986",Hi={default:Li,formatters:{RFC1738:function(e){return Ti.call(e,Mi,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Li},Vi=Object.prototype.hasOwnProperty,qi=Array.isArray,Wi=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),$i=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},Gi={arrayToObject:$i,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],i=o.obj[o.prop],a=Object.keys(i),s=0;s<a.length;++s){var u=a[s],c=i[u];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:i,prop:u}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(qi(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,r,o){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",s=0;s<i.length;++s){var u=i.charCodeAt(s);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===Hi.RFC1738&&(40===u||41===u)?a+=i.charAt(s):u<128?a+=Wi[u]:u<2048?a+=Wi[192|u>>6]+Wi[128|63&u]:u<55296||u>=57344?a+=Wi[224|u>>12]+Wi[128|u>>6&63]+Wi[128|63&u]:(s+=1,u=65536+((1023&u)<<10|1023&i.charCodeAt(s)),a+=Wi[240|u>>18]+Wi[128|u>>12&63]+Wi[128|u>>6&63]+Wi[128|63&u])}return a},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(qi(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(qi(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!Vi.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var o=t;return qi(t)&&!qi(n)&&(o=$i(t,r)),qi(t)&&qi(n)?(n.forEach((function(n,o){if(Vi.call(t,o)){var i=t[o];i&&"object"==typeof i&&n&&"object"==typeof n?t[o]=e(i,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var i=n[o];return Vi.call(t,o)?t[o]=e(t[o],i,r):t[o]=i,t}),o)}},Ji=Object.prototype.hasOwnProperty,Xi={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Yi=Array.isArray,Ki=Array.prototype.push,Zi=function(e,t){Ki.apply(e,Yi(t)?t:[t])},Qi=Date.prototype.toISOString,ea=Hi.default,ta={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Gi.encode,encodeValuesOnly:!1,format:ea,formatter:Hi.formatters[ea],indices:!1,serializeDate:function(e){return Qi.call(e)},skipNulls:!1,strictNullHandling:!1},na=function e(t,n,r,o,i,a,s,u,c,l,f,p,d,h,y){var m=t;if(y.has(t))throw new RangeError("Cyclic object value");if("function"==typeof s?m=s(n,m):m instanceof Date?m=l(m):"comma"===r&&Yi(m)&&(m=Gi.maybeMap(m,(function(e){return e instanceof Date?l(e):e}))),null===m){if(o)return a&&!d?a(n,ta.encoder,h,"key",f):n;m=""}if(function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e}(m)||Gi.isBuffer(m))return a?[p(d?n:a(n,ta.encoder,h,"key",f))+"="+p(a(m,ta.encoder,h,"value",f))]:[p(n)+"="+p(String(m))];var g,v=[];if(void 0===m)return v;if("comma"===r&&Yi(m))g=[{value:m.length>0?m.join(",")||null:void 0}];else if(Yi(s))g=s;else{var b=Object.keys(m);g=u?b.sort(u):b}for(var _=0;_<g.length;++_){var w=g[_],x="object"==typeof w&&void 0!==w.value?w.value:m[w];if(!i||null!==x){var S=Yi(m)?"function"==typeof r?r(n,w):n:n+(c?"."+w:"["+w+"]");y.set(t,!0);var j=Di();Zi(v,e(x,S,r,o,i,a,s,u,c,l,f,p,d,h,j))}}return v},ra=(Object.prototype.hasOwnProperty,Array.isArray,function(e,t){var n,r=e,o=function(e){if(!e)return ta;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||ta.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Hi.default;if(void 0!==e.format){if(!Ji.call(Hi.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=Hi.formatters[n],o=ta.filter;return("function"==typeof e.filter||Yi(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:ta.addQueryPrefix,allowDots:void 0===e.allowDots?ta.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:ta.charsetSentinel,delimiter:void 0===e.delimiter?ta.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:ta.encode,encoder:"function"==typeof e.encoder?e.encoder:ta.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:ta.encodeValuesOnly,filter:o,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:ta.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:ta.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:ta.strictNullHandling}}(t);"function"==typeof o.filter?r=(0,o.filter)("",r):Yi(o.filter)&&(n=o.filter);var i,a=[];if("object"!=typeof r||null===r)return"";i=t&&t.arrayFormat in Xi?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=Xi[i];n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var u=Di(),c=0;c<n.length;++c){var l=n[c];o.skipNulls&&null===r[l]||Zi(a,na(r[l],l,s,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,u))}var f=a.join(o.delimiter),p=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),f.length>0?p+f:""}),oa=Ne((function(e,t){!function(t,n){e.exports=function(t){var n,r=(t=t||{}).Base64,o="2.6.4",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e.charAt(n)]=n;return t}(i),s=String.fromCharCode,u=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?s(192|t>>>6)+s(128|63&t):s(224|t>>>12&15)+s(128|t>>>6&63)+s(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return s(240|t>>>18&7)+s(128|t>>>12&63)+s(128|t>>>6&63)+s(128|63&t)},c=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,l=function(e){return e.replace(c,u)},f=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[i.charAt(n>>>18),i.charAt(n>>>12&63),t>=2?"=":i.charAt(n>>>6&63),t>=1?"=":i.charAt(63&n)].join("")},p=t.btoa&&"function"==typeof t.btoa?function(e){return t.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,f)},d=function(e){return p(l(String(e)))},h=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},y=function(e,t){return t?h(d(e)):d(e)},m=function(e){return y(e,!0)};t.Uint8Array&&(n=function(e,t){for(var n="",r=0,o=e.length;r<o;r+=3){var a=e[r],s=e[r+1],u=e[r+2],c=a<<16|s<<8|u;n+=i.charAt(c>>>18)+i.charAt(c>>>12&63)+(void 0!==s?i.charAt(c>>>6&63):"=")+(void 0!==u?i.charAt(63&c):"=")}return t?h(n):n});var g,v=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return s(55296+(t>>>10))+s(56320+(1023&t));case 3:return s((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return s((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},_=function(e){return e.replace(v,b)},w=function(e){var t=e.length,n=t%4,r=(t>0?a[e.charAt(0)]<<18:0)|(t>1?a[e.charAt(1)]<<12:0)|(t>2?a[e.charAt(2)]<<6:0)|(t>3?a[e.charAt(3)]:0),o=[s(r>>>16),s(r>>>8&255),s(255&r)];return o.length-=[0,0,2,1][n],o.join("")},x=t.atob&&"function"==typeof t.atob?function(e){return t.atob(e)}:function(e){return e.replace(/\S{1,4}/g,w)},S=function(e){return x(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},j=function(e){return _(x(e))},O=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},E=function(e){return j(O(e))};t.Uint8Array&&(g=function(e){return Uint8Array.from(S(O(e)),(function(e){return e.charCodeAt(0)}))});var k=function(){var e=t.Base64;return t.Base64=r,e};if(t.Base64={VERSION:o,atob:S,btoa:p,fromBase64:E,toBase64:y,utob:l,encode:y,encodeURI:m,btou:_,decode:E,noConflict:k,fromUint8Array:n,toUint8Array:g},"function"==typeof Object.defineProperty){var A=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};t.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",A((function(){return E(this)}))),Object.defineProperty(String.prototype,"toBase64",A((function(e){return y(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",A((function(){return y(this,!0)})))}}t.Meteor&&(Base64=t.Base64);e.exports&&(e.exports.Base64=t.Base64);return{Base64:t.Base64}}(t)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:Ae)})),ia=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e},aa=Object.prototype.hasOwnProperty;function sa(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function ua(e){try{return encodeURIComponent(e)}catch(e){return null}}var ca={stringify:function(e,t){t=t||"";var n,r,o=[];for(r in"string"!=typeof t&&(t="?"),e)if(aa.call(e,r)){if((n=e[r])||null!=n&&!isNaN(n)||(n=""),r=ua(r),n=ua(n),null===r||null===n)continue;o.push(r+"="+n)}return o.length?t+o.join("&"):""},parse:function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,r={};t=n.exec(e);){var o=sa(t[1]),i=sa(t[2]);null===o||null===i||o in r||(r[o]=i)}return r}},la=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,fa=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,pa=/^[a-zA-Z]:/,da=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function ha(e){return(e||"").toString().replace(da,"")}var ya=[["#","hash"],["?","query"],function(e,t){return va(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ma={hash:1,query:1};function ga(e){var t,n=("undefined"!=typeof window?window:void 0!==Ae?Ae:"undefined"!=typeof self?self:{}).location||{},r={},o=typeof(e=e||n);if("blob:"===e.protocol)r=new _a(unescape(e.pathname),{});else if("string"===o)for(t in r=new _a(e,{}),ma)delete r[t];else if("object"===o){for(t in e)t in ma||(r[t]=e[t]);void 0===r.slashes&&(r.slashes=la.test(e.href))}return r}function va(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function ba(e,t){e=ha(e),t=t||{};var n,r=fa.exec(e),o=r[1]?r[1].toLowerCase():"",i=!!r[2],a=!!r[3],s=0;return i?a?(n=r[2]+r[3]+r[4],s=r[2].length+r[3].length):(n=r[2]+r[4],s=r[2].length):a?(n=r[3]+r[4],s=r[3].length):n=r[4],"file:"===o?s>=2&&(n=n.slice(2)):va(o)?n=r[4]:o?i&&(n=n.slice(2)):s>=2&&va(t.protocol)&&(n=r[4]),{protocol:o,slashes:i||va(o),slashesCount:s,rest:n}}function _a(e,t,n){if(e=ha(e),!(this instanceof _a))return new _a(e,t,n);var r,o,i,a,s,u,c=ya.slice(),l=typeof t,f=this,p=0;for("object"!==l&&"string"!==l&&(n=t,t=null),n&&"function"!=typeof n&&(n=ca.parse),r=!(o=ba(e||"",t=ga(t))).protocol&&!o.slashes,f.slashes=o.slashes||r&&t.slashes,f.protocol=o.protocol||t.protocol||"",e=o.rest,("file:"===o.protocol&&(2!==o.slashesCount||pa.test(e))||!o.slashes&&(o.protocol||o.slashesCount<2||!va(f.protocol)))&&(c[3]=[/(.*)/,"pathname"]);p<c.length;p++)"function"!=typeof(a=c[p])?(i=a[0],u=a[1],i!=i?f[u]=e:"string"==typeof i?~(s=e.indexOf(i))&&("number"==typeof a[2]?(f[u]=e.slice(0,s),e=e.slice(s+a[2])):(f[u]=e.slice(s),e=e.slice(0,s))):(s=i.exec(e))&&(f[u]=s[1],e=e.slice(0,s.index)),f[u]=f[u]||r&&a[3]&&t[u]||"",a[4]&&(f[u]=f[u].toLowerCase())):e=a(e,f);n&&(f.query=n(f.query)),r&&t.slashes&&"/"!==f.pathname.charAt(0)&&(""!==f.pathname||""!==t.pathname)&&(f.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],i=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(i=!0),n.splice(r,1),a--);return i&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(f.pathname,t.pathname)),"/"!==f.pathname.charAt(0)&&va(f.protocol)&&(f.pathname="/"+f.pathname),ia(f.port,f.protocol)||(f.host=f.hostname,f.port=""),f.username=f.password="",f.auth&&(a=f.auth.split(":"),f.username=a[0]||"",f.password=a[1]||""),f.origin="file:"!==f.protocol&&va(f.protocol)&&f.host?f.protocol+"//"+f.host:"null",f.href=f.toString()}_a.prototype={set:function(e,t,n){var r=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||ca.parse)(t)),r[e]=t;break;case"port":r[e]=t,ia(t,r.protocol)?t&&(r.host=r.hostname+":"+t):(r.host=r.hostname,r[e]="");break;case"hostname":r[e]=t,r.port&&(t+=":"+r.port),r.host=t;break;case"host":r[e]=t,/:\d+$/.test(t)?(t=t.split(":"),r.port=t.pop(),r.hostname=t.join(":")):(r.hostname=t,r.port="");break;case"protocol":r.protocol=t.toLowerCase(),r.slashes=!n;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";r[e]=t.charAt(0)!==o?o+t:t}else r[e]=t;break;default:r[e]=t}for(var i=0;i<ya.length;i++){var a=ya[i];a[4]&&(r[a[1]]=r[a[1]].toLowerCase())}return r.origin="file:"!==r.protocol&&va(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r},toString:function(e){e&&"function"==typeof e||(e=ca.stringify);var t,n=this,r=n.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var o=r+(n.slashes||va(n.protocol)?"//":"");return n.username&&(o+=n.username,n.password&&(o+=":"+n.password),o+="@"),o+=n.host+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(o+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(o+=n.hash),o}},_a.extractProtocol=ba,_a.location=ga,_a.trimLeft=ha,_a.qs=ca;var wa=_a;function xa(e){return(xa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ja(e,t){return!t||"object"!==xa(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Oa(e){var t="function"==typeof Map?new Map:void 0;return(Oa=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Ea(e,arguments,Ca(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Aa(n,e)})(e)}function Ea(e,t,n){return(Ea=ka()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Aa(o,n.prototype),o}).apply(null,arguments)}function ka(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Aa(e,t){return(Aa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ca(e){return(Ca=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Na=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Aa(e,t)}(r,e);var t,n=(t=r,function(){var e,n=Ca(t);if(ka()){var r=Ca(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return ja(this,e)});function r(e){var t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(Sa(this,r),(t=n.call(this,e)).originalRequest=i,t.originalResponse=a,t.causingError=o,null!=o&&(e+=", caused by ".concat(o.toString())),null!=i){var s=i.getHeader("X-Request-ID")||"n/a",u=i.getMethod(),c=i.getURL(),l=a?a.getStatus():"n/a",f=a?a.getBody()||"":"n/a";e+=", originated from request (method: ".concat(u,", url: ").concat(c,", response code: ").concat(l,", response text: ").concat(f,", request id: ").concat(s,")")}return t.message=e,t}return r}(Oa(Error));function Pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pa(Object(n),!0).forEach((function(t){Ua(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ua(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ba(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Fa={endpoint:null,uploadUrl:null,metadata:{},fingerprint:null,uploadSize:null,onProgress:null,onChunkComplete:null,onSuccess:null,onError:null,_onUploadUrlAvailable:null,overridePatchMethod:!1,headers:{},addRequestId:!1,onBeforeRequest:null,onAfterResponse:null,onShouldRetry:null,chunkSize:1/0,retryDelays:[0,1e3,3e3,5e3],parallelUploads:1,storeFingerprintForResuming:!0,removeFingerprintOnSuccess:!1,uploadLengthDeferred:!1,uploadDataDuringCreation:!1,urlStorage:null,fileReader:null,httpStack:null},Ia=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=n,this._urlStorage=this.options.urlStorage,this.file=t,this.url=null,this._req=null,this._fingerprint=null,this._urlStorageKey=null,this._offset=null,this._aborted=!1,this._size=null,this._source=null,this._retryAttempt=0,this._retryTimeout=null,this._offsetBeforeRetry=0,this._parallelUploads=null,this._parallelUploadUrls=null}var t,n,r;return t=e,r=[{key:"terminate",value:function(t,n){if(arguments.length>1&&"function"==typeof arguments[arguments.length-1])throw new Error("tus: the terminate function does not accept a callback since v2 anymore; please use the returned Promise instead");void 0===n&&(n={});var r=Ta("DELETE",t,n);return Ma(r,null,n).then((function(e){if(204!==e.getStatus())throw new Na("tus: unexpected response while terminating upload",null,r,e)})).catch((function(o){if(o instanceof Na||(o=new Na("tus: failed to terminate upload",o,r,null)),!La(o,0,n))throw o;var i=n.retryDelays[0],a=n.retryDelays.slice(1),s=Ra({},n,{retryDelays:a});return new Promise((function(e){return setTimeout(e,i)})).then((function(){return e.terminate(t,s)}))}))}}],(n=[{key:"findPreviousUploads",value:function(){var e=this;return this.options.fingerprint(this.file,this.options).then((function(t){return e._urlStorage.findUploadsByFingerprint(t)}))}},{key:"resumeFromPreviousUpload",value:function(e){this.url=e.uploadUrl||null,this._parallelUploadUrls=e.parallelUploadUrls||null,this._urlStorageKey=e.urlStorageKey}},{key:"start",value:function(){var e=this,t=this.file;if(t)if(this.options.endpoint||this.options.uploadUrl){var n=this.options.retryDelays;null==n||"[object Array]"===Object.prototype.toString.call(n)?(this.options.parallelUploads>1&&["uploadUrl","uploadSize","uploadLengthDeferred"].forEach((function(t){e.options[t]&&e._emitError(new Error("tus: cannot use the ".concat(t," option when parallelUploads is enabled")))})),this.options.fingerprint(t,this.options).then((function(n){return e._fingerprint=n,e._source?e._source:e.options.fileReader.openFile(t,e.options.chunkSize)})).then((function(t){e._source=t,e.options.parallelUploads>1||null!=e._parallelUploadUrls?e._startParallelUpload():e._startSingleUpload()})).catch((function(t){e._emitError(t)}))):this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var t=this,n=this._size=this._source.size,r=0;this._parallelUploads=[];var o=null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,i=function(e,t,n){for(var r=Math.floor(e/t),o=[],i=0;i<t;i++)o.push({start:r*i,end:r*(i+1)});return o[t-1].end=e,n&&o.forEach((function(e,t){e.uploadUrl=n[t]||null})),o}(this._source.size,o,this._parallelUploadUrls);this._parallelUploadUrls=new Array(i.length);var a,s=i.map((function(o,a){var s=0;return t._source.slice(o.start,o.end).then((function(u){var c=u.value;return new Promise((function(u,l){var f=Ra({},t.options,{uploadUrl:o.uploadUrl||null,storeFingerprintForResuming:!1,removeFingerprintOnSuccess:!1,parallelUploads:1,metadata:{},headers:Ra({},t.options.headers,{"Upload-Concat":"partial"}),onSuccess:u,onError:l,onProgress:function(e){r=r-s+e,s=e,t._emitProgress(r,n)},_onUploadUrlAvailable:function(){t._parallelUploadUrls[a]=p.url,t._parallelUploadUrls.filter((function(e){return!!e})).length===i.length&&t._saveUploadInUrlStorage()}}),p=new e(c,f);p.start(),t._parallelUploads.push(p)}))}))}));Promise.all(s).then((function(){(a=t._openRequest("POST",t.options.endpoint)).setHeader("Upload-Concat","final;".concat(t._parallelUploadUrls.join(" ")));var e=za(t.options.metadata);return""!==e&&a.setHeader("Upload-Metadata",e),t._sendRequest(a,null)})).then((function(e){if(Da(e.getStatus(),200)){var n=e.getHeader("Location");null!=n?(t.url=Ha(t.options.endpoint,n),"Created upload at ".concat(t.url),t._emitSuccess()):t._emitHttpError(a,e,"tus: invalid or missing Location header")}else t._emitHttpError(a,e,"tus: unexpected response while creating upload")})).catch((function(e){t._emitError(e)}))}},{key:"_startSingleUpload",value:function(){if(this.options.uploadLengthDeferred)this._size=null;else if(null!=this.options.uploadSize){if(this._size=+this.options.uploadSize,isNaN(this._size))return void this._emitError(new Error("tus: cannot convert `uploadSize` option into a number"))}else if(this._size=this._source.size,null==this._size)return void this._emitError(new Error("tus: cannot automatically derive upload's size from input and must be specified manually using the `uploadSize` option"));return this._aborted=!1,null!=this.url?("Resuming upload from previous URL: ".concat(this.url),void this._resumeUpload()):null!=this.options.uploadUrl?("Resuming upload from provided URL: ".concat(this.options.url),this.url=this.options.uploadUrl,void this._resumeUpload()):void this._createUpload()}},{key:"abort",value:function(t){var n=this;if(arguments.length>1&&"function"==typeof arguments[1])throw new Error("tus: the abort function does not accept a callback since v2 anymore; please use the returned Promise instead");return null!=this._parallelUploads&&this._parallelUploads.forEach((function(e){e.abort(t)})),null!==this._req&&(this._req.abort(),this._source.close()),this._aborted=!0,null!=this._retryTimeout&&(clearTimeout(this._retryTimeout),this._retryTimeout=null),t&&null!=this.url?e.terminate(this.url,this.options).then((function(){return n._removeFromUrlStorage()})):Promise.resolve()}},{key:"_emitHttpError",value:function(e,t,n,r){this._emitError(new Na(n,r,e,t))}},{key:"_emitError",value:function(e){var t=this;if(!this._aborted){if(null!=this.options.retryDelays&&(null!=this._offset&&this._offset>this._offsetBeforeRetry&&(this._retryAttempt=0),La(e,this._retryAttempt,this.options))){var n=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout((function(){t.start()}),n))}if("function"!=typeof this.options.onError)throw e;this.options.onError(e)}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"==typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(e,t){"function"==typeof this.options.onProgress&&this.options.onProgress(e,t)}},{key:"_emitChunkComplete",value:function(e,t,n){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,n)}},{key:"_createUpload",value:function(){var e=this;if(this.options.endpoint){var t=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?t.setHeader("Upload-Defer-Length",1):t.setHeader("Upload-Length",this._size);var n,r=za(this.options.metadata);""!==r&&t.setHeader("Upload-Metadata",r),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,n=this._addChunkToRequest(t)):n=this._sendRequest(t,null),n.then((function(n){if(Da(n.getStatus(),200)){var r=n.getHeader("Location");if(null!=r){if(e.url=Ha(e.options.endpoint,r),"Created upload at ".concat(e.url),"function"==typeof e.options._onUploadUrlAvailable&&e.options._onUploadUrlAvailable(),0===e._size)return e._emitSuccess(),void e._source.close();e._saveUploadInUrlStorage(),e.options.uploadDataDuringCreation?e._handleUploadResponse(t,n):(e._offset=0,e._performUpload())}else e._emitHttpError(t,n,"tus: invalid or missing Location header")}else e._emitHttpError(t,n,"tus: unexpected response while creating upload")})).catch((function(n){e._emitHttpError(t,null,"tus: failed to create upload",n)}))}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var e=this,t=this._openRequest("HEAD",this.url);this._sendRequest(t,null).then((function(n){var r=n.getStatus();if(!Da(r,200))return Da(r,400)&&e._removeFromUrlStorage(),423===r?void e._emitHttpError(t,n,"tus: upload is currently locked; retry later"):e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitHttpError(t,n,"tus: unable to resume upload (new upload cannot be created without an endpoint)");var o=parseInt(n.getHeader("Upload-Offset"),10);if(isNaN(o))e._emitHttpError(t,n,"tus: invalid or missing offset value");else{var i=parseInt(n.getHeader("Upload-Length"),10);if(!isNaN(i)||e.options.uploadLengthDeferred){if("function"==typeof e.options._onUploadUrlAvailable&&e.options._onUploadUrlAvailable(),o===i)return e._emitProgress(i,i),void e._emitSuccess();e._offset=o,e._performUpload()}else e._emitHttpError(t,n,"tus: invalid or missing length value")}})).catch((function(n){e._emitHttpError(t,null,"tus: failed to resume upload",n)}))}},{key:"_performUpload",value:function(){var e,t=this;this._aborted||(this.options.overridePatchMethod?(e=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):e=this._openRequest("PATCH",this.url),e.setHeader("Upload-Offset",this._offset),this._addChunkToRequest(e).then((function(n){Da(n.getStatus(),200)?t._handleUploadResponse(e,n):t._emitHttpError(e,n,"tus: unexpected response while uploading chunk")})).catch((function(n){t._aborted||t._emitHttpError(e,null,"tus: failed to upload chunk at offset ".concat(t._offset),n)})))}},{key:"_addChunkToRequest",value:function(e){var t=this,n=this._offset,r=this._offset+this.options.chunkSize;return e.setProgressHandler((function(e){t._emitProgress(n+e,t._size)})),e.setHeader("Content-Type","application/offset+octet-stream"),(r===1/0||r>this._size)&&!this.options.uploadLengthDeferred&&(r=this._size),this._source.slice(n,r).then((function(n){var r=n.value,o=n.done;return t.options.uploadLengthDeferred&&o&&(t._size=t._offset+(r&&r.size?r.size:0),e.setHeader("Upload-Length",t._size)),null===r?t._sendRequest(e):(t._emitProgress(t._offset,t._size),t._sendRequest(e,r))}))}},{key:"_handleUploadResponse",value:function(e,t){var n=parseInt(t.getHeader("Upload-Offset"),10);if(isNaN(n))this._emitHttpError(e,t,"tus: invalid or missing offset value");else{if(this._emitProgress(n,this._size),this._emitChunkComplete(n-this._offset,n,this._size),this._offset=n,n==this._size)return this._emitSuccess(),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(e,t){var n=Ta(e,t,this.options);return this._req=n,n}},{key:"_removeFromUrlStorage",value:function(){var e=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch((function(t){e._emitError(t)})),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var e=this;if(this.options.storeFingerprintForResuming&&this._fingerprint){var t={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};this._parallelUploads?t.parallelUploadUrls=this._parallelUploadUrls:t.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,t).then((function(t){return e._urlStorageKey=t})).catch((function(t){e._emitError(t)}))}}},{key:"_sendRequest",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Ma(e,t,this.options)}}])&&Ba(t.prototype,n),r&&Ba(t,r),e}();function za(e){var t=[];for(var n in e)t.push("".concat(n," ").concat(oa.Base64.encode(e[n])));return t.join(",")}function Da(e,t){return e>=t&&e<t+100}function Ta(e,t,n){var r=n.httpStack.createRequest(e,t);r.setHeader("Tus-Resumable","1.0.0");var o=n.headers||{};for(var i in o)r.setHeader(i,o[i]);if(n.addRequestId){var a="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}));r.setHeader("X-Request-ID",a)}return r}function Ma(e,t,n){return("function"==typeof n.onBeforeRequest?Promise.resolve(n.onBeforeRequest(e)):Promise.resolve()).then((function(){return e.send(t).then((function(t){return("function"==typeof n.onAfterResponse?Promise.resolve(n.onAfterResponse(e,t)):Promise.resolve()).then((function(){return t}))}))}))}function La(e,t,n){if(null==n.retryDelays||t>=n.retryDelays.length||null==e.originalRequest)return!1;if(n&&"function"==typeof n.onShouldRetry)return n.onShouldRetry(e,t,n);var r,o=e.originalResponse?e.originalResponse.getStatus():0;return(!Da(o,400)||409===o||423===o)&&(r=!0,"undefined"!=typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(r=!1),r)}function Ha(e,t){return new wa(t,e).toString()}function Va(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Ia.defaultOptions=Fa;var qa=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"listAllUploads",value:function(){return Promise.resolve([])}},{key:"findUploadsByFingerprint",value:function(e){return Promise.resolve([])}},{key:"removeUpload",value:function(e){return Promise.resolve()}},{key:"addUpload",value:function(e,t){return Promise.resolve(null)}}])&&Va(t.prototype,n),r&&Va(t,r),e}();function Wa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var $a=!1;try{$a="localStorage"in window;var Ga="tusSupport";localStorage.setItem(Ga,localStorage.getItem(Ga))}catch($l){if($l.code!==$l.SECURITY_ERR&&$l.code!==$l.QUOTA_EXCEEDED_ERR)throw $l;$a=!1}var Ja=$a,Xa=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"findAllUploads",value:function(){var e=this._findEntries("tus::");return Promise.resolve(e)}},{key:"findUploadsByFingerprint",value:function(e){var t=this._findEntries("tus::".concat(e,"::"));return Promise.resolve(t)}},{key:"removeUpload",value:function(e){return localStorage.removeItem(e),Promise.resolve()}},{key:"addUpload",value:function(e,t){var n=Math.round(1e12*Math.random()),r="tus::".concat(e,"::").concat(n);return localStorage.setItem(r,JSON.stringify(t)),Promise.resolve(r)}},{key:"_findEntries",value:function(e){for(var t=[],n=0;n<localStorage.length;n++){var r=localStorage.key(n);if(0===r.indexOf(e))try{var o=JSON.parse(localStorage.getItem(r));o.urlStorageKey=r,t.push(o)}catch(e){}}return t}}])&&Wa(t.prototype,n),r&&Wa(t,r),e}();function Ya(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ka(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Za(e,t,n){return t&&Ka(e.prototype,t),n&&Ka(e,n),e}var Qa=function(){function e(){Ya(this,e)}return Za(e,[{key:"createRequest",value:function(e,t){return new es(e,t)}},{key:"getName",value:function(){return"XHRHttpStack"}}]),e}(),es=function(){function e(t,n){Ya(this,e),this._xhr=new XMLHttpRequest,this._xhr.open(t,n,!0),this._method=t,this._url=n,this._headers={}}return Za(e,[{key:"getMethod",value:function(){return this._method}},{key:"getURL",value:function(){return this._url}},{key:"setHeader",value:function(e,t){this._xhr.setRequestHeader(e,t),this._headers[e]=t}},{key:"getHeader",value:function(e){return this._headers[e]}},{key:"setProgressHandler",value:function(e){"upload"in this._xhr&&(this._xhr.upload.onprogress=function(t){t.lengthComputable&&e(t.loaded)})}},{key:"send",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise((function(n,r){e._xhr.onload=function(){n(new ts(e._xhr))},e._xhr.onerror=function(e){r(e)},e._xhr.send(t)}))}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),ts=function(){function e(t){Ya(this,e),this._xhr=t}return Za(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(e){return this._xhr.getResponseHeader(e)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),ns=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()};function rs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function os(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function is(e,t,n){return t&&os(e.prototype,t),n&&os(e,n),e}var as=function(){function e(t){rs(this,e),this._file=t,this.size=t.size}return is(e,[{key:"slice",value:function(e,t){if("undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova))return n=this._file.slice(e,t),new Promise((function(e,t){var r=new FileReader;r.onload=function(){var t=new Uint8Array(r.result);e({value:t})},r.onerror=function(e){t(e)},r.readAsArrayBuffer(n)}));var n,r=this._file.slice(e,t);return Promise.resolve({value:r})}},{key:"close",value:function(){}}]),e}(),ss=function(){function e(t,n){rs(this,e),this._chunkSize=n,this._buffer=void 0,this._bufferOffset=0,this._reader=t,this._done=!1}return is(e,[{key:"slice",value:function(e,t){return e<this._bufferOffset?Promise.reject(new Error("Requested data is before the reader's current offset")):this._readUntilEnoughDataOrDone(e,t)}},{key:"_readUntilEnoughDataOrDone",value:function(e,t){var n=this,r=t<=this._bufferOffset+us(this._buffer);if(this._done||r){var o=this._getDataFromBuffer(e,t),i=null==o&&this._done;return Promise.resolve({value:o,done:i})}return this._reader.read().then((function(r){var o=r.value;return r.done?n._done=!0:void 0===n._buffer?n._buffer=o:n._buffer=function(e,t){if(e.concat)return e.concat(t);if(e instanceof Blob)return new Blob([e,t],{type:e.type});if(e.set){var n=new e.constructor(e.length+t.length);return n.set(e),n.set(t,e.length),n}throw new Error("Unknown data type")}(n._buffer,o),n._readUntilEnoughDataOrDone(e,t)}))}},{key:"_getDataFromBuffer",value:function(e,t){e>this._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var n=0===us(this._buffer);return this._done&&n?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}]),e}();function us(e){return void 0===e?0:void 0!==e.size?e.size:e.length}var cs=function(){function e(){rs(this,e)}return is(e,[{key:"openFile",value:function(e,t){return ns()&&e&&void 0!==e.uri?(n=e.uri,new Promise((function(e,t){var r=new XMLHttpRequest;r.responseType="blob",r.onload=function(){var t=r.response;e(t)},r.onerror=function(e){t(e)},r.open("GET",n),r.send()}))).then((function(e){return new as(e)})).catch((function(e){throw new Error("tus: cannot fetch `file.uri` as Blob, make sure the uri is correct and accessible. ".concat(e))})):"function"==typeof e.slice&&void 0!==e.size?Promise.resolve(new as(e)):"function"==typeof e.read?(t=+t,isFinite(t)?Promise.resolve(new ss(e,t)):Promise.reject(new Error("cannot create source for stream without a finite value for the `chunkSize` option"))):Promise.reject(new Error("source object may only be an instance of File, Blob, or Reader in this environment"));var n}}]),e}();function ls(e){return(ls="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ps(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ds(e,t){return(ds=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hs(e,t){return!t||"object"!==ls(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ys(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function ms(e){return(ms=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gs(Object(n),!0).forEach((function(t){bs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _s=vs({},Ia.defaultOptions,{httpStack:new Qa,fileReader:new cs,urlStorage:Ja?new Xa:new qa,fingerprint:function(e,t){return ns()?Promise.resolve(function(e,t){var n=e.exif?function(e){var t=0;if(0===e.length)return t;for(var n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t&=t}return t}(JSON.stringify(e.exif)):"noexif";return["tus-rn",e.name||"noname",e.size||"nosize",n,t.endpoint].join("/")}(e,t)):Promise.resolve(["tus-br",e.name,e.type,e.size,e.lastModified,t.endpoint].join("-"))}}),ws=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ds(e,t)}(a,e);var t,n,r,o,i=(t=a,function(){var e,n=ms(t);if(ys()){var r=ms(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return hs(this,e)});function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return fs(this,a),t=vs({},_s,{},t),i.call(this,e,t)}return n=a,o=[{key:"terminate",value:function(e,t,n){return t=vs({},_s,{},t),Ia.terminate(e,t,n)}}],(r=null)&&ps(n.prototype,r),o&&ps(n,o),a}(Ia),xs="x-utu-root",Ss="x-utu-feedback-form",js="x-utu-feedback-details-popup",Os="api-url",Es="source-uuid",ks="target-type",As="target-uuid",Cs="/ranking",Ns="/badges",Ps="/feedbackSummary",Rs="utuIdentityDataReady",Us="utu-identity-data";function Bs(e){this.message=e}Bs.prototype=new Error,Bs.prototype.name="InvalidCharacterError";var Fs="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Bs("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?a+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function Is(e){this.message=e}function zs(e,t){if("string"!=typeof e)throw new Is("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Fs(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return Fs(t)}}(e.split(".")[n]))}catch(e){throw new Is("Invalid token specified: "+e.message)}}function Ds(){var e=Ee(re(function(){var e=localStorage.getItem(Us);if(e){var t=JSON.parse(e).access_token;if(function(e){return Date.now()<1e3*e}(zs(t).exp))return t}return null}()),2),t=e[0],n=e[1];return ie((function(){function e(e){var t=e.detail.access_token;n(t)}return window.addEventListener(Rs,e),function(){window.removeEventListener(Rs,e)}}),[]),{accessToken:t}}function Ts(e,t,n,r){var o=Ds().accessToken,i=Ms(t),a=Ms(n);return{sendFeedback:function(t){return ao.post("".concat(e).concat("/feedback"),{sourceCriteria:i,targetCriteria:a,transactionId:r,data:t},Ls(o)).then((function(){console.log("successfully uploaded to utu-api")})).catch((function(e){console.log(e)}))}}}function Ms(e){return{ids:{uuid:e}}}function Ls(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _e(_e({},t),{},{headers:_e(_e({},t.headers||{}),Hs(e))})}function Hs(e){return{Authorization:"Bearer ".concat(e)}}function Vs(e,t){var n=e["api-url"]||"https://stage-api.ututrust.com/core-api";if(!n)throw new Error("".concat(Os," attribute of ").concat(t," was not set"));return{apiUrl:n}}function qs(e){var t=e.children,n=e.forwardedRef,r=e.className,o=e.style,i=e.excludeBootstrap;return p("div",{ref:n,className:r},p("style",null,!e.excludeFonts&&p(y,null,'@import "https://fonts.googleapis.com/css2?family=Roboto:wght@300;500&display=swap";'),!i&&p(y,null,'@import "https://getbootstrap.com/docs/5.0/dist/css/bootstrap-reboot.min.css"; @import "https://getbootstrap.com/docs/5.0/dist/css/bootstrap-grid.min.css"; @import "https://getbootstrap.com/docs/5.0/dist/css/bootstrap-utilities.min.css";'),o),t)}function Ws(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Is.prototype=new Error,Is.prototype.name="InvalidTokenError";var $s="::slotted(ul) {\n list-style: none;\n padding: 0;\n margin: 0; }\n";Ws($s);var Gs=[].push,Js=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(u,c,l,f){for(var p,d,h=ct(u),y=qe(h),m=function(e,t,n){if(lr(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}(c,l,3),g=tn(y.length),v=0,b=f||En,_=t?b(u,g):n||a?b(u,0):void 0;g>v;v++)if((s||v in y)&&(d=m(p=y[v],v,h),e))if(t)_[v]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return v;case 2:Gs.call(_,p)}else switch(e){case 4:return!1;case 7:Gs.call(_,p)}return i?-1:r||o?o:_}},Xs={forEach:Js(0),map:Js(1),filter:Js(2),some:Js(3),every:Js(4),find:Js(5),findIndex:Js(6),filterReject:Js(7)},Ys=vt("unscopables"),Ks=Array.prototype;null==Ks[Ys]&&Nt.f(Ks,Ys,{configurable:!0,value:Yn(null)});var Zs=Xs.find,Qs="find",eu=!0;Qs in[]&&Array(1).find((function(){eu=!1})),xn({target:"Array",proto:!0,forced:eu},{find:function(e){return Zs(this,e,arguments.length>1?arguments[1]:void 0)}}),function(e){Ks[Ys][e]=!0}(Qs);var tu=Xs.map;xn({target:"Array",proto:!0,forced:!An("map")},{map:function(e){return tu(this,e,arguments.length>1?arguments[1]:void 0)}});var nu=':host {\n margin: 0;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n font-size: 14px;\n font-weight: 300;\n line-height: 1.5;\n color: #000;\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }\n\nbody {\n overflow: scroll; }\n\n.utu-section {\n border-bottom: 1px solid rgba(0, 0, 0, 0.15);\n background: #fff;\n padding: 18px; }\n\nh3 {\n text-transform: capitalize;\n font-weight: 500;\n font-size: 14px; }\n\n.btn {\n background-color: #FFDD33;\n padding: 12px;\n border-radius: 10px;\n border: none;\n font-size: 14px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }\n\n.icon-btn {\n border: none;\n background: none;\n padding: 0;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n font-weight: 500;\n font-size: 14px; }\n .icon-btn svg {\n width: 60px;\n height: 60px; }\n\ntextarea {\n resize: vertical;\n min-height: 8rem;\n border-radius: 10px;\n border: none;\n background-color: rgba(255, 221, 51, 0.15);\n padding: 16px;\n font-weight: 300; }\n\n.error {\n color: #e80054; }\n\n.logo-position {\n position: absolute;\n top: -1rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem; }\n .logo-position-video {\n position: absolute;\n top: 41.2rem;\n left: 21rem;\n z-index: 2;\n width: 0.5rem; }\n .logo-position-player {\n position: absolute;\n bottom: -0.5rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem; }\n\n.logo-section {\n position: relative; }\n\n.logo-size {\n width: 3rem; }\n\n.utu-recommendation {\n height: 300px; }\n .utu-recommendation .list-unstyled {\n padding-left: 0;\n list-style: none; }\n .utu-recommendation .summary-image-list {\n padding-left: 20px;\n margin-bottom: 2rem; }\n .utu-recommendation .summary-image-list .summary-image-item {\n height: 60px;\n margin-left: -20px;\n height: 6rem;\n border: 4px solid #FFDD33; }\n\n.border-component-top {\n border: 0.1px #9b9898 solid;\n border-top-left-radius: 2%;\n border-top-right-radius: 2%; }\n';function ru(e){if(e&&e.current){var t=e.current.getRootNode().host.closest(xs);if(t)return t.shadowRoot.firstChild}return null}function ou(e,t){var n=ru(e);return n&&n.data?n.data.find((function(e){return e.entity.uuid===t})):null}Ws(nu);var iu=':host {\n margin: 0;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n font-size: 14px;\n font-weight: 300;\n line-height: 1.5;\n color: #000;\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }\n\nbody {\n overflow: scroll; }\n\n.utu-section {\n border-bottom: 1px solid rgba(0, 0, 0, 0.15);\n background: #fff;\n padding: 18px; }\n\nh3 {\n text-transform: capitalize;\n font-weight: 500;\n font-size: 14px; }\n\n.btn {\n background-color: #FFDD33;\n padding: 12px;\n border-radius: 10px;\n border: none;\n font-size: 14px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }\n\n.icon-btn {\n border: none;\n background: none;\n padding: 0;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n font-weight: 500;\n font-size: 14px; }\n .icon-btn svg {\n width: 60px;\n height: 60px; }\n\ntextarea {\n resize: vertical;\n min-height: 8rem;\n border-radius: 10px;\n border: none;\n background-color: rgba(255, 221, 51, 0.15);\n padding: 16px;\n font-weight: 300; }\n\n.error {\n color: #e80054; }\n\n.logo-position {\n position: absolute;\n top: -1rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem; }\n .logo-position-video {\n position: absolute;\n top: 41.2rem;\n left: 21rem;\n z-index: 2;\n width: 0.5rem; }\n .logo-position-player {\n position: absolute;\n bottom: -0.5rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem; }\n\n.logo-section {\n position: relative; }\n\n.logo-size {\n width: 3rem; }\n\n.utu-feedback-form {\n max-height: 60rem;\n min-width: 20rem;\n width: 27rem;\n border-bottom: 13px #FFDD33 solid;\n border-bottom-left-radius: 2%;\n border-bottom-right-radius: 2%;\n position: relative;\n z-index: 1; }\n\n.utu-feedback-form-popup {\n height: 7rem;\n border-left: 0.1px #9b9898 solid;\n border-right: 0.1px #9b9898 solid; }\n';Ws(iu);var au=':host {\n margin: 0;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n font-size: 14px;\n font-weight: 300;\n line-height: 1.5;\n color: #000;\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }\n\nbody {\n overflow: scroll; }\n\n.utu-section {\n border-bottom: 1px solid rgba(0, 0, 0, 0.15);\n background: #fff;\n padding: 18px; }\n\nh3 {\n text-transform: capitalize;\n font-weight: 500;\n font-size: 14px; }\n\n.btn {\n background-color: #FFDD33;\n padding: 12px;\n border-radius: 10px;\n border: none;\n font-size: 14px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }\n\n.icon-btn {\n border: none;\n background: none;\n padding: 0;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n font-weight: 500;\n font-size: 14px; }\n .icon-btn svg {\n width: 60px;\n height: 60px; }\n\ntextarea {\n resize: vertical;\n min-height: 8rem;\n border-radius: 10px;\n border: none;\n background-color: rgba(255, 221, 51, 0.15);\n padding: 16px;\n font-weight: 300; }\n\n.error {\n color: #e80054; }\n\n.logo-position {\n position: absolute;\n top: -1rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem; }\n .logo-position-video {\n position: absolute;\n top: 41.2rem;\n left: 21rem;\n z-index: 2;\n width: 0.5rem; }\n .logo-position-player {\n position: absolute;\n bottom: -0.5rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem; }\n\n.logo-section {\n position: relative; }\n\n.logo-size {\n width: 3rem; }\n\nimg.badge-img {\n height: 3.5rem;\n width: 3.5rem; }\n\n.button {\n cursor: pointer; }\n\n.button:hover {\n background-color: #fff; }\n\n.button:active {\n transform: translateY(4px); }\n\n.btn:disabled {\n opacity: 0.1; }\n\n.badge-disable {\n height: 50px;\n width: 50px;\n opacity: 0.1; }\n\n.badge-item-text {\n justify-content: center;\n align-items: center;\n width: 4rem; }\n\n.badge-text {\n font-size: 0.7rem; }\n\n.badge-img-container {\n width: 9.5rem;\n height: 6rem; }\n\n.badge-set-container {\n padding-top: 1rem;\n width: 10rem;\n display: flex;\n flex-direction: column;\n align-items: center; }\n';Ws(au);var su=["id","badges"];function uu(e){var t=e.id,n=e.badges,r=Oe(e,su),o=Ee(re(""),2),i=o[0],a=o[1],s=function(e){return i===e},u=Ts(Vs(r,Ss).apiUrl,r["source-uuid"],r["target-uuid"],r["transaction-id"]).sendFeedback;return p(qs,{style:au},p("section",null,p("div",{key:t,className:"badge-set-containe md:mt-4 unset-padding"},p("h3",{className:"text-left"},t),p("div",{className:"d-flex justify-content-around badge-img-container unset-padding"},n.map((function(e){var n=e.qualifier,r=e.data;return p("button",{className:s(n)?"badge-disable icon-btn":"badge-img icon-btn",type:"button",onClick:function(){var e=s(n)?"neutral":n;u({badges:Se({},t,e)}),a(e)}},p("div",{className:"badge-item-text text-center"},p("img",{src:r.image,className:"badge-img",alt:"badges"})))}))))))}function cu(e){return p(qs,{className:"d-flex justify-content-around pt-5 responsive",excludeBootstrap:!0,excludeFonts:!0},function(e){var t=Ds().accessToken,n=Ee(re([]),2),r=n[0],o=n[1];return ie((function(){function n(){return(n=xe(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ao.get("".concat(e).concat(Ns),Ls(t));case 2:r=n.sent,o(r.data.result);case 4:case"end":return n.stop()}}),n)})))).apply(this,arguments)}!function(){n.apply(this,arguments)}()}),[o,e,t]),{badgeSets:r}}(Vs(e,Ss).apiUrl).badgeSets.map((function(t){var n=t.id,r=t.badges;return p(uu,je({},e,{id:n,badges:r}))})))}function lu(e,t){for(var n in t)e[n]=t[n];return e}function fu(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function pu(e){this.props=e}function du(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:fu(this.props,e)}function r(t){return this.shouldComponentUpdate=n,p(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(pu.prototype=new m).isPureReactComponent=!0,pu.prototype.shouldComponentUpdate=function(e,t){return fu(this.props,e)||fu(this.state,t)};var hu=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),hu&&hu(e)};var yu="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function mu(e){function t(t,n){var r=lu({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=yu,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var gu=function(e,t){return null==e?null:S(S(e).map(t))},vu={map:gu,forEach:gu,count:function(e){return e?S(e).length:0},only:function(e){var t=S(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:S},bu=t.__e;t.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);bu(e,t,n)};var _u=t.unmount;function wu(){this.__u=0,this.t=null,this.__b=null}function xu(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Su(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return p(n,o)}return o.displayName="Lazy",o.__f=!0,o}function ju(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),_u&&_u(e)},(wu.prototype=new m).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=xu(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},u=!0===t.__h;r.__u++||u||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(a,a)},wu.prototype.componentWillUnmount=function(){this.t=[]},wu.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=lu({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__e&&p(y,null,e.fallback);return o&&(o.__h=null),[p(y,null,t.__e?null:e.children),o]};var Ou=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Eu(e){return this.getChildContext=function(){return e.context},e.children}function ku(e){var t=this,n=e.i;t.componentWillUnmount=function(){B(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),B(p(Eu,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Au(e,t){return p(ku,{__v:e,i:t})}(ju.prototype=new m).__e=function(e){var t=this,n=xu(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Ou(t,e,r)):o()};n?n(i):i()}},ju.prototype.render=function(e){this.u=null,this.o=new Map;var t=S(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ju.prototype.componentDidUpdate=ju.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Ou(e,n,t)}))};var Cu="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Nu=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Pu=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function Ru(e,t,n){return null==t.__k&&(t.textContent=""),B(e,t),"function"==typeof n&&n(),e?e.__c:null}function Uu(e,t,n){return F(e,t),"function"==typeof n&&n(),e?e.__c:null}m.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(m.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Bu=t.event;function Fu(){}function Iu(){return this.cancelBubble}function zu(){return this.defaultPrevented}t.event=function(e){return Bu&&(e=Bu(e)),e.persist=Fu,e.isPropagationStopped=Iu,e.isDefaultPrevented=zu,e.nativeEvent=e};var Du,Tu={configurable:!0,get:function(){return this.class}},Mu=t.vnode;t.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){for(var o in r={},n){var i=n[o];"value"===o&&"defaultValue"in n&&null==i||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!Pu(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():Nu.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[o]=i)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=S(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=S(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r}t&&n.class!=n.className&&(Tu.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Tu)),e.$$typeof=Cu,Mu&&Mu(e)};var Lu=t.__r;t.__r=function(e){Lu&&Lu(e),Du=e.__c};var Hu={ReactCurrentDispatcher:{current:{readContext:function(e){return Du.__n[e.__c].props.value}}}};function Vu(e){return p.bind(null,e)}function qu(e){return!!e&&e.$$typeof===Cu}function Wu(e){return qu(e)?I.apply(null,arguments):e}function $u(e){return!!e.__k&&(B(null,e),!0)}function Gu(e){return e&&(e.base||1===e.nodeType&&e)||null}var Ju=function(e,t){return e(t)},Xu=function(e,t){return e(t)},Yu=y,Ku={useState:re,useReducer:oe,useEffect:ie,useLayoutEffect:ae,useRef:se,useImperativeHandle:ue,useMemo:ce,useCallback:le,useContext:fe,useDebugValue:pe,version:"17.0.2",Children:vu,render:Ru,hydrate:Uu,unmountComponentAtNode:$u,createPortal:Au,createElement:p,createContext:z,createFactory:Vu,cloneElement:Wu,createRef:h,Fragment:y,isValidElement:qu,findDOMNode:Gu,Component:m,PureComponent:pu,memo:du,forwardRef:mu,flushSync:Xu,unstable_batchedUpdates:Ju,StrictMode:y,Suspense:wu,SuspenseList:ju,lazy:Su,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Hu},Zu=Object.freeze({__proto__:null,default:Ku,version:"17.0.2",Children:vu,render:Ru,hydrate:Uu,unmountComponentAtNode:$u,createPortal:Au,createFactory:Vu,cloneElement:Wu,isValidElement:qu,findDOMNode:Gu,PureComponent:pu,memo:du,forwardRef:mu,flushSync:Xu,unstable_batchedUpdates:Ju,StrictMode:Yu,Suspense:wu,SuspenseList:ju,lazy:Su,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Hu,createElement:p,createContext:z,createRef:h,Fragment:y,Component:m,useState:re,useReducer:oe,useEffect:ie,useLayoutEffect:ae,useRef:se,useImperativeHandle:ue,useMemo:ce,useCallback:le,useContext:fe,useDebugValue:pe,useErrorBoundary:function(e){var t=ne($++,10),n=re();return t.__=e,G.componentDidCatch||(G.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}}),Qu=e=>e instanceof HTMLElement;const ec="blur",tc="change",nc="input",rc="onBlur",oc="onChange",ic="onSubmit",ac="onTouched",sc="all",uc="undefined",cc="max",lc="min",fc="maxLength",pc="minLength",dc="pattern",hc="required",yc="validate";var mc=e=>null==e;const gc=e=>"object"==typeof e;var vc=e=>!mc(e)&&!Array.isArray(e)&&gc(e)&&!(e instanceof Date),bc=e=>/^\w*$/.test(e),_c=e=>e.filter(Boolean),wc=e=>_c(e.replace(/["|']/g,"").replace(/\[/g,".").replace(/\]/g,"").split("."));function xc(e,t,n){let r=-1;const o=bc(t)?[t]:wc(t),i=o.length,a=i-1;for(;++r<i;){const t=o[r];let i=n;if(r!==a){const n=e[t];i=vc(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}e[t]=i,e=e[t]}return e}var Sc=(e,t={})=>{for(const n in e)bc(n)?t[n]=e[n]:xc(t,n,e[n]);return t},jc=e=>void 0===e,Oc=(e={},t,n)=>{const r=_c(t.split(/[,[\].]+?/)).reduce(((e,t)=>mc(e)?e:e[t]),e);return jc(r)||r===e?jc(e[t])?n:e[t]:r},Ec=(e,t)=>{Qu(e)&&e.removeEventListener&&(e.removeEventListener(nc,t),e.removeEventListener(tc,t),e.removeEventListener(ec,t))};const kc={isValid:!1,value:null};var Ac=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.ref.checked?{isValid:!0,value:t.ref.value}:e),kc):kc,Cc=e=>"radio"===e.type,Nc=e=>"file"===e.type,Pc=e=>"checkbox"===e.type,Rc=e=>"select-multiple"===e.type;const Uc={value:!1,isValid:!1},Bc={value:!0,isValid:!0};var Fc=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.ref.checked)).map((({ref:{value:e}})=>e));return{value:t,isValid:!!t.length}}const{checked:t,value:n,attributes:r}=e[0].ref;return t?r&&!jc(r.value)?jc(n)||""===n?Bc:{value:n,isValid:!0}:Bc:Uc}return Uc};function Ic(e,t,n,r,o){const i=e.current[t];if(i){const{ref:{value:e,disabled:t},ref:n,valueAsNumber:s,valueAsDate:u,setValueAs:c}=i;if(t&&r)return;return Nc(n)?n.files:Cc(n)?Ac(i.options).value:Rc(n)?(a=n.options,[...a].filter((({selected:e})=>e)).map((({value:e})=>e))):Pc(n)?Fc(i.options).value:o?e:s?""===e?NaN:+e:u?n.valueAsDate:c?c(e):e}var a;if(n)return Oc(n.current,t)}function zc(e){return!e||e instanceof HTMLElement&&e.nodeType!==Node.DOCUMENT_NODE&&zc(e.parentNode)}var Dc=e=>vc(e)&&!Object.keys(e).length,Tc=e=>"boolean"==typeof e;function Mc(e,t){const n=bc(t)?[t]:wc(t),r=1==n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=jc(e)?r++:e[t[r++]];return e}(e,n),o=n[n.length-1];let i;r&&delete r[o];for(let t=0;t<n.slice(0,-1).length;t++){let r,o=-1;const a=n.slice(0,-(t+1)),s=a.length-1;for(t>0&&(i=e);++o<a.length;){const t=a[o];r=r?r[t]:e[t],s===o&&(vc(r)&&Dc(r)||Array.isArray(r)&&!r.filter((e=>vc(e)&&!Dc(e)||Tc(e))).length)&&(i?delete i[t]:delete e[t]),i=r}}return e}const Lc=(e,t)=>e&&e.ref===t;var Hc=e=>mc(e)||!gc(e);function Vc(e,t){if(Hc(e)||Hc(t))return t;for(const n in t){const r=e[n],o=t[n];try{e[n]=vc(r)&&vc(o)||Array.isArray(r)&&Array.isArray(o)?Vc(r,o):o}catch(e){}}return e}function qc(e,t,n){if(Hc(e)||Hc(t)||e instanceof Date||t instanceof Date)return e===t;if(!qu(e)){const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(const o of r){const r=e[o];if(!n||"ref"!==o){const e=t[o];if((vc(r)||Array.isArray(r))&&(vc(e)||Array.isArray(e))?!qc(r,e,n):r!==e)return!1}}}return!0}function Wc(e,t,n,r,o){let i=-1;for(;++i<e.length;){for(const r in e[i])Array.isArray(e[i][r])?(!n[i]&&(n[i]={}),n[i][r]=[],Wc(e[i][r],Oc(t[i]||{},r,[]),n[i][r],n[i],r)):qc(Oc(t[i]||{},r),e[i][r])?xc(n[i]||{},r):n[i]=Object.assign(Object.assign({},n[i]),{[r]:!0});r&&!n.length&&delete r[o]}return n}var $c=e=>"string"==typeof e,Gc=(e,t,n,r,o)=>{const i={};for(const t in e.current)(jc(o)||($c(o)?t.startsWith(o):Array.isArray(o)&&o.find((e=>t.startsWith(e)))))&&(i[t]=Ic(e,t,void 0,r));return n?Sc(i):Vc(t,Sc(i))},Jc=e=>e instanceof RegExp,Xc=e=>vc(e)&&!Jc(e)?e:{value:e,message:""},Yc=e=>"function"==typeof e,Kc=e=>$c(e)||qu(e);function Zc(e,t,n="validate"){if(Kc(e)||Tc(e)&&!e)return{type:n,message:Kc(e)?e:"",ref:t}}var Qc=(e,t,n,r,o)=>t?Object.assign(Object.assign({},n[e]),{types:Object.assign(Object.assign({},n[e]&&n[e].types?n[e].types:{}),{[r]:o||!0})}):{},el=async(e,t,{ref:n,ref:{value:r},options:o,required:i,maxLength:a,minLength:s,min:u,max:c,pattern:l,validate:f},p)=>{const d=n.name,h={},y=Cc(n),m=Pc(n),g=y||m,v=""===r,b=Qc.bind(null,d,t,h),_=(e,t,r,o=fc,i=pc)=>{const a=e?t:r;h[d]=Object.assign({type:e?o:i,message:a,ref:n},b(e?o:i,a))};if(i&&(!y&&!m&&(v||mc(r))||Tc(r)&&!r||m&&!Fc(o).isValid||y&&!Ac(o).isValid)){const{value:r,message:o}=Kc(i)?{value:!!i,message:i}:Xc(i);if(r&&(h[d]=Object.assign({type:hc,message:o,ref:g?((e.current[d].options||[])[0]||{}).ref:n},b(hc,o)),!t))return h}if(!(mc(u)&&mc(c)||""===r)){let e,o;const i=Xc(c),a=Xc(u);if(isNaN(r)){const t=n.valueAsDate||new Date(r);$c(i.value)&&(e=t>new Date(i.value)),$c(a.value)&&(o=t<new Date(a.value))}else{const t=n.valueAsNumber||parseFloat(r);mc(i.value)||(e=t>i.value),mc(a.value)||(o=t<a.value)}if((e||o)&&(_(!!e,i.message,a.message,cc,lc),!t))return h}if($c(r)&&!v&&(a||s)){const e=Xc(a),n=Xc(s),o=!mc(e.value)&&r.length>e.value,i=!mc(n.value)&&r.length<n.value;if((o||i)&&(_(o,e.message,n.message),!t))return h}if($c(r)&&l&&!v){const{value:e,message:o}=Xc(l);if(Jc(e)&&!e.test(r)&&(h[d]=Object.assign({type:dc,message:o,ref:n},b(dc,o)),!t))return h}if(f){const r=Ic(e,d,p,!1,!0),i=g&&o?o[0].ref:n;if(Yc(f)){const e=Zc(await f(r),i);if(e&&(h[d]=Object.assign(Object.assign({},e),b(yc,e.message)),!t))return h}else if(vc(f)){let e={};for(const[n,o]of Object.entries(f)){if(!Dc(e)&&!t)break;const a=Zc(await o(r),i,n);a&&(e=Object.assign(Object.assign({},a),b(n,a.message)),t&&(h[d]=e))}if(!Dc(e)&&(h[d]=Object.assign({ref:i},e),!t))return h}}return h};const tl=(e,t,n=[])=>{for(const r in t){const o=e+(vc(t)?`.${r}`:`[${r}]`);Hc(t[r])?n.push(o):tl(o,t[r],n)}return n};var nl=(e,t,n,r,o)=>{let i;return n.add(t),Dc(e)||(i=Oc(e,t),(vc(i)||Array.isArray(i))&&tl(t,i).forEach((e=>n.add(e)))),jc(i)?o?r:Oc(r,t):i},rl=e=>e.substring(0,e.indexOf("["));var ol=(e,t)=>[...e].some((e=>((e,t)=>RegExp(`^${t}([|.)\\d+`.replace(/\[/g,"\\[").replace(/\]/g,"\\]")).test(e))(t,e)));var il=typeof window!==uc&&typeof document!==uc;function al(e){var t;let n;if(Hc(e)||il&&(e instanceof File||Qu(e)))return e;if(!["Set","Map","Object","Date","Array"].includes(null===(t=e.constructor)||void 0===t?void 0:t.name))return e;if(e instanceof Date)return n=new Date(e.getTime()),n;if(e instanceof Set){n=new Set;for(const t of e)n.add(t);return n}if(e instanceof Map){n=new Map;for(const t of e.keys())n.set(t,al(e.get(t)));return n}n=Array.isArray(e)?[]:{};for(const t in e)n[t]=al(e[t]);return n}var sl=e=>({isOnSubmit:!e||e===ic,isOnBlur:e===rc,isOnChange:e===oc,isOnAll:e===sc,isOnTouch:e===ac}),ul=e=>Cc(e)||Pc(e);const cl=typeof window===uc,ll=il?"Proxy"in window:typeof Proxy!==uc;function fl({mode:e=ic,reValidateMode:t=oc,resolver:n,context:r,defaultValues:o={},shouldFocusError:i=!0,shouldUnregister:a=!0,criteriaMode:s}={}){const u=se({}),c=se({}),l=se({}),f=se(new Set),p=se({}),d=se({}),h=se({}),y=se({}),m=se(o),g=se(!1),v=se(!1),b=se(),_=se({}),w=se({}),x=se(r),S=se(n),j=se(new Set),O=se(sl(e)),{isOnSubmit:E,isOnTouch:k}=O.current,A=s===sc,[C,N]=re({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touched:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!E,errors:{}}),P=se({isDirty:!ll,dirtyFields:!ll,touched:!ll||k,isValidating:!ll,isSubmitting:!ll,isValid:!ll}),R=se(C),U=se(),{isOnBlur:B,isOnChange:F}=se(sl(t)).current;x.current=r,S.current=n,R.current=C,_.current=a?{}:Dc(_.current)?al(o):_.current;const I=le(((e={})=>{g.current||(R.current=Object.assign(Object.assign({},R.current),e),N(R.current))}),[]),z=()=>P.current.isValidating&&I({isValidating:!0}),D=le(((e,t,n=!1,r={},o)=>{let i=n||(({errors:e,name:t,error:n,validFields:r,fieldsWithValidation:o})=>{const i=jc(n),a=Oc(e,t);return i&&!!a||!i&&!qc(a,n,!0)||i&&Oc(o,t)&&!Oc(r,t)})({errors:R.current.errors,error:t,name:e,validFields:y.current,fieldsWithValidation:h.current});const a=Oc(R.current.errors,e);t?(Mc(y.current,e),i=i||!a||!qc(a,t,!0),xc(R.current.errors,e,t)):((Oc(h.current,e)||S.current)&&(xc(y.current,e,!0),i=i||a),Mc(R.current.errors,e)),(i&&!mc(n)||!Dc(r)||P.current.isValidating)&&I(Object.assign(Object.assign(Object.assign({},r),S.current?{isValid:!!o}:{}),{isValidating:!1}))}),[]),T=le(((e,t)=>{const{ref:n,options:r}=u.current[e],o=il&&Qu(n)&&mc(t)?"":t;Cc(n)?(r||[]).forEach((({ref:e})=>e.checked=e.value===o)):Nc(n)&&!$c(o)?n.files=o:Rc(n)?[...n.options].forEach((e=>e.selected=o.includes(e.value))):Pc(n)&&r?r.length>1?r.forEach((({ref:e})=>e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value)):r[0].ref.checked=!!o:n.value=o}),[]),M=le(((e,t)=>{if(P.current.isDirty){const n=Y();return e&&t&&xc(n,e,t),!qc(n,m.current)}return!1}),[]),L=le(((e,t=!0)=>{if(P.current.isDirty||P.current.dirtyFields){const n=!qc(Oc(m.current,e),Ic(u,e,_)),r=Oc(R.current.dirtyFields,e),o=R.current.isDirty;n?xc(R.current.dirtyFields,e,!0):Mc(R.current.dirtyFields,e);const i={isDirty:M(),dirtyFields:R.current.dirtyFields},a=P.current.isDirty&&o!==i.isDirty||P.current.dirtyFields&&r!==Oc(R.current.dirtyFields,e);return a&&t&&I(i),a?i:{}}return{}}),[]),H=le((async(e,t)=>{if(!u.current[e])return console.warn("📋 Field is missing with `name` attribute: ",e),!1;const n=(await el(u,A,u.current[e],_))[e];return D(e,n,t),jc(n)}),[D,A]),V=le((async e=>{const{errors:t}=await S.current(Y(),x.current,A),n=R.current.isValid;if(Array.isArray(e)){const n=e.map((e=>{const n=Oc(t,e);return n?xc(R.current.errors,e,n):Mc(R.current.errors,e),!n})).every(Boolean);return I({isValid:Dc(t),isValidating:!1}),n}{const r=Oc(t,e);return D(e,r,n!==Dc(t),{},Dc(t)),!r}}),[D,A]),q=le((async e=>{const t=e||Object.keys(u.current);if(z(),S.current)return V(t);if(Array.isArray(t)){!e&&(R.current.errors={});const n=await Promise.all(t.map((async e=>await H(e,null))));return I({isValidating:!1}),n.every(Boolean)}return await H(t)}),[V,H]),W=le(((e,t,{shouldDirty:n,shouldValidate:r})=>{const o={};xc(o,e,t);for(const i of tl(e,t))u.current[i]&&(T(i,Oc(o,i)),n&&L(i),r&&q(i))}),[q,T,L]),$=le(((e,t,n)=>{if(!a&&!Hc(t)&&xc(_.current,e,Array.isArray(t)?[...t]:Object.assign({},t)),u.current[e])T(e,t),n.shouldDirty&&L(e),n.shouldValidate&&q(e);else if(!Hc(t)&&(W(e,t,n),j.current.has(e))){const r=rl(e)||e;xc(c.current,e,t),w.current[r]({[r]:Oc(c.current,r)}),(P.current.isDirty||P.current.dirtyFields)&&n.shouldDirty&&(xc(R.current.dirtyFields,e,((e,t,n)=>Vc(Wc(e,t,n.slice(0,e.length)),Wc(t,e,n.slice(0,e.length))))(t,Oc(m.current,e,[]),Oc(R.current.dirtyFields,e,[]))),I({isDirty:!qc(Object.assign(Object.assign({},Y()),{[e]:t}),m.current)}))}!a&&xc(_.current,e,t)}),[L,T,W]),G=e=>v.current||f.current.has(e)||f.current.has((e.match(/\w+/)||[])[0]),J=e=>{let t=!0;if(!Dc(p.current))for(const n in p.current)e&&p.current[n].size&&!p.current[n].has(e)&&!p.current[n].has(rl(e))||(d.current[n](),t=!1);return t};function X(e){if(!a){let t=al(e);for(const e of j.current)bc(e)&&!t[e]&&(t=Object.assign(Object.assign({},t),{[e]:[]}));return t}return e}function Y(e){if($c(e))return Ic(u,e,_);if(Array.isArray(e)){const t={};for(const n of e)xc(t,n,Ic(u,n,_));return t}return X(Gc(u,al(_.current),a))}b.current=b.current?b.current:async({type:e,target:t})=>{let n=t.name;const r=u.current[n];let o,i;if(r){const s=e===ec,c=(({isOnBlur:e,isOnChange:t,isOnTouch:n,isTouched:r,isReValidateOnBlur:o,isReValidateOnChange:i,isBlurEvent:a,isSubmitted:s,isOnAll:u})=>!u&&(!s&&n?!(r||a):(s?o:e)?!a:!(s?i:t)||a))(Object.assign({isBlurEvent:s,isReValidateOnChange:F,isReValidateOnBlur:B,isTouched:!!Oc(R.current.touched,n),isSubmitted:R.current.isSubmitted},O.current));let l=L(n,!1),f=!Dc(l)||!s&&G(n);if(s&&!Oc(R.current.touched,n)&&P.current.touched&&(xc(R.current.touched,n,!0),l=Object.assign(Object.assign({},l),{touched:R.current.touched})),!a&&Pc(t)&&xc(_.current,n,Ic(u,n)),c)return!s&&J(n),(!Dc(l)||f&&Dc(l))&&I(l);if(z(),S.current){const{errors:e}=await S.current(Y(),x.current,A),r=R.current.isValid;if(o=Oc(e,n),Pc(t)&&!o&&S.current){const t=rl(n),r=Oc(e,t,{});r.type&&r.message&&(o=r),t&&(r||Oc(R.current.errors,t))&&(n=t)}i=Dc(e),r!==i&&(f=!0)}else o=(await el(u,A,r,_))[n];!s&&J(n),D(n,o,f,l,i)}};const K=le((async(e={})=>{const t=Dc(u.current)?m.current:{},{errors:n}=await S.current(Object.assign(Object.assign(Object.assign({},t),Y()),e),x.current,A)||{},r=Dc(n);R.current.isValid!==r&&I({isValid:r})}),[A]),Z=le(((e,t)=>{!function(e,t,n,r,o,i){const{ref:a,ref:{name:s}}=n,u=e.current[s];if(!o){const t=Ic(e,s,r);!jc(t)&&xc(r.current,s,t)}a.type&&u?Cc(a)||Pc(a)?Array.isArray(u.options)&&u.options.length?(_c(u.options).forEach(((e={},n)=>{(zc(e.ref)&&Lc(e,e.ref)||i)&&(Ec(e.ref,t),Mc(u.options,`[${n}]`))})),u.options&&!_c(u.options).length&&delete e.current[s]):delete e.current[s]:(zc(a)&&Lc(u,a)||i)&&(Ec(a,t),delete e.current[s]):delete e.current[s]}(u,b.current,e,_,a,t),a&&(Mc(y.current,e.ref.name),Mc(h.current,e.ref.name))}),[a]),Q=le((e=>{if(v.current)I();else{for(const t of f.current)if(t.startsWith(e)){I();break}J(e)}}),[]),ee=le(((e,t)=>{e&&(Z(e,t),a&&!_c(e.options||[]).length&&(Mc(R.current.errors,e.ref.name),xc(R.current.dirtyFields,e.ref.name,!0),I({isDirty:M()}),P.current.isValid&&S.current&&K(),Q(e.ref.name)))}),[K,Z]);const te=le(((e,t,n)=>{const r=n?p.current[n]:f.current;let o=Gc(u,al(_.current),a,!1,e);if($c(e)){const n=rl(e)||e;return j.current.has(n)&&(o=Object.assign(Object.assign({},l.current),o)),nl(o,e,r,jc(Oc(m.current,e))?t:Oc(m.current,e),!0)}const i=jc(t)?m.current:t;return Array.isArray(e)?e.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:nl(o,t,r,i)})),{}):(v.current=jc(n),Sc(!Dc(o)&&o||i))}),[]);function ne(e,t={}){if(!e.name)return console.warn("📋 Field is missing `name` attribute",e,"https://react-hook-form.com/api#useForm");if(j.current.has(e.name.split(/\[\d+\]$/)[0])&&!RegExp(`^${e.name.split(/\[\d+\]$/)[0]}[\\d+].\\w+`.replace(/\[/g,"\\[").replace(/\]/g,"\\]")).test(e.name))return console.warn('📋 `name` prop should be in object shape: name="test[index].name"',e,"https://react-hook-form.com/api#useFieldArray");const{name:n,type:r,value:o}=e,i=Object.assign({ref:e},t),s=u.current,c=ul(e),l=ol(j.current,n),f=t=>il&&(!Qu(e)||t===e);let p,d=s[n],g=!0;if(d&&(c?Array.isArray(d.options)&&_c(d.options).find((e=>o===e.ref.value&&f(e.ref))):f(d.ref)))return void(s[n]=Object.assign(Object.assign({},d),t));d=r?c?Object.assign({options:[..._c(d&&d.options||[]),{ref:e}],ref:{type:r,name:n}},t):Object.assign({},i):i,s[n]=d;const v=jc(Oc(_.current,n));Dc(m.current)&&v||(p=Oc(v?m.current:_.current,n),g=jc(p),g||l||T(n,p)),Dc(t)||(xc(h.current,n,!0),!E&&P.current.isValid&&el(u,A,d,_).then((e=>{const t=R.current.isValid;Dc(e)?xc(y.current,n,!0):Mc(y.current,n),t!==Dc(e)&&I()}))),!a||l&&g||!l&&Mc(R.current.dirtyFields,n),r&&function({ref:e},t,n){Qu(e)&&n&&(e.addEventListener(t?tc:nc,n),e.addEventListener(ec,n))}(c&&d.options?d.options[d.options.length-1]:d,c||"select-one"===e.type,b.current)}const oe=le(((e,t)=>async n=>{n&&n.preventDefault&&(n.preventDefault(),n.persist());let r={},o=X(Gc(u,al(_.current),a,!0));P.current.isSubmitting&&I({isSubmitting:!0});try{if(S.current){const{errors:e,values:t}=await S.current(o,x.current,A);R.current.errors=r=e,o=t}else for(const e of Object.values(u.current))if(e){const{name:t}=e.ref,n=await el(u,A,e,_);n[t]?(xc(r,t,n[t]),Mc(y.current,t)):Oc(h.current,t)&&(Mc(R.current.errors,t),xc(y.current,t,!0))}Dc(r)&&Object.keys(R.current.errors).every((e=>e in u.current))?(I({errors:{},isSubmitting:!0}),await e(o,n)):(R.current.errors=Object.assign(Object.assign({},R.current.errors),r),t&&await t(R.current.errors,n),i&&((e,t)=>{for(const n in e)if(Oc(t,n)){const t=e[n];if(t){if(t.ref.focus&&jc(t.ref.focus()))break;if(t.options){t.options[0].ref.focus();break}}}})(u.current,R.current.errors))}finally{R.current.isSubmitting=!1,I({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Dc(R.current.errors),submitCount:R.current.submitCount+1})}}),[i,A]);ie((()=>{n&&P.current.isValid&&K(),U.current=U.current||!il?U.current:function(e,t){const n=new MutationObserver((()=>{for(const n of Object.values(e.current))if(n&&n.options)for(const e of n.options)e&&e.ref&&zc(e.ref)&&t(n);else n&&zc(n.ref)&&t(n)}));return n.observe(window.document,{childList:!0,subtree:!0}),n}(u,ee)}),[ee,m.current]),ie((()=>()=>{U.current&&U.current.disconnect(),g.current=!0}),[]),!n&&P.current.isValid&&(C.isValid=qc(y.current,h.current)&&Dc(R.current.errors));const ae={trigger:q,setValue:le((function(e,t,n){$(e,t,n||{}),G(e)&&I(),J(e)}),[$,q]),getValues:le(Y,[]),register:le((function(e,t){if(!cl)if($c(e))ne({name:e},t);else{if(!vc(e)||!("name"in e))return t=>t&&ne(t,e);ne(e,t)}}),[m.current]),unregister:le((function(e){for(const t of Array.isArray(e)?e:[e])ee(u.current[t],!0)}),[]),formState:ll?new Proxy(C,{get:(e,t)=>{if("isValid"===t&&E&&console.warn("📋 `formState.isValid` is applicable with `onTouched`, `onChange` or `onBlur` mode. https://react-hook-form.com/api#formState"),t in e)return P.current[t]=!0,e[t]}}):C},ue=ce((()=>Object.assign({isFormDirty:M,updateWatchedValue:Q,shouldUnregister:a,updateFormState:I,removeFieldEventListener:Z,watchInternal:te,mode:O.current,reValidateMode:{isReValidateOnBlur:B,isReValidateOnChange:F},validateResolver:n?K:void 0,fieldsRef:u,resetFieldArrayFunctionRef:w,useWatchFieldsRef:p,useWatchRenderFunctionsRef:d,fieldArrayDefaultValuesRef:c,validFieldsRef:y,fieldsWithValidationRef:h,fieldArrayNamesRef:j,readFormStateRef:P,formStateRef:R,defaultValuesRef:m,shallowFieldsStateRef:_,fieldArrayValuesRef:l},ae)),[m.current,Q,a,Z,te]);return Object.assign({watch:function(e,t){return te(e,t)},control:ue,handleSubmit:oe,reset:le(((e,t={})=>{if(il)for(const e of Object.values(u.current))if(e){const{ref:t,options:n}=e,r=ul(t)&&Array.isArray(n)?n[0].ref:t;if(Qu(r))try{r.closest("form").reset();break}catch(e){}}u.current={},m.current=Object.assign({},e||m.current),e&&J(""),Object.values(w.current).forEach((e=>Yc(e)&&e())),_.current=a?{}:al(e||m.current),(({errors:e,isDirty:t,isSubmitted:n,touched:r,isValid:o,submitCount:i,dirtyFields:a})=>{o||(y.current={},h.current={}),c.current={},f.current=new Set,v.current=!1,I({submitCount:i?R.current.submitCount:0,isDirty:!!t&&R.current.isDirty,isSubmitted:!!n&&R.current.isSubmitted,isValid:!!o&&R.current.isValid,dirtyFields:a?R.current.dirtyFields:{},touched:r?R.current.touched:{},errors:e?R.current.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})})(t)}),[]),clearErrors:le((function(e){e&&(Array.isArray(e)?e:[e]).forEach((e=>u.current[e]&&bc(e)?delete R.current.errors[e]:Mc(R.current.errors,e))),I({errors:e?R.current.errors:{}})}),[]),setError:le((function(e,t){const n=(u.current[e]||{}).ref;xc(R.current.errors,e,Object.assign(Object.assign({},t),{ref:n})),I({isValid:!1}),t.shouldFocus&&n&&n.focus&&n.focus()}),[]),errors:C.errors},ae)}z(null).displayName="RHFContext";function pl(e){var t=Ts(Vs(e,Ss).apiUrl,e["source-uuid"],e["target-uuid"],e["transaction-id"]).sendFeedback,n=fl(),r=n.register,o=n.errors;return p(qs,{className:"utu-section responsive",excludeBootstrap:!0,excludeFonts:!0},p("form",{onSubmit:(0,n.handleSubmit)((function(e){t(e)})),className:"d-flex flex-column align-items-stretch mx-2 my-4"},p("textarea",{ref:r({required:!0,minLength:5}),name:"review",placeholder:"Your text review"}),o.review&&p("div",{className:"error mt-1"},"* Feedback should be at least ",5," characters long"),p("button",{className:"btn mt-3",type:"submit"},"Submit")))}
|
|
2
|
-
/** @license React v16.13.1
|
|
3
|
-
* react-is.development.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var dl=Ne((function(e,t){!function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var d=e.type;switch(d){case c:case l:case o:case a:case i:case p:return d;default:var m=d&&d.$$typeof;switch(m){case u:case f:case y:case h:case s:return m;default:return t}}case r:return t}}}var w=c,x=l,S=u,j=s,O=n,E=f,k=o,A=y,C=h,N=r,P=a,R=i,U=p,B=!1;function F(e){return _(e)===l}t.AsyncMode=w,t.ConcurrentMode=x,t.ContextConsumer=S,t.ContextProvider=j,t.Element=O,t.ForwardRef=E,t.Fragment=k,t.Lazy=A,t.Memo=C,t.Portal=N,t.Profiler=P,t.StrictMode=R,t.Suspense=U,t.isAsyncMode=function(e){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(e)||_(e)===c},t.isConcurrentMode=F,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===y},t.isMemo=function(e){return _(e)===h},t.isPortal=function(e){return _(e)===r},t.isProfiler=function(e){return _(e)===a},t.isStrictMode=function(e){return _(e)===i},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===l||e===a||e===i||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===h||e.$$typeof===s||e.$$typeof===u||e.$$typeof===f||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},t.typeOf=_}()})),hl=Ne((function(e){e.exports=dl})),yl=Object.getOwnPropertySymbols,ml=Object.prototype.hasOwnProperty,gl=Object.prototype.propertyIsEnumerable;function vl(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var bl,_l=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=vl(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))ml.call(n,a)&&(o[a]=n[a]);if(yl){r=yl(n);for(var s=0;s<r.length;s++)gl.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o},wl="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xl={},Sl=Function.call.bind(Object.prototype.hasOwnProperty);function jl(e,t,n,r,o){for(var i in e)if(Sl(e,i)){var a;try{if("function"!=typeof e[i]){var s=Error((r||"React class")+": "+n+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.");throw s.name="Invariant Violation",s}a=e[i](t,i,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){a=e}if(!a||a instanceof Error||bl((r||"React class")+": type specification of "+n+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in xl)){xl[a.message]=!0;var u=o?o():"";bl("Failed "+n+" type: "+a.message+(null!=u?u:""))}}}bl=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}},jl.resetWarningCache=function(){xl={}};var Ol,El=jl,kl=Function.call.bind(Object.prototype.hasOwnProperty);function Al(){return null}Ol=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}};var Cl=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator;var r="<<anonymous>>",o={array:u("array"),bool:u("boolean"),func:u("function"),number:u("number"),object:u("object"),string:u("string"),symbol:u("symbol"),any:s(Al),arrayOf:function(e){return s((function(t,n,r,o,i){if("function"!=typeof e)return new a("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new a("Invalid "+o+" `"+i+"` of type `"+l(s)+"` supplied to `"+r+"`, expected an array.");for(var u=0;u<s.length;u++){var c=e(s,u,r,o,i+"["+u+"]",wl);if(c instanceof Error)return c}return null}))},element:s((function(t,n,r,o,i){var s=t[n];return e(s)?null:new a("Invalid "+o+" `"+i+"` of type `"+l(s)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:s((function(e,t,n,r,o){var i=e[t];return hl.isValidElementType(i)?null:new a("Invalid "+r+" `"+o+"` of type `"+l(i)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return s((function(t,n,o,i,s){if(!(t[n]instanceof e)){var u=e.name||r;return new a("Invalid "+i+" `"+s+"` of type `"+(((c=t[n]).constructor&&c.constructor.name?c.constructor.name:r)+"` supplied to `")+o+"`, expected instance of `"+u+"`.")}var c;return null}))},node:s((function(e,t,n,r,o){return c(e[t])?null:new a("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return s((function(t,n,r,o,i){if("function"!=typeof e)return new a("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],u=l(s);if("object"!==u)return new a("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected an object.");for(var c in s)if(kl(s,c)){var f=e(s,c,r,o,i+"."+c,wl);if(f instanceof Error)return f}return null}))},oneOf:function(e){if(!Array.isArray(e))return Ol(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),Al;function t(t,n,r,o,s){for(var u=t[n],c=0;c<e.length;c++)if(i(u,e[c]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===f(t)?String(t):t}));return new a("Invalid "+o+" `"+s+"` of value `"+String(u)+"` supplied to `"+r+"`, expected one of "+l+".")}return s(t)},oneOfType:function(e){if(!Array.isArray(e))return Ol("Invalid argument supplied to oneOfType, expected an instance of array."),Al;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return Ol("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+p(n)+" at index "+t+"."),Al}return s((function(t,n,r,o,i){for(var s=0;s<e.length;s++)if(null==(0,e[s])(t,n,r,o,i,wl))return null;return new a("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}))},shape:function(e){return s((function(t,n,r,o,i){var s=t[n],u=l(s);if("object"!==u)return new a("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var f=e[c];if(f){var p=f(s,c,r,o,i+"."+c,wl);if(p)return p}}return null}))},exact:function(e){return s((function(t,n,r,o,i){var s=t[n],u=l(s);if("object"!==u)return new a("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");var c=_l({},t[n],e);for(var f in c){var p=e[f];if(!p)return new a("Invalid "+o+" `"+i+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var d=p(s,f,r,o,i+"."+f,wl);if(d)return d}return null}))}};function i(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function a(e){this.message=e,this.stack=""}function s(e){var n={},o=0;function i(i,s,u,c,l,f,p){if(c=c||r,f=f||u,p!==wl){if(t){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}if("undefined"!=typeof console){var h=c+":"+u;!n[h]&&o<3&&(Ol("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[h]=!0,o++)}}return null==s[u]?i?null===s[u]?new a("The "+l+" `"+f+"` is marked as required in `"+c+"`, but its value is `null`."):new a("The "+l+" `"+f+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,u,c,l,f)}var s=i.bind(null,!1);return s.isRequired=i.bind(null,!0),s}function u(e){return s((function(t,n,r,o,i,s){var u=t[n];return l(u)!==e?new a("Invalid "+o+" `"+i+"` of type `"+f(u)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function c(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(c);if(null===t||e(t))return!0;var r=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!r)return!1;var o,i=r.call(t);if(r!==t.entries){for(;!(o=i.next()).done;)if(!c(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!c(a[1]))return!1}return!0;default:return!1}}function l(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function f(e){if(null==e)return""+e;var t=l(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function p(e){var t=f(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return a.prototype=Error.prototype,o.checkPropTypes=El,o.resetWarningCache=El.resetWarningCache,o.PropTypes=o,o},Nl=Ne((function(e){var t=hl;e.exports=Cl(t.isElement,!0)})),Pl=Ce(Zu),Rl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ul=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Bl=Il(Pl),Fl=Il(Nl);function Il(e){return e&&e.__esModule?e:{default:e}}var zl={overflow:"hidden",position:"relative"},Dl={position:"relative",overflow:"hidden",cursor:"pointer",display:"block",float:"left"},Tl=function(e,t){return"\n .react-stars-"+t+":before {\n position: absolute;\n overflow: hidden;\n display: block;\n z-index: 1;\n top: 0; left: 0;\n width: 50%;\n content: attr(data-forhalf);\n color: "+e+";\n }"},Ml=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=Rl({},e),n.state={uniqueness:(Math.random()+"").replace(".",""),value:e.value||0,stars:[],halfStar:{at:Math.floor(e.value),hidden:e.half&&e.value%1<.5}},n.state.config={count:e.count,size:e.size,char:e.char,color1:e.color1,color2:e.color2,half:e.half,edit:e.edit},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Ul(t,[{key:"componentDidMount",value:function(){this.setState({stars:this.getStars(this.state.value)})}},{key:"componentWillReceiveProps",value:function(e){this.setState({stars:this.getStars(e.value),value:e.value,halfStar:{at:Math.floor(e.value),hidden:this.state.config.half&&e.value%1<.5}})}},{key:"isDecimal",value:function(e){return e%1!=0}},{key:"getRate",value:function(){return this.state.config.half?Math.floor(this.state.value):Math.round(this.state.value)}},{key:"getStars",value:function(e){void 0===e&&(e=this.getRate());for(var t=[],n=0;n<this.state.config.count;n++)t.push({active:n<=e-1});return t}},{key:"mouseOver",value:function(e){var t=this.state,n=t.config,r=t.halfStar;if(n.edit){var o=Number(e.target.getAttribute("data-index"));if(n.half){var i=this.moreThanHalf(e,n.size);r.hidden=i,i&&(o+=1),r.at=o}else o+=1;this.setState({stars:this.getStars(o)})}}},{key:"moreThanHalf",value:function(e,t){var n=e.target,r=e.clientX-n.getBoundingClientRect().left;return(r=Math.round(Math.abs(r)))>t/2}},{key:"mouseLeave",value:function(){var e=this.state,t=e.value,n=e.halfStar,r=e.config;r.edit&&(r.half&&(n.hidden=!this.isDecimal(t),n.at=Math.floor(this.state.value)),this.setState({stars:this.getStars()}))}},{key:"clicked",value:function(e){var t=this.state,n=t.config,r=t.halfStar;if(n.edit){var o=Number(e.target.getAttribute("data-index")),i=void 0;if(n.half){var a=this.moreThanHalf(e,n.size);r.hidden=a,a&&(o+=1),i=a?o:o+.5,r.at=o}else i=o+=1;this.setState({value:i,stars:this.getStars(o)}),this.props.onChange(i)}}},{key:"renderHalfStarStyleElement",value:function(){var e=this.state,t=e.config,n=e.uniqueness;return Bl.default.createElement("style",{dangerouslySetInnerHTML:{__html:Tl(t.color2,n)}})}},{key:"renderStars",value:function(){var e=this,t=this.state,n=t.halfStar,r=t.stars,o=t.uniqueness,i=t.config,a=i.color1,s=i.color2,u=i.size,c=i.char,l=i.half,f=i.edit;return r.map((function(t,r){var i="";l&&!n.hidden&&n.at===r&&(i="react-stars-"+o);var p=Rl({},Dl,{color:t.active?s:a,cursor:f?"pointer":"default",fontSize:u+"px"});return Bl.default.createElement("span",{className:i,style:p,key:r,"data-index":r,"data-forhalf":c,onMouseOver:e.mouseOver.bind(e),onMouseMove:e.mouseOver.bind(e),onMouseLeave:e.mouseLeave.bind(e),onClick:e.clicked.bind(e)},c)}))}},{key:"render",value:function(){var e=this.props.className;return Bl.default.createElement("div",{className:e,style:zl},this.state.config.half?this.renderHalfStarStyleElement():"",this.renderStars())}}]),t}(Pl.Component);Ml.propTypes={className:Fl.default.string,edit:Fl.default.bool,half:Fl.default.bool,value:Fl.default.number,count:Fl.default.number,char:Fl.default.string,size:Fl.default.number,color1:Fl.default.string,color2:Fl.default.string},Ml.defaultProps={edit:!0,half:!0,value:0,count:5,char:"★",size:15,color1:"gray",color2:"#ffd700",onChange:function(){}};var Ll,Hl=Ml;function Vl(e){var t=Ts(Vs(e,Ss).apiUrl,e["source-uuid"],e["target-uuid"],e["transaction-id"]).sendFeedback;return p(qs,{className:"utu-section d-flex justify-content-center align-items-center",excludeBootstrap:!0,excludeFonts:!0},p(Hl,{count:5,half:!1,onChange:function(e){t({stars:e})},size:30,color2:"#ffd700"}))}!function(e){e.AbortError="media_aborted",e.NotAllowedError="permission_denied",e.NotFoundError="no_specified_media_found",e.NotReadableError="media_in_use",e.OverconstrainedError="invalid_media_constraints",e.TypeError="no_constraints",e.NONE="",e.NO_RECORDER="recorder_error"}(Ll||(Ll={}));var ql=function(){function e(){this.url=null,this.blob=new Blob,this.mediaChunks=[]}var t=e.prototype;return t.setBlobProperties=function(e){this.blobProperties=e},t.storeChunk=function(e){this.mediaChunks.push(e)},t.stop=function(){var e=new Blob(this.mediaChunks,this.blobProperties),t=URL.createObjectURL(e);this.blob=e,this.url=t},t.getUrl=function(){return this.url},t.getBlob=function(){return this.blob},e}();var Wl=function(e){return e.render(function(e){var t=e.audio,n=void 0===t||t,r=e.video,o=void 0!==r&&r,i=e.onStop,a=void 0===i?function(){return null}:i,s=e.blobPropertyBag,u=e.screen,c=void 0!==u&&u,l=e.mediaRecorderOptions,f=void 0===l?null:l,p=e.videoStorageFactory,d=void 0===p?function(){return new ql}:p,h=e.timeslice,y=void 0===h?void 0:h,m=se(null),g=se(null),v=se(null),b=re("idle"),_=b[0],w=b[1],x=re(!1),S=x[0],j=x[1],O=re(null),E=O[0],k=O[1],A=re("NONE"),C=A[0],N=A[1],P=!1,R=le((function(){try{w("acquiring_media");var e={audio:"boolean"==typeof n?!!n:n,video:"boolean"==typeof o?!!o:o},t=function(t,r){try{var i=function(){function t(){w("idle")}var r=c?Promise.resolve(window.navigator.mediaDevices.getDisplayMedia({video:o||!0})).then((function(e){function t(){v.current=e}var r=function(){if(n)return Promise.resolve(window.navigator.mediaDevices.getUserMedia({audio:n})).then((function(t){t.getAudioTracks().forEach((function(t){return e.addTrack(t)}))}))}();return r&&r.then?r.then(t):t()})):Promise.resolve(window.navigator.mediaDevices.getUserMedia(e)).then((function(e){v.current=e}));return r&&r.then?r.then(t):t()}()}catch(e){return r(e)}return i&&i.then?i.then(void 0,r):i}(0,(function(e){N(e.name),w("idle")}));return Promise.resolve(t&&t.then?t.then((function(){})):void 0)}catch(e){return Promise.reject(e)}}),[n,o,c]);ie((function(){if(!window.MediaRecorder)throw new Error("Unsupported Browser");if(c&&!window.navigator.mediaDevices.getDisplayMedia)throw new Error("This browser doesn't support screen capturing");var e=function(e){var t=navigator.mediaDevices.getSupportedConstraints(),n=Object.keys(e).filter((function(e){return!t[e]}));n.length>0&&console.error("The constraints "+n.join(",")+" doesn't support on this browser. Please check your ReactMediaRecorder component.")};"object"==typeof n&&e(n),"object"==typeof o&&e(o),f&&f.mimeType&&(MediaRecorder.isTypeSupported(f.mimeType)||console.error("The specified MIME type you supplied for MediaRecorder doesn't support this browser")),v.current||R()}),[n,c,o,R,f]);var U=function(e){var t,n=e.data;if(!P){var r,i=Object.assign({type:n.type},s||(o?{type:"video/mp4"}:{type:"audio/wav"}));null==(r=m.current)||r.setBlobProperties(i),P=!0}null==(t=m.current)||t.storeChunk(n)},B=function(){var e,t,n,r;null==(e=m.current)||e.stop();var o=null!=(t=null==(n=m.current)?void 0:n.getUrl())?t:null;w("stopped"),k(o),a(o,null==(r=m.current)?void 0:r.getBlob())},F=function(e){j(e),v.current&&v.current.getAudioTracks().forEach((function(t){return t.enabled=!e}))};return{error:Ll[C],muteAudio:function(){return F(!0)},unMuteAudio:function(){return F(!1)},startRecording:function(){try{var e=function(){var e=function(){if(v.current){var e=function(){m.current=d(),P=!1,g.current=new MediaRecorder(v.current),g.current.ondataavailable=U,g.current.onstop=B,g.current.onerror=function(){N("NO_RECORDER"),w("idle")},g.current.start(y),w("recording")},t=v.current.getTracks().some((function(e){return"ended"===e.readyState})),n=function(){if(t)return Promise.resolve(R()).then((function(){}))}();return n&&n.then?n.then(e):e()}}();if(e&&e.then)return e.then((function(){}))};N("NONE");var t=function(){if(!v.current)return Promise.resolve(R()).then((function(){}))}();return Promise.resolve(t&&t.then?t.then(e):e())}catch(e){return Promise.reject(e)}},pauseRecording:function(){g.current&&"recording"===g.current.state&&g.current.pause()},resumeRecording:function(){g.current&&"paused"===g.current.state&&g.current.resume()},stopRecording:function(){g.current&&"inactive"!==g.current.state&&(w("stopping"),g.current.stop(),v.current&&v.current.getTracks().forEach((function(e){return e.stop()})))},mediaBlobUrl:E,status:_,isAudioMuted:S,previewStream:v.current?new MediaStream(v.current.getVideoTracks()):null,clearBlobUrl:function(){return k(null)}}}(e))},$l=0;function Gl(e){return"__private_"+$l+++"_"+e}function Jl(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Xl=function(e){this.value=e},Yl=Gl("head"),Kl=Gl("end"),Zl=function(){function e(){Object.defineProperty(this,Yl,{writable:!0,value:void 0}),Object.defineProperty(this,Kl,{writable:!0,value:void 0})}var t=e.prototype;return t.enqueue=function(e){var t=new Xl(e);Jl(this,Kl)[Kl]?(Jl(this,Kl)[Kl].next=t,Jl(this,Kl)[Kl]=t):Jl(this,Yl)[Yl]=Jl(this,Kl)[Kl]=t},t.dequeue=function(){var e=Jl(this,Yl)[Yl];return Jl(this,Yl)[Yl]=null==e?void 0:e.next,Jl(this,Yl)[Yl]||(Jl(this,Kl)[Kl]=void 0),null==e?void 0:e.value},e}();function Ql(e){return{done:!1,value:e}}var ef={done:!0},tf=Gl("chunkQueue"),nf=Gl("resolveQueue"),rf=Gl("isInProgress"),of=Gl("isLocked"),af=function(){function e(){Object.defineProperty(this,tf,{writable:!0,value:void 0}),Object.defineProperty(this,nf,{writable:!0,value:void 0}),Object.defineProperty(this,rf,{writable:!0,value:void 0}),Object.defineProperty(this,of,{writable:!0,value:void 0}),this.url=null,Jl(this,tf)[tf]=new Zl,Jl(this,nf)[nf]=new Zl,Jl(this,rf)[rf]=!0,Jl(this,of)[of]=!1}var t=e.prototype;return t.setUrl=function(e){this.url=e},t.setBlobProperties=function(e){this.blobProperties=e},t.storeChunk=function(e){Jl(this,rf)[rf]=!0;var t=Jl(this,nf)[nf].dequeue();t?t(Ql(e)):Jl(this,tf)[tf].enqueue(e)},t.stop=function(){Jl(this,rf)[rf]=!1},t.reset=function(){Jl(this,rf)[rf]=!0,Jl(this,tf)[tf]=new Zl,Jl(this,nf)[nf]=new Zl,Jl(this,of)[of]=!1},t.getUrl=function(){return this.url},t.getBlob=function(){},t.getReader=function(){if(Jl(this,of)[of])throw new Error("ReadableStorage is locked.");Jl(this,of)[of]=!0;var e=this;return{read:function(){var t=Jl(e,tf)[tf].dequeue();return t?Promise.resolve(Ql(t)):Jl(e,rf)[rf]?new Promise((function(t){return Jl(e,nf)[nf].enqueue(t)})):Promise.resolve(ef)}}},e}(),sf='@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css);\n:host {\n margin: 0;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n font-size: 14px;\n font-weight: 300;\n line-height: 1.5;\n color: #000;\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }\n\nbody {\n overflow: scroll; }\n\n.utu-section {\n border-bottom: 1px solid rgba(0, 0, 0, 0.15);\n background: #fff;\n padding: 18px; }\n\nh3 {\n text-transform: capitalize;\n font-weight: 500;\n font-size: 14px; }\n\n.btn {\n background-color: #FFDD33;\n padding: 12px;\n border-radius: 10px;\n border: none;\n font-size: 14px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }\n\n.icon-btn {\n border: none;\n background: none;\n padding: 0;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n font-weight: 500;\n font-size: 14px; }\n .icon-btn svg {\n width: 60px;\n height: 60px; }\n\ntextarea {\n resize: vertical;\n min-height: 8rem;\n border-radius: 10px;\n border: none;\n background-color: rgba(255, 221, 51, 0.15);\n padding: 16px;\n font-weight: 300; }\n\n.error {\n color: #e80054; }\n\n.logo-position {\n position: absolute;\n top: -1rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem; }\n .logo-position-video {\n position: absolute;\n top: 41.2rem;\n left: 21rem;\n z-index: 2;\n width: 0.5rem; }\n .logo-position-player {\n position: absolute;\n bottom: -0.5rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem; }\n\n.logo-section {\n position: relative; }\n\n.logo-size {\n width: 3rem; }\n\n.trust-video {\n left: 0;\n border: none;\n max-width: 100%;\n bottom: 1.4rem;\n position: relative;\n border-top-left-radius: 2%;\n border-top-right-radius: 2%; }\n .trust-video-wrapper {\n display: flex;\n align-items: center; }\n .trust-video-wrapper:hover .trust-video-controls {\n visibility: visible;\n opacity: 1; }\n .trust-video-msg {\n display: flex;\n align-items: center; }\n .trust-video-controls {\n position: absolute;\n bottom: 14px;\n padding-left: 36px;\n left: 14px;\n width: calc(100% - 28px);\n right: 0;\n border-radius: 10px;\n height: 4em;\n align-items: center;\n justify-content: space-between;\n visibility: hidden;\n opacity: 0;\n transition: all .25s ease-out;\n display: none; }\n .trust-video-controls.show {\n display: flex; }\n .trust-video-play {\n border-color: transparent;\n transition: 0.3s;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 3em;\n line-height: 1.5em;\n width: 3em;\n height: 3em;\n display: block;\n position: absolute;\n padding: 0;\n cursor: pointer;\n opacity: 1;\n background-color: #FFDD33;\n border-radius: 50%;\n font: normal normal normal 18px/1 FontAwesome; }\n .trust-video-play:before {\n content: "\\f04b"; }\n .trust-video-play.paused:before {\n content: "\\f04c"; }\n .trust-video-volume {\n border-color: transparent;\n color: rgba(43, 51, 63, 0.7);\n font-size: 3em;\n line-height: 1.5em;\n width: 2em;\n height: 1.5em;\n display: block;\n position: absolute;\n font: normal normal normal 18px/1 FontAwesome;\n background-color: rgba(255, 221, 51, 0.7);\n left: 20px; }\n .trust-video-volume:before {\n content: "\\f028"; }\n .trust-video-volume.off:before {\n content: "\\f026"; }\n .trust-video-fullscreen {\n border-color: transparent;\n color: rgba(43, 51, 63, 0.7);\n font-size: 3em;\n line-height: 1.5em;\n width: 3em;\n height: 1.5rem;\n display: block;\n position: absolute;\n font: normal normal normal 18px/1 FontAwesome;\n background-color: rgba(255, 221, 51, 0.7);\n right: 20px; }\n .trust-video-fullscreen:before {\n content: "\\f065"; }\n\n.utu-screen-recording {\n max-height: 80rem;\n min-width: 20rem;\n width: 27rem;\n height: 43rem;\n border-bottom: 13px #FFDD33 solid;\n position: relative;\n z-index: 1;\n justify-content: center;\n border-bottom-left-radius: 2%;\n border-bottom-right-radius: 2%; }\n\n.btn-round {\n background-color: #FFDD33;\n border: none;\n margin: 5px 0;\n width: 6rem;\n height: 6rem;\n border-radius: 90px;\n border: none;\n font-size: 9px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n z-index: 1; }\n .btn-round-loading {\n position: absolute;\n bottom: 2.5rem; }\n .btn-round-stop {\n position: absolute;\n bottom: 2.5rem; }\n\n.btn-container {\n display: flex;\n justify-content: center; }\n\n.btn-stop-icon {\n width: 30px;\n height: 30px;\n background: #000000;\n border-radius: 5px; }\n\n.response-message {\n height: 3rem;\n line-height: 3rem;\n width: 100%; }\n\n.cameraIcon {\n position: relative;\n top: 5px;\n left: 2px;\n width: 1.5rem;\n padding-bottom: -2rem; }\n\n.video-icon {\n width: 1.5rem;\n height: 2.4rem;\n padding-top: 0.3rem; }\n';Ws(sf);var uf=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return At(n),function(e){if(!Ge(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),cf=function(e,t,n){var r,o;return uf&&"function"==typeof(r=t.constructor)&&r!==n&&Ge(o=r.prototype)&&o!==n.prototype&&uf(e,o),e},lf="[\t\n\v\f\r \u2028\u2029\ufeff]",ff=RegExp("^"+lf+lf+"*"),pf=RegExp(lf+lf+"*$"),df=function(e){return function(t){var n=In(We(t));return 1&e&&(n=n.replace(ff,"")),2&e&&(n=n.replace(pf,"")),n}},hf={start:df(1),end:df(2),trim:df(3)},yf=ln.f,mf=kt.f,gf=Nt.f,vf=hf.trim,bf="Number",_f=Be.Number,wf=_f.prototype,xf=He(Yn(wf))==bf,Sf=function(e){if(ot(e))throw TypeError("Cannot convert a Symbol value to a number");var t,n,r,o,i,a,s,u,c=_t(e,"number");if("string"==typeof c&&c.length>2)if(43===(t=(c=vf(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=c.slice(2)).length,s=0;s<a;s++)if((u=i.charCodeAt(s))<48||u>o)return NaN;return parseInt(i,r)}return+c};if(_n(bf,!_f(" 0o1")||!_f("0b1")||_f("+0x1"))){for(var jf,Of=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof Of&&(xf?Fe((function(){wf.valueOf.call(n)})):He(n)!=bf)?cf(new _f(Sf(t)),n,Of):Sf(t)},Ef=Ie?yf(_f):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),kf=0;Ef.length>kf;kf++)ft(_f,jf=Ef[kf])&&!ft(Of,jf)&&gf(Of,jf,mf(_f,jf));Of.prototype=wf,wf.constructor=Of,Yt(Be,bf,Of)}var Af=function(e){var t=In(We(this)),n="",r=Qt(e);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},Cf=1..toFixed,Nf=Math.floor,Pf=function(e,t,n){return 0===t?n:t%2==1?Pf(e,t-1,n*e):Pf(e*e,t/2,n)},Rf=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=Nf(o/1e7)},Uf=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=Nf(r/t),r=r%t*1e7},Bf=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=String(e[t]);n=""===n?r:n+Af.call("0",7-r.length)+r}return n};xn({target:"Number",proto:!0,forced:Cf&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!Fe((function(){Cf.call({})}))},{toFixed:function(e){var t,n,r,o,i=function(e){if("number"!=typeof e&&"Number"!=He(e))throw TypeError("Incorrect invocation");return+e}(this),a=Qt(e),s=[0,0,0,0,0,0],u="",c="0";if(a<0||a>20)throw RangeError("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(u="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*Pf(2,69,1))-69)<0?i*Pf(2,-t,1):i/Pf(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Rf(s,0,n),r=a;r>=7;)Rf(s,1e7,0),r-=7;for(Rf(s,Pf(10,r,1),0),r=t-1;r>=23;)Uf(s,1<<23),r-=23;Uf(s,1<<r),Rf(s,1,1),Uf(s,2),c=Bf(s)}else Rf(s,0,n),Rf(s,1<<-t,0),c=Bf(s)+Af.call("0",a);return c=a>0?u+((o=c.length)<=a?"0."+Af.call("0",a-o)+c:c.slice(0,o-a)+"."+c.slice(o-a)):u+c}});Ws('@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css);\n.trust-video {\n left: 0;\n border: none;\n max-width: 100%;\n bottom: 1.4rem;\n position: relative;\n border-top-left-radius: 2%;\n border-top-right-radius: 2%; }\n .trust-video-wrapper {\n display: flex;\n align-items: center; }\n .trust-video-wrapper:hover .trust-video-controls {\n visibility: visible;\n opacity: 1; }\n .trust-video-msg {\n display: flex;\n align-items: center; }\n .trust-video-controls {\n position: absolute;\n bottom: 14px;\n padding-left: 36px;\n left: 14px;\n width: calc(100% - 28px);\n right: 0;\n border-radius: 10px;\n height: 4em;\n align-items: center;\n justify-content: space-between;\n visibility: hidden;\n opacity: 0;\n transition: all .25s ease-out;\n display: none; }\n .trust-video-controls.show {\n display: flex; }\n .trust-video-play {\n border-color: transparent;\n transition: 0.3s;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 3em;\n line-height: 1.5em;\n width: 3em;\n height: 3em;\n display: block;\n position: absolute;\n padding: 0;\n cursor: pointer;\n opacity: 1;\n background-color: #FFDD33;\n border-radius: 50%;\n font: normal normal normal 18px/1 FontAwesome; }\n .trust-video-play:before {\n content: "\\f04b"; }\n .trust-video-play.paused:before {\n content: "\\f04c"; }\n .trust-video-volume {\n border-color: transparent;\n color: rgba(43, 51, 63, 0.7);\n font-size: 3em;\n line-height: 1.5em;\n width: 2em;\n height: 1.5em;\n display: block;\n position: absolute;\n font: normal normal normal 18px/1 FontAwesome;\n background-color: rgba(255, 221, 51, 0.7);\n left: 20px; }\n .trust-video-volume:before {\n content: "\\f028"; }\n .trust-video-volume.off:before {\n content: "\\f026"; }\n .trust-video-fullscreen {\n border-color: transparent;\n color: rgba(43, 51, 63, 0.7);\n font-size: 3em;\n line-height: 1.5em;\n width: 3em;\n height: 1.5rem;\n display: block;\n position: absolute;\n font: normal normal normal 18px/1 FontAwesome;\n background-color: rgba(255, 221, 51, 0.7);\n right: 20px; }\n .trust-video-fullscreen:before {\n content: "\\f065"; }\n');var Ff=function(e,t,n){var r=Ee(re(!1),2),o=r[0],i=r[1],a=se(null),s=se(null),u=se(null);ae((function(){function e(){}return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]);var c=function(){var e=xe(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l(),!a.current.paused){e.next=7;break}return e.next=4,a.current.play();case 4:s.current.classList.add("paused"),e.next=9;break;case 7:a.current.pause(),s.current.classList.remove("paused");case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),l=function(){var e=a.current.duration;return e=Number(e.toFixed())},f=function(){var e=xe(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.current.requestFullscreen();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();ie((function(){a.current&&i(!0)}),[e]);var d=function(e){var n=e.stream,r=se(null);return ie((function(){r.current&&n&&t&&(r.current.srcObject=n)}),[n]),n?n.active?p("video",{className:"trust-video preview-video",id:"trustVideoPreview",ref:r,autoPlay:!0},p("track",{kind:"captions"})):p("div",{className:"trust-video-msg"},p("p",null,"No video preview to show at the moment. Please hold on!!")):null};return p("div",{className:"trust-video-wrapper"},p((function(){return e?p("video",{className:"trust-video",id:"trustVideo",ref:a,autoPlay:!0},p("source",{className:"trust-video",src:e,type:"video/mp4"}),p("source",{src:e,type:"video/webm"}),p("track",{kind:"captions"})):p(d,{stream:n})}),null),p("div",{className:"trust-video-controls ".concat(o&&"show")},p("button",{ref:u,type:"button",className:"trust-video-volume trust-video-control ".concat(a.current&&a.current.muted&&"off"),onClick:function(){a.current.muted=!a.current.muted,a.current.muted?u.current.classList.add("off"):u.current.classList.remove("off")}}," "),!t&&p("button",{ref:s,type:"button",className:"trust-video-play trust-video-control paused",onClick:c}," "),p("div",{className:"trust-video-progress"}),!t&&p("button",{type:"button",className:"trust-video-fullscreen trust-video-control",onClick:f}," ")))},If=':host {\n margin: 0;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n font-size: 14px;\n font-weight: 300;\n line-height: 1.5;\n color: #000;\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }\n\nbody {\n overflow: scroll; }\n\n.utu-section {\n border-bottom: 1px solid rgba(0, 0, 0, 0.15);\n background: #fff;\n padding: 18px; }\n\nh3 {\n text-transform: capitalize;\n font-weight: 500;\n font-size: 14px; }\n\n.btn {\n background-color: #FFDD33;\n padding: 12px;\n border-radius: 10px;\n border: none;\n font-size: 14px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }\n\n.icon-btn {\n border: none;\n background: none;\n padding: 0;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n font-weight: 500;\n font-size: 14px; }\n .icon-btn svg {\n width: 60px;\n height: 60px; }\n\ntextarea {\n resize: vertical;\n min-height: 8rem;\n border-radius: 10px;\n border: none;\n background-color: rgba(255, 221, 51, 0.15);\n padding: 16px;\n font-weight: 300; }\n\n.error {\n color: #e80054; }\n\n.logo-position {\n position: absolute;\n top: -1rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem; }\n .logo-position-video {\n position: absolute;\n top: 41.2rem;\n left: 21rem;\n z-index: 2;\n width: 0.5rem; }\n .logo-position-player {\n position: absolute;\n bottom: -0.5rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem; }\n\n.logo-section {\n position: relative; }\n\n.logo-size {\n width: 3rem; }\n\n.popup {\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 1000; }\n .popup-container {\n background: white;\n max-width: 700px;\n margin: auto;\n z-index: 1001;\n border: 0.1px #9b9898 solid;\n border-radius: 2%; }\n .popup-container .icon-btn-popup {\n padding: 10px;\n font-size: 1.2em;\n border: none;\n background: none; }\n .popup-container .icon-btn-popup.btn-overlay {\n z-index: 1001; }\n .popup .background {\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background-color: rgba(229, 229, 229, 0.95); }\n';function zf(e){var t=e.onClose,n=e.children,r=e.closeButtonOverlay;return p(qs,{style:If,className:"popup d-flex justify-content-center align-items-center"},p("div",{className:"popup-container d-flex flex-column align-items-stretch justify-content-center"},p("div",{className:"d-flex justify-content-center"},p("button",{type:"button",className:"icon-btn-popup ".concat(r&&"btn-overlay"),onClick:t},"×")),n),p("div",{onClick:t,className:"background"}))}Ws(If);var Df=':host {\n margin: 0;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n font-size: 14px;\n font-weight: 300;\n line-height: 1.5;\n color: #000;\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }\n\nbody {\n overflow: scroll; }\n\n.utu-section {\n border-bottom: 1px solid rgba(0, 0, 0, 0.15);\n background: #fff;\n padding: 18px; }\n\nh3 {\n text-transform: capitalize;\n font-weight: 500;\n font-size: 14px; }\n\n.btn {\n background-color: #FFDD33;\n padding: 12px;\n border-radius: 10px;\n border: none;\n font-size: 14px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }\n\n.icon-btn {\n border: none;\n background: none;\n padding: 0;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n font-weight: 500;\n font-size: 14px; }\n .icon-btn svg {\n width: 60px;\n height: 60px; }\n\ntextarea {\n resize: vertical;\n min-height: 8rem;\n border-radius: 10px;\n border: none;\n background-color: rgba(255, 221, 51, 0.15);\n padding: 16px;\n font-weight: 300; }\n\n.error {\n color: #e80054; }\n\n.logo-position {\n position: absolute;\n top: -1rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem; }\n .logo-position-video {\n position: absolute;\n top: 41.2rem;\n left: 21rem;\n z-index: 2;\n width: 0.5rem; }\n .logo-position-player {\n position: absolute;\n bottom: -0.5rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem; }\n\n.logo-section {\n position: relative; }\n\n.logo-size {\n width: 3rem; }\n';function Tf(){return p("svg",{style:Df,version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",className:"logo-size",viewBox:"0 0 841.89 401.471",xmlSpace:"preserve"},p("g",{id:"Layer_2"},p("g",{id:"Layer_1-2"},p("path",{fill:"#FFFFFF",d:"M565.858,0c263.37,4.676,263.323,395.802,0,400.243C302.487,395.709,302.532,4.397,565.858,0z"}),p("path",{fill:"#BBBBBB",d:"M0.005,224.144v-45.228c-0.005-2.54,2.051-4.603,4.591-4.607c0.019,0,0.038,0,0.057,0 c7.535,0.416,21.79-1.872,27.35,4.176c6.247,4.983,6.239,19.43,0,24.454c-4.912,5.359-15.871,4.127-22.758,4.215v16.991 C9.443,230.176-0.14,230.119,0.005,224.144z M9.26,198.834c6.479-0.119,18.55,1.96,17.854-8.119 c0.695-10.07-11.415-7.999-17.854-8.087V198.834z"}),p("path",{fill:"#BBBBBB",d:"M40.041,209.985c-1.848-25.798,36.885-25.901,34.957,0C76.878,235.775,38.241,235.671,40.041,209.985z M48.84,209.985c-1.208,15.847,18.742,15.839,17.534,0c1.232-15.99-18.782-15.99-17.574,0H48.84z"}),p("path",{fill:"#BBBBBB",d:"M77.149,195.475c-0.192-4.712,6.936-5.911,8.399-1.479l6.64,19.646l5.352-19.334 c0.498-1.867,2.202-3.156,4.135-3.128c1.851-0.022,3.506,1.146,4.104,2.896l5.352,19.574l6.56-19.646 c0.912-2.96,5.12-3.712,7.199-1.64c4.496,2.079-9.991,30.637-10.11,33.709c-1.112,3.823-7.144,3.384-8.168-0.32l-4.959-17.534 l-4.936,17.43c-0.72,2.308-3.173,3.595-5.479,2.875c-0.419-0.13-0.815-0.322-1.176-0.57 C87.868,226.512,77.678,197.931,77.149,195.475z"}),p("path",{fill:"#BBBBBB",d:"M128.201,209.649c-2.473-23.021,33.517-26.27,33.356-3.199c0.288,3.399-0.896,6.831-4.911,6.559h-19.814 c0.392,11.487,13.039,8.592,19.91,4.96C174.181,225.784,126.593,242.11,128.201,209.649z M137.063,205.649h15.854 C153.502,195.499,137.048,195.698,137.063,205.649z"}),p("path",{fill:"#BBBBBB",d:"M167.453,224.456c0.472-1.896-1.264-31.637,1.264-31.997c2.704-2.863,7.855-0.416,7.367,3.504 c2.288-6.655,16.919-7.04,11.535,1.823c-5.88,2.776-11.199,0.801-11.535,10.096v16.614 C176.212,230.039,167.325,230.048,167.453,224.456z"}),p("path",{fill:"#BBBBBB",d:"M190.963,209.649c-2.464-23.021,33.524-26.27,33.356-3.199c0.296,3.399-0.896,6.831-4.903,6.559h-19.822 c0.4,11.487,13.047,8.592,19.918,4.96C236.95,225.784,189.355,242.11,190.963,209.649z M199.834,205.649h15.854 C216.272,195.499,199.818,195.698,199.834,205.649z"}),p("path",{fill:"#BBBBBB",d:"M228.543,209.985c-1.544-14.935,13.255-24.861,25.03-16.11v-18.398c-0.152-3.728,4.848-5.76,7.375-3.048 c2.584-0.136,0.744,39.236,1.264,40.74c0,5.157-1.506,9.116-4.52,11.879C245.75,234.767,226.888,227.248,228.543,209.985z M237.175,209.985c-1.984,13.143,15.998,16.902,16.406,3.199v-11.062C246.79,193.891,236.07,198.986,237.175,209.985 L237.175,209.985z"}),p("path",{fill:"#BBBBBB",d:"M287.834,213.169v-37.692c-0.16-3.735,4.84-5.751,7.367-3.048c2.479,1.32,0.8,19.158,1.264,21.446 c5.464-5.088,16.526-3.696,20.838,1.688c5.703,5.728,5.768,23.198-0.191,28.798C307.92,233.959,286.426,228.976,287.834,213.169z M296.465,213.169c-0.855,8.104,9.807,11.679,14.287,5.655c6.839-10.398-2-29.524-14.287-16.727V213.169z"}),p("path",{fill:"#BBBBBB",d:"M323.175,243.046c-2.584-2.399-0.681-7.199,2.951-6.983c6.151-0.296,7.447-4.799,10.151-10.631 l-12.303-28.293c-0.211-0.535-0.317-1.105-0.312-1.68c-0.2-4.656,6.848-5.855,8.319-1.601l8.791,22.19l8.8-22.182 c0.928-2.744,5.031-3.656,7.071-1.44c5.095,2.2-13.775,35.325-13.943,38.356C338.413,240.198,331.006,246.95,323.175,243.046z"}),p("path",{fill:"#2B2B2B",d:"M710.811,214.345v-18.67c-0.152-3.728,4.871-5.76,7.383-3.048c4.903,6.264-5.039,29.693,8.479,28.941 c4.735,0,7.105-2.399,7.111-7.199v-18.687c-0.136-5.6,8.799-5.6,8.631,0c-0.695,7.199,2.096,23.198-3.031,29.077 C730.688,234.063,708.843,229.567,710.811,214.345z"}),p("path",{fill:"#2B2B2B",d:"M766.469,198.259c-2.928-3.288,0.552-7.111,4.376-6.256c0.144-3.455-1.264-10.943,4.264-10.814 c5.495-0.137,4.071,7.391,4.216,10.814c2.76-0.176,7.287-0.248,7.199,3.656c0.104,3.903-4.408,3.879-7.199,3.688 c0.376,1.399-0.96,21.118,0.936,21.462c2.191,1.304,6.008,0.8,5.855,4.472c-0.488,6.151-9.679,3.392-12.143,0.655 c-5.399-3.999-2.4-20.894-3.128-26.589C769.373,199.362,767.533,199.53,766.469,198.259z"}),p("path",{fill:"#2B2B2B",d:"M810.137,214.345v-18.67c-0.151-3.728,4.872-5.76,7.384-3.048c4.903,6.264-5.04,29.693,8.479,28.941 c4.736,0,7.106-2.399,7.111-7.199v-18.687c-0.136-5.6,8.8-5.6,8.632,0c-0.696,7.199,2.096,23.198-3.032,29.077 C830.015,234.063,808.169,229.567,810.137,214.345z"}),p("path",{fill:"#2B2B2B",d:"M531.155,40.865c45.052,0.8,45.044,67.729,0,68.489C486.104,108.579,486.111,41.665,531.155,40.865z"}),p("path",{fill:"#2B2B2B",d:"M444.163,148.855c45.052,0.8,45.044,67.705,0,68.465C399.111,216.545,399.119,149.607,444.163,148.855z"}),p("path",{fill:"#2B2B2B",d:"M529.835,248.934c39.845,0.672,39.845,59.898,0,60.57C489.982,308.84,489.991,249.646,529.835,248.934z"}),p("path",{fill:"#2B2B2B",d:"M465.257,230.447c31.197,0.528,31.197,46.916,0,47.443C434.084,277.371,434.092,230.991,465.257,230.447z"}),p("path",{fill:"#2B2B2B",d:"M511.389,130.457c29.47,0.504,29.461,44.268,0,44.796C481.911,174.677,481.92,130.921,511.389,130.457z"}),p("path",{fill:"#2B2B2B",d:"M582.566,101.42c29.469,0.504,29.461,44.308,0,44.795C553.097,145.72,553.104,101.915,582.566,101.42z"}),p("path",{fill:"#2B2B2B",d:"M637.921,93.524c29.445,0.504,29.445,44.292,0,44.796C608.628,138.176,608.628,93.66,637.921,93.524z"}),p("path",{fill:"#2B2B2B",d:"M656.367,146.224c26.006,0.447,26.006,39.052,0,39.492C630.346,185.268,630.346,146.671,656.367,146.224z"}),p("path",{fill:"#2B2B2B",d:"M593.109,264.732c22.525,0.384,22.518,33.86,0,34.236C570.583,298.585,570.583,265.116,593.109,264.732z"}),p("path",{fill:"#2B2B2B",d:"M651.096,198.866c22.534,0.384,22.534,33.854,0,34.229C628.554,232.711,628.562,199.25,651.096,198.866z"}),p("path",{fill:"#2B2B2B",d:"M437.563,101.42c22.51,0.384,22.51,33.893,0,34.276C415.166,135.593,415.166,101.516,437.563,101.42z"}),p("path",{fill:"#2B2B2B",d:"M603.66,56.655c22.526,0.385,22.518,33.854,0,34.237C581.254,90.788,581.254,56.752,603.66,56.655z"}),p("path",{fill:"#2B2B2B",d:"M500.838,196.251c22.534,0.384,22.534,33.828,0,34.213C478.296,230.071,478.304,196.627,500.838,196.251z"}),p("path",{fill:"#2B2B2B",d:"M632.642,240.99c19.046,0.328,19.046,28.678,0,29.006C613.604,269.644,613.604,241.318,632.642,240.99z"}),p("path",{fill:"#2B2B2B",d:"M474.464,64.567c19.062,0.327,19.062,28.637,0,28.957C455.506,93.437,455.506,64.655,474.464,64.567z"}),p("path",{fill:"#2B2B2B",d:"M479.744,104.06c19.054,0.319,19.054,28.677,0,28.997C460.762,132.969,460.762,104.14,479.744,104.06z"}),p("rect",{x:"474.385",y:"78.803",transform:"matrix(-0.9944 0.1058 -0.1058 -0.9944 961.3718 138.2227)",fill:"#2B2B2B",width:"5.272",height:"31.605"}),p("rect",{x:"437.48",y:"126.203",transform:"matrix(-0.9944 0.1058 -0.1058 -0.9944 892.7841 236.662)",fill:"#2B2B2B",width:"5.272",height:"31.606"}),p("rect",{x:"490.251",y:"181.519",transform:"matrix(-0.0772 0.997 -0.997 -0.0772 728.7499 -306.1609)",fill:"#2B2B2B",width:"31.605",height:"5.272"}),p("rect",{x:"501.348",y:"116.825",transform:"matrix(-0.349 0.9371 -0.9371 -0.349 809.6375 -323.5298)",fill:"#2B2B2B",width:"31.702",height:"5.288"}),p("polygon",{fill:"#2B2B2B",points:"500.006,156.966 469.969,166.869 468.312,161.87 498.35,151.959 500.006,156.966 \t\t"}),p("polygon",{fill:"#2B2B2B",points:"474.744,120.346 443.115,121.018 443.003,115.754 474.632,115.082 474.744,120.346 \t\t"}),p("polygon",{fill:"#2B2B2B",points:"591.813,71.87 560.265,72.462 560.152,67.782 591.701,67.183 591.813,71.87 \t\t"}),p("polygon",{fill:"#2B2B2B",points:"499.438,223.992 476.472,245.614 473.248,242.223 496.206,220.601 499.438,223.992 \t\t"}),p("polygon",{fill:"#2B2B2B",points:"625.714,262.309 601.301,282.282 598.316,278.667 622.73,258.701 625.714,262.309 \t\t"}),p("polygon",{fill:"#2B2B2B",points:"587.094,241.286 595.189,271.748 590.669,272.972 582.566,242.511 \t\t"}),p("polygon",{fill:"#2B2B2B",points:"643.904,215.889 612.739,210.985 613.451,206.354 644.616,211.257 643.904,215.889 \t\t"}),p("polygon",{fill:"#2B2B2B",points:"642.568,172.725 612.188,181.22 610.907,176.717 641.289,168.222 642.568,172.725 \t\t"}),p("polygon",{fill:"#2B2B2B",points:"583.342,137.208 579.742,168.518 575.079,168.005 578.679,136.696 \t\t"}),p("polygon",{fill:"#2B2B2B",points:"545.922,177.221 519.204,160.454 521.676,156.479 548.394,173.245 545.922,177.221 \t\t"}),p("polygon",{fill:"#2B2B2B",points:"567.008,111.379 540.29,94.612 542.762,90.637 569.479,107.403 567.008,111.379 \t\t"}),p("polygon",{fill:"#2B2B2B",points:"584.438,112.122 594.733,82.325 599.173,83.829 588.878,113.626 584.438,112.122 \t\t"}),p("polygon",{fill:"#2B2B2B",points:"528.579,261.717 543.498,233.943 547.642,236.143 532.715,263.908 528.579,261.717 \t\t"}),p("polygon",{fill:"#2B2B2B",points:"633.905,106.683 609.972,86.141 613.012,82.573 636.945,103.115 633.905,106.683 \t\t"}),p("path",{fill:"#FFE535",d:"M575.951,156.759c62.394,1.063,62.394,93.759,0,94.807C513.604,250.502,513.62,157.814,575.951,156.759z"}))))}function Mf(){return p("svg",{style:Df,className:"video-icon",viewBox:"0 0 42 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p("path",{d:"M40.9471 1.06475C40.7407 0.94333 40.5061 0.877933 40.2666 0.875039C40.0271 0.872145 39.7911 0.931854 39.5817 1.04825L29.25 6.7875V6.5675C29.2482 5.05808 28.6477 3.61102 27.5802 2.54382C26.5128 1.47663 25.0655 0.876459 23.5561 0.875004H6.06887C4.55921 0.87646 3.1118 1.47682 2.04431 2.54431C0.976812 3.6118 0.376456 5.05922 0.375 6.56888V25.4311C0.376456 26.9408 0.976812 28.3882 2.04431 29.4557C3.1118 30.5232 4.55921 31.1235 6.06887 31.125H23.5561C25.0658 31.1235 26.5132 30.5232 27.5807 29.4557C28.6482 28.3882 29.2485 26.9408 29.25 25.4311V25.2125L39.5817 30.9531C39.7912 31.0696 40.0274 31.1293 40.267 31.1263C40.5065 31.1234 40.7412 31.0579 40.9477 30.9363C41.1541 30.8147 41.3253 30.6413 41.4441 30.4332C41.5629 30.2251 41.6252 29.9896 41.625 29.75V2.25C41.625 2.01052 41.5625 1.77518 41.4436 1.56729C41.3247 1.3594 41.1535 1.18617 40.9471 1.06475ZM26.5 25.4311C26.4993 26.2117 26.1889 26.96 25.637 27.512C25.085 28.0639 24.3367 28.3743 23.5561 28.375H6.06887C5.28833 28.3743 4.53997 28.0639 3.98805 27.512C3.43612 26.96 3.12573 26.2117 3.125 25.4311V6.56888C3.12573 5.78834 3.43612 5.03998 3.98805 4.48805C4.53997 3.93612 5.28833 3.62573 6.06887 3.625H23.5561C24.3367 3.62573 25.085 3.93612 25.637 4.48805C26.1889 5.03998 26.4993 5.78834 26.5 6.56888V25.4311ZM38.875 27.4125L29.25 22.0638V9.93488L38.875 4.5875V27.4125Z",fill:"black"}))}Ws(Df);var Lf=".spinner {\n -webkit-transform-origin: 50% 65%;\n transform-origin: 50% 65%; }\n\n@-webkit-keyframes dash {\n to {\n stroke-dashoffset: 136; } }\n\n@keyframes dash {\n to {\n stroke-dashoffset: 136; } }\n\n@-webkit-keyframes rotate {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n\n@keyframes rotate {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n";function Hf(){return p("svg",{style:Lf,className:"spinner",id:"goo-loader",width:"90",height:"90","aria-label":"audio-loading"},p("filter",{id:"fancy-goo"},p("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"6",result:"blur"}),p("feColorMatrix",{in:"blur",mode:"matrix",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 19 -9",result:"goo"}),p("feComposite",{in:"SourceGraphic",in2:"goo",operator:"atop"})),p("g",{filter:"url(#fancy-goo)"},p("animateTransform",{id:"mainAnim",attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 50 50",to:"359 50 50",dur:"1.2s",repeatCount:"indefinite"}),p("circle",{cx:"50%",cy:"40",r:"11",fill:"black"},p("animate",{id:"cAnim1",attributeType:"XML",attributeName:"cy",dur:"0.6s",begin:"0;cAnim1.end+0.2s",calcMode:"spline",values:"40;20;40",keyTimes:"0;0.3;1",keySplines:"0.09, 0.45, 0.16, 1;0.09, 0.45, 0.16, 1"})),p("circle",{cx:"50%",cy:"60",r:"11",fill:"black"},p("animate",{id:"cAnim2",attributeType:"XML",attributeName:"cy",dur:"0.6s",begin:"0.4s;cAnim2.end+0.2s",calcMode:"spline",values:"60;80;60",keyTimes:"0;0.3;1",keySplines:"0.09, 0.45, 0.16, 1;0.09, 0.45, 0.16, 1"}))))}function Vf(e){var t,n,r,o,i,a=Ee(re(null),2),s=a[0],u=a[1],c=Ee(re(!1),2),l=c[0],f=c[1],d=Ee(re(!1),2),h=d[0],y=d[1],m=Vs(e,Ss).apiUrl,g=(t=s,n=Ds().accessToken,r=Ee(re({uploading:!1}),2),o=r[0],i=r[1],ie((function(){if(t){var e={read:function(){return t.read()}},r={resume:!1,endpoint:"https://stage-ca.ututrust.com/files",headers:Hs(n),chunkSize:28672,uploadLengthDeferred:!0,retryDelays:[0,3e3,5e3,1e4,2e4],metadata:{filename:"webcam.webm",filetype:"video/webm"},onError:function(){i({uploading:!1,errorMessage:"video was not successfully uploaded "})},onSuccess:function(){var e,t=(e=o.url.split("/").pop(),"".concat("https://tus-test-dev-003.s3.eu-central-1.amazonaws.com","/").concat(e)),n=setInterval((function(){ao.head(t).then((function(){i({uploading:!1,publishedVideoUrl:t}),clearInterval(n)})).catch((function(){return i({errorMessage:"Video not yet available."})}))}),500);i({successMessage:"video was successfully uploaded"})}},o=new ws(e,r);o.start(),i({uploading:!0})}}),[n,t]),o),v=g.publishedVideoUrl,b=g.successMessage,_=g.errorMessage,w=Ts(m,e["source-uuid"],e["target-uuid"],e["transaction-id"]).sendFeedback;le((function(){return v&&w({video:v})}),[w,v])();return p(qs,{style:sf,className:"utu-section responsive"},p("div",null,p("div",{className:"d-flex justify-content-center"},p(Wl,{video:{height:810,width:432,frameRate:24,facingMode:"user"},videoStorageFactory:function(){var e=new af;return u(e.getReader()),e},timeslice:1e3,render:function(e){var t=e.status,n=e.startRecording,r=e.stopRecording,o=e.previewStream;return p("div",{className:"text-center "},p("div",{className:"btn-container"},"recording"!==t&&p("button",{type:"button",className:"btn-round",onClick:function(){f(!l),n()}},p(Mf,null),p("p",null,"RECORD YOUR STORY")),l&&p(zf,{closeButtonOverlay:!0,onClose:function(){return f(!1)}},p(qs,{style:sf,className:"utu-screen-recording d-flex flex-column align-items-center justify-content-center"},function(e,t){return v?Ff(v,!1):Ff(null,!0,t)}(0,o),"recording"===t&&p("button",{type:"button",className:"btn-round btn-round-stop m-1",onClick:function(){r(),u(null),y(!h)}},p("div",{className:"btn-stop-icon"})),h&&p("button",{type:"button",className:" btn-round btn-round-loading m-1"},p("div",{className:"mb-2 mr-2"},p(Hf,null))),p("div",{className:"video-msg d-flex align-items-center"},b&&p("h3",{className:"response-message my-4 text-white bg-success"}," ",b," "),_&&p("h3",{className:"response-message my-4 text-white bg-danger"}," ",_," ")),p("section",{className:"logo-position-video"},p(Tf,null))))))}}))))}function qf(e){return p(qs,{style:iu,className:"utu-feedback-form d-flex flex-column align-items-stretch"},p(Vf,e),p(Vl,e),p(cu,e),p(pl,e),p("section",{className:"logo-section"},p("div",{className:"logo-position"},p(Tf,null))))}Ws(Lf),xn({target:"Object",stat:!0,forced:Fe((function(){Mn(1)}))},{keys:function(e){return Mn(ct(e))}});var Wf='@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css);\n.trust-video {\n left: 0;\n border: none;\n max-width: 100%;\n bottom: 1.4rem;\n position: relative;\n border-top-left-radius: 2%;\n border-top-right-radius: 2%; }\n .trust-video-wrapper {\n display: flex;\n align-items: center; }\n .trust-video-wrapper:hover .trust-video-controls {\n visibility: visible;\n opacity: 1; }\n .trust-video-msg {\n display: flex;\n align-items: center; }\n .trust-video-controls {\n position: absolute;\n bottom: 14px;\n padding-left: 36px;\n left: 14px;\n width: calc(100% - 28px);\n right: 0;\n border-radius: 10px;\n height: 4em;\n align-items: center;\n justify-content: space-between;\n visibility: hidden;\n opacity: 0;\n transition: all .25s ease-out;\n display: none; }\n .trust-video-controls.show {\n display: flex; }\n .trust-video-play {\n border-color: transparent;\n transition: 0.3s;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n font-size: 3em;\n line-height: 1.5em;\n width: 3em;\n height: 3em;\n display: block;\n position: absolute;\n padding: 0;\n cursor: pointer;\n opacity: 1;\n background-color: #FFDD33;\n border-radius: 50%;\n font: normal normal normal 18px/1 FontAwesome; }\n .trust-video-play:before {\n content: "\\f04b"; }\n .trust-video-play.paused:before {\n content: "\\f04c"; }\n .trust-video-volume {\n border-color: transparent;\n color: rgba(43, 51, 63, 0.7);\n font-size: 3em;\n line-height: 1.5em;\n width: 2em;\n height: 1.5em;\n display: block;\n position: absolute;\n font: normal normal normal 18px/1 FontAwesome;\n background-color: rgba(255, 221, 51, 0.7);\n left: 20px; }\n .trust-video-volume:before {\n content: "\\f028"; }\n .trust-video-volume.off:before {\n content: "\\f026"; }\n .trust-video-fullscreen {\n border-color: transparent;\n color: rgba(43, 51, 63, 0.7);\n font-size: 3em;\n line-height: 1.5em;\n width: 3em;\n height: 1.5rem;\n display: block;\n position: absolute;\n font: normal normal normal 18px/1 FontAwesome;\n background-color: rgba(255, 221, 51, 0.7);\n right: 20px; }\n .trust-video-fullscreen:before {\n content: "\\f065"; }\n\n:host {\n margin: 0;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n font-size: 14px;\n font-weight: 300;\n line-height: 1.5;\n color: #000;\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }\n\nbody {\n overflow: scroll; }\n\n.utu-section {\n border-bottom: 1px solid rgba(0, 0, 0, 0.15);\n background: #fff;\n padding: 18px; }\n\nh3 {\n text-transform: capitalize;\n font-weight: 500;\n font-size: 14px; }\n\n.btn {\n background-color: #FFDD33;\n padding: 12px;\n border-radius: 10px;\n border: none;\n font-size: 14px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }\n\n.icon-btn {\n border: none;\n background: none;\n padding: 0;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n font-weight: 500;\n font-size: 14px; }\n .icon-btn svg {\n width: 60px;\n height: 60px; }\n\ntextarea {\n resize: vertical;\n min-height: 8rem;\n border-radius: 10px;\n border: none;\n background-color: rgba(255, 221, 51, 0.15);\n padding: 16px;\n font-weight: 300; }\n\n.error {\n color: #e80054; }\n\n.logo-position {\n position: absolute;\n top: -1rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem; }\n .logo-position-video {\n position: absolute;\n top: 41.2rem;\n left: 21rem;\n z-index: 2;\n width: 0.5rem; }\n .logo-position-player {\n position: absolute;\n bottom: -0.5rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem; }\n\n.logo-section {\n position: relative; }\n\n.logo-size {\n width: 3rem; }\n\n.utu-feedback-details {\n max-height: 40rem;\n min-width: 20rem;\n width: 27rem;\n border-bottom: 13px #FFDD33 solid;\n border-bottom-left-radius: 2%;\n border-bottom-right-radius: 2%;\n position: relative;\n z-index: 1; }\n\n.utu-feedback-video-popup {\n max-height: 80rem;\n min-width: 20rem;\n width: 27rem;\n height: 43rem;\n border-bottom: 13px #FFDD33 solid;\n position: relative;\n z-index: 1;\n justify-content: center;\n border-bottom-left-radius: 2%;\n border-bottom-right-radius: 2%; }\n\nsection {\n width: 100%; }\n\n.badge-img {\n border-radius: 50%; }\n\n.badge-counter {\n border-radius: 50%;\n border: 1px #000000 solid;\n height: 1rem;\n width: 1rem;\n background-color: white;\n color: black;\n font-size: 0.6rem;\n justify-self: center; }\n\n.badge-title {\n padding-bottom: 0.5rem;\n font-size: 0.7rem; }\n\n.badge-counter-align {\n align-items: center; }\n\n.badge-section-spacing {\n padding-top: 1rem; }\n\n.badge-spacing {\n margin-right: 0.5rem;\n margin-left: 0.5rem; }\n\n.badge-position-child {\n position: relative;\n top: 2.6rem;\n right: 1.3rem; }\n\n.avatar-img {\n border-radius: 50%;\n height: 3rem;\n border: 1px #9b9898 solid;\n margin-left: 2rem; }\n .avatar-img-top {\n border-radius: 50%;\n width: 6rem;\n height: 6rem;\n margin-bottom: 3rem;\n margin-top: 1.7rem;\n border: 4px solid #FFDD33; }\n .avatar-img-top:not(:first-child) {\n margin-left: -15px; }\n .avatar-img-text {\n font-size: 0.8rem;\n text-align: left;\n width: 19rem; }\n\n.avatar-no-img {\n width: 6rem;\n background-color: white;\n border-radius: 50%;\n padding: 1.5rem;\n margin-bottom: 3rem;\n margin-top: 1.7rem;\n border: 4px solid #FFDD33; }\n .avatar-no-img-no-vid {\n padding: 5px !important; }\n\n.stars-text {\n font-size: 0.8rem;\n align-self: center;\n text-align: left;\n width: 12rem; }\n\n.stars-align {\n display: flex;\n align-items: center;\n margin-top: 1.4rem;\n margin-bottom: 1.4rem; }\n\n.review-text {\n text-align: left;\n padding-left: 1rem;\n font-size: 0.8rem;\n align-items: center; }\n\n.review-card {\n height: 8rem;\n font-size: 0.7rem;\n background-color: #e5e5e5; }\n';Ws(Wf);var $f=".avatar-no-video {\n width: 6rem;\n height: 6rem; }\n\nsvg {\n width: 6rem;\n height: 6rem; }\n";function Gf(){return p("svg",{style:$f,version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"4.5rem",y:"4.5rem",className:"avatar-no-video",viewBox:"0 0 490.1 490.1",xmlSpace:"preserve"},p("g",null,p("g",null,p("path",{d:"M245,261.75c71.9,0,131.4-57.3,131.4-130.3S316.9,0.05,245,0.05s-131.4,57.3-131.4,130.3S173.1,261.75,245,261.75z M245,40.75c50,0,90.7,40.7,90.7,89.7s-40.7,89.6-90.7,89.6s-90.7-40.7-90.7-89.7S195,40.75,245,40.75z"}),p("path",{d:"M333.6,274.25c-8.3-2.1-16.7,0-21.9,6.3l-66.7,76.1l-66.7-76.1c-5.2-6.3-14.6-8.3-21.9-6.3C61.5,305.55,0,382.65,0,469.15 c0,11.5,9.4,20.9,20.9,20.9h448.3c11.5,0,20.9-9.4,20.9-20.9C490,382.65,428.5,305.55,333.6,274.25z M42.7,449.35 c8.4-57.3,50.1-106.3,114.7-131.3l73,83.4c7.3,9.4,22.9,9.4,30.2,0l73-83.4c63.6,25,106.4,75,114.7,131.3H42.7z"}))))}function Jf(e){var t,n,r=function(e,t){var n=Ds().accessToken,r=Ee(re(void 0),2),o=r[0],i=r[1],a=ra({targetCriteria:JSON.stringify(Ms(t))});return ie((function(){function t(){return(t=xe(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ao.get("".concat(e).concat(Ps,"?").concat(a),Ls(n));case 2:r=t.sent,i(r.data.result.data);case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}!function(){t.apply(this,arguments)}()}),[i,e,a,n]),{feedbackSummary:o}}(Vs(e,js).apiUrl,e["target-uuid"]).feedbackSummary;if(!r)return p(y,null);var o=r.badges,i=Object.keys(o),a=i.map((function(e,t){var n=o[e];return Object.keys(n).map((function(e){return p("div",{key:e,className:"d-flex flex-column pt-4 pb-4 badge-spacing"},p("div",{className:"d-flex pt-6"},p("img",{className:"badge-img mx-2 mb-2",src:n[e].badge.image,alt:"person face"}),p("div",{className:"counter badge-counter badge-position-child"},n[e].count)),p("div",{className:"px-6 py-6 badge-title"},i[t]))}))})),s=r.stars.avg,u=null===(t=r.review)||void 0===t?void 0:t.image,c=null===(n=r.review)||void 0===n?void 0:n.content,l=r.video;return p("div",null,p(qs,{style:Wf,className:"utu-feedback-details text-center d-flex flex-column justify-content-left align-items-center"},p("section",{className:"".concat(l.url?"utu-section":""," flex-column align-items-center d-flex justify-content-center pl-4 pr-4 avatar-img-top-spacing")},!l.image&&l.url?p("div",{className:"avatar-no-img pb-4"},p(Gf,null)):l.url&&p("div",{className:"flex-column align-items-center d-flex justify-content-center pl-4 pr-4 avatar-img-top-spacing"},p((function(e){var t=e.image,n=e.url,r=Ee(re(!1),2),o=r[0],i=r[1];return p("div",null,p("div",{onClick:function(){i(!o)}},p("img",{className:"avatar-img-top",src:t,alt:"person face"})),o&&n&&p(zf,{closeButtonOverlay:!0,onClose:function(){return i(!1)}},p(qs,{style:Wf,className:"utu-feedback-video-popup text-center d-flex flex-column justify-content-left align-items-center"},Ff(n,!1),p("div",{className:"logo-position-player"},p(Tf,null)))))}),{url:l.url,image:l.image}))),p("section",{className:"utu-section d-flex justify-content-center stars-spacing"},p("div",{className:"d-flex stars-align"},p(Hl,{count:5,value:s,size:30,color2:"#ffd700",edit:!1,className:"px-4"}))),p("section",{className:"d-flex justify-content-center badge-section-spacing badge-position-parent"},a),c&&p("section",null,p("div",{className:"d-flex flex-column review-card justify-content-around p-4"},p("div",{className:"d-flex"},u?p("img",{className:"avatar-img mx-2",src:u,alt:"person face"}):null,p("div",{className:"d-flex mx-2 review-text"},c)))),p("section",{className:"logo-section"},p("div",{className:"logo-position"},p(Tf,null)))))}Ws($f);var Xf=':host {\n margin: 0;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n font-size: 14px;\n font-weight: 300;\n line-height: 1.5;\n color: #000;\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }\n\nbody {\n overflow: scroll; }\n\n.utu-section {\n border-bottom: 1px solid rgba(0, 0, 0, 0.15);\n background: #fff;\n padding: 18px; }\n\nh3 {\n text-transform: capitalize;\n font-weight: 500;\n font-size: 14px; }\n\n.btn {\n background-color: #FFDD33;\n padding: 12px;\n border-radius: 10px;\n border: none;\n font-size: 14px;\n font-weight: 500;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }\n\n.icon-btn {\n border: none;\n background: none;\n padding: 0;\n font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";\n font-weight: 500;\n font-size: 14px; }\n .icon-btn svg {\n width: 60px;\n height: 60px; }\n\ntextarea {\n resize: vertical;\n min-height: 8rem;\n border-radius: 10px;\n border: none;\n background-color: rgba(255, 221, 51, 0.15);\n padding: 16px;\n font-weight: 300; }\n\n.error {\n color: #e80054; }\n\n.logo-position {\n position: absolute;\n top: -1rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem; }\n .logo-position-video {\n position: absolute;\n top: 41.2rem;\n left: 21rem;\n z-index: 2;\n width: 0.5rem; }\n .logo-position-player {\n position: absolute;\n bottom: -0.5rem;\n left: 22rem;\n z-index: 2;\n width: 0.5rem; }\n\n.logo-section {\n position: relative; }\n\n.logo-size {\n width: 3rem; }\n\n.utu-feedback-details-popup {\n height: 7rem;\n border: 0.1px #9b9898 solid;\n border-bottom-right-radius: 2%;\n border-bottom-left-radius: 2%; }\n';Ws(Xf),window.addEventListener(Rs,(function(e){localStorage.setItem(Us,JSON.stringify(e.detail))})),W((function(e){var t=function(e,t,n){var r=Ds().accessToken,o=Ee(re(void 0),2),i=o[0],a=o[1],s=ra({sourceCriteria:JSON.stringify(Ms(t)),targetType:n});return ie((function(){function t(){return(t=xe(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ao.get("".concat(e).concat(Cs,"?").concat(s),Ls(r));case 2:n=t.sent,a(n.data.result);case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}!function(){t.apply(this,arguments)}()}),[a,e,s,r]),{rankingItems:i}}(Vs(e,xs).apiUrl,e["source-uuid"],e["target-type"]).rankingItems,n=se();return ie((function(){n.current&&t&&(n.current.data=t,setTimeout((function(){n.current.dispatchEvent(new CustomEvent("loaded",{composed:!0,detail:{data:t}}))}),0))}),[n,t]),p(qs,{forwardedRef:n,className:"recommendation-root",style:$s,excludeBootstrap:!0,excludeFonts:!0},p("slot",null))}),xs,[Os,Es,ks,"target-uuids"],{shadow:!0}),W((function(e){var t=se(),n=e["target-uuid"],r=Ee(re(ou(t,n)),2),o=r[0],i=r[1];return ie((function(){function e(){i(ou(t,n))}if(t.current&&n){var r=ru(t);r&&r.addEventListener("loaded",e)}return function(){var n=ru(t);n&&n.removeEventListener("loaded",e)}}),[t,n]),p(qs,{style:nu,forwardedRef:t,className:"utu-recommendation utu-section d-flex flex-column align-items-center pt-4 pb-4 justify-content-center border-component-top"},o&&p(y,null,p("div",null,p("ul",{className:"summary-image-list d-flex justify-content-center list-unstyled mb-4 mt-4"},o.summaryImages.map((function(e){return p("li",{key:e},p("img",{className:"summary-image-item rounded-circle",src:e,alt:"summary"}))}))),p("div",{className:"mb-3"},o.summaryText))))}),"x-utu-recommendation",[As],{shadow:!0}),W(qf,Ss,[Os,Es,As],{shadow:!0}),W((function(e){var t=Ee(re(!1),2),n=t[0],r=t[1];return p(qs,{style:iu,className:"utu-feedback-form-popup utu-section d-flex flex-column align-items-stretch justify-content-center"},p("button",{type:"button",className:"btn",onClick:function(){return r(!0)}},"Give feedback"),n&&p(zf,{onClose:function(){return r(!1)}},p(qf,e)))}),"x-utu-feedback-form-popup",[Os,Es,As],{shadow:!0}),W((function(e){var t=Ee(re(!1),2),n=t[0],r=t[1];return p(qs,{style:Xf,className:"utu-section utu-feedback-details-popup d-flex flex-column align-items-strath justify-content-center"},p("button",{type:"button",className:"btn",onClick:function(){return r(!0)}},"Show Feedback Details"),n&&p(zf,{onClose:function(){return r(!1)}},p(Jf,e)))}),js,[Os],{shadow:!0})}));
|