forked from bombastictranz/awesome
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
7768-1a00b7c9e6354367.js.download
267 lines (241 loc) · 29.9 KB
/
7768-1a00b7c9e6354367.js.download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7768],{87416:function(e,t,r){"use strict";r.d(t,{C:function(){return Badge}});var o=r(28165),n=r(39479),i=r(77293),a=r(3e3),c=r(99029);let l=(0,n.B)("Badge",{root:o.iv`
display: inline-flex;
align-items: center;
justify-content: center;
text-align: center;
height: 26px;
padding: 3px 8px;
font-size: 14px;
line-height: 20px;
font-weight: 700;
${a.ZT.base};
border-radius: 100px;
${a.ZT.smallPrint1Bold};
&[data-color='gray'] {
background-color: ${c.w.neutral700};
color: ${c.w.neutral100};
}
&[data-color='white'] {
background-color: ${c.w.neutral100};
color: ${c.w.neutral800};
}
&[data-color='info'] {
background-color: ${c.w.blue10};
color: ${c.w.neutral800};
}
&[data-color='info-bold'] {
background-color: ${c.w.blue};
color: ${c.w.neutral100};
}
&[data-color='success'] {
background-color: ${c.w.success100};
color: ${c.w.neutral800};
}
&[data-color='warning'] {
background-color: ${c.w.warning100};
color: ${c.w.neutral800};
}
&[data-color='error'] {
background-color: ${c.w.error100};
color: ${c.w.neutral800};
}
&[data-color='error-bold'] {
background-color: ${c.w.error400};
color: ${c.w.neutral100};
}
`}),Badge=({color:e="gray",children:t})=>(0,i.U)("span",{css:l.root,"data-color":e},t)},66415:function(e,t,r){"use strict";r.d(t,{N:function(){return SkeletonText}});var o=r(39479),n=r(52676),i=r(77293),a=r(47043);let c=(0,o.B)("SkeletonText",{root:e=>[{display:"grid",gridTemplateColumns:"100%",gap:5},(0,n.Q)(e,{justifyItems:{left:"start",right:"end",center:"center",justify:"left"}[e]})]}),getLineHeight=e=>({heading:30,body:15})[e],getLineWidth=(e,t)=>0===t&&1===e.lines?"100%":t===e.lines-1?"70%":"justify"===e.textAlign?"100%":t%2?"100%":"93%",SkeletonText=({lines:e,size:t="body",textAlign:r="left",width:o="100%"})=>{let n=Array.from({length:e}).map((o,n)=>(0,i.U)(a.q,{height:getLineHeight(t),key:n,width:getLineWidth({lines:e,textAlign:r},n)}));return(0,i.U)("div",{css:c.root(r),"data-testid":"SkeletonText",style:{width:o}},n)}},99570:function(e,t,r){"use strict";r.d(t,{T:function(){return Surface}});var o=r(98628),n=r(99029),i=r(10391),a=r(39479),c=r(52676),l=r(77293);let u=(0,a.B)("Surface",{root:(e,t,r)=>[{borderRadius:5,transitionProperty:"box-shadow, border-color, background-color",transitionTimingFunction:o.f.transitionTimingFunction,transitionDuration:o.f.transitionDuration,alignItems:"stretch",flex:1,maxWidth:"100%"},e&&(0,c.Q)(e,{backgroundColor:n.w[e]}),r&&(0,c.Q)(`border-${r}`,{border:`1px solid ${n.w[r]}`}),t&&(0,c.Q)("hasShadow",{boxShadow:i.f[t]})]}),Surface=e=>{let{backgroundColor:t="transparent",shadow:r,borderColor:o}=e;return(0,l.U)("div",{css:u.root(t,r,o)},e.children)}},99942:function(e,t,r){"use strict";r.d(t,{i:function(){return Table}});var o=r(2784),n=r(28165),i=r(39479),a=r(77293),c=r(99929),l=r(3e3),u=r(99029),s=r(88868);let d=(0,i.B)("Table",{root:n.iv`
display: block;
width: 100%;
position: relative;
&[data-scrollable] {
overflow: auto;
&[data-scrolled-horz] {
${s.h.frozenCellHorzShadowOpacity}: 1;
}
&[data-scrolled-vert] {
${s.h.frozenCellVertShadowOpacity}: 1;
}
}
`,table:n.iv`
display: table;
&[data-collapse] {
border-collapse: collapse;
}
&[data-kind='standard'] {
width: 100%;
${l.ZT.paragraph3};
color: ${u.w.neutral800};
th,
td {
border-bottom: 1px solid ${u.w.neutral400};
background-color: ${u.w.neutral100};
padding: 15px 10px;
}
tbody tr:hover {
th,
td {
background-color: ${u.w.blue10};
}
}
}
`}),Table=({scrollable:e,children:t,collapse:r=!1,kind:n="standard"})=>{let[i,l]=(0,o.useState)(!1),[u,s]=(0,o.useState)(!1),f=(0,c.D)(e=>{let{scrollLeft:t,scrollTop:r}=e;l(t>0),s(r>0)},20);return(0,a.U)("div",{css:d.root,"data-scrollable":e?"":void 0,"data-scrolled-horz":i?"":void 0,"data-scrolled-vert":u?"":void 0,onScroll:e=>{f(e.target)}},(0,a.U)("table",{css:d.table,"data-collapse":r?"":void 0,"data-kind":n,role:"table"},t))}},79502:function(e,t,r){"use strict";r.d(t,{R:function(){return TableBody}});var o=r(28165),n=r(39479),i=r(77293);let a=(0,n.B)("TableBody",{root:o.iv`
display: table-row-group;
`}),TableBody=e=>(0,i.U)("tbody",{css:a.root},e.children)},75817:function(e,t,r){"use strict";r.d(t,{R:function(){return TableCaption}});var o=r(28165),n=r(39479),i=r(77293);let a=(0,n.B)("TableCaption",{root:o.iv`
display: table-caption;
&:not([data-show]) {
position: absolute;
height: 1px;
width: 1px;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
}
`}),TableCaption=({children:e,show:t=!1})=>(0,i.U)("caption",{css:a.root,"data-show":t?"":void 0},e)},95283:function(e,t,r){"use strict";r.d(t,{s:function(){return TableHead}});var o=r(28165),n=r(39479),i=r(77293);let a=(0,n.B)("TableHead",{root:o.iv`
display: table-header-group;
`}),TableHead=e=>(0,i.U)("thead",{css:a.root},e.children)},15030:function(e,t,r){"use strict";r.d(t,{S:function(){return TableRow}});var o=r(28165),n=r(39479),i=r(77293);let a=(0,n.B)("TableRow",{root:o.iv`
display: table-row;
`}),TableRow=e=>(0,i.U)("tr",{css:a.root,role:"row"},e.children)},90341:function(e,t,r){"use strict";r.d(t,{g:function(){return TableTd},z:function(){return u}});var o=r(28165),n=r(39479),i=r(77293),a=r(38137),c=r(88868);let l=(0,a.F)("TableTd",["frozenCellZindex"]),u=(0,n.B)("TableTd",{root:o.iv`
display: table-cell;
vertical-align: middle;
// For Safari
text-align: initial;
// tbody cells should always render lowest
tbody &,
tbody & {
${l.frozenCellZindex}: 1;
}
// thead cells should always render above tbody cells
thead &,
thead & {
${l.frozenCellZindex}: 2;
}
// thead cells that freeze in both directions should always
// render at the very top
thead &[data-freeze='row col'],
thead &[data-freeze='row col'] {
${l.frozenCellZindex}: 3;
}
&[data-freeze~='col'] {
position: sticky;
left: 0;
z-index: var(${l.frozenCellZindex}, 1);
// Render the shadow on a frozen column
&[data-shadowed~='col'] {
&::before {
pointer-events: none;
content: '';
display: block;
position: absolute;
width: 5px;
top: 0;
left: 100%;
bottom: 0;
opacity: var(${c.h.frozenCellHorzShadowOpacity}, 0);
transition: all 200ms ease-in-out;
background: linear-gradient(
90deg,
rgba(0, 0, 0, 0.1),
rgba(0, 0, 0, 0)
);
}
}
}
&[data-freeze~='row'] {
position: sticky;
top: 0;
z-index: var(${l.frozenCellZindex}, 1);
// Render the shadow on a frozen row
&[data-shadowed~='row'] {
&::after {
pointer-events: none;
content: '';
display: block;
position: absolute;
height: 5px;
top: 100%;
left: 0;
width: 100%;
opacity: var(${c.h.frozenCellVertShadowOpacity}, 0);
transition: all 200ms ease-in-out;
background: linear-gradient(
180deg,
rgba(0, 0, 0, 0.1),
rgba(0, 0, 0, 0)
);
}
}
}
`}),TableTd=e=>(0,i.U)("td",{css:[u.root,e.className],"data-freeze":e.freeze,"data-shadowed":e.shadowed,headers:e.headers,role:"cell"},e.children)},40962:function(e,t,r){"use strict";r.d(t,{c:function(){return TableTh}});var o=r(77293),n=r(90341);let TableTh=({children:e,className:t,freeze:r,headers:i,id:a,scope:c,shadowed:l,role:u="columnheader"})=>(0,o.U)("th",{css:[n.z.root,t],"data-freeze":r,"data-shadowed":l,headers:i,id:a,role:u,scope:c},e)},88868:function(e,t,r){"use strict";r.d(t,{h:function(){return n}});var o=r(38137);let n=(0,o.F)("Table",["frozenCellHorzShadowOpacity","frozenCellVertShadowOpacity"])},74936:function(e,t,r){"use strict";r.d(t,{v:function(){return Menu}});var o=r(95945),n=r(39479),i=r(77293);let a=(0,n.B)("Menu",{root:{overflow:"auto"}}),Menu=e=>(0,i.U)("ul",Object.assign({css:a.root,role:e.role},(0,o.v)(e)),e.children)},75725:function(e,t,r){"use strict";r.d(t,{s:function(){return MenuItem}});var o=r(39479),n=r(52676),i=r(77293),a=r(26215),c=r(3e3),l=r(99029);let u=(0,o.B)("MenuItem",{content:e=>[Object.assign(Object.assign({},c.ZT.paragraph3Medium),{alignItems:"center",borderRadius:3,color:l.w.neutral700,display:"flex",height:44,lineHeight:"44px",padding:"0 10px",textDecoration:"none",outline:"none",width:"100%","&:not([disabled]):hover, &:not([disabled]):focus":{backgroundColor:l.w.blue10,color:l.w.blue,fontWeight:e.isSelected?600:500},"&[disabled]":{color:l.w.neutral500,cursor:"not-allowed"}}),e.isSelected&&(0,n.Q)("selected",{backgroundColor:l.w.neutral200,fontWeight:600})],text:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}),MenuItem=e=>{let t=e.href&&!e.disabled?a.r:"button",r=t===a.r,o=e.isSelected?`${e.ariaLabel||e.children}, selected`:e.ariaLabel,n=r?{ariaLabel:o,href:e.href,rel:e.rel}:{"aria-label":o,type:"button",disabled:e.disabled},c=e.role?{role:"none"}:null;return(0,i.U)("li",Object.assign({},c),(0,i.U)(t,Object.assign({},n,{component:r?e.component:void 0,color:r?null:void 0,css:u.content(e),href:e.href,onClick:e.onClick,role:e.role}),(0,i.U)("span",{css:u.text},e.children)))}},56119:function(e,t,r){"use strict";r.d(t,{r:function(){return Grid}});var o=r(28165),n=r(39479),i=r(77293);let isNumber=e=>"number"==typeof e,a=(0,n.B)("Grid",{root:e=>(0,o.iv)({display:"grid",alignItems:e.alignItems,gap:e.gap,gridTemplateColumns:isNumber(e.columns)?`repeat(${e.columns}, 1fr)`:e.columns})}),Grid=e=>(0,i.U)("div",{css:a.root(e)},e.children)},29426:function(e,t,r){"use strict";r.d(t,{x:function(){return BackButton}});var o=r(77293),n=r(20110),i=r(52968),a=r(67762),c=r(82547);let BackButton=e=>{let t={ariaLabel:e.ariaLabel,href:e.href,onClick:e.onClick,size:"small"},r=e.isOnDarkBackground?i.N:n.z;return e.children?(0,o.U)(r,Object.assign({},t,{color:"secondary",iconBefore:"arrowBigLeft"}),e.children):e.isOnDarkBackground?(0,o.U)(c.C,Object.assign({},t,{color:"icon-secondary",icon:"arrowBigLeft",label:e.tooltipText,tooltipPosition:"east"})):(0,o.U)(a.h,Object.assign({},t,{color:"icon-alt",icon:"arrowBigLeft",label:e.tooltipText,tooltipPosition:"east"}))}},52968:function(e,t,r){"use strict";r.d(t,{N:function(){return DarkBackgroundButton}});var o=r(77293),n=r(36897),__rest=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)0>t.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};let i={primary:"primary-dark",secondary:"secondary-dark"};function DarkBackgroundButton(e){var{size:t="small",color:r="primary"}=e,a=__rest(e,["size","color"]);return(0,o.U)(n.Y,Object.assign({color:i[r],size:t},a))}},82547:function(e,t,r){"use strict";r.d(t,{C:function(){return DarkBackgroundIconButton}});var o=r(77293),n=r(81186),__rest=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)0>t.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};let i={"icon-primary":"icon-primary-dark","icon-secondary":"icon-secondary-dark"};function DarkBackgroundIconButton(e){var{color:t="icon-primary"}=e,r=__rest(e,["color"]);return(0,o.U)(n.H,Object.assign({color:i[t],size:"small"},r))}},81186:function(e,t,r){"use strict";r.d(t,{H:function(){return BaseIconButton}});var o=r(77293),n=r(23273),i=r(87593),a=r(36897),__rest=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)0>t.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};function BaseIconButton(e){var{icon:t,iconSize:r,isCircle:c,label:l,shouldCorrectTooltipPosition:u,tooltipId:s,tooltipPosition:d}=e,f=__rest(e,["icon","iconSize","isCircle","label","shouldCorrectTooltipPosition","tooltipId","tooltipPosition"]);return(0,o.U)(i.p,{content:l,position:d,shouldCorrectPosition:u,showTooltipOnTouchDevices:!1,tooltipId:s},({childProps:e})=>(0,o.U)(a.Y,Object.assign({ariaLabel:l},f,e,{isPill:c,isSquare:!0}),(0,o.U)(n.J,{canAcceptPointerEvents:!1,isBlock:!0,name:t,size:24})))}},67762:function(e,t,r){"use strict";r.d(t,{h:function(){return IconButton}});var o=r(77293),n=r(81186),__rest=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)0>t.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};function IconButton(e){var{color:t="icon-primary",size:r="small",tooltipPosition:i="south"}=e,a=__rest(e,["color","size","tooltipPosition"]);return(0,o.U)(n.H,Object.assign({color:t,size:r,tooltipPosition:i},a))}},53583:function(e,t,r){"use strict";r.d(t,{m:function(){return Tabs}});var o=r(2784),n=r(28165),i=r(26215),a=r(3e3),c=r(99029),l=r(39479),u=r(52676),s=r(77293),d=r(15504),f=r(67762),p=r(75725),b=r(74936),h=r(37168);let g=(0,l.B)("TabsDropdown",{root:n.iv`
position: relative;
`,summary:n.iv`
// Hides default icon on details element
&::-webkit-details-marker {
display: none;
}
&::before {
display: none;
}
`,menu:n.iv`
padding: 10px;
min-width: 250px;
`}),TabsDropdown=e=>{let[t,r]=(0,o.useState)(!1),n=e.items.map(t=>(0,s.U)(p.s,{disabled:t.disabled,href:t.href,isSelected:t.href===e.selectedItemHref,key:t.href,onClick:o=>{r(!1),e.onChooseItem(t,o)}},t.text)),[i]=(0,h.O)({onClickOutside:()=>{r(!1)}});return(0,s.U)("div",Object.assign({ref:i},{onKeyUp:e=>{"Escape"===e.key&&r(!1)}}),(0,s.U)(f.h,{color:"icon-primary",icon:"navMoreHoriz",label:"More items…",ariaExpanded:t,onClick:()=>r(!t),size:{medium:"xsmall",large:"small"}[e.size],tooltipPosition:"west"}),t&&(0,s.U)(d.f,{align:"right"},(0,s.U)("div",{css:g.menu},(0,s.U)(b.v,{ariaLabel:""},n))))},v=(0,l.B)("Tabs",{root:e=>[n.iv`
${a.ZT.paragraph3Semibold}
position: relative;
display: grid;
grid-template-columns: 1fr auto;
column-gap: 20px;
row-gap: 2px;
align-items: center;
`,"medium"===e&&(0,u.Q)("medium",n.iv`
height: 50px;
`),"large"===e&&(0,u.Q)("large",n.iv`
height: 70px;
`)],primary:({count:e})=>[n.iv`
display: grid;
height: 100%;
// Allow shrinking
min-width: 0;
max-width: 100%;
`,(0,u.Q)(`count-${e}`,n.iv`
grid-template-columns: repeat(${e}, minmax(auto, min-content));
`)],item:({isSelected:e})=>[n.iv`
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: ${c.w.neutral800};
font-weight: 600;
text-decoration: none;
padding: 0 20px;
&:not([disabled]):hover,
&:not([disabled]):focus {
color: ${c.w.blue};
outline: none;
}
&[disabled] {
color: ${c.w.neutral500};
cursor: not-allowed;
}
`,e&&(0,u.Q)("selected",n.iv`
color: ${c.w.blue};
`)],itemText:n.iv`
display: block;
white-space: nowrap;
`,indicatorTrack:e=>[n.iv`
position: absolute;
bottom: 0;
left: 0;
right: 0;
// This ends up being a non-integer, but it actually renders better
// in Chrome (and still renders fine in other browsers) this way.
border-radius: ${1.5}px;
height: ${3}px;
overflow: hidden;
`,e&&(0,u.Q)("visible",n.iv`
background-color: ${c.w.neutral300};
`)],indicator:n.iv`
position: absolute;
height: inherit;
border-radius: inherit;
background-color: ${c.w.blue};
transition: all 250ms ease-in-out;
`}),TabsItem=e=>e.disabled?(0,s.U)("button",{type:"button","aria-label":e.ariaLabel,css:v.item(e),disabled:!0},(0,s.U)("span",{css:v.itemText},e.text)):(0,s.U)(i.r,{ariaLabel:e.ariaLabel,ariaCurrent:e.isSelected?e.ariaCurrent:void 0,color:null,css:v.item(e),href:e.href,onClick:e.onChoose,ref:e.forwardedRef},(0,s.U)("span",{css:v.itemText},e.text)),Tabs=({items:e,selectedItemHref:t,forwardedRef:r,ariaLabel:n,ariaCurrent:i="page",isItemSelected:a=(e,t)=>e.href===t,onChooseItem:c=()=>{},shouldRenderTrack:l=!0,size:u="large"})=>{let d=(0,o.useRef)(null),[f,p]=(0,o.useState)({}),b=!e.every(e=>e.isExtra),h=e.filter(e=>!e.isExtra),g=h.map(e=>{let r=a(e,t);return(0,s.U)(TabsItem,Object.assign({},e,{ariaCurrent:i,forwardedRef:r&&b?d:null,isSelected:r,key:e.href,onChoose:t=>c(e,t)}))}),y=e.filter(e=>e.isExtra),x=y.some(e=>a(e,t)),m=y.length>0&&(0,s.U)("div",{ref:x&&b?d:null},(0,s.U)(TabsDropdown,{size:u,items:y,onChooseItem:c,selectedItemHref:t}));return(0,o.useEffect)(()=>{let e=requestAnimationFrame(()=>{p(d.current?{left:d.current.offsetLeft,width:d.current.offsetWidth}:{})});return()=>cancelAnimationFrame(e)},[e,t]),(0,s.U)("nav",{"aria-label":n,css:v.root(u)},(0,s.U)("div",{css:v.primary({count:g.length}),ref:r},g),m,(0,s.U)("div",{css:v.indicatorTrack(l)},(0,s.U)("div",{css:v.indicator,style:f})))}},44258:function(e,t,r){"use strict";r.d(t,{m:function(){return useCopyToClipboard}});var o=r(2784);let useCopyToClipboard=e=>{let[t,r]=(0,o.useState)(!1),n=(0,o.useCallback)(()=>{navigator.clipboard.writeText(e).then(()=>{r(!0)})},[e]);return(0,o.useEffect)(()=>{if(!0===t){let e=setTimeout(()=>{r(!1)},3e3);return()=>clearTimeout(e)}return()=>void 0},[t]),[t,n]}},99929:function(e,t,r){"use strict";r.d(t,{D:function(){return debounce}});let debounce=(e,t)=>{let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>{e(...o)},t)}}},79674:function(e){"use strict";e.exports=function(e,t){var r=t.length,o=e.length;if(o>r)return!1;if(o===r)return e===t;e:for(var n=0,i=0;n<o;n++){for(var a=e.charCodeAt(n);i<r;)if(t.charCodeAt(i++)===a)continue e;return!1}return!0}},47436:function(e,t,r){"use strict";r.d(t,{BV:function(){return getReasonPhrase}});var o={202:"Accepted",502:"Bad Gateway",400:"Bad Request",409:"Conflict",100:"Continue",201:"Created",417:"Expectation Failed",424:"Failed Dependency",403:"Forbidden",504:"Gateway Timeout",410:"Gone",505:"HTTP Version Not Supported",418:"I'm a teapot",419:"Insufficient Space on Resource",507:"Insufficient Storage",500:"Internal Server Error",411:"Length Required",423:"Locked",420:"Method Failure",405:"Method Not Allowed",301:"Moved Permanently",302:"Moved Temporarily",207:"Multi-Status",300:"Multiple Choices",511:"Network Authentication Required",204:"No Content",203:"Non Authoritative Information",406:"Not Acceptable",404:"Not Found",501:"Not Implemented",304:"Not Modified",200:"OK",206:"Partial Content",402:"Payment Required",308:"Permanent Redirect",412:"Precondition Failed",428:"Precondition Required",102:"Processing",103:"Early Hints",426:"Upgrade Required",407:"Proxy Authentication Required",431:"Request Header Fields Too Large",408:"Request Timeout",413:"Request Entity Too Large",414:"Request-URI Too Long",416:"Requested Range Not Satisfiable",205:"Reset Content",303:"See Other",503:"Service Unavailable",101:"Switching Protocols",307:"Temporary Redirect",429:"Too Many Requests",401:"Unauthorized",451:"Unavailable For Legal Reasons",422:"Unprocessable Entity",415:"Unsupported Media Type",305:"Use Proxy",421:"Misdirected Request"};function getReasonPhrase(e){var t=o[e.toString()];if(!t)throw Error("Status code does not exist: "+e);return t}},39515:function(e,t,r){var o=r(38761)(r(37772),"DataView");e.exports=o},52760:function(e,t,r){var o=r(38761)(r(37772),"Promise");e.exports=o},2143:function(e,t,r){var o=r(38761)(r(37772),"Set");e.exports=o},93215:function(e,t,r){var o=r(38761)(r(37772),"WeakMap");e.exports=o},81207:function(e){e.exports=function(e,t,r,o){var n=-1,i=null==e?0:e.length;for(o&&i&&(r=e[++n]);++n<i;)r=t(r,e[n],n,e);return r}},45981:function(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},35522:function(e,t,r){var o=r(53366),n=r(61158),i=r(15125),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&n(e.length)&&!!a[o(e)]}},86411:function(e,t,r){var o=r(16001),n=r(54248),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return n(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6435:function(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},47826:function(e){e.exports=function(e){return function(t){return e(t)}}},34311:function(e,t,r){var o=r(81207),n=r(97329),i=r(11618),a=RegExp("['’]","g");e.exports=function(e){return function(t){return o(i(n(t).replace(a,"")),e,"")}}},61655:function(e,t,r){var o=r(6435)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=o},70940:function(e,t,r){var o=r(39515),n=r(10326),i=r(52760),a=r(2143),c=r(93215),l=r(53366),u=r(87035),s="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",b="[object DataView]",h=u(o),g=u(n),v=u(i),y=u(a),x=u(c),m=l;(o&&m(new o(new ArrayBuffer(1)))!=b||n&&m(new n)!=s||i&&m(i.resolve())!=d||a&&m(new a)!=f||c&&m(new c)!=p)&&(m=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,o=r?u(r):"";if(o)switch(o){case h:return b;case g:return s;case v:return d;case y:return f;case x:return p}return t}),e.exports=m},83559:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},16001:function(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},54248:function(e,t,r){var o=r(60241)(Object.keys,Object);e.exports=o},4146:function(e,t,r){e=r.nmd(e);var o=r(51242),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,a=i&&i.exports===n&&o.process,c=function(){try{var e=i&&i.require&&i.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=c},60241:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},75304:function(e){var t="\ud800-\udfff",r="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",n="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",c="["+i+"]",l="["+o+"]",u="[^"+t+i+"\\d+"+r+o+n+"]",s="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+n+"]",p="(?:"+l+"|"+u+")",b="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",h="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",g="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",v="[\\ufe0e\\ufe0f]?",y="(?:\\u200d(?:"+["[^"+t+"]",s,d].join("|")+")"+v+g+")*",x="(?:"+["["+r+"]",s,d].join("|")+")"+(v+g+y),m=RegExp([f+"?"+l+"+"+b+"(?="+[c,f,"$"].join("|")+")","(?:"+f+"|"+u+")+"+h+"(?="+[c,f+p,"$"].join("|")+")",f+"?"+p+"+"+b,f+"+"+h,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",x].join("|"),"g");e.exports=function(e){return e.match(m)||[]}},97329:function(e,t,r){var o=r(61655),n=r(66188),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=n(e))&&e.replace(i,o).replace(a,"")}},67878:function(e,t,r){var o=r(61049),n=r(61158);e.exports=function(e){return null!=e&&n(e.length)&&!o(e)}},73226:function(e,t,r){e=r.nmd(e);var o=r(37772),n=r(36330),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,c=a&&a.exports===i?o.Buffer:void 0,l=c?c.isBuffer:void 0;e.exports=l||n},45455:function(e,t,r){var o=r(86411),n=r(70940),i=r(79631),a=r(86152),c=r(67878),l=r(73226),u=r(16001),s=r(77598),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(c(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||s(e)||i(e)))return!e.length;var t=n(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!o(e).length;for(var r in e)if(d.call(e,r))return!1;return!0}},77598:function(e,t,r){var o=r(35522),n=r(47826),i=r(4146),a=i&&i.isTypedArray,c=a?n(a):o;e.exports=c},57370:function(e,t,r){var o=r(34311)(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});e.exports=o},36330:function(e){e.exports=function(){return!1}},11618:function(e,t,r){var o=r(45981),n=r(83559),i=r(66188),a=r(75304);e.exports=function(e,t,r){return(e=i(e),void 0===(t=r?void 0:t))?n(e)?a(e):o(e):e.match(t)||[]}},3842:function(e,t,r){"use strict";r.d(t,{t:function(){return useLazyQuery}});var o=r(22970),n=r(2784),i=r(58769),a=r(40794),c=r(56675),l=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function useLazyQuery(e,t){var r,u=(0,n.useRef)(),s=(0,n.useRef)(),d=(0,n.useRef)(),f=u.current?(0,i.J)(t,u.current):t,p=null!==(r=null==f?void 0:f.query)&&void 0!==r?r:e;s.current=f,d.current=p;var b=(0,a.A)((0,c.x)(t&&t.client),p),h=b.useQuery((0,o.pi)((0,o.pi)({},f),{skip:!u.current})),g=h.observable.options.initialFetchPolicy||b.getDefaultFetchPolicy(),v=Object.assign(h,{called:!!u.current}),y=(0,n.useMemo)(function(){for(var e={},t=0;t<l.length;t++)!function(t){var r=v[t];e[t]=function(){return u.current||(u.current=Object.create(null),b.forceUpdate()),r.apply(this,arguments)}}(l[t]);return e},[]);return Object.assign(v,y),[(0,n.useCallback)(function(e){u.current=e?(0,o.pi)((0,o.pi)({},e),{fetchPolicy:e.fetchPolicy||g}):{fetchPolicy:g};var t=(0,i.J)(s.current,(0,o.pi)({query:d.current},u.current)),r=b.executeQuery((0,o.pi)((0,o.pi)({},t),{skip:!1})).then(function(e){return Object.assign(e,y)});return r.catch(function(){}),r},[]),v]}},33379:function(e,t,r){"use strict";r.d(t,{D:function(){return useMutation}});var o=r(22970),n=r(2784),i=r(58769),a=r(78807),c=r(87274),l=r(45832),u=r(56675);function useMutation(e,t){var r=(0,u.x)(null==t?void 0:t.client);(0,c.Vp)(e,c.n_.Mutation);var s=(0,n.useState)({called:!1,loading:!1,client:r}),d=s[0],f=s[1],p=(0,n.useRef)({result:d,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});Object.assign(p.current,{client:r,options:t,mutation:e});var b=(0,n.useCallback)(function(e){void 0===e&&(e={});var t=p.current,r=t.options,n=t.mutation,c=(0,o.pi)((0,o.pi)({},r),{mutation:n}),u=e.client||p.current.client;p.current.result.loading||c.ignoreResults||!p.current.isMounted||f(p.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:u});var s=++p.current.mutationId,d=(0,i.J)(c,e);return u.mutate(d).then(function(t){var r,o=t.data,n=t.errors,i=n&&n.length>0?new l.cA({graphQLErrors:n}):void 0;if(s===p.current.mutationId&&!d.ignoreResults){var c={called:!0,loading:!1,data:o,error:i,client:u};p.current.isMounted&&!(0,a.D)(p.current.result,c)&&f(p.current.result=c)}var b=e.onCompleted||(null===(r=p.current.options)||void 0===r?void 0:r.onCompleted);return null==b||b(t.data,d),t}).catch(function(t){if(s===p.current.mutationId&&p.current.isMounted){var r,o={loading:!1,error:t,data:void 0,called:!0,client:u};(0,a.D)(p.current.result,o)||f(p.current.result=o)}var n=e.onError||(null===(r=p.current.options)||void 0===r?void 0:r.onError);if(n)return n(t,d),{data:void 0,errors:t};throw t})},[]),h=(0,n.useCallback)(function(){p.current.isMounted&&f({called:!1,loading:!1,client:r})},[]);return(0,n.useEffect)(function(){return p.current.isMounted=!0,function(){p.current.isMounted=!1}},[]),[b,(0,o.pi)({reset:h},d)]}},82269:function(e,t,r){"use strict";function _objectWithoutProperties(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},i=Object.keys(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}r.d(t,{Z:function(){return _objectWithoutProperties}})},95922:function(e,t,r){"use strict";r.d(t,{Z:function(){return _toArray}});var o=r(64034),n=r(17602),i=r(57211),a=r(42330);function _toArray(e){return(0,o.Z)(e)||(0,n.Z)(e)||(0,i.Z)(e)||(0,a.Z)()}}}]);