Spaces:
Runtime error
Runtime error
Alex Cabrera
commited on
Commit
•
406a5d4
1
Parent(s):
0f3dbb0
clean up
Browse files- .gitignore +3 -1
- README.md +0 -8
- evals/.zeno_cache_country-area/reports.pickle +2 -2
- evals/.zeno_cache_country-area/slices.pickle +3 -0
- evals/.zeno_cache_crossword/reports.pickle +1 -1
- frontend/src/App.svelte +6 -11
- zeno-evals-hub/frontend/build/assets/main-55272372.css +1 -0
- zeno-evals-hub/frontend/build/assets/main-686621b6.js +0 -114
- zeno-evals-hub/frontend/build/assets/main-976a6d48.js +114 -0
- zeno-evals-hub/frontend/build/assets/main-a4e88c77.css +0 -1
- zeno-evals-hub/frontend/build/manifest.json +3 -3
- zeno-evals-hub/frontend/index.html +3 -3
- zeno-evals-hub/main.py +1 -0
.gitignore
CHANGED
@@ -127,4 +127,6 @@ dmypy.json
|
|
127 |
# Pyre type checker
|
128 |
.pyre/
|
129 |
|
130 |
-
# .zeno_cache*/
|
|
|
|
|
|
127 |
# Pyre type checker
|
128 |
.pyre/
|
129 |
|
130 |
+
# .zeno_cache*/
|
131 |
+
|
132 |
+
.DS_Store
|
README.md
CHANGED
@@ -16,11 +16,3 @@ fullWidth: true
|
|
16 |
`poetry install`
|
17 |
|
18 |
`python -m zeno-evals-hub evals/evals.yaml`
|
19 |
-
|
20 |
-
### Deployment
|
21 |
-
|
22 |
-
We are using [Railway]() for deployment. To deploy, run:
|
23 |
-
|
24 |
-
1. `railway login`
|
25 |
-
2. `railway link`
|
26 |
-
3. `railway up`
|
|
|
16 |
`poetry install`
|
17 |
|
18 |
`python -m zeno-evals-hub evals/evals.yaml`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
evals/.zeno_cache_country-area/reports.pickle
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6f72e49e684119b434fba6cbd8369a9ea077f8d05bcba159a8456569de2b7b66
|
3 |
+
size 3880
|
evals/.zeno_cache_country-area/slices.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:639f49f4ccf5554e171d4d8a17c797b851b134605c0ea669a8a1c8b25bb17021
|
3 |
+
size 1990
|
evals/.zeno_cache_crossword/reports.pickle
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 6586
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6c1dc251387b1070c8e8b4ce142f75d26006804580d8c2239a9168913460528b
|
3 |
size 6586
|
frontend/src/App.svelte
CHANGED
@@ -8,21 +8,16 @@
|
|
8 |
|
9 |
<main>
|
10 |
<header>
|
11 |
-
<h1>Zeno Evals
|
12 |
</header>
|
13 |
<div class="tagline">
|
14 |
-
|
|
|
|
|
15 |
<img class="open_ai" src="./build/openai.svg" alt="OpenAI logo" />
|
16 |
<a href="https://github.com/openai/evals">
|
17 |
-
<b>OpenAI Evals
|
18 |
-
</a>
|
19 |
-
with
|
20 |
-
<img class="open_ai" src="./build/zeno.png" alt="Zeno logo" />
|
21 |
-
<b
|
22 |
-
><a style:color="var(--logo)" href="https://github.com/zeno-ml/zeno/stargazers"
|
23 |
-
>Zeno</a
|
24 |
-
></b
|
25 |
-
>
|
26 |
</div>
|
27 |
<br />
|
28 |
<div class="tagline">
|
|
|
8 |
|
9 |
<main>
|
10 |
<header>
|
11 |
+
<h1>Zeno + OpenAI Evals</h1>
|
12 |
</header>
|
13 |
<div class="tagline">
|
14 |
+
Use the <img class="open_ai" src="./build/zeno.png" alt="Zeno logo" />
|
15 |
+
<b><a style:color="var(--logo)" href="https://github.com/zeno-ml/zeno/">Zeno</a></b>
|
16 |
+
AI evaluation tool to compare the performance of models accross
|
17 |
<img class="open_ai" src="./build/openai.svg" alt="OpenAI logo" />
|
18 |
<a href="https://github.com/openai/evals">
|
19 |
+
<b>OpenAI Evals</b>
|
20 |
+
</a> tasks.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
</div>
|
22 |
<br />
|
23 |
<div class="tagline">
|
zeno-evals-hub/frontend/build/assets/main-55272372.css
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
iframe.svelte-195gryk.svelte-195gryk{margin-left:10px}#container.svelte-195gryk.svelte-195gryk{margin:50px 20px;display:flex;justify-content:center}#table-background.svelte-195gryk.svelte-195gryk{width:1100px;min-width:900px;padding:20px;border-radius:20px}.name-wrap.svelte-195gryk.svelte-195gryk{border:1px solid transparent;border-radius:10px;font-weight:500;color:var(--logo)}.name-wrap.svelte-195gryk.svelte-195gryk:hover{color:var(--P2)}table.svelte-195gryk.svelte-195gryk{border-collapse:collapse;text-align:left;cursor:default;margin-left:auto;margin-right:auto}table.svelte-195gryk thead tr th.svelte-195gryk{border-bottom:.5px solid grey}table.svelte-195gryk th.svelte-195gryk,table.svelte-195gryk td.svelte-195gryk{padding:4px 25px}table.svelte-195gryk td.svelte-195gryk:first-child,table.svelte-195gryk th.svelte-195gryk:first-child{border-radius:20px 0 0 20px}table.svelte-195gryk td.svelte-195gryk:last-child,table.svelte-195gryk th.svelte-195gryk:last-child{border-radius:0 20px 20px 0}tbody.svelte-195gryk.svelte-195gryk:before{content:"@";display:block;line-height:10px;text-indent:-99999px}thead.svelte-195gryk tr.svelte-195gryk{color:#213547}tbody.svelte-195gryk tr.svelte-195gryk{opacity:.9;height:70px}.open_ai.svelte-195gryk.svelte-195gryk{width:20px;margin-left:5px}.tagline.svelte-195gryk.svelte-195gryk{font-size:18px;text-align:center;display:flex;justify-content:center;align-items:center}.tagline.svelte-195gryk b.svelte-195gryk{margin-right:5px;margin-left:5px}header.svelte-195gryk.svelte-195gryk{display:flex;align-items:center;justify-content:center}
|
zeno-evals-hub/frontend/build/assets/main-686621b6.js
DELETED
@@ -1,114 +0,0 @@
|
|
1 |
-
function B(){}function I(t,e){for(const n in e)t[n]=e[n];return t}function ht(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function ut(t){return t()}function Xe(){return Object.create(null)}function T(t){t.forEach(ut)}function ue(t){return typeof t=="function"}function Y(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let we;function We(t,e){return we||(we=document.createElement("a")),we.href=e,t===we.href}function pt(t){return Object.keys(t).length===0}function ve(t,e,n,i){if(t){const a=ct(t,e,n,i);return t[0](a)}}function ct(t,e,n,i){return t[1]&&i?I(n.ctx.slice(),t[1](i(e))):n.ctx}function be(t,e,n,i){if(t[2]&&i){const a=t[2](i(n));if(e.dirty===void 0)return a;if(typeof a=="object"){const s=[],l=Math.max(e.dirty.length,a.length);for(let r=0;r<l;r+=1)s[r]=e.dirty[r]|a[r];return s}return e.dirty|a}return e.dirty}function ye(t,e,n,i,a,s){if(a){const l=ct(e,n,i,s);t.p(l,a)}}function Ae(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}function ae(t){const e={};for(const n in t)n[0]!=="$"&&(e[n]=t[n]);return e}function q(t,e){const n={};e=new Set(e);for(const i in t)!e.has(i)&&i[0]!=="$"&&(n[i]=t[i]);return n}function re(t){return t&&ue(t.destroy)?t.destroy:B}function k(t,e){t.appendChild(e)}function R(t,e,n){t.insertBefore(e,n||null)}function M(t){t.parentNode&&t.parentNode.removeChild(t)}function He(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function C(t){return document.createElement(t)}function _t(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function P(t){return document.createTextNode(t)}function G(){return P(" ")}function $(){return P("")}function Ze(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function gt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function vt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function w(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function bt(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in e)e[i]==null?t.removeAttribute(i):i==="style"?t.style.cssText=e[i]:i==="__value"?t.value=t[i]=e[i]:n[i]&&n[i].set?t[i]=e[i]:w(t,i,e[i])}function Ve(t,e){for(const n in e)w(t,n,e[n])}function yt(t,e){Object.keys(e).forEach(n=>{At(t,n,e[n])})}function At(t,e,n){e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:w(t,e,n)}function Fe(t){return/-/.test(t)?yt:bt}function kt(t){return Array.from(t.childNodes)}function St(t,e,n,i){n===null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function se(t,e){return new t(e)}let _e;function J(t){_e=t}function x(){if(!_e)throw new Error("Function called outside component initialization");return _e}function Je(t,e){return x().$$.context.set(t,e),e}function ge(t){return x().$$.context.get(t)}function wt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}const ne=[],N=[];let ie=[];const Ke=[],Ct=Promise.resolve();let Be=!1;function Mt(){Be||(Be=!0,Ct.then(Pe))}function Ie(t){ie.push(t)}const Le=new Set;let te=0;function Pe(){if(te!==0)return;const t=_e;do{try{for(;te<ne.length;){const e=ne[te];te++,J(e),Dt(e.$$)}}catch(e){throw ne.length=0,te=0,e}for(J(null),ne.length=0,te=0;N.length;)N.pop()();for(let e=0;e<ie.length;e+=1){const n=ie[e];Le.has(n)||(Le.add(n),n())}ie.length=0}while(ne.length);for(;Ke.length;)Ke.pop()();Be=!1,Le.clear(),J(t)}function Dt(t){if(t.fragment!==null){t.update(),T(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Ie)}}function zt(t){const e=[],n=[];ie.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),ie=e}const Re=new Set;let ee;function ce(){ee={r:0,c:[],p:ee}}function fe(){ee.r||T(ee.c),ee=ee.p}function E(t,e){t&&t.i&&(Re.delete(t),t.i(e))}function L(t,e,n,i){if(t&&t.o){if(Re.has(t))return;Re.add(t),ee.c.push(()=>{Re.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}function Ht(t,e){const n=e.token={};function i(a,s,l,r){if(e.token!==n)return;e.resolved=r;let o=e.ctx;l!==void 0&&(o=o.slice(),o[l]=r);const u=a&&(e.current=a)(o);let c=!1;e.block&&(e.blocks?e.blocks.forEach((f,h)=>{h!==s&&f&&(ce(),L(f,1,1,()=>{e.blocks[h]===f&&(e.blocks[h]=null)}),fe())}):e.block.d(1),u.c(),E(u,1),u.m(e.mount(),e.anchor),c=!0),e.block=u,e.blocks&&(e.blocks[s]=u),c&&Pe()}if(ht(t)){const a=x();if(t.then(s=>{J(a),i(e.then,1,e.value,s),J(null)},s=>{if(J(a),i(e.catch,2,e.error,s),J(null),!e.hasCatch)throw s}),e.current!==e.pending)return i(e.pending,0),!0}else{if(e.current!==e.then)return i(e.then,1,e.value,t),!0;e.resolved=t}}function Rt(t,e,n){const i=e.slice(),{resolved:a}=t;t.current===t.then&&(i[t.value]=a),t.current===t.catch&&(i[t.error]=a),t.block.p(i,n)}function de(t,e){const n={},i={},a={$$scope:1};let s=t.length;for(;s--;){const l=t[s],r=e[s];if(r){for(const o in l)o in r||(i[o]=1);for(const o in r)a[o]||(n[o]=r[o],a[o]=1);t[s]=r}else for(const o in l)a[o]=1}for(const l in i)l in n||(n[l]=void 0);return n}function Q(t){return typeof t=="object"&&t!==null?t:{}}function K(t){t&&t.c()}function X(t,e,n,i){const{fragment:a,after_update:s}=t.$$;a&&a.m(e,n),i||Ie(()=>{const l=t.$$.on_mount.map(ut).filter(ue);t.$$.on_destroy?t.$$.on_destroy.push(...l):T(l),t.$$.on_mount=[]}),s.forEach(Ie)}function W(t,e){const n=t.$$;n.fragment!==null&&(zt(n.after_update),T(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ft(t,e){t.$$.dirty[0]===-1&&(ne.push(t),Mt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function me(t,e,n,i,a,s,l,r=[-1]){const o=_e;J(t);const u=t.$$={fragment:null,ctx:[],props:s,update:B,not_equal:a,bound:Xe(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(o?o.$$.context:[])),callbacks:Xe(),dirty:r,skip_bound:!1,root:e.target||o.$$.root};l&&l(u.root);let c=!1;if(u.ctx=n?n(t,e.props||{},(f,h,...D)=>{const m=D.length?D[0]:h;return u.ctx&&a(u.ctx[f],u.ctx[f]=m)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](m),c&&Ft(t,f)),h}):[],u.update(),c=!0,T(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){const f=kt(e.target);u.fragment&&u.fragment.l(f),f.forEach(M)}else u.fragment&&u.fragment.c();e.intro&&E(t.$$.fragment),X(t,e.target,e.anchor,e.customElement),Pe()}J(o)}class he{$destroy(){W(this,1),this.$destroy=B}$on(e,n){if(!ue(n))return B;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const a=i.indexOf(n);a!==-1&&i.splice(a,1)}}$set(e){this.$$set&&!pt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function oe(t){return Object.entries(t).filter(([e,n])=>e!==""&&n).map(([e])=>e).join(" ")}function Et(t,e,n,i={bubbles:!0},a=!1){if(typeof Event>"u")throw new Error("Event not defined.");if(!t)throw new Error("Tried to dipatch event without element.");const s=new CustomEvent(e,Object.assign(Object.assign({},i),{detail:n}));if(t?.dispatchEvent(s),a&&e.startsWith("SMUI")){const l=new CustomEvent(e.replace(/^SMUI/g,()=>"MDC"),Object.assign(Object.assign({},i),{detail:n}));t?.dispatchEvent(l),l.defaultPrevented&&s.preventDefault()}return s}const Qe=/^[a-z]+(?::(?:preventDefault|stopPropagation|passive|nonpassive|capture|once|self))+$/,Ut=/^[^$]+(?:\$(?:preventDefault|stopPropagation|passive|nonpassive|capture|once|self))+$/;function ke(t){let e,n=[];t.$on=(a,s)=>{let l=a,r=()=>{};return e?r=e(l,s):n.push([l,s]),l.match(Qe)&&console&&console.warn('Event modifiers in SMUI now use "$" instead of ":", so that all events can be bound with modifiers. Please update your event binding: ',l),()=>{r()}};function i(a){wt(t,a)}return a=>{const s=[],l={};e=(r,o)=>{let u=r,c=o,f=!1;const h=u.match(Qe),D=u.match(Ut),m=h||D;if(u.match(/^SMUI:\w+:/)){const y=u.split(":");let v="";for(let A=0;A<y.length;A++)v+=A===y.length-1?":"+y[A]:y[A].split("-").map(U=>U.slice(0,1).toUpperCase()+U.slice(1)).join("");console.warn(`The event ${u.split("$")[0]} has been renamed to ${v.split("$")[0]}.`),u=v}if(m){const y=u.split(h?":":"$");u=y[0];const v=y.slice(1).reduce((A,U)=>(A[U]=!0,A),{});v.passive&&(f=f||{},f.passive=!0),v.nonpassive&&(f=f||{},f.passive=!1),v.capture&&(f=f||{},f.capture=!0),v.once&&(f=f||{},f.once=!0),v.preventDefault&&(c=gt(c)),v.stopPropagation&&(c=vt(c))}const b=Ze(a,u,c,f),O=()=>{b();const y=s.indexOf(O);y>-1&&s.splice(y,1)};return s.push(O),u in l||(l[u]=Ze(a,u,i)),O};for(let r=0;r<n.length;r++)e(n[r][0],n[r][1]);return{destroy:()=>{for(let r=0;r<s.length;r++)s[r]();for(let r of Object.entries(l))r[1]()}}}}function qe(t,e){let n=[];if(e)for(let i=0;i<e.length;i++){const a=e[i],s=Array.isArray(a)?a[0]:a;Array.isArray(a)&&a.length>1?n.push(s(t,a[1])):n.push(s(t))}return{update(i){if((i&&i.length||0)!=n.length)throw new Error("You must not change the length of an actions array.");if(i)for(let a=0;a<i.length;a++){const s=n[a];if(s&&s.update){const l=i[a];Array.isArray(l)&&l.length>1?s.update(l[1]):s.update()}}},destroy(){for(let i=0;i<n.length;i++){const a=n[i];a&&a.destroy&&a.destroy()}}}}var Ce;function Lt(t,e){e===void 0&&(e=!1);var n=t.CSS,i=Ce;if(typeof Ce=="boolean"&&!e)return Ce;var a=n&&typeof n.supports=="function";if(!a)return!1;var s=n.supports("--css-vars","yes"),l=n.supports("(--css-vars: yes)")&&n.supports("color","#00000000");return i=s||l,e||(Ce=i),i}function Ot(t,e,n){if(!t)return{x:0,y:0};var i=e.x,a=e.y,s=i+n.left,l=a+n.top,r,o;if(t.type==="touchstart"){var u=t;r=u.changedTouches[0].pageX-s,o=u.changedTouches[0].pageY-l}else{var c=t;r=c.pageX-s,o=c.pageY-l}return{x:r,y:o}}var Ge=function(t,e){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},Ge(t,e)};function jt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ge(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var pe=function(){return pe=Object.assign||function(e){for(var n,i=1,a=arguments.length;i<a;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},pe.apply(this,arguments)};function Me(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}/**
|
2 |
-
* @license
|
3 |
-
* Copyright 2016 Google Inc.
|
4 |
-
*
|
5 |
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 |
-
* of this software and associated documentation files (the "Software"), to deal
|
7 |
-
* in the Software without restriction, including without limitation the rights
|
8 |
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9 |
-
* copies of the Software, and to permit persons to whom the Software is
|
10 |
-
* furnished to do so, subject to the following conditions:
|
11 |
-
*
|
12 |
-
* The above copyright notice and this permission notice shall be included in
|
13 |
-
* all copies or substantial portions of the Software.
|
14 |
-
*
|
15 |
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 |
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17 |
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18 |
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19 |
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20 |
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21 |
-
* THE SOFTWARE.
|
22 |
-
*/var Bt=function(){function t(e){e===void 0&&(e={}),this.adapter=e}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}();/**
|
23 |
-
* @license
|
24 |
-
* Copyright 2019 Google Inc.
|
25 |
-
*
|
26 |
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
27 |
-
* of this software and associated documentation files (the "Software"), to deal
|
28 |
-
* in the Software without restriction, including without limitation the rights
|
29 |
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
30 |
-
* copies of the Software, and to permit persons to whom the Software is
|
31 |
-
* furnished to do so, subject to the following conditions:
|
32 |
-
*
|
33 |
-
* The above copyright notice and this permission notice shall be included in
|
34 |
-
* all copies or substantial portions of the Software.
|
35 |
-
*
|
36 |
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
37 |
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
38 |
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
39 |
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
40 |
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
41 |
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
42 |
-
* THE SOFTWARE.
|
43 |
-
*/function It(t){return t===void 0&&(t=window),Gt(t)?{passive:!0}:!1}function Gt(t){t===void 0&&(t=window);var e=!1;try{var n={get passive(){return e=!0,!1}},i=function(){};t.document.addEventListener("test",i,n),t.document.removeEventListener("test",i,n)}catch{e=!1}return e}const Pt=Object.freeze(Object.defineProperty({__proto__:null,applyPassive:It},Symbol.toStringTag,{value:"Module"}));/**
|
44 |
-
* @license
|
45 |
-
* Copyright 2018 Google Inc.
|
46 |
-
*
|
47 |
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
48 |
-
* of this software and associated documentation files (the "Software"), to deal
|
49 |
-
* in the Software without restriction, including without limitation the rights
|
50 |
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
51 |
-
* copies of the Software, and to permit persons to whom the Software is
|
52 |
-
* furnished to do so, subject to the following conditions:
|
53 |
-
*
|
54 |
-
* The above copyright notice and this permission notice shall be included in
|
55 |
-
* all copies or substantial portions of the Software.
|
56 |
-
*
|
57 |
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
58 |
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
59 |
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
60 |
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
61 |
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
62 |
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
63 |
-
* THE SOFTWARE.
|
64 |
-
*/function qt(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(ft(n,e))return n;n=n.parentElement}return null}function ft(t,e){var n=t.matches||t.webkitMatchesSelector||t.msMatchesSelector;return n.call(t,e)}function Xt(t){var e=t;if(e.offsetParent!==null)return e.scrollWidth;var n=e.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var i=n.scrollWidth;return document.documentElement.removeChild(n),i}const Wt=Object.freeze(Object.defineProperty({__proto__:null,closest:qt,estimateScrollWidth:Xt,matches:ft},Symbol.toStringTag,{value:"Module"}));/**
|
65 |
-
* @license
|
66 |
-
* Copyright 2016 Google Inc.
|
67 |
-
*
|
68 |
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
69 |
-
* of this software and associated documentation files (the "Software"), to deal
|
70 |
-
* in the Software without restriction, including without limitation the rights
|
71 |
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
72 |
-
* copies of the Software, and to permit persons to whom the Software is
|
73 |
-
* furnished to do so, subject to the following conditions:
|
74 |
-
*
|
75 |
-
* The above copyright notice and this permission notice shall be included in
|
76 |
-
* all copies or substantial portions of the Software.
|
77 |
-
*
|
78 |
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
79 |
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
80 |
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
81 |
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
82 |
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
83 |
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
84 |
-
* THE SOFTWARE.
|
85 |
-
*/var Zt={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},Vt={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},Ne={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};/**
|
86 |
-
* @license
|
87 |
-
* Copyright 2016 Google Inc.
|
88 |
-
*
|
89 |
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
90 |
-
* of this software and associated documentation files (the "Software"), to deal
|
91 |
-
* in the Software without restriction, including without limitation the rights
|
92 |
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
93 |
-
* copies of the Software, and to permit persons to whom the Software is
|
94 |
-
* furnished to do so, subject to the following conditions:
|
95 |
-
*
|
96 |
-
* The above copyright notice and this permission notice shall be included in
|
97 |
-
* all copies or substantial portions of the Software.
|
98 |
-
*
|
99 |
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
100 |
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
101 |
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
102 |
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
103 |
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
104 |
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
105 |
-
* THE SOFTWARE.
|
106 |
-
*/var Te=["touchstart","pointerdown","mousedown","keydown"],Ye=["touchend","pointerup","mouseup","contextmenu"],De=[],Jt=function(t){jt(e,t);function e(n){var i=t.call(this,pe(pe({},e.defaultAdapter),n))||this;return i.activationAnimationHasEnded=!1,i.activationTimer=0,i.fgDeactivationRemovalTimer=0,i.fgScale="0",i.frame={width:0,height:0},i.initialSize=0,i.layoutFrame=0,i.maxRadius=0,i.unboundedCoords={left:0,top:0},i.activationState=i.defaultActivationState(),i.activationTimerCallback=function(){i.activationAnimationHasEnded=!0,i.runDeactivationUXLogicIfReady()},i.activateHandler=function(a){i.activateImpl(a)},i.deactivateHandler=function(){i.deactivateImpl()},i.focusHandler=function(){i.handleFocus()},i.blurHandler=function(){i.handleBlur()},i.resizeHandler=function(){i.layout()},i}return Object.defineProperty(e,"cssClasses",{get:function(){return Zt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Vt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Ne},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var n=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var a=e.cssClasses,s=a.ROOT,l=a.UNBOUNDED;requestAnimationFrame(function(){n.adapter.addClass(s),n.adapter.isUnbounded()&&(n.adapter.addClass(l),n.layoutInternal())})}},e.prototype.destroy=function(){var n=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var i=e.cssClasses,a=i.ROOT,s=i.UNBOUNDED;requestAnimationFrame(function(){n.adapter.removeClass(a),n.adapter.removeClass(s),n.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(n){this.activateImpl(n)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var n=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){n.layoutInternal(),n.layoutFrame=0})},e.prototype.setUnbounded=function(n){var i=e.cssClasses.UNBOUNDED;n?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleFocus=function(){var n=this;requestAnimationFrame(function(){return n.adapter.addClass(e.cssClasses.BG_FOCUSED)})},e.prototype.handleBlur=function(){var n=this;requestAnimationFrame(function(){return n.adapter.removeClass(e.cssClasses.BG_FOCUSED)})},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(n){var i,a;if(n){try{for(var s=Me(Te),l=s.next();!l.done;l=s.next()){var r=l.value;this.adapter.registerInteractionHandler(r,this.activateHandler)}}catch(o){i={error:o}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(n){var i,a;if(n.type==="keydown")this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var s=Me(Ye),l=s.next();!l.done;l=s.next()){var r=l.value;this.adapter.registerDocumentInteractionHandler(r,this.deactivateHandler)}}catch(o){i={error:o}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}},e.prototype.deregisterRootHandlers=function(){var n,i;try{for(var a=Me(Te),s=a.next();!s.done;s=a.next()){var l=s.value;this.adapter.deregisterInteractionHandler(l,this.activateHandler)}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var n,i;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var a=Me(Ye),s=a.next();!s.done;s=a.next()){var l=s.value;this.adapter.deregisterDocumentInteractionHandler(l,this.deactivateHandler)}}catch(r){n={error:r}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}},e.prototype.removeCssVars=function(){var n=this,i=e.strings,a=Object.keys(i);a.forEach(function(s){s.indexOf("VAR_")===0&&n.adapter.updateCssVariable(i[s],null)})},e.prototype.activateImpl=function(n){var i=this;if(!this.adapter.isSurfaceDisabled()){var a=this.activationState;if(!a.isActivated){var s=this.previousActivationEvent,l=s&&n!==void 0&&s.type!==n.type;if(!l){a.isActivated=!0,a.isProgrammatic=n===void 0,a.activationEvent=n,a.wasActivatedByPointer=a.isProgrammatic?!1:n!==void 0&&(n.type==="mousedown"||n.type==="touchstart"||n.type==="pointerdown");var r=n!==void 0&&De.length>0&&De.some(function(o){return i.adapter.containsEventTarget(o)});if(r){this.resetActivationState();return}n!==void 0&&(De.push(n.target),this.registerDeactivationHandlers(n)),a.wasElementMadeActive=this.checkElementMadeActive(n),a.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){De=[],!a.wasElementMadeActive&&n!==void 0&&(n.key===" "||n.keyCode===32)&&(a.wasElementMadeActive=i.checkElementMadeActive(n),a.wasElementMadeActive&&i.animateActivation()),a.wasElementMadeActive||(i.activationState=i.defaultActivationState())})}}}},e.prototype.checkElementMadeActive=function(n){return n!==void 0&&n.type==="keydown"?this.adapter.isSurfaceActive():!0},e.prototype.animateActivation=function(){var n=this,i=e.strings,a=i.VAR_FG_TRANSLATE_START,s=i.VAR_FG_TRANSLATE_END,l=e.cssClasses,r=l.FG_DEACTIVATION,o=l.FG_ACTIVATION,u=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",f="";if(!this.adapter.isUnbounded()){var h=this.getFgTranslationCoordinates(),D=h.startPoint,m=h.endPoint;c=D.x+"px, "+D.y+"px",f=m.x+"px, "+m.y+"px"}this.adapter.updateCssVariable(a,c),this.adapter.updateCssVariable(s,f),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(r),this.adapter.computeBoundingRect(),this.adapter.addClass(o),this.activationTimer=setTimeout(function(){n.activationTimerCallback()},u)},e.prototype.getFgTranslationCoordinates=function(){var n=this.activationState,i=n.activationEvent,a=n.wasActivatedByPointer,s;a?s=Ot(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):s={x:this.frame.width/2,y:this.frame.height/2},s={x:s.x-this.initialSize/2,y:s.y-this.initialSize/2};var l={x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2};return{startPoint:s,endPoint:l}},e.prototype.runDeactivationUXLogicIfReady=function(){var n=this,i=e.cssClasses.FG_DEACTIVATION,a=this.activationState,s=a.hasDeactivationUXRun,l=a.isActivated,r=s||!l;r&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout(function(){n.adapter.removeClass(i)},Ne.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var n=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(n),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var n=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return n.previousActivationEvent=void 0},e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var n=this,i=this.activationState;if(i.isActivated){var a=pe({},i);i.isProgrammatic?(requestAnimationFrame(function(){n.animateDeactivation(a)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){n.activationState.hasDeactivationUXRun=!0,n.animateDeactivation(a),n.resetActivationState()}))}},e.prototype.animateDeactivation=function(n){var i=n.wasActivatedByPointer,a=n.wasElementMadeActive;(i||a)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var n=this;this.frame=this.adapter.computeBoundingRect();var i=Math.max(this.frame.height,this.frame.width),a=function(){var l=Math.sqrt(Math.pow(n.frame.width,2)+Math.pow(n.frame.height,2));return l+e.numbers.PADDING};this.maxRadius=this.adapter.isUnbounded()?i:a();var s=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&s%2!==0?this.initialSize=s-1:this.initialSize=s,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var n=e.strings,i=n.VAR_FG_SIZE,a=n.VAR_LEFT,s=n.VAR_TOP,l=n.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(l,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(a,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(s,this.unboundedCoords.top+"px"))},e}(Bt);const{applyPassive:ze}=Pt,{matches:Kt}=Wt;function $e(t,{ripple:e=!0,surface:n=!1,unbounded:i=!1,disabled:a=!1,color:s,active:l,rippleElement:r,eventTarget:o,activeTarget:u,addClass:c=m=>t.classList.add(m),removeClass:f=m=>t.classList.remove(m),addStyle:h=(m,b)=>t.style.setProperty(m,b),initPromise:D=Promise.resolve()}={}){let m,b=ge("SMUI:addLayoutListener"),O,y=l,v=o,A=u;function U(){n?(c("mdc-ripple-surface"),s==="primary"?(c("smui-ripple-surface--primary"),f("smui-ripple-surface--secondary")):s==="secondary"?(f("smui-ripple-surface--primary"),c("smui-ripple-surface--secondary")):(f("smui-ripple-surface--primary"),f("smui-ripple-surface--secondary"))):(f("mdc-ripple-surface"),f("smui-ripple-surface--primary"),f("smui-ripple-surface--secondary")),m&&y!==l&&(y=l,l?m.activate():l===!1&&m.deactivate()),e&&!m?(m=new Jt({addClass:c,browserSupportsCssVars:()=>Lt(window),computeBoundingRect:()=>(r||t).getBoundingClientRect(),containsEventTarget:S=>t.contains(S),deregisterDocumentInteractionHandler:(S,g)=>document.documentElement.removeEventListener(S,g,ze()),deregisterInteractionHandler:(S,g)=>(o||t).removeEventListener(S,g,ze()),deregisterResizeHandler:S=>window.removeEventListener("resize",S),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset}),isSurfaceActive:()=>l??Kt(u||t,":active"),isSurfaceDisabled:()=>!!a,isUnbounded:()=>!!i,registerDocumentInteractionHandler:(S,g)=>document.documentElement.addEventListener(S,g,ze()),registerInteractionHandler:(S,g)=>(o||t).addEventListener(S,g,ze()),registerResizeHandler:S=>window.addEventListener("resize",S),removeClass:f,updateCssVariable:h}),D.then(()=>{m&&(m.init(),m.setUnbounded(i))})):m&&!e&&D.then(()=>{m&&(m.destroy(),m=void 0)}),m&&(v!==o||A!==u)&&(v=o,A=u,m.destroy(),requestAnimationFrame(()=>{m&&(m.init(),m.setUnbounded(i))})),!e&&i&&c("mdc-ripple-upgraded--unbounded")}U(),b&&(O=b(z));function z(){m&&m.layout()}return{update(S){({ripple:e,surface:n,unbounded:i,disabled:a,color:s,active:l,rippleElement:r,eventTarget:o,activeTarget:u,addClass:c,removeClass:f,addStyle:h,initPromise:D}=Object.assign({ripple:!0,surface:!1,unbounded:!1,disabled:!1,color:void 0,active:void 0,rippleElement:void 0,eventTarget:void 0,activeTarget:void 0,addClass:g=>t.classList.add(g),removeClass:g=>t.classList.remove(g),addStyle:(g,d)=>t.style.setProperty(g,d),initPromise:Promise.resolve()},S)),U()},destroy(){m&&(m.destroy(),m=void 0,f("mdc-ripple-surface"),f("smui-ripple-surface--primary"),f("smui-ripple-surface--secondary")),O&&O()}}}function Qt(t){let e;const n=t[10].default,i=ve(n,t,t[12],null);return{c(){i&&i.c()},m(a,s){i&&i.m(a,s),e=!0},p(a,s){i&&i.p&&(!e||s&4096)&&ye(i,n,a,a[12],e?be(n,a[12],s,null):Ae(a[12]),null)},i(a){e||(E(i,a),e=!0)},o(a){L(i,a),e=!1},d(a){i&&i.d(a)}}}function Nt(t){let e,n,i;const a=[{tag:t[3]},{use:[t[5],...t[0]]},{class:oe({[t[1]]:!0,"mdc-button__label":t[6]==="button","mdc-fab__label":t[6]==="fab","mdc-tab__text-label":t[6]==="tab","mdc-image-list__label":t[6]==="image-list","mdc-snackbar__label":t[6]==="snackbar","mdc-banner__text":t[6]==="banner","mdc-segmented-button__label":t[6]==="segmented-button","mdc-data-table__pagination-rows-per-page-label":t[6]==="data-table:pagination","mdc-data-table__header-cell-label":t[6]==="data-table:sortable-header-cell"})},t[6]==="snackbar"?{"aria-atomic":"false"}:{},{tabindex:t[7]},t[8]];var s=t[2];function l(r){let o={$$slots:{default:[Qt]},$$scope:{ctx:r}};for(let u=0;u<a.length;u+=1)o=I(o,a[u]);return{props:o}}return s&&(e=se(s,l(t)),t[11](e)),{c(){e&&K(e.$$.fragment),n=$()},m(r,o){e&&X(e,r,o),R(r,n,o),i=!0},p(r,[o]){const u=o&491?de(a,[o&8&&{tag:r[3]},o&33&&{use:[r[5],...r[0]]},o&66&&{class:oe({[r[1]]:!0,"mdc-button__label":r[6]==="button","mdc-fab__label":r[6]==="fab","mdc-tab__text-label":r[6]==="tab","mdc-image-list__label":r[6]==="image-list","mdc-snackbar__label":r[6]==="snackbar","mdc-banner__text":r[6]==="banner","mdc-segmented-button__label":r[6]==="segmented-button","mdc-data-table__pagination-rows-per-page-label":r[6]==="data-table:pagination","mdc-data-table__header-cell-label":r[6]==="data-table:sortable-header-cell"})},o&64&&Q(r[6]==="snackbar"?{"aria-atomic":"false"}:{}),o&128&&{tabindex:r[7]},o&256&&Q(r[8])]):{};if(o&4096&&(u.$$scope={dirty:o,ctx:r}),o&4&&s!==(s=r[2])){if(e){ce();const c=e;L(c.$$.fragment,1,0,()=>{W(c,1)}),fe()}s?(e=se(s,l(r)),r[11](e),K(e.$$.fragment),E(e.$$.fragment,1),X(e,n.parentNode,n)):e=null}else s&&e.$set(u)},i(r){i||(e&&E(e.$$.fragment,r),i=!0)},o(r){e&&L(e.$$.fragment,r),i=!1},d(r){t[11](null),r&&M(n),e&&W(e,r)}}}function Tt(t,e,n){const i=["use","class","component","tag","getElement"];let a=q(e,i),{$$slots:s={},$$scope:l}=e;const r=ke(x());let{use:o=[]}=e,{class:u=""}=e,c,{component:f=le}=e,{tag:h=f===le?"span":void 0}=e;const D=ge("SMUI:label:context"),m=ge("SMUI:label:tabindex");function b(){return c.getElement()}function O(y){N[y?"unshift":"push"](()=>{c=y,n(4,c)})}return t.$$set=y=>{e=I(I({},e),ae(y)),n(8,a=q(e,i)),"use"in y&&n(0,o=y.use),"class"in y&&n(1,u=y.class),"component"in y&&n(2,f=y.component),"tag"in y&&n(3,h=y.tag),"$$scope"in y&&n(12,l=y.$$scope)},[o,u,f,h,c,r,D,m,a,b,s,O,l]}class Yt extends he{constructor(e){super(),me(this,e,Tt,Nt,Y,{use:0,class:1,component:2,tag:3,getElement:9})}get getElement(){return this.$$.ctx[9]}}function $t(t){let e;const n=t[11].default,i=ve(n,t,t[13],null);return{c(){i&&i.c()},m(a,s){i&&i.m(a,s),e=!0},p(a,s){i&&i.p&&(!e||s&8192)&&ye(i,n,a,a[13],e?be(n,a[13],s,null):Ae(a[13]),null)},i(a){e||(E(i,a),e=!0)},o(a){L(i,a),e=!1},d(a){i&&i.d(a)}}}function xt(t){let e,n,i;const a=[{tag:t[4]},{use:[t[6],...t[0]]},{class:oe({[t[1]]:!0,"mdc-button__icon":t[8]==="button","mdc-fab__icon":t[8]==="fab","mdc-icon-button__icon":t[8]==="icon-button","mdc-icon-button__icon--on":t[8]==="icon-button"&&t[2],"mdc-tab__icon":t[8]==="tab","mdc-banner__icon":t[8]==="banner","mdc-segmented-button__icon":t[8]==="segmented-button"})},{"aria-hidden":"true"},t[7]?{focusable:"false",tabindex:"-1"}:{},t[9]];var s=t[3];function l(r){let o={$$slots:{default:[$t]},$$scope:{ctx:r}};for(let u=0;u<a.length;u+=1)o=I(o,a[u]);return{props:o}}return s&&(e=se(s,l(t)),t[12](e)),{c(){e&&K(e.$$.fragment),n=$()},m(r,o){e&&X(e,r,o),R(r,n,o),i=!0},p(r,[o]){const u=o&983?de(a,[o&16&&{tag:r[4]},o&65&&{use:[r[6],...r[0]]},o&262&&{class:oe({[r[1]]:!0,"mdc-button__icon":r[8]==="button","mdc-fab__icon":r[8]==="fab","mdc-icon-button__icon":r[8]==="icon-button","mdc-icon-button__icon--on":r[8]==="icon-button"&&r[2],"mdc-tab__icon":r[8]==="tab","mdc-banner__icon":r[8]==="banner","mdc-segmented-button__icon":r[8]==="segmented-button"})},a[3],o&128&&Q(r[7]?{focusable:"false",tabindex:"-1"}:{}),o&512&&Q(r[9])]):{};if(o&8192&&(u.$$scope={dirty:o,ctx:r}),o&8&&s!==(s=r[3])){if(e){ce();const c=e;L(c.$$.fragment,1,0,()=>{W(c,1)}),fe()}s?(e=se(s,l(r)),r[12](e),K(e.$$.fragment),E(e.$$.fragment,1),X(e,n.parentNode,n)):e=null}else s&&e.$set(u)},i(r){i||(e&&E(e.$$.fragment,r),i=!0)},o(r){e&&L(e.$$.fragment,r),i=!1},d(r){t[12](null),r&&M(n),e&&W(e,r)}}}function en(t,e,n){const i=["use","class","on","component","tag","getElement"];let a=q(e,i),{$$slots:s={},$$scope:l}=e;const r=ke(x());let{use:o=[]}=e,{class:u=""}=e,{on:c=!1}=e,f,{component:h=le}=e,{tag:D=h===le?"i":void 0}=e;const m=h===un,b=ge("SMUI:icon:context");function O(){return f.getElement()}function y(v){N[v?"unshift":"push"](()=>{f=v,n(5,f)})}return t.$$set=v=>{e=I(I({},e),ae(v)),n(9,a=q(e,i)),"use"in v&&n(0,o=v.use),"class"in v&&n(1,u=v.class),"on"in v&&n(2,c=v.on),"component"in v&&n(3,h=v.component),"tag"in v&&n(4,D=v.tag),"$$scope"in v&&n(13,l=v.$$scope)},[o,u,c,h,D,f,r,m,b,a,O,s,y,l]}class tn extends he{constructor(e){super(),me(this,e,en,xt,Y,{use:0,class:1,on:2,component:3,tag:4,getElement:10})}get getElement(){return this.$$.ctx[10]}}function nn(t){let e=t[1],n,i,a=t[1]&&Oe(t);return{c(){a&&a.c(),n=$()},m(s,l){a&&a.m(s,l),R(s,n,l),i=!0},p(s,l){s[1]?e?Y(e,s[1])?(a.d(1),a=Oe(s),e=s[1],a.c(),a.m(n.parentNode,n)):a.p(s,l):(a=Oe(s),e=s[1],a.c(),a.m(n.parentNode,n)):e&&(a.d(1),a=null,e=s[1])},i(s){i||(E(a),i=!0)},o(s){L(a),i=!1},d(s){s&&M(n),a&&a.d(s)}}}function an(t){let e=t[1],n,i=t[1]&&je(t);return{c(){i&&i.c(),n=$()},m(a,s){i&&i.m(a,s),R(a,n,s)},p(a,s){a[1]?e?Y(e,a[1])?(i.d(1),i=je(a),e=a[1],i.c(),i.m(n.parentNode,n)):i.p(a,s):(i=je(a),e=a[1],i.c(),i.m(n.parentNode,n)):e&&(i.d(1),i=null,e=a[1])},i:B,o:B,d(a){a&&M(n),i&&i.d(a)}}}function Oe(t){let e,n,i,a,s;const l=t[8].default,r=ve(l,t,t[7],null);let o=[t[5]],u={};for(let c=0;c<o.length;c+=1)u=I(u,o[c]);return{c(){e=C(t[1]),r&&r.c(),Fe(t[1])(e,u)},m(c,f){R(c,e,f),r&&r.m(e,null),t[10](e),i=!0,a||(s=[re(n=qe.call(null,e,t[0])),re(t[4].call(null,e))],a=!0)},p(c,f){r&&r.p&&(!i||f&128)&&ye(r,l,c,c[7],i?be(l,c[7],f,null):Ae(c[7]),null),Fe(c[1])(e,u=de(o,[f&32&&c[5]])),n&&ue(n.update)&&f&1&&n.update.call(null,c[0])},i(c){i||(E(r,c),i=!0)},o(c){L(r,c),i=!1},d(c){c&&M(e),r&&r.d(c),t[10](null),a=!1,T(s)}}}function je(t){let e,n,i,a,s=[t[5]],l={};for(let r=0;r<s.length;r+=1)l=I(l,s[r]);return{c(){e=C(t[1]),Fe(t[1])(e,l)},m(r,o){R(r,e,o),t[9](e),i||(a=[re(n=qe.call(null,e,t[0])),re(t[4].call(null,e))],i=!0)},p(r,o){Fe(r[1])(e,l=de(s,[o&32&&r[5]])),n&&ue(n.update)&&o&1&&n.update.call(null,r[0])},d(r){r&&M(e),t[9](null),i=!1,T(a)}}}function rn(t){let e,n,i,a;const s=[an,nn],l=[];function r(o,u){return o[3]?0:1}return e=r(t),n=l[e]=s[e](t),{c(){n.c(),i=$()},m(o,u){l[e].m(o,u),R(o,i,u),a=!0},p(o,[u]){let c=e;e=r(o),e===c?l[e].p(o,u):(ce(),L(l[c],1,1,()=>{l[c]=null}),fe(),n=l[e],n?n.p(o,u):(n=l[e]=s[e](o),n.c()),E(n,1),n.m(i.parentNode,i))},i(o){a||(E(n),a=!0)},o(o){L(n),a=!1},d(o){l[e].d(o),o&&M(i)}}}function sn(t,e,n){let i;const a=["use","tag","getElement"];let s=q(e,a),{$$slots:l={},$$scope:r}=e,{use:o=[]}=e,{tag:u}=e;const c=ke(x());let f;function h(){return f}function D(b){N[b?"unshift":"push"](()=>{f=b,n(2,f)})}function m(b){N[b?"unshift":"push"](()=>{f=b,n(2,f)})}return t.$$set=b=>{e=I(I({},e),ae(b)),n(5,s=q(e,a)),"use"in b&&n(0,o=b.use),"tag"in b&&n(1,u=b.tag),"$$scope"in b&&n(7,r=b.$$scope)},t.$$.update=()=>{t.$$.dirty&2&&n(3,i=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].indexOf(u)>-1)},[o,u,f,i,c,s,h,r,l,D,m]}class le extends he{constructor(e){super(),me(this,e,sn,rn,Y,{use:0,tag:1,getElement:6})}get getElement(){return this.$$.ctx[6]}}function on(t){let e,n,i,a,s;const l=t[6].default,r=ve(l,t,t[5],null);let o=[t[3]],u={};for(let c=0;c<o.length;c+=1)u=I(u,o[c]);return{c(){e=_t("svg"),r&&r.c(),Ve(e,u)},m(c,f){R(c,e,f),r&&r.m(e,null),t[7](e),i=!0,a||(s=[re(n=qe.call(null,e,t[0])),re(t[2].call(null,e))],a=!0)},p(c,[f]){r&&r.p&&(!i||f&32)&&ye(r,l,c,c[5],i?be(l,c[5],f,null):Ae(c[5]),null),Ve(e,u=de(o,[f&8&&c[3]])),n&&ue(n.update)&&f&1&&n.update.call(null,c[0])},i(c){i||(E(r,c),i=!0)},o(c){L(r,c),i=!1},d(c){c&&M(e),r&&r.d(c),t[7](null),a=!1,T(s)}}}function ln(t,e,n){const i=["use","getElement"];let a=q(e,i),{$$slots:s={},$$scope:l}=e,{use:r=[]}=e;const o=ke(x());let u;function c(){return u}function f(h){N[h?"unshift":"push"](()=>{u=h,n(1,u)})}return t.$$set=h=>{e=I(I({},e),ae(h)),n(3,a=q(e,i)),"use"in h&&n(0,r=h.use),"$$scope"in h&&n(5,l=h.$$scope)},[r,u,o,a,c,l,s,f]}class un extends he{constructor(e){super(),me(this,e,ln,on,Y,{use:0,getElement:4})}get getElement(){return this.$$.ctx[4]}}function xe(t){let e;return{c(){e=C("div"),w(e,"class","mdc-button__touch")},m(n,i){R(n,e,i)},d(n){n&&M(e)}}}function cn(t){let e,n,i,a;const s=t[28].default,l=ve(s,t,t[30],null);let r=t[6]&&xe();return{c(){e=C("div"),n=G(),l&&l.c(),r&&r.c(),i=$(),w(e,"class","mdc-button__ripple")},m(o,u){R(o,e,u),R(o,n,u),l&&l.m(o,u),r&&r.m(o,u),R(o,i,u),a=!0},p(o,u){l&&l.p&&(!a||u[0]&1073741824)&&ye(l,s,o,o[30],a?be(s,o[30],u,null):Ae(o[30]),null),o[6]?r||(r=xe(),r.c(),r.m(i.parentNode,i)):r&&(r.d(1),r=null)},i(o){a||(E(l,o),a=!0)},o(o){L(l,o),a=!1},d(o){o&&M(e),o&&M(n),l&&l.d(o),r&&r.d(o),o&&M(i)}}}function fn(t){let e,n,i;const a=[{tag:t[10]},{use:[[$e,{ripple:t[3],unbounded:!1,color:t[4],disabled:!!t[23].disabled,addClass:t[19],removeClass:t[20],addStyle:t[21]}],t[17],...t[0]]},{class:oe({[t[1]]:!0,"mdc-button":!0,"mdc-button--raised":t[5]==="raised","mdc-button--unelevated":t[5]==="unelevated","mdc-button--outlined":t[5]==="outlined","smui-button--color-secondary":t[4]==="secondary","mdc-button--touch":t[6],"mdc-card__action":t[18]==="card:action","mdc-card__action--button":t[18]==="card:action","mdc-dialog__button":t[18]==="dialog:action","mdc-top-app-bar__navigation-icon":t[18]==="top-app-bar:navigation","mdc-top-app-bar__action-item":t[18]==="top-app-bar:action","mdc-snackbar__action":t[18]==="snackbar:actions","mdc-banner__secondary-action":t[18]==="banner"&&t[8],"mdc-banner__primary-action":t[18]==="banner"&&!t[8],"mdc-tooltip__action":t[18]==="tooltip:rich-actions",...t[12]})},{style:Object.entries(t[13]).map(et).concat([t[2]]).join(" ")},t[16],t[15],t[14],{href:t[7]},t[23]];var s=t[9];function l(r){let o={$$slots:{default:[cn]},$$scope:{ctx:r}};for(let u=0;u<a.length;u+=1)o=I(o,a[u]);return{props:o}}return s&&(e=se(s,l(t)),t[29](e),e.$on("click",t[22])),{c(){e&&K(e.$$.fragment),n=$()},m(r,o){e&&X(e,r,o),R(r,n,o),i=!0},p(r,o){const u=o[0]&12580351?de(a,[o[0]&1024&&{tag:r[10]},o[0]&12189721&&{use:[[$e,{ripple:r[3],unbounded:!1,color:r[4],disabled:!!r[23].disabled,addClass:r[19],removeClass:r[20],addStyle:r[21]}],r[17],...r[0]]},o[0]&266610&&{class:oe({[r[1]]:!0,"mdc-button":!0,"mdc-button--raised":r[5]==="raised","mdc-button--unelevated":r[5]==="unelevated","mdc-button--outlined":r[5]==="outlined","smui-button--color-secondary":r[4]==="secondary","mdc-button--touch":r[6],"mdc-card__action":r[18]==="card:action","mdc-card__action--button":r[18]==="card:action","mdc-dialog__button":r[18]==="dialog:action","mdc-top-app-bar__navigation-icon":r[18]==="top-app-bar:navigation","mdc-top-app-bar__action-item":r[18]==="top-app-bar:action","mdc-snackbar__action":r[18]==="snackbar:actions","mdc-banner__secondary-action":r[18]==="banner"&&r[8],"mdc-banner__primary-action":r[18]==="banner"&&!r[8],"mdc-tooltip__action":r[18]==="tooltip:rich-actions",...r[12]})},o[0]&8196&&{style:Object.entries(r[13]).map(et).concat([r[2]]).join(" ")},o[0]&65536&&Q(r[16]),o[0]&32768&&Q(r[15]),o[0]&16384&&Q(r[14]),o[0]&128&&{href:r[7]},o[0]&8388608&&Q(r[23])]):{};if(o[0]&1073741888&&(u.$$scope={dirty:o,ctx:r}),o[0]&512&&s!==(s=r[9])){if(e){ce();const c=e;L(c.$$.fragment,1,0,()=>{W(c,1)}),fe()}s?(e=se(s,l(r)),r[29](e),e.$on("click",r[22]),K(e.$$.fragment),E(e.$$.fragment,1),X(e,n.parentNode,n)):e=null}else s&&e.$set(u)},i(r){i||(e&&E(e.$$.fragment,r),i=!0)},o(r){e&&L(e.$$.fragment,r),i=!1},d(r){t[29](null),r&&M(n),e&&W(e,r)}}}const et=([t,e])=>`${t}: ${e};`;function dn(t,e,n){let i,a,s;const l=["use","class","style","ripple","color","variant","touch","href","action","defaultAction","secondary","component","tag","getElement"];let r=q(e,l),{$$slots:o={},$$scope:u}=e;const c=ke(x());let{use:f=[]}=e,{class:h=""}=e,{style:D=""}=e,{ripple:m=!0}=e,{color:b="primary"}=e,{variant:O="text"}=e,{touch:y=!1}=e,{href:v=void 0}=e,{action:A="close"}=e,{defaultAction:U=!1}=e,{secondary:z=!1}=e,S,g={},d={},j=ge("SMUI:button:context"),{component:H=le}=e,{tag:p=H===le?v==null?"button":"a":void 0}=e,F=r.disabled;Je("SMUI:label:context","button"),Je("SMUI:icon:context","button");function Z(_){g[_]||n(12,g[_]=!0,g)}function V(_){(!(_ in g)||g[_])&&n(12,g[_]=!1,g)}function Ee(_,Se){d[_]!=Se&&(Se===""||Se==null?(delete d[_],n(13,d)):n(13,d[_]=Se,d))}function dt(){j==="banner"&&Et(Ue(),z?"SMUIBannerButton:secondaryActionClick":"SMUIBannerButton:primaryActionClick")}function Ue(){return S.getElement()}function mt(_){N[_?"unshift":"push"](()=>{S=_,n(11,S)})}return t.$$set=_=>{n(31,e=I(I({},e),ae(_))),n(23,r=q(e,l)),"use"in _&&n(0,f=_.use),"class"in _&&n(1,h=_.class),"style"in _&&n(2,D=_.style),"ripple"in _&&n(3,m=_.ripple),"color"in _&&n(4,b=_.color),"variant"in _&&n(5,O=_.variant),"touch"in _&&n(6,y=_.touch),"href"in _&&n(7,v=_.href),"action"in _&&n(24,A=_.action),"defaultAction"in _&&n(25,U=_.defaultAction),"secondary"in _&&n(8,z=_.secondary),"component"in _&&n(9,H=_.component),"tag"in _&&n(10,p=_.tag),"$$scope"in _&&n(30,u=_.$$scope)},t.$$.update=()=>{if(n(16,i=j==="dialog:action"&&A!=null?{"data-mdc-dialog-action":A}:{action:e.action}),n(15,a=j==="dialog:action"&&U?{"data-mdc-dialog-button-default":""}:{default:e.default}),n(14,s=j==="banner"?{}:{secondary:e.secondary}),F!==r.disabled){const _=Ue();"blur"in _&&_.blur(),n(27,F=r.disabled)}},e=ae(e),[f,h,D,m,b,O,y,v,z,H,p,S,g,d,s,a,i,c,j,Z,V,Ee,dt,r,A,U,Ue,F,o,mt,u]}class mn extends he{constructor(e){super(),me(this,e,dn,fn,Y,{use:0,class:1,style:2,ripple:3,color:4,variant:5,touch:6,href:7,action:24,defaultAction:25,secondary:8,component:9,tag:10,getElement:26},null,[-1,-1])}get getElement(){return this.$$.ctx[26]}}function tt(t,e,n){const i=t.slice();i[3]=e[n];const a=Object.keys(i[3])[0];return i[4]=a,i}function nt(t,e,n){const i=t.slice();return i[7]=e[n],i}function it(t,e,n){const i=t.slice();return i[10]=e[n],i}function at(t,e,n){const i=t.slice();return i[13]=e[n],i}function hn(t){return{c:B,m:B,p:B,i:B,o:B,d:B}}function pn(t){let e,n,i=t[2],a=[];for(let l=0;l<i.length;l+=1)a[l]=lt(tt(t,i,l));const s=l=>L(a[l],1,1,()=>{a[l]=null});return{c(){for(let l=0;l<a.length;l+=1)a[l].c();e=$()},m(l,r){for(let o=0;o<a.length;o+=1)a[o]&&a[o].m(l,r);R(l,e,r),n=!0},p(l,r){if(r&3){i=l[2];let o;for(o=0;o<i.length;o+=1){const u=tt(l,i,o);a[o]?(a[o].p(u,r),E(a[o],1)):(a[o]=lt(u),a[o].c(),E(a[o],1),a[o].m(e.parentNode,e))}for(ce(),o=i.length;o<a.length;o+=1)s(o);fe()}},i(l){if(!n){for(let r=0;r<i.length;r+=1)E(a[r]);n=!0}},o(l){a=a.filter(Boolean);for(let r=0;r<a.length;r+=1)L(a[r]);n=!1},d(l){He(a,l),l&&M(e)}}}function rt(t){let e=t[13]+"",n,i;return{c(){n=P(e),i=C("br")},m(a,s){R(a,n,s),R(a,i,s)},p:B,d(a){a&&M(n),a&&M(i)}}}function st(t){let e=t[10].toFixed(2)+"",n,i,a;return{c(){n=P(e),i=P("%"),a=C("br")},m(s,l){R(s,n,l),R(s,i,l),R(s,a,l)},p:B,d(s){s&&M(n),s&&M(i),s&&M(a)}}}function ot(t){let e=t[7]+"",n,i;return{c(){n=P(e),i=C("br")},m(a,s){R(a,n,s),R(a,i,s)},p:B,d(a){a&&M(n),a&&M(i)}}}function _n(t){let e;return{c(){e=P("rocket")},m(n,i){R(n,e,i)},d(n){n&&M(e)}}}function gn(t){let e;return{c(){e=P("Open")},m(n,i){R(n,e,i)},d(n){n&&M(e)}}}function vn(t){let e,n,i,a;return e=new tn({props:{class:"material-icons",$$slots:{default:[_n]},$$scope:{ctx:t}}}),i=new Yt({props:{$$slots:{default:[gn]},$$scope:{ctx:t}}}),{c(){K(e.$$.fragment),n=G(),K(i.$$.fragment)},m(s,l){X(e,s,l),R(s,n,l),X(i,s,l),a=!0},p(s,l){const r={};l&65536&&(r.$$scope={dirty:l,ctx:s}),e.$set(r);const o={};l&65536&&(o.$$scope={dirty:l,ctx:s}),i.$set(o)},i(s){a||(E(e.$$.fragment,s),E(i.$$.fragment,s),a=!0)},o(s){L(e.$$.fragment,s),L(i.$$.fragment,s),a=!1},d(s){W(e,s),s&&M(n),W(i,s)}}}function lt(t){let e,n,i,a,s=t[4]+"",l,r,o,u,c,f,h,D,m,b,O,y,v=t[3][t[4]].models,A=[];for(let d=0;d<v.length;d+=1)A[d]=rt(at(t,v,d));let U=t[3][t[4]].accuracy,z=[];for(let d=0;d<U.length;d+=1)z[d]=st(it(t,U,d));let S=t[3][t[4]].events,g=[];for(let d=0;d<S.length;d+=1)g[d]=ot(nt(t,S,d));return b=new mn({props:{href:"/"+t[4]+"/",ripple:!1,variant:"unelevated",color:"primary",$$slots:{default:[vn]},$$scope:{ctx:t}}}),b.$on("mouseleave",t[1]),b.$on("focusout",t[1]),{c(){e=C("tr"),n=C("td"),i=C("a"),a=C("span"),l=P(s),r=G(),o=C("td");for(let d=0;d<A.length;d+=1)A[d].c();u=G(),c=C("td");for(let d=0;d<z.length;d+=1)z[d].c();f=G(),h=C("td");for(let d=0;d<g.length;d+=1)g[d].c();D=G(),m=C("td"),K(b.$$.fragment),O=G(),w(a,"class","name-wrap svelte-zod464"),w(i,"href",t[3][t[4]].link),w(n,"class","svelte-zod464"),w(o,"class","svelte-zod464"),w(c,"class","svelte-zod464"),w(h,"class","svelte-zod464"),w(m,"class","svelte-zod464"),w(e,"class","svelte-zod464")},m(d,j){R(d,e,j),k(e,n),k(n,i),k(i,a),k(a,l),k(e,r),k(e,o);for(let H=0;H<A.length;H+=1)A[H]&&A[H].m(o,null);k(e,u),k(e,c);for(let H=0;H<z.length;H+=1)z[H]&&z[H].m(c,null);k(e,f),k(e,h);for(let H=0;H<g.length;H+=1)g[H]&&g[H].m(h,null);k(e,D),k(e,m),X(b,m,null),k(e,O),y=!0},p(d,j){if(j&1){v=d[3][d[4]].models;let p;for(p=0;p<v.length;p+=1){const F=at(d,v,p);A[p]?A[p].p(F,j):(A[p]=rt(F),A[p].c(),A[p].m(o,null))}for(;p<A.length;p+=1)A[p].d(1);A.length=v.length}if(j&1){U=d[3][d[4]].accuracy;let p;for(p=0;p<U.length;p+=1){const F=it(d,U,p);z[p]?z[p].p(F,j):(z[p]=st(F),z[p].c(),z[p].m(c,null))}for(;p<z.length;p+=1)z[p].d(1);z.length=U.length}if(j&1){S=d[3][d[4]].events;let p;for(p=0;p<S.length;p+=1){const F=nt(d,S,p);g[p]?g[p].p(F,j):(g[p]=ot(F),g[p].c(),g[p].m(h,null))}for(;p<g.length;p+=1)g[p].d(1);g.length=S.length}const H={};j&65536&&(H.$$scope={dirty:j,ctx:d}),b.$set(H)},i(d){y||(E(b.$$.fragment,d),y=!0)},o(d){L(b.$$.fragment,d),y=!1},d(d){d&&M(e),He(A,d),He(z,d),He(g,d),W(b)}}}function bn(t){let e;return{c(){e=C("p"),e.textContent="loading"},m(n,i){R(n,e,i)},p:B,i:B,o:B,d(n){n&&M(e)}}}function yn(t){let e,n,i,a,s,l,r,o,u,c,f,h,D,m,b,O,y,v,A,U,z,S,g,d,j,H,p,F={ctx:t,current:null,token:null,hasCatch:!1,pending:bn,then:pn,catch:hn,value:2,blocks:[,,,]};return Ht(t[0],F),{c(){e=C("main"),n=C("header"),n.innerHTML="<h1>Zeno Evals Hub</h1>",i=G(),a=C("div"),s=P(`Explore and compare the results of
|
107 |
-
`),l=C("img"),o=G(),u=C("a"),u.innerHTML='<b class="svelte-zod464">OpenAI Evals</b>',c=P(`
|
108 |
-
with
|
109 |
-
`),f=C("img"),D=G(),m=C("b"),b=C("a"),b.textContent="Zeno",O=G(),y=C("br"),v=G(),A=C("div"),A.innerHTML=`Submit a PR to add new evals to this page!
|
110 |
-
<iframe src="https://ghbtns.com/github-btn.html?user=zeno-ml&repo=zeno-evals-hub&type=fork&count=true" frameborder="0" scrolling="0" width="150" height="20" title="GitHub" class="svelte-zod464"></iframe>`,U=G(),z=C("div"),S=C("div"),g=C("table"),d=C("thead"),d.innerHTML=`<tr class="svelte-zod464"><th class="svelte-zod464">evaluation</th>
|
111 |
-
<th class="svelte-zod464">models</th>
|
112 |
-
<th class="svelte-zod464">accuracy</th>
|
113 |
-
<th class="svelte-zod464">instances</th>
|
114 |
-
<th class="svelte-zod464"></th></tr>`,j=G(),H=C("tbody"),F.block.c(),w(n,"class","svelte-zod464"),w(l,"class","open_ai svelte-zod464"),We(l.src,r="./build/openai.svg")||w(l,"src",r),w(l,"alt","OpenAI logo"),w(u,"href","https://github.com/openai/evals"),w(f,"class","open_ai svelte-zod464"),We(f.src,h="./build/zeno.png")||w(f,"src",h),w(f,"alt","Zeno logo"),w(b,"href","https://github.com/zeno-ml/zeno/stargazers"),St(b,"color","var(--logo)"),w(m,"class","svelte-zod464"),w(a,"class","tagline svelte-zod464"),w(A,"class","tagline svelte-zod464"),w(d,"class","svelte-zod464"),w(H,"class","svelte-zod464"),w(g,"class","svelte-zod464"),w(S,"id","table-background"),w(S,"class","svelte-zod464"),w(z,"id","container"),w(z,"class","svelte-zod464")},m(Z,V){R(Z,e,V),k(e,n),k(e,i),k(e,a),k(a,s),k(a,l),k(a,o),k(a,u),k(a,c),k(a,f),k(a,D),k(a,m),k(m,b),k(e,O),k(e,y),k(e,v),k(e,A),k(e,U),k(e,z),k(z,S),k(S,g),k(g,d),k(g,j),k(g,H),F.block.m(H,F.anchor=null),F.mount=()=>H,F.anchor=null,p=!0},p(Z,[V]){t=Z,Rt(F,t,V)},i(Z){p||(E(F.block),p=!0)},o(Z){for(let V=0;V<3;V+=1){const Ee=F.blocks[V];L(Ee)}p=!1},d(Z){Z&&M(e),F.block.d(),F.token=null,F=null}}}function An(t){return[fetch("/args").then(i=>i.json()),function(i){i.target.blur()}]}class kn extends he{constructor(e){super(),me(this,e,An,yn,Y,{})}}new kn({target:document.getElementById("app")});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
zeno-evals-hub/frontend/build/assets/main-976a6d48.js
ADDED
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function G(){}function P(t,e){for(const n in e)t[n]=e[n];return t}function mt(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function lt(t){return t()}function We(){return Object.create(null)}function $(t){t.forEach(lt)}function fe(t){return typeof t=="function"}function x(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Me;function Ze(t,e){return Me||(Me=document.createElement("a")),Me.href=e,t===Me.href}function ht(t){return Object.keys(t).length===0}function ye(t,e,n,i){if(t){const r=ut(t,e,n,i);return t[0](r)}}function ut(t,e,n,i){return t[1]&&i?P(n.ctx.slice(),t[1](i(e))):n.ctx}function Ae(t,e,n,i){if(t[2]&&i){const r=t[2](i(n));if(e.dirty===void 0)return r;if(typeof r=="object"){const s=[],l=Math.max(e.dirty.length,r.length);for(let a=0;a<l;a+=1)s[a]=e.dirty[a]|r[a];return s}return e.dirty|r}return e.dirty}function ke(t,e,n,i,r,s){if(r){const l=ut(e,n,i,s);t.p(l,r)}}function Se(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}function se(t){const e={};for(const n in t)n[0]!=="$"&&(e[n]=t[n]);return e}function Z(t,e){const n={};e=new Set(e);for(const i in t)!e.has(i)&&i[0]!=="$"&&(n[i]=t[i]);return n}function oe(t){return t&&fe(t.destroy)?t.destroy:G}function g(t,e){t.appendChild(e)}function R(t,e,n){t.insertBefore(e,n||null)}function D(t){t.parentNode&&t.parentNode.removeChild(t)}function ze(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function S(t){return document.createElement(t)}function pt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function W(t){return document.createTextNode(t)}function q(){return W(" ")}function ee(){return W("")}function Ve(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function gt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function _t(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function k(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function vt(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const i in e)e[i]==null?t.removeAttribute(i):i==="style"?t.style.cssText=e[i]:i==="__value"?t.value=t[i]=e[i]:n[i]&&n[i].set?t[i]=e[i]:k(t,i,e[i])}function Je(t,e){for(const n in e)k(t,n,e[n])}function bt(t,e){Object.keys(e).forEach(n=>{yt(t,n,e[n])})}function yt(t,e,n){e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:k(t,e,n)}function Ue(t){return/-/.test(t)?bt:vt}function At(t){return Array.from(t.childNodes)}function ct(t,e,n,i){n===null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function le(t,e){return new t(e)}let ve;function Q(t){ve=t}function te(){if(!ve)throw new Error("Function called outside component initialization");return ve}function Ke(t,e){return te().$$.context.set(t,e),e}function be(t){return te().$$.context.get(t)}function kt(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}const re=[],Y=[];let ae=[];const Qe=[],St=Promise.resolve();let Be=!1;function wt(){Be||(Be=!0,St.then(qe))}function Ge(t){ae.push(t)}const Oe=new Set;let ie=0;function qe(){if(ie!==0)return;const t=ve;do{try{for(;ie<re.length;){const e=re[ie];ie++,Q(e),Ct(e.$$)}}catch(e){throw re.length=0,ie=0,e}for(Q(null),re.length=0,ie=0;Y.length;)Y.pop()();for(let e=0;e<ae.length;e+=1){const n=ae[e];Oe.has(n)||(Oe.add(n),n())}ae.length=0}while(re.length);for(;Qe.length;)Qe.pop()();Be=!1,Oe.clear(),Q(t)}function Ct(t){if(t.fragment!==null){t.update(),$(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Ge)}}function Mt(t){const e=[],n=[];ae.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),ae=e}const Ee=new Set;let ne;function de(){ne={r:0,c:[],p:ne}}function me(){ne.r||$(ne.c),ne=ne.p}function E(t,e){t&&t.i&&(Ee.delete(t),t.i(e))}function z(t,e,n,i){if(t&&t.o){if(Ee.has(t))return;Ee.add(t),ne.c.push(()=>{Ee.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}function Dt(t,e){const n=e.token={};function i(r,s,l,a){if(e.token!==n)return;e.resolved=a;let o=e.ctx;l!==void 0&&(o=o.slice(),o[l]=a);const u=r&&(e.current=r)(o);let c=!1;e.block&&(e.blocks?e.blocks.forEach((f,m)=>{m!==s&&f&&(de(),z(f,1,1,()=>{e.blocks[m]===f&&(e.blocks[m]=null)}),me())}):e.block.d(1),u.c(),E(u,1),u.m(e.mount(),e.anchor),c=!0),e.block=u,e.blocks&&(e.blocks[s]=u),c&&qe()}if(mt(t)){const r=te();if(t.then(s=>{Q(r),i(e.then,1,e.value,s),Q(null)},s=>{if(Q(r),i(e.catch,2,e.error,s),Q(null),!e.hasCatch)throw s}),e.current!==e.pending)return i(e.pending,0),!0}else{if(e.current!==e.then)return i(e.then,1,e.value,t),!0;e.resolved=t}}function Rt(t,e,n){const i=e.slice(),{resolved:r}=t;t.current===t.then&&(i[t.value]=r),t.current===t.catch&&(i[t.error]=r),t.block.p(i,n)}function he(t,e){const n={},i={},r={$$scope:1};let s=t.length;for(;s--;){const l=t[s],a=e[s];if(a){for(const o in l)o in a||(i[o]=1);for(const o in a)r[o]||(n[o]=a[o],r[o]=1);t[s]=a}else for(const o in l)r[o]=1}for(const l in i)l in n||(n[l]=void 0);return n}function T(t){return typeof t=="object"&&t!==null?t:{}}function N(t){t&&t.c()}function V(t,e,n,i){const{fragment:r,after_update:s}=t.$$;r&&r.m(e,n),i||Ge(()=>{const l=t.$$.on_mount.map(lt).filter(fe);t.$$.on_destroy?t.$$.on_destroy.push(...l):$(l),t.$$.on_mount=[]}),s.forEach(Ge)}function J(t,e){const n=t.$$;n.fragment!==null&&(Mt(n.after_update),$(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ht(t,e){t.$$.dirty[0]===-1&&(re.push(t),wt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function pe(t,e,n,i,r,s,l,a=[-1]){const o=ve;Q(t);const u=t.$$={fragment:null,ctx:[],props:s,update:G,not_equal:r,bound:We(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(o?o.$$.context:[])),callbacks:We(),dirty:a,skip_bound:!1,root:e.target||o.$$.root};l&&l(u.root);let c=!1;if(u.ctx=n?n(t,e.props||{},(f,m,...C)=>{const d=C.length?C[0]:m;return u.ctx&&r(u.ctx[f],u.ctx[f]=d)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](d),c&&Ht(t,f)),m}):[],u.update(),c=!0,$(u.before_update),u.fragment=i?i(u.ctx):!1,e.target){if(e.hydrate){const f=At(e.target);u.fragment&&u.fragment.l(f),f.forEach(D)}else u.fragment&&u.fragment.c();e.intro&&E(t.$$.fragment),V(t,e.target,e.anchor,e.customElement),qe()}Q(o)}class ge{$destroy(){J(this,1),this.$destroy=G}$on(e,n){if(!fe(n))return G;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!ht(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function ue(t){return Object.entries(t).filter(([e,n])=>e!==""&&n).map(([e])=>e).join(" ")}function Ft(t,e,n,i={bubbles:!0},r=!1){if(typeof Event>"u")throw new Error("Event not defined.");if(!t)throw new Error("Tried to dipatch event without element.");const s=new CustomEvent(e,Object.assign(Object.assign({},i),{detail:n}));if(t?.dispatchEvent(s),r&&e.startsWith("SMUI")){const l=new CustomEvent(e.replace(/^SMUI/g,()=>"MDC"),Object.assign(Object.assign({},i),{detail:n}));t?.dispatchEvent(l),l.defaultPrevented&&s.preventDefault()}return s}const Ne=/^[a-z]+(?::(?:preventDefault|stopPropagation|passive|nonpassive|capture|once|self))+$/,Et=/^[^$]+(?:\$(?:preventDefault|stopPropagation|passive|nonpassive|capture|once|self))+$/;function we(t){let e,n=[];t.$on=(r,s)=>{let l=r,a=()=>{};return e?a=e(l,s):n.push([l,s]),l.match(Ne)&&console&&console.warn('Event modifiers in SMUI now use "$" instead of ":", so that all events can be bound with modifiers. Please update your event binding: ',l),()=>{a()}};function i(r){kt(t,r)}return r=>{const s=[],l={};e=(a,o)=>{let u=a,c=o,f=!1;const m=u.match(Ne),C=u.match(Et),d=m||C;if(u.match(/^SMUI:\w+:/)){const v=u.split(":");let _="";for(let L=0;L<v.length;L++)_+=L===v.length-1?":"+v[L]:v[L].split("-").map(I=>I.slice(0,1).toUpperCase()+I.slice(1)).join("");console.warn(`The event ${u.split("$")[0]} has been renamed to ${_.split("$")[0]}.`),u=_}if(d){const v=u.split(m?":":"$");u=v[0];const _=v.slice(1).reduce((L,I)=>(L[I]=!0,L),{});_.passive&&(f=f||{},f.passive=!0),_.nonpassive&&(f=f||{},f.passive=!1),_.capture&&(f=f||{},f.capture=!0),_.once&&(f=f||{},f.once=!0),_.preventDefault&&(c=gt(c)),_.stopPropagation&&(c=_t(c))}const b=Ve(r,u,c,f),U=()=>{b();const v=s.indexOf(U);v>-1&&s.splice(v,1)};return s.push(U),u in l||(l[u]=Ve(r,u,i)),U};for(let a=0;a<n.length;a++)e(n[a][0],n[a][1]);return{destroy:()=>{for(let a=0;a<s.length;a++)s[a]();for(let a of Object.entries(l))a[1]()}}}}function Xe(t,e){let n=[];if(e)for(let i=0;i<e.length;i++){const r=e[i],s=Array.isArray(r)?r[0]:r;Array.isArray(r)&&r.length>1?n.push(s(t,r[1])):n.push(s(t))}return{update(i){if((i&&i.length||0)!=n.length)throw new Error("You must not change the length of an actions array.");if(i)for(let r=0;r<i.length;r++){const s=n[r];if(s&&s.update){const l=i[r];Array.isArray(l)&&l.length>1?s.update(l[1]):s.update()}}},destroy(){for(let i=0;i<n.length;i++){const r=n[i];r&&r.destroy&&r.destroy()}}}}var De;function Ut(t,e){e===void 0&&(e=!1);var n=t.CSS,i=De;if(typeof De=="boolean"&&!e)return De;var r=n&&typeof n.supports=="function";if(!r)return!1;var s=n.supports("--css-vars","yes"),l=n.supports("(--css-vars: yes)")&&n.supports("color","#00000000");return i=s||l,e||(De=i),i}function Lt(t,e,n){if(!t)return{x:0,y:0};var i=e.x,r=e.y,s=i+n.left,l=r+n.top,a,o;if(t.type==="touchstart"){var u=t;a=u.changedTouches[0].pageX-s,o=u.changedTouches[0].pageY-l}else{var c=t;a=c.pageX-s,o=c.pageY-l}return{x:a,y:o}}var Pe=function(t,e){return Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},Pe(t,e)};function Ot(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Pe(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var _e=function(){return _e=Object.assign||function(e){for(var n,i=1,r=arguments.length;i<r;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},_e.apply(this,arguments)};function Re(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}/**
|
2 |
+
* @license
|
3 |
+
* Copyright 2016 Google Inc.
|
4 |
+
*
|
5 |
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 |
+
* of this software and associated documentation files (the "Software"), to deal
|
7 |
+
* in the Software without restriction, including without limitation the rights
|
8 |
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9 |
+
* copies of the Software, and to permit persons to whom the Software is
|
10 |
+
* furnished to do so, subject to the following conditions:
|
11 |
+
*
|
12 |
+
* The above copyright notice and this permission notice shall be included in
|
13 |
+
* all copies or substantial portions of the Software.
|
14 |
+
*
|
15 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18 |
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20 |
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21 |
+
* THE SOFTWARE.
|
22 |
+
*/var jt=function(){function t(e){e===void 0&&(e={}),this.adapter=e}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}();/**
|
23 |
+
* @license
|
24 |
+
* Copyright 2019 Google Inc.
|
25 |
+
*
|
26 |
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
27 |
+
* of this software and associated documentation files (the "Software"), to deal
|
28 |
+
* in the Software without restriction, including without limitation the rights
|
29 |
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
30 |
+
* copies of the Software, and to permit persons to whom the Software is
|
31 |
+
* furnished to do so, subject to the following conditions:
|
32 |
+
*
|
33 |
+
* The above copyright notice and this permission notice shall be included in
|
34 |
+
* all copies or substantial portions of the Software.
|
35 |
+
*
|
36 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
37 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
38 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
39 |
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
40 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
41 |
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
42 |
+
* THE SOFTWARE.
|
43 |
+
*/function It(t){return t===void 0&&(t=window),zt(t)?{passive:!0}:!1}function zt(t){t===void 0&&(t=window);var e=!1;try{var n={get passive(){return e=!0,!1}},i=function(){};t.document.addEventListener("test",i,n),t.document.removeEventListener("test",i,n)}catch{e=!1}return e}const Bt=Object.freeze(Object.defineProperty({__proto__:null,applyPassive:It},Symbol.toStringTag,{value:"Module"}));/**
|
44 |
+
* @license
|
45 |
+
* Copyright 2018 Google Inc.
|
46 |
+
*
|
47 |
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
48 |
+
* of this software and associated documentation files (the "Software"), to deal
|
49 |
+
* in the Software without restriction, including without limitation the rights
|
50 |
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
51 |
+
* copies of the Software, and to permit persons to whom the Software is
|
52 |
+
* furnished to do so, subject to the following conditions:
|
53 |
+
*
|
54 |
+
* The above copyright notice and this permission notice shall be included in
|
55 |
+
* all copies or substantial portions of the Software.
|
56 |
+
*
|
57 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
58 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
59 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
60 |
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
61 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
62 |
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
63 |
+
* THE SOFTWARE.
|
64 |
+
*/function Gt(t,e){if(t.closest)return t.closest(e);for(var n=t;n;){if(ft(n,e))return n;n=n.parentElement}return null}function ft(t,e){var n=t.matches||t.webkitMatchesSelector||t.msMatchesSelector;return n.call(t,e)}function Pt(t){var e=t;if(e.offsetParent!==null)return e.scrollWidth;var n=e.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var i=n.scrollWidth;return document.documentElement.removeChild(n),i}const qt=Object.freeze(Object.defineProperty({__proto__:null,closest:Gt,estimateScrollWidth:Pt,matches:ft},Symbol.toStringTag,{value:"Module"}));/**
|
65 |
+
* @license
|
66 |
+
* Copyright 2016 Google Inc.
|
67 |
+
*
|
68 |
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
69 |
+
* of this software and associated documentation files (the "Software"), to deal
|
70 |
+
* in the Software without restriction, including without limitation the rights
|
71 |
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
72 |
+
* copies of the Software, and to permit persons to whom the Software is
|
73 |
+
* furnished to do so, subject to the following conditions:
|
74 |
+
*
|
75 |
+
* The above copyright notice and this permission notice shall be included in
|
76 |
+
* all copies or substantial portions of the Software.
|
77 |
+
*
|
78 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
79 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
80 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
81 |
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
82 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
83 |
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
84 |
+
* THE SOFTWARE.
|
85 |
+
*/var Xt={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},Wt={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},Te={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};/**
|
86 |
+
* @license
|
87 |
+
* Copyright 2016 Google Inc.
|
88 |
+
*
|
89 |
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
90 |
+
* of this software and associated documentation files (the "Software"), to deal
|
91 |
+
* in the Software without restriction, including without limitation the rights
|
92 |
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
93 |
+
* copies of the Software, and to permit persons to whom the Software is
|
94 |
+
* furnished to do so, subject to the following conditions:
|
95 |
+
*
|
96 |
+
* The above copyright notice and this permission notice shall be included in
|
97 |
+
* all copies or substantial portions of the Software.
|
98 |
+
*
|
99 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
100 |
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
101 |
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
102 |
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
103 |
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
104 |
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
105 |
+
* THE SOFTWARE.
|
106 |
+
*/var Ye=["touchstart","pointerdown","mousedown","keydown"],$e=["touchend","pointerup","mouseup","contextmenu"],He=[],Zt=function(t){Ot(e,t);function e(n){var i=t.call(this,_e(_e({},e.defaultAdapter),n))||this;return i.activationAnimationHasEnded=!1,i.activationTimer=0,i.fgDeactivationRemovalTimer=0,i.fgScale="0",i.frame={width:0,height:0},i.initialSize=0,i.layoutFrame=0,i.maxRadius=0,i.unboundedCoords={left:0,top:0},i.activationState=i.defaultActivationState(),i.activationTimerCallback=function(){i.activationAnimationHasEnded=!0,i.runDeactivationUXLogicIfReady()},i.activateHandler=function(r){i.activateImpl(r)},i.deactivateHandler=function(){i.deactivateImpl()},i.focusHandler=function(){i.handleFocus()},i.blurHandler=function(){i.handleBlur()},i.resizeHandler=function(){i.layout()},i}return Object.defineProperty(e,"cssClasses",{get:function(){return Xt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Wt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return Te},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var n=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var r=e.cssClasses,s=r.ROOT,l=r.UNBOUNDED;requestAnimationFrame(function(){n.adapter.addClass(s),n.adapter.isUnbounded()&&(n.adapter.addClass(l),n.layoutInternal())})}},e.prototype.destroy=function(){var n=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var i=e.cssClasses,r=i.ROOT,s=i.UNBOUNDED;requestAnimationFrame(function(){n.adapter.removeClass(r),n.adapter.removeClass(s),n.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(n){this.activateImpl(n)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var n=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){n.layoutInternal(),n.layoutFrame=0})},e.prototype.setUnbounded=function(n){var i=e.cssClasses.UNBOUNDED;n?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleFocus=function(){var n=this;requestAnimationFrame(function(){return n.adapter.addClass(e.cssClasses.BG_FOCUSED)})},e.prototype.handleBlur=function(){var n=this;requestAnimationFrame(function(){return n.adapter.removeClass(e.cssClasses.BG_FOCUSED)})},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(n){var i,r;if(n){try{for(var s=Re(Ye),l=s.next();!l.done;l=s.next()){var a=l.value;this.adapter.registerInteractionHandler(a,this.activateHandler)}}catch(o){i={error:o}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(n){var i,r;if(n.type==="keydown")this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var s=Re($e),l=s.next();!l.done;l=s.next()){var a=l.value;this.adapter.registerDocumentInteractionHandler(a,this.deactivateHandler)}}catch(o){i={error:o}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}},e.prototype.deregisterRootHandlers=function(){var n,i;try{for(var r=Re(Ye),s=r.next();!s.done;s=r.next()){var l=s.value;this.adapter.deregisterInteractionHandler(l,this.activateHandler)}}catch(a){n={error:a}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var n,i;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var r=Re($e),s=r.next();!s.done;s=r.next()){var l=s.value;this.adapter.deregisterDocumentInteractionHandler(l,this.deactivateHandler)}}catch(a){n={error:a}}finally{try{s&&!s.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},e.prototype.removeCssVars=function(){var n=this,i=e.strings,r=Object.keys(i);r.forEach(function(s){s.indexOf("VAR_")===0&&n.adapter.updateCssVariable(i[s],null)})},e.prototype.activateImpl=function(n){var i=this;if(!this.adapter.isSurfaceDisabled()){var r=this.activationState;if(!r.isActivated){var s=this.previousActivationEvent,l=s&&n!==void 0&&s.type!==n.type;if(!l){r.isActivated=!0,r.isProgrammatic=n===void 0,r.activationEvent=n,r.wasActivatedByPointer=r.isProgrammatic?!1:n!==void 0&&(n.type==="mousedown"||n.type==="touchstart"||n.type==="pointerdown");var a=n!==void 0&&He.length>0&&He.some(function(o){return i.adapter.containsEventTarget(o)});if(a){this.resetActivationState();return}n!==void 0&&(He.push(n.target),this.registerDeactivationHandlers(n)),r.wasElementMadeActive=this.checkElementMadeActive(n),r.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){He=[],!r.wasElementMadeActive&&n!==void 0&&(n.key===" "||n.keyCode===32)&&(r.wasElementMadeActive=i.checkElementMadeActive(n),r.wasElementMadeActive&&i.animateActivation()),r.wasElementMadeActive||(i.activationState=i.defaultActivationState())})}}}},e.prototype.checkElementMadeActive=function(n){return n!==void 0&&n.type==="keydown"?this.adapter.isSurfaceActive():!0},e.prototype.animateActivation=function(){var n=this,i=e.strings,r=i.VAR_FG_TRANSLATE_START,s=i.VAR_FG_TRANSLATE_END,l=e.cssClasses,a=l.FG_DEACTIVATION,o=l.FG_ACTIVATION,u=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",f="";if(!this.adapter.isUnbounded()){var m=this.getFgTranslationCoordinates(),C=m.startPoint,d=m.endPoint;c=C.x+"px, "+C.y+"px",f=d.x+"px, "+d.y+"px"}this.adapter.updateCssVariable(r,c),this.adapter.updateCssVariable(s,f),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(o),this.activationTimer=setTimeout(function(){n.activationTimerCallback()},u)},e.prototype.getFgTranslationCoordinates=function(){var n=this.activationState,i=n.activationEvent,r=n.wasActivatedByPointer,s;r?s=Lt(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):s={x:this.frame.width/2,y:this.frame.height/2},s={x:s.x-this.initialSize/2,y:s.y-this.initialSize/2};var l={x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2};return{startPoint:s,endPoint:l}},e.prototype.runDeactivationUXLogicIfReady=function(){var n=this,i=e.cssClasses.FG_DEACTIVATION,r=this.activationState,s=r.hasDeactivationUXRun,l=r.isActivated,a=s||!l;a&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout(function(){n.adapter.removeClass(i)},Te.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var n=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(n),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var n=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return n.previousActivationEvent=void 0},e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var n=this,i=this.activationState;if(i.isActivated){var r=_e({},i);i.isProgrammatic?(requestAnimationFrame(function(){n.animateDeactivation(r)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){n.activationState.hasDeactivationUXRun=!0,n.animateDeactivation(r),n.resetActivationState()}))}},e.prototype.animateDeactivation=function(n){var i=n.wasActivatedByPointer,r=n.wasElementMadeActive;(i||r)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var n=this;this.frame=this.adapter.computeBoundingRect();var i=Math.max(this.frame.height,this.frame.width),r=function(){var l=Math.sqrt(Math.pow(n.frame.width,2)+Math.pow(n.frame.height,2));return l+e.numbers.PADDING};this.maxRadius=this.adapter.isUnbounded()?i:r();var s=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&s%2!==0?this.initialSize=s-1:this.initialSize=s,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var n=e.strings,i=n.VAR_FG_SIZE,r=n.VAR_LEFT,s=n.VAR_TOP,l=n.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(l,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(s,this.unboundedCoords.top+"px"))},e}(jt);const{applyPassive:Fe}=Bt,{matches:Vt}=qt;function xe(t,{ripple:e=!0,surface:n=!1,unbounded:i=!1,disabled:r=!1,color:s,active:l,rippleElement:a,eventTarget:o,activeTarget:u,addClass:c=d=>t.classList.add(d),removeClass:f=d=>t.classList.remove(d),addStyle:m=(d,b)=>t.style.setProperty(d,b),initPromise:C=Promise.resolve()}={}){let d,b=be("SMUI:addLayoutListener"),U,v=l,_=o,L=u;function I(){n?(c("mdc-ripple-surface"),s==="primary"?(c("smui-ripple-surface--primary"),f("smui-ripple-surface--secondary")):s==="secondary"?(f("smui-ripple-surface--primary"),c("smui-ripple-surface--secondary")):(f("smui-ripple-surface--primary"),f("smui-ripple-surface--secondary"))):(f("mdc-ripple-surface"),f("smui-ripple-surface--primary"),f("smui-ripple-surface--secondary")),d&&v!==l&&(v=l,l?d.activate():l===!1&&d.deactivate()),e&&!d?(d=new Zt({addClass:c,browserSupportsCssVars:()=>Ut(window),computeBoundingRect:()=>(a||t).getBoundingClientRect(),containsEventTarget:w=>t.contains(w),deregisterDocumentInteractionHandler:(w,A)=>document.documentElement.removeEventListener(w,A,Fe()),deregisterInteractionHandler:(w,A)=>(o||t).removeEventListener(w,A,Fe()),deregisterResizeHandler:w=>window.removeEventListener("resize",w),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset}),isSurfaceActive:()=>l??Vt(u||t,":active"),isSurfaceDisabled:()=>!!r,isUnbounded:()=>!!i,registerDocumentInteractionHandler:(w,A)=>document.documentElement.addEventListener(w,A,Fe()),registerInteractionHandler:(w,A)=>(o||t).addEventListener(w,A,Fe()),registerResizeHandler:w=>window.addEventListener("resize",w),removeClass:f,updateCssVariable:m}),C.then(()=>{d&&(d.init(),d.setUnbounded(i))})):d&&!e&&C.then(()=>{d&&(d.destroy(),d=void 0)}),d&&(_!==o||L!==u)&&(_=o,L=u,d.destroy(),requestAnimationFrame(()=>{d&&(d.init(),d.setUnbounded(i))})),!e&&i&&c("mdc-ripple-upgraded--unbounded")}I(),b&&(U=b(B));function B(){d&&d.layout()}return{update(w){({ripple:e,surface:n,unbounded:i,disabled:r,color:s,active:l,rippleElement:a,eventTarget:o,activeTarget:u,addClass:c,removeClass:f,addStyle:m,initPromise:C}=Object.assign({ripple:!0,surface:!1,unbounded:!1,disabled:!1,color:void 0,active:void 0,rippleElement:void 0,eventTarget:void 0,activeTarget:void 0,addClass:A=>t.classList.add(A),removeClass:A=>t.classList.remove(A),addStyle:(A,O)=>t.style.setProperty(A,O),initPromise:Promise.resolve()},w)),I()},destroy(){d&&(d.destroy(),d=void 0,f("mdc-ripple-surface"),f("smui-ripple-surface--primary"),f("smui-ripple-surface--secondary")),U&&U()}}}function Jt(t){let e;const n=t[10].default,i=ye(n,t,t[12],null);return{c(){i&&i.c()},m(r,s){i&&i.m(r,s),e=!0},p(r,s){i&&i.p&&(!e||s&4096)&&ke(i,n,r,r[12],e?Ae(n,r[12],s,null):Se(r[12]),null)},i(r){e||(E(i,r),e=!0)},o(r){z(i,r),e=!1},d(r){i&&i.d(r)}}}function Kt(t){let e,n,i;const r=[{tag:t[3]},{use:[t[5],...t[0]]},{class:ue({[t[1]]:!0,"mdc-button__label":t[6]==="button","mdc-fab__label":t[6]==="fab","mdc-tab__text-label":t[6]==="tab","mdc-image-list__label":t[6]==="image-list","mdc-snackbar__label":t[6]==="snackbar","mdc-banner__text":t[6]==="banner","mdc-segmented-button__label":t[6]==="segmented-button","mdc-data-table__pagination-rows-per-page-label":t[6]==="data-table:pagination","mdc-data-table__header-cell-label":t[6]==="data-table:sortable-header-cell"})},t[6]==="snackbar"?{"aria-atomic":"false"}:{},{tabindex:t[7]},t[8]];var s=t[2];function l(a){let o={$$slots:{default:[Jt]},$$scope:{ctx:a}};for(let u=0;u<r.length;u+=1)o=P(o,r[u]);return{props:o}}return s&&(e=le(s,l(t)),t[11](e)),{c(){e&&N(e.$$.fragment),n=ee()},m(a,o){e&&V(e,a,o),R(a,n,o),i=!0},p(a,[o]){const u=o&491?he(r,[o&8&&{tag:a[3]},o&33&&{use:[a[5],...a[0]]},o&66&&{class:ue({[a[1]]:!0,"mdc-button__label":a[6]==="button","mdc-fab__label":a[6]==="fab","mdc-tab__text-label":a[6]==="tab","mdc-image-list__label":a[6]==="image-list","mdc-snackbar__label":a[6]==="snackbar","mdc-banner__text":a[6]==="banner","mdc-segmented-button__label":a[6]==="segmented-button","mdc-data-table__pagination-rows-per-page-label":a[6]==="data-table:pagination","mdc-data-table__header-cell-label":a[6]==="data-table:sortable-header-cell"})},o&64&&T(a[6]==="snackbar"?{"aria-atomic":"false"}:{}),o&128&&{tabindex:a[7]},o&256&&T(a[8])]):{};if(o&4096&&(u.$$scope={dirty:o,ctx:a}),o&4&&s!==(s=a[2])){if(e){de();const c=e;z(c.$$.fragment,1,0,()=>{J(c,1)}),me()}s?(e=le(s,l(a)),a[11](e),N(e.$$.fragment),E(e.$$.fragment,1),V(e,n.parentNode,n)):e=null}else s&&e.$set(u)},i(a){i||(e&&E(e.$$.fragment,a),i=!0)},o(a){e&&z(e.$$.fragment,a),i=!1},d(a){t[11](null),a&&D(n),e&&J(e,a)}}}function Qt(t,e,n){const i=["use","class","component","tag","getElement"];let r=Z(e,i),{$$slots:s={},$$scope:l}=e;const a=we(te());let{use:o=[]}=e,{class:u=""}=e,c,{component:f=ce}=e,{tag:m=f===ce?"span":void 0}=e;const C=be("SMUI:label:context"),d=be("SMUI:label:tabindex");function b(){return c.getElement()}function U(v){Y[v?"unshift":"push"](()=>{c=v,n(4,c)})}return t.$$set=v=>{e=P(P({},e),se(v)),n(8,r=Z(e,i)),"use"in v&&n(0,o=v.use),"class"in v&&n(1,u=v.class),"component"in v&&n(2,f=v.component),"tag"in v&&n(3,m=v.tag),"$$scope"in v&&n(12,l=v.$$scope)},[o,u,f,m,c,a,C,d,r,b,s,U,l]}class Nt extends ge{constructor(e){super(),pe(this,e,Qt,Kt,x,{use:0,class:1,component:2,tag:3,getElement:9})}get getElement(){return this.$$.ctx[9]}}function Tt(t){let e;const n=t[11].default,i=ye(n,t,t[13],null);return{c(){i&&i.c()},m(r,s){i&&i.m(r,s),e=!0},p(r,s){i&&i.p&&(!e||s&8192)&&ke(i,n,r,r[13],e?Ae(n,r[13],s,null):Se(r[13]),null)},i(r){e||(E(i,r),e=!0)},o(r){z(i,r),e=!1},d(r){i&&i.d(r)}}}function Yt(t){let e,n,i;const r=[{tag:t[4]},{use:[t[6],...t[0]]},{class:ue({[t[1]]:!0,"mdc-button__icon":t[8]==="button","mdc-fab__icon":t[8]==="fab","mdc-icon-button__icon":t[8]==="icon-button","mdc-icon-button__icon--on":t[8]==="icon-button"&&t[2],"mdc-tab__icon":t[8]==="tab","mdc-banner__icon":t[8]==="banner","mdc-segmented-button__icon":t[8]==="segmented-button"})},{"aria-hidden":"true"},t[7]?{focusable:"false",tabindex:"-1"}:{},t[9]];var s=t[3];function l(a){let o={$$slots:{default:[Tt]},$$scope:{ctx:a}};for(let u=0;u<r.length;u+=1)o=P(o,r[u]);return{props:o}}return s&&(e=le(s,l(t)),t[12](e)),{c(){e&&N(e.$$.fragment),n=ee()},m(a,o){e&&V(e,a,o),R(a,n,o),i=!0},p(a,[o]){const u=o&983?he(r,[o&16&&{tag:a[4]},o&65&&{use:[a[6],...a[0]]},o&262&&{class:ue({[a[1]]:!0,"mdc-button__icon":a[8]==="button","mdc-fab__icon":a[8]==="fab","mdc-icon-button__icon":a[8]==="icon-button","mdc-icon-button__icon--on":a[8]==="icon-button"&&a[2],"mdc-tab__icon":a[8]==="tab","mdc-banner__icon":a[8]==="banner","mdc-segmented-button__icon":a[8]==="segmented-button"})},r[3],o&128&&T(a[7]?{focusable:"false",tabindex:"-1"}:{}),o&512&&T(a[9])]):{};if(o&8192&&(u.$$scope={dirty:o,ctx:a}),o&8&&s!==(s=a[3])){if(e){de();const c=e;z(c.$$.fragment,1,0,()=>{J(c,1)}),me()}s?(e=le(s,l(a)),a[12](e),N(e.$$.fragment),E(e.$$.fragment,1),V(e,n.parentNode,n)):e=null}else s&&e.$set(u)},i(a){i||(e&&E(e.$$.fragment,a),i=!0)},o(a){e&&z(e.$$.fragment,a),i=!1},d(a){t[12](null),a&&D(n),e&&J(e,a)}}}function $t(t,e,n){const i=["use","class","on","component","tag","getElement"];let r=Z(e,i),{$$slots:s={},$$scope:l}=e;const a=we(te());let{use:o=[]}=e,{class:u=""}=e,{on:c=!1}=e,f,{component:m=ce}=e,{tag:C=m===ce?"i":void 0}=e;const d=m===on,b=be("SMUI:icon:context");function U(){return f.getElement()}function v(_){Y[_?"unshift":"push"](()=>{f=_,n(5,f)})}return t.$$set=_=>{e=P(P({},e),se(_)),n(9,r=Z(e,i)),"use"in _&&n(0,o=_.use),"class"in _&&n(1,u=_.class),"on"in _&&n(2,c=_.on),"component"in _&&n(3,m=_.component),"tag"in _&&n(4,C=_.tag),"$$scope"in _&&n(13,l=_.$$scope)},[o,u,c,m,C,f,a,d,b,r,U,s,v,l]}class xt extends ge{constructor(e){super(),pe(this,e,$t,Yt,x,{use:0,class:1,on:2,component:3,tag:4,getElement:10})}get getElement(){return this.$$.ctx[10]}}function en(t){let e=t[1],n,i,r=t[1]&&je(t);return{c(){r&&r.c(),n=ee()},m(s,l){r&&r.m(s,l),R(s,n,l),i=!0},p(s,l){s[1]?e?x(e,s[1])?(r.d(1),r=je(s),e=s[1],r.c(),r.m(n.parentNode,n)):r.p(s,l):(r=je(s),e=s[1],r.c(),r.m(n.parentNode,n)):e&&(r.d(1),r=null,e=s[1])},i(s){i||(E(r),i=!0)},o(s){z(r),i=!1},d(s){s&&D(n),r&&r.d(s)}}}function tn(t){let e=t[1],n,i=t[1]&&Ie(t);return{c(){i&&i.c(),n=ee()},m(r,s){i&&i.m(r,s),R(r,n,s)},p(r,s){r[1]?e?x(e,r[1])?(i.d(1),i=Ie(r),e=r[1],i.c(),i.m(n.parentNode,n)):i.p(r,s):(i=Ie(r),e=r[1],i.c(),i.m(n.parentNode,n)):e&&(i.d(1),i=null,e=r[1])},i:G,o:G,d(r){r&&D(n),i&&i.d(r)}}}function je(t){let e,n,i,r,s;const l=t[8].default,a=ye(l,t,t[7],null);let o=[t[5]],u={};for(let c=0;c<o.length;c+=1)u=P(u,o[c]);return{c(){e=S(t[1]),a&&a.c(),Ue(t[1])(e,u)},m(c,f){R(c,e,f),a&&a.m(e,null),t[10](e),i=!0,r||(s=[oe(n=Xe.call(null,e,t[0])),oe(t[4].call(null,e))],r=!0)},p(c,f){a&&a.p&&(!i||f&128)&&ke(a,l,c,c[7],i?Ae(l,c[7],f,null):Se(c[7]),null),Ue(c[1])(e,u=he(o,[f&32&&c[5]])),n&&fe(n.update)&&f&1&&n.update.call(null,c[0])},i(c){i||(E(a,c),i=!0)},o(c){z(a,c),i=!1},d(c){c&&D(e),a&&a.d(c),t[10](null),r=!1,$(s)}}}function Ie(t){let e,n,i,r,s=[t[5]],l={};for(let a=0;a<s.length;a+=1)l=P(l,s[a]);return{c(){e=S(t[1]),Ue(t[1])(e,l)},m(a,o){R(a,e,o),t[9](e),i||(r=[oe(n=Xe.call(null,e,t[0])),oe(t[4].call(null,e))],i=!0)},p(a,o){Ue(a[1])(e,l=he(s,[o&32&&a[5]])),n&&fe(n.update)&&o&1&&n.update.call(null,a[0])},d(a){a&&D(e),t[9](null),i=!1,$(r)}}}function nn(t){let e,n,i,r;const s=[tn,en],l=[];function a(o,u){return o[3]?0:1}return e=a(t),n=l[e]=s[e](t),{c(){n.c(),i=ee()},m(o,u){l[e].m(o,u),R(o,i,u),r=!0},p(o,[u]){let c=e;e=a(o),e===c?l[e].p(o,u):(de(),z(l[c],1,1,()=>{l[c]=null}),me(),n=l[e],n?n.p(o,u):(n=l[e]=s[e](o),n.c()),E(n,1),n.m(i.parentNode,i))},i(o){r||(E(n),r=!0)},o(o){z(n),r=!1},d(o){l[e].d(o),o&&D(i)}}}function rn(t,e,n){let i;const r=["use","tag","getElement"];let s=Z(e,r),{$$slots:l={},$$scope:a}=e,{use:o=[]}=e,{tag:u}=e;const c=we(te());let f;function m(){return f}function C(b){Y[b?"unshift":"push"](()=>{f=b,n(2,f)})}function d(b){Y[b?"unshift":"push"](()=>{f=b,n(2,f)})}return t.$$set=b=>{e=P(P({},e),se(b)),n(5,s=Z(e,r)),"use"in b&&n(0,o=b.use),"tag"in b&&n(1,u=b.tag),"$$scope"in b&&n(7,a=b.$$scope)},t.$$.update=()=>{t.$$.dirty&2&&n(3,i=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].indexOf(u)>-1)},[o,u,f,i,c,s,m,a,l,C,d]}class ce extends ge{constructor(e){super(),pe(this,e,rn,nn,x,{use:0,tag:1,getElement:6})}get getElement(){return this.$$.ctx[6]}}function an(t){let e,n,i,r,s;const l=t[6].default,a=ye(l,t,t[5],null);let o=[t[3]],u={};for(let c=0;c<o.length;c+=1)u=P(u,o[c]);return{c(){e=pt("svg"),a&&a.c(),Je(e,u)},m(c,f){R(c,e,f),a&&a.m(e,null),t[7](e),i=!0,r||(s=[oe(n=Xe.call(null,e,t[0])),oe(t[2].call(null,e))],r=!0)},p(c,[f]){a&&a.p&&(!i||f&32)&&ke(a,l,c,c[5],i?Ae(l,c[5],f,null):Se(c[5]),null),Je(e,u=he(o,[f&8&&c[3]])),n&&fe(n.update)&&f&1&&n.update.call(null,c[0])},i(c){i||(E(a,c),i=!0)},o(c){z(a,c),i=!1},d(c){c&&D(e),a&&a.d(c),t[7](null),r=!1,$(s)}}}function sn(t,e,n){const i=["use","getElement"];let r=Z(e,i),{$$slots:s={},$$scope:l}=e,{use:a=[]}=e;const o=we(te());let u;function c(){return u}function f(m){Y[m?"unshift":"push"](()=>{u=m,n(1,u)})}return t.$$set=m=>{e=P(P({},e),se(m)),n(3,r=Z(e,i)),"use"in m&&n(0,a=m.use),"$$scope"in m&&n(5,l=m.$$scope)},[a,u,o,r,c,l,s,f]}class on extends ge{constructor(e){super(),pe(this,e,sn,an,x,{use:0,getElement:4})}get getElement(){return this.$$.ctx[4]}}function et(t){let e;return{c(){e=S("div"),k(e,"class","mdc-button__touch")},m(n,i){R(n,e,i)},d(n){n&&D(e)}}}function ln(t){let e,n,i,r;const s=t[28].default,l=ye(s,t,t[30],null);let a=t[6]&&et();return{c(){e=S("div"),n=q(),l&&l.c(),a&&a.c(),i=ee(),k(e,"class","mdc-button__ripple")},m(o,u){R(o,e,u),R(o,n,u),l&&l.m(o,u),a&&a.m(o,u),R(o,i,u),r=!0},p(o,u){l&&l.p&&(!r||u[0]&1073741824)&&ke(l,s,o,o[30],r?Ae(s,o[30],u,null):Se(o[30]),null),o[6]?a||(a=et(),a.c(),a.m(i.parentNode,i)):a&&(a.d(1),a=null)},i(o){r||(E(l,o),r=!0)},o(o){z(l,o),r=!1},d(o){o&&D(e),o&&D(n),l&&l.d(o),a&&a.d(o),o&&D(i)}}}function un(t){let e,n,i;const r=[{tag:t[10]},{use:[[xe,{ripple:t[3],unbounded:!1,color:t[4],disabled:!!t[23].disabled,addClass:t[19],removeClass:t[20],addStyle:t[21]}],t[17],...t[0]]},{class:ue({[t[1]]:!0,"mdc-button":!0,"mdc-button--raised":t[5]==="raised","mdc-button--unelevated":t[5]==="unelevated","mdc-button--outlined":t[5]==="outlined","smui-button--color-secondary":t[4]==="secondary","mdc-button--touch":t[6],"mdc-card__action":t[18]==="card:action","mdc-card__action--button":t[18]==="card:action","mdc-dialog__button":t[18]==="dialog:action","mdc-top-app-bar__navigation-icon":t[18]==="top-app-bar:navigation","mdc-top-app-bar__action-item":t[18]==="top-app-bar:action","mdc-snackbar__action":t[18]==="snackbar:actions","mdc-banner__secondary-action":t[18]==="banner"&&t[8],"mdc-banner__primary-action":t[18]==="banner"&&!t[8],"mdc-tooltip__action":t[18]==="tooltip:rich-actions",...t[12]})},{style:Object.entries(t[13]).map(tt).concat([t[2]]).join(" ")},t[16],t[15],t[14],{href:t[7]},t[23]];var s=t[9];function l(a){let o={$$slots:{default:[ln]},$$scope:{ctx:a}};for(let u=0;u<r.length;u+=1)o=P(o,r[u]);return{props:o}}return s&&(e=le(s,l(t)),t[29](e),e.$on("click",t[22])),{c(){e&&N(e.$$.fragment),n=ee()},m(a,o){e&&V(e,a,o),R(a,n,o),i=!0},p(a,o){const u=o[0]&12580351?he(r,[o[0]&1024&&{tag:a[10]},o[0]&12189721&&{use:[[xe,{ripple:a[3],unbounded:!1,color:a[4],disabled:!!a[23].disabled,addClass:a[19],removeClass:a[20],addStyle:a[21]}],a[17],...a[0]]},o[0]&266610&&{class:ue({[a[1]]:!0,"mdc-button":!0,"mdc-button--raised":a[5]==="raised","mdc-button--unelevated":a[5]==="unelevated","mdc-button--outlined":a[5]==="outlined","smui-button--color-secondary":a[4]==="secondary","mdc-button--touch":a[6],"mdc-card__action":a[18]==="card:action","mdc-card__action--button":a[18]==="card:action","mdc-dialog__button":a[18]==="dialog:action","mdc-top-app-bar__navigation-icon":a[18]==="top-app-bar:navigation","mdc-top-app-bar__action-item":a[18]==="top-app-bar:action","mdc-snackbar__action":a[18]==="snackbar:actions","mdc-banner__secondary-action":a[18]==="banner"&&a[8],"mdc-banner__primary-action":a[18]==="banner"&&!a[8],"mdc-tooltip__action":a[18]==="tooltip:rich-actions",...a[12]})},o[0]&8196&&{style:Object.entries(a[13]).map(tt).concat([a[2]]).join(" ")},o[0]&65536&&T(a[16]),o[0]&32768&&T(a[15]),o[0]&16384&&T(a[14]),o[0]&128&&{href:a[7]},o[0]&8388608&&T(a[23])]):{};if(o[0]&1073741888&&(u.$$scope={dirty:o,ctx:a}),o[0]&512&&s!==(s=a[9])){if(e){de();const c=e;z(c.$$.fragment,1,0,()=>{J(c,1)}),me()}s?(e=le(s,l(a)),a[29](e),e.$on("click",a[22]),N(e.$$.fragment),E(e.$$.fragment,1),V(e,n.parentNode,n)):e=null}else s&&e.$set(u)},i(a){i||(e&&E(e.$$.fragment,a),i=!0)},o(a){e&&z(e.$$.fragment,a),i=!1},d(a){t[29](null),a&&D(n),e&&J(e,a)}}}const tt=([t,e])=>`${t}: ${e};`;function cn(t,e,n){let i,r,s;const l=["use","class","style","ripple","color","variant","touch","href","action","defaultAction","secondary","component","tag","getElement"];let a=Z(e,l),{$$slots:o={},$$scope:u}=e;const c=we(te());let{use:f=[]}=e,{class:m=""}=e,{style:C=""}=e,{ripple:d=!0}=e,{color:b="primary"}=e,{variant:U="text"}=e,{touch:v=!1}=e,{href:_=void 0}=e,{action:L="close"}=e,{defaultAction:I=!1}=e,{secondary:B=!1}=e,w,A={},O={},M=be("SMUI:button:context"),{component:X=ce}=e,{tag:H=X===ce?_==null?"button":"a":void 0}=e,p=a.disabled;Ke("SMUI:label:context","button"),Ke("SMUI:icon:context","button");function F(h){A[h]||n(12,A[h]=!0,A)}function j(h){(!(h in A)||A[h])&&n(12,A[h]=!1,A)}function y(h,Ce){O[h]!=Ce&&(Ce===""||Ce==null?(delete O[h],n(13,O)):n(13,O[h]=Ce,O))}function K(){M==="banner"&&Ft(Le(),B?"SMUIBannerButton:secondaryActionClick":"SMUIBannerButton:primaryActionClick")}function Le(){return w.getElement()}function dt(h){Y[h?"unshift":"push"](()=>{w=h,n(11,w)})}return t.$$set=h=>{n(31,e=P(P({},e),se(h))),n(23,a=Z(e,l)),"use"in h&&n(0,f=h.use),"class"in h&&n(1,m=h.class),"style"in h&&n(2,C=h.style),"ripple"in h&&n(3,d=h.ripple),"color"in h&&n(4,b=h.color),"variant"in h&&n(5,U=h.variant),"touch"in h&&n(6,v=h.touch),"href"in h&&n(7,_=h.href),"action"in h&&n(24,L=h.action),"defaultAction"in h&&n(25,I=h.defaultAction),"secondary"in h&&n(8,B=h.secondary),"component"in h&&n(9,X=h.component),"tag"in h&&n(10,H=h.tag),"$$scope"in h&&n(30,u=h.$$scope)},t.$$.update=()=>{if(n(16,i=M==="dialog:action"&&L!=null?{"data-mdc-dialog-action":L}:{action:e.action}),n(15,r=M==="dialog:action"&&I?{"data-mdc-dialog-button-default":""}:{default:e.default}),n(14,s=M==="banner"?{}:{secondary:e.secondary}),p!==a.disabled){const h=Le();"blur"in h&&h.blur(),n(27,p=a.disabled)}},e=se(e),[f,m,C,d,b,U,v,_,B,X,H,w,A,O,s,r,i,c,M,F,j,y,K,a,L,I,Le,p,o,dt,u]}class fn extends ge{constructor(e){super(),pe(this,e,cn,un,x,{use:0,class:1,style:2,ripple:3,color:4,variant:5,touch:6,href:7,action:24,defaultAction:25,secondary:8,component:9,tag:10,getElement:26},null,[-1,-1])}get getElement(){return this.$$.ctx[26]}}function nt(t,e,n){const i=t.slice();i[3]=e[n];const r=Object.keys(i[3])[0];return i[4]=r,i}function it(t,e,n){const i=t.slice();return i[7]=e[n],i}function rt(t,e,n){const i=t.slice();return i[10]=e[n],i}function dn(t){return{c:G,m:G,p:G,i:G,o:G,d:G}}function mn(t){let e,n,i=t[2],r=[];for(let l=0;l<i.length;l+=1)r[l]=ot(nt(t,i,l));const s=l=>z(r[l],1,1,()=>{r[l]=null});return{c(){for(let l=0;l<r.length;l+=1)r[l].c();e=ee()},m(l,a){for(let o=0;o<r.length;o+=1)r[o]&&r[o].m(l,a);R(l,e,a),n=!0},p(l,a){if(a&3){i=l[2];let o;for(o=0;o<i.length;o+=1){const u=nt(l,i,o);r[o]?(r[o].p(u,a),E(r[o],1)):(r[o]=ot(u),r[o].c(),E(r[o],1),r[o].m(e.parentNode,e))}for(de(),o=i.length;o<r.length;o+=1)s(o);me()}},i(l){if(!n){for(let a=0;a<i.length;a+=1)E(r[a]);n=!0}},o(l){r=r.filter(Boolean);for(let a=0;a<r.length;a+=1)z(r[a]);n=!1},d(l){ze(r,l),l&&D(e)}}}function at(t){let e=t[10]+"",n,i;return{c(){n=W(e),i=S("br")},m(r,s){R(r,n,s),R(r,i,s)},p:G,d(r){r&&D(n),r&&D(i)}}}function st(t){let e=t[7].toFixed(2)+"",n,i,r;return{c(){n=W(e),i=W("%"),r=S("br")},m(s,l){R(s,n,l),R(s,i,l),R(s,r,l)},p:G,d(s){s&&D(n),s&&D(i),s&&D(r)}}}function hn(t){let e;return{c(){e=W("rocket")},m(n,i){R(n,e,i)},d(n){n&&D(e)}}}function pn(t){let e;return{c(){e=W("Open")},m(n,i){R(n,e,i)},d(n){n&&D(e)}}}function gn(t){let e,n,i,r;return e=new xt({props:{class:"material-icons",$$slots:{default:[hn]},$$scope:{ctx:t}}}),i=new Nt({props:{$$slots:{default:[pn]},$$scope:{ctx:t}}}),{c(){N(e.$$.fragment),n=q(),N(i.$$.fragment)},m(s,l){V(e,s,l),R(s,n,l),V(i,s,l),r=!0},p(s,l){const a={};l&8192&&(a.$$scope={dirty:l,ctx:s}),e.$set(a);const o={};l&8192&&(o.$$scope={dirty:l,ctx:s}),i.$set(o)},i(s){r||(E(e.$$.fragment,s),E(i.$$.fragment,s),r=!0)},o(s){z(e.$$.fragment,s),z(i.$$.fragment,s),r=!1},d(s){J(e,s),s&&D(n),J(i,s)}}}function ot(t){let e,n,i,r,s=t[4]+"",l,a,o,u=t[3][t[4]].description+"",c,f,m,C,d,b,U,v=t[3][t[4]].events[0]+"",_,L,I,B,w,A,O=t[3][t[4]].models,M=[];for(let p=0;p<O.length;p+=1)M[p]=at(rt(t,O,p));let X=t[3][t[4]].accuracy,H=[];for(let p=0;p<X.length;p+=1)H[p]=st(it(t,X,p));return B=new fn({props:{href:"/"+t[4]+"/",ripple:!1,variant:"unelevated",color:"primary",$$slots:{default:[gn]},$$scope:{ctx:t}}}),B.$on("mouseleave",t[1]),B.$on("focusout",t[1]),{c(){e=S("tr"),n=S("td"),i=S("a"),r=S("span"),l=W(s),a=q(),o=S("td"),c=W(u),f=q(),m=S("td");for(let p=0;p<M.length;p+=1)M[p].c();C=q(),d=S("td");for(let p=0;p<H.length;p+=1)H[p].c();b=q(),U=S("td"),_=W(v),L=q(),I=S("td"),N(B.$$.fragment),w=q(),k(r,"class","name-wrap svelte-195gryk"),k(i,"href",t[3][t[4]].link),k(n,"class","svelte-195gryk"),k(o,"class","svelte-195gryk"),k(m,"class","svelte-195gryk"),ct(m,"min-width","120px"),k(d,"class","svelte-195gryk"),k(U,"class","svelte-195gryk"),k(I,"class","svelte-195gryk"),k(e,"class","svelte-195gryk")},m(p,F){R(p,e,F),g(e,n),g(n,i),g(i,r),g(r,l),g(e,a),g(e,o),g(o,c),g(e,f),g(e,m);for(let j=0;j<M.length;j+=1)M[j]&&M[j].m(m,null);g(e,C),g(e,d);for(let j=0;j<H.length;j+=1)H[j]&&H[j].m(d,null);g(e,b),g(e,U),g(U,_),g(e,L),g(e,I),V(B,I,null),g(e,w),A=!0},p(p,F){if(F&1){O=p[3][p[4]].models;let y;for(y=0;y<O.length;y+=1){const K=rt(p,O,y);M[y]?M[y].p(K,F):(M[y]=at(K),M[y].c(),M[y].m(m,null))}for(;y<M.length;y+=1)M[y].d(1);M.length=O.length}if(F&1){X=p[3][p[4]].accuracy;let y;for(y=0;y<X.length;y+=1){const K=it(p,X,y);H[y]?H[y].p(K,F):(H[y]=st(K),H[y].c(),H[y].m(d,null))}for(;y<H.length;y+=1)H[y].d(1);H.length=X.length}const j={};F&8192&&(j.$$scope={dirty:F,ctx:p}),B.$set(j)},i(p){A||(E(B.$$.fragment,p),A=!0)},o(p){z(B.$$.fragment,p),A=!1},d(p){p&&D(e),ze(M,p),ze(H,p),J(B)}}}function _n(t){let e;return{c(){e=S("p"),e.textContent="loading"},m(n,i){R(n,e,i)},p:G,i:G,o:G,d(n){n&&D(e)}}}function vn(t){let e,n,i,r,s,l,a,o,u,c,f,m,C,d,b,U,v,_,L,I,B,w,A,O,M,X,H,p,F={ctx:t,current:null,token:null,hasCatch:!1,pending:_n,then:mn,catch:dn,value:2,blocks:[,,,]};return Dt(t[0],F),{c(){e=S("main"),n=S("header"),n.innerHTML="<h1>Zeno + OpenAI Evals</h1>",i=q(),r=S("div"),s=W("Use the "),l=S("img"),o=q(),u=S("b"),c=S("a"),c.textContent="Zeno",f=W(`
|
107 |
+
AI evaluation tool to compare the performance of models accross
|
108 |
+
`),m=S("img"),d=q(),b=S("a"),b.innerHTML='<b class="svelte-195gryk">OpenAI Evals</b>',U=W(" tasks."),v=q(),_=S("br"),L=q(),I=S("div"),I.innerHTML=`Submit a PR to add new evals to this page!
|
109 |
+
<iframe src="https://ghbtns.com/github-btn.html?user=zeno-ml&repo=zeno-evals-hub&type=fork&count=true" frameborder="0" scrolling="0" width="150" height="20" title="GitHub" class="svelte-195gryk"></iframe>`,B=q(),w=S("div"),A=S("div"),O=S("table"),M=S("thead"),M.innerHTML=`<tr class="svelte-195gryk"><th class="svelte-195gryk">evaluation</th>
|
110 |
+
<th class="svelte-195gryk">description</th>
|
111 |
+
<th class="svelte-195gryk">models</th>
|
112 |
+
<th class="svelte-195gryk">accuracy</th>
|
113 |
+
<th class="svelte-195gryk">instances</th>
|
114 |
+
<th class="svelte-195gryk"></th></tr>`,X=q(),H=S("tbody"),F.block.c(),k(n,"class","svelte-195gryk"),k(l,"class","open_ai svelte-195gryk"),Ze(l.src,a="./build/zeno.png")||k(l,"src",a),k(l,"alt","Zeno logo"),k(c,"href","https://github.com/zeno-ml/zeno/"),ct(c,"color","var(--logo)"),k(u,"class","svelte-195gryk"),k(m,"class","open_ai svelte-195gryk"),Ze(m.src,C="./build/openai.svg")||k(m,"src",C),k(m,"alt","OpenAI logo"),k(b,"href","https://github.com/openai/evals"),k(r,"class","tagline svelte-195gryk"),k(I,"class","tagline svelte-195gryk"),k(M,"class","svelte-195gryk"),k(H,"class","svelte-195gryk"),k(O,"class","svelte-195gryk"),k(A,"id","table-background"),k(A,"class","svelte-195gryk"),k(w,"id","container"),k(w,"class","svelte-195gryk")},m(j,y){R(j,e,y),g(e,n),g(e,i),g(e,r),g(r,s),g(r,l),g(r,o),g(r,u),g(u,c),g(r,f),g(r,m),g(r,d),g(r,b),g(r,U),g(e,v),g(e,_),g(e,L),g(e,I),g(e,B),g(e,w),g(w,A),g(A,O),g(O,M),g(O,X),g(O,H),F.block.m(H,F.anchor=null),F.mount=()=>H,F.anchor=null,p=!0},p(j,[y]){t=j,Rt(F,t,y)},i(j){p||(E(F.block),p=!0)},o(j){for(let y=0;y<3;y+=1){const K=F.blocks[y];z(K)}p=!1},d(j){j&&D(e),F.block.d(),F.token=null,F=null}}}function bn(t){return[fetch("/args").then(i=>i.json()),function(i){i.target.blur()}]}class yn extends ge{constructor(e){super(),pe(this,e,bn,vn,x,{})}}new yn({target:document.getElementById("app")});
|
zeno-evals-hub/frontend/build/assets/main-a4e88c77.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
iframe.svelte-zod464.svelte-zod464{margin-left:10px}#container.svelte-zod464.svelte-zod464{margin:50px 20px;display:flex;justify-content:center}#table-background.svelte-zod464.svelte-zod464{width:900px;padding:20px;border-radius:20px}.name-wrap.svelte-zod464.svelte-zod464{border:1px solid transparent;border-radius:10px;font-weight:500;color:var(--logo)}.name-wrap.svelte-zod464.svelte-zod464:hover{color:var(--P2)}table.svelte-zod464.svelte-zod464{border-collapse:collapse;text-align:left;cursor:default;margin-left:auto;margin-right:auto}table.svelte-zod464 thead tr th.svelte-zod464{border-bottom:.5px solid grey}table.svelte-zod464 th.svelte-zod464,table.svelte-zod464 td.svelte-zod464{padding:4px 25px}table.svelte-zod464 td.svelte-zod464:first-child,table.svelte-zod464 th.svelte-zod464:first-child{border-radius:20px 0 0 20px}table.svelte-zod464 td.svelte-zod464:last-child,table.svelte-zod464 th.svelte-zod464:last-child{border-radius:0 20px 20px 0}tbody.svelte-zod464.svelte-zod464:before{content:"@";display:block;line-height:10px;text-indent:-99999px}thead.svelte-zod464 tr.svelte-zod464{color:#213547}tbody.svelte-zod464 tr.svelte-zod464{opacity:.9;height:70px}.open_ai.svelte-zod464.svelte-zod464{width:20px;margin-left:5px}.tagline.svelte-zod464.svelte-zod464{font-size:18px;text-align:center;display:flex;justify-content:center;align-items:center}.tagline.svelte-zod464 b.svelte-zod464{margin-right:5px;margin-left:5px}header.svelte-zod464.svelte-zod464{display:flex;align-items:center;justify-content:center}
|
|
|
|
zeno-evals-hub/frontend/build/manifest.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
{
|
2 |
"src/main.css": {
|
3 |
-
"file": "assets/main-
|
4 |
"src": "src/main.css"
|
5 |
},
|
6 |
"src/main.ts": {
|
7 |
"css": [
|
8 |
-
"assets/main-
|
9 |
],
|
10 |
-
"file": "assets/main-
|
11 |
"isEntry": true,
|
12 |
"src": "src/main.ts"
|
13 |
}
|
|
|
1 |
{
|
2 |
"src/main.css": {
|
3 |
+
"file": "assets/main-55272372.css",
|
4 |
"src": "src/main.css"
|
5 |
},
|
6 |
"src/main.ts": {
|
7 |
"css": [
|
8 |
+
"assets/main-55272372.css"
|
9 |
],
|
10 |
+
"file": "assets/main-976a6d48.js",
|
11 |
"isEntry": true,
|
12 |
"src": "src/main.ts"
|
13 |
}
|
zeno-evals-hub/frontend/index.html
CHANGED
@@ -19,12 +19,12 @@
|
|
19 |
/>
|
20 |
<!-- Roboto Mono -->
|
21 |
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono" />
|
22 |
-
|
23 |
</head>
|
24 |
<body>
|
25 |
<div id="app"></div>
|
26 |
-
<script type="module" src="http://localhost:5173/src/main.ts"></script>
|
27 |
-
|
28 |
</body>
|
29 |
</html>
|
30 |
<style>
|
|
|
19 |
/>
|
20 |
<!-- Roboto Mono -->
|
21 |
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono" />
|
22 |
+
<link rel="stylesheet" href="./build/assets/main-55272372.css" />
|
23 |
</head>
|
24 |
<body>
|
25 |
<div id="app"></div>
|
26 |
+
<!-- <script type="module" src="http://localhost:5173/src/main.ts"></script> -->
|
27 |
+
<script type="module" src="./build/assets/main-976a6d48.js"></script>
|
28 |
</body>
|
29 |
</html>
|
30 |
<style>
|
zeno-evals-hub/main.py
CHANGED
@@ -88,6 +88,7 @@ def command_line():
|
|
88 |
config.editable = False
|
89 |
|
90 |
zeno_obj = zeno(config)
|
|
|
91 |
if zeno_obj is None:
|
92 |
sys.exit(1)
|
93 |
server = get_server(zeno_obj)
|
|
|
88 |
config.editable = False
|
89 |
|
90 |
zeno_obj = zeno(config)
|
91 |
+
print(config.metadata["expected"])
|
92 |
if zeno_obj is None:
|
93 |
sys.exit(1)
|
94 |
server = get_server(zeno_obj)
|