Spaces:
Runtime error
Runtime error
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.")}/** | |
* @license | |
* Copyright 2016 Google Inc. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* | |
* The above copyright notice and this permission notice shall be included in | |
* all copies or substantial portions of the Software. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
* THE SOFTWARE. | |
*/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}();/** | |
* @license | |
* Copyright 2019 Google Inc. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* | |
* The above copyright notice and this permission notice shall be included in | |
* all copies or substantial portions of the Software. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
* THE SOFTWARE. | |
*/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"}));/** | |
* @license | |
* Copyright 2018 Google Inc. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* | |
* The above copyright notice and this permission notice shall be included in | |
* all copies or substantial portions of the Software. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
* THE SOFTWARE. | |
*/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"}));/** | |
* @license | |
* Copyright 2016 Google Inc. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* | |
* The above copyright notice and this permission notice shall be included in | |
* all copies or substantial portions of the Software. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
* THE SOFTWARE. | |
*/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};/** | |
* @license | |
* Copyright 2016 Google Inc. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* | |
* The above copyright notice and this permission notice shall be included in | |
* all copies or substantial portions of the Software. | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
* THE SOFTWARE. | |
*/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(` | |
AI evaluation tool to compare the performance of models accross | |
`),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! | |
<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> | |
<th class="svelte-195gryk">description</th> | |
<th class="svelte-195gryk">models</th> | |
<th class="svelte-195gryk">accuracy</th> | |
<th class="svelte-195gryk">instances</th> | |
<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")}); | |