Plugin Directory

Changeset 3045938


Ignore:
Timestamp:
03/05/2024 08:02:49 PM (2 years ago)
Author:
EdwardBock
Message:

release 0.6.2

Location:
climbpress
Files:
2 deleted
14 edited
73 copied

Legend:

Unmodified
Added
Removed
  • climbpress/tags/0.6.2/README.txt

    r3024800 r3045938  
    44Tags: climbing, management, database
    55Requires at least: 5.0
    6 Tested up to: 6.4.2
     6Tested up to: 6.4.3
    77Requires PHP: 8.0
    8 Stable tag: 0.6.1
     8Stable tag: 0.6.2
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3737
    3838== Changelog ==
     39
     40= 0.6.2 =
     41* Check: WordPress 6.4.3 compatible
     42* Package updates
    3943
    4044= 0.6.1 =
  • climbpress/tags/0.6.2/classes/Store/RoutesSource.php

    r3024800 r3045938  
    7575                ) as tmp
    7676            )
    77             ORDER BY id DESC
     77            ORDER BY created DESC
    7878             ";
    7979
  • climbpress/tags/0.6.2/dist/grades.asset.php

    r3024800 r3045938  
    1 <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-dom-ready', 'wp-element'), 'version' => 'c6165c341f414af18fe7');
     1<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-dom-ready', 'wp-element'), 'version' => '14d6ae68693ea4e287e5');
  • climbpress/tags/0.6.2/dist/grades.js

    r3024800 r3045938  
    1 !function(){"use strict";var e={535:function(e,t,r){var n=r(237),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=p(r);i&&i!==h&&e(t,i,n)}var s=c(r);f&&(s=s.concat(f(r)));for(var a=l(t),y=l(r),g=0;g<s.length;++g){var m=s[g];if(!(o[m]||n&&n[m]||y&&y[m]||a&&a[m])){var v=d(r,m);try{u(t,m,v)}catch(e){}}}}return t}},684:function(e,t){},198:function(e,t){var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case f:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case y:case l:return e;default:return t}}case i:return t}}}function k(e){return x(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=y,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||x(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===y},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===a||e===s||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===y||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===m)},t.typeOf=x},237:function(e,t,r){e.exports=r(198)},603:function(e,t,r){r.d(t,{Z:function(){return n}}),e=r.hmd(e);var n=function(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:e)},415:function(e,t,r){var n=r(196),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,s=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return a((function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,r,t]),s((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},322:function(e,t,r){e.exports=r(415)},196:function(e){e.exports=window.React}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n](o,o.exports,r),o.loaded=!0,o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e=r(196),t=r.n(e),n=window.wp.domReady,i=r.n(n),o=window.wp.element;function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function a(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}r(535);function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r(684);var f,d=(0,e.createContext)(),p=(function(e){}(f=d),function(e){}(f),function(e){var r=function(r){var n,i;function o(){for(var n,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return l(c(c(n=r.call.apply(r,[this].concat(o))||this)),"cachedTheme",void 0),l(c(c(n)),"lastOuterTheme",void 0),l(c(c(n)),"lastTheme",void 0),l(c(c(n)),"renderProvider",(function(r){var i=n.props.children;return t().createElement(e.Provider,{value:n.getTheme(r)},i)})),n}i=r,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var s=o.prototype;return s.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,"function"==typeof this.lastTheme){var t=this.props.theme;this.cachedTheme=t(e)}else{var r=this.props.theme;this.cachedTheme=e?u({},e,r):r}return this.cachedTheme},s.render=function(){return this.props.children?t().createElement(e.Consumer,null,this.renderProvider):null},o}(t().Component)}(f),"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),h="object"===("undefined"==typeof window?"undefined":p(window))&&"object"===("undefined"==typeof document?"undefined":p(document))&&9===document.nodeType;function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function g(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===y(t)?t:String(t)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function v(e,t,r){return t&&m(e.prototype,t),r&&m(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function w(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,b(e,t)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var k={}.constructor;function S(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(S);if(e.constructor!==k)return e;var t={};for(var r in e)t[r]=S(e[r]);return t}function R(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,i=S(t);return n.plugins.onCreateRule(e,i,r)||(e[0],null)}var P=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},O=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=P(e[r]," ");else t=P(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function C(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function A(e,t){for(var r="",n=0;n<t;n++)r+="  ";return r+e}function E(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var i=r.indent,o=void 0===i?0:i,s=t.fallbacks;!1===r.format&&(o=-1/0);var a=C(r),l=a.linebreak,u=a.space;if(e&&o++,s)if(Array.isArray(s))for(var c=0;c<s.length;c++){var f=s[c];for(var d in f){var p=f[d];null!=p&&(n&&(n+=l),n+=A(d+":"+u+O(p)+";",o))}}else for(var h in s){var y=s[h];null!=y&&(n&&(n+=l),n+=A(h+":"+u+O(y)+";",o))}for(var g in t){var m=t[g];null!=m&&"fallbacks"!==g&&(n&&(n+=l),n+=A(g+":"+u+O(m)+";",o))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),A(""+e+u+"{"+n,--o)+A("}",o)):n}var j=/([[\].#*$><+~=|^:(),"'`\s])/g,T="undefined"!=typeof CSS&&CSS.escape,M=function(e){return T?T(e):e.replace(j,"\\$1")},I=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,i=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var i=t;r&&!1===r.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,s=e in this.style;if(o&&!s&&!n)return this;var a=o&&s;if(a?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),_=function(e){function t(t,r,n){var i;i=e.call(this,t,r,n)||this;var o=n.selector,s=n.scoped,a=n.sheet,l=n.generateId;return o?i.selectorText=o:!1!==s&&(i.id=l(x(x(i)),a),i.selectorText="."+M(i.id)),i}w(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=O(r))}return e},r.toString=function(e){var t=this.options.sheet,r=t&&t.options.link?s({},e,{allowEmpty:!0}):e;return E(this.selectorText,this.style,r)},v(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;r&&t&&(t.setSelector(r,e)||t.replaceRule(r,this))}},get:function(){return this.selectorText}}]),t}(I),L={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new _(e,t,r)}},V={indent:1,children:!0},$=/@([\w-]+)/,N=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match($);for(var i in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new le(s({},r,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=V);var t=C(e).linebreak;if(null==e.indent&&(e.indent=V.indent),null==e.children&&(e.children=V.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),z=/@container|@media|@supports\s+/,D={onCreateRule:function(e,t,r){return z.test(e)?new N(e,t,r):null}},F={indent:1,children:!0},W=/@keyframes\s+([\w-]+)/,U=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(W);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var i=r.scoped,o=r.sheet,a=r.generateId;for(var l in this.id=!1===i?this.name:M(a(this,o)),this.rules=new le(s({},r,{parent:this})),t)this.rules.add(l,t[l],s({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=F);var t=C(e).linebreak;if(null==e.indent&&(e.indent=F.indent),null==e.children&&(e.children=F.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),q=/@keyframes\s+/,H=/\$([\w-]+)/g,G=function(e,t){return"string"==typeof e?e.replace(H,(function(e,r){return r in t?t[r]:e})):e},B=function(e,t,r){var n=e[t],i=G(n,r);i!==n&&(e[t]=i)},X={onCreateRule:function(e,t,r){return"string"==typeof e&&q.test(e)?new U(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&B(e,"animation-name",r.keyframes),"animation"in e&&B(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return G(e,n.keyframes);default:return e}}},J=function(e){function t(){return e.apply(this,arguments)||this}return w(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=t&&t.options.link?s({},e,{allowEmpty:!0}):e;return E(this.key,this.style,r)},t}(I),Y={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new J(e,t,r):null}},Z=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=C(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=E(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return E(this.at,this.style,e)},e}(),K=/@font-face/,Q={onCreateRule:function(e,t,r){return K.test(e)?new Z(e,t,r):null}},ee=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return E(this.key,this.style,e)},e}(),te={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new ee(e,t,r):null}},re=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),ne={"@charset":!0,"@import":!0,"@namespace":!0},ie={onCreateRule:function(e,t,r){return e in ne?new re(e,t,r):null}},oe=[L,D,X,Y,Q,te,ie],se={process:!0},ae={force:!0,process:!0},le=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,i=n.parent,o=n.sheet,a=n.jss,l=n.Renderer,u=n.generateId,c=n.scoped,f=s({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:l,generateId:u,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(f.selector="."+M(this.classes[d]));var p=R(d,t,f);if(!p)return null;this.register(p);var h=void 0===f.index?this.index.length:f.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,r){var n=this.get(e),i=this.index.indexOf(n);n&&this.remove(n);var o=r;return-1!==i&&(o=s({},r,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof _?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof U&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof _?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof U&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=se);var i=this.options,o=i.jss.plugins,s=i.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var a=t.style;if(o.onUpdate(r,t,s,n),n.process&&a&&a!==t.style){for(var l in o.onProcessStyle(t.style,t,s),t.style){var u=t.style[l];u!==a[l]&&t.prop(l,u,ae)}for(var c in a){var f=t.style[c],d=a[c];null==f&&f!==d&&t.prop(c,null,ae)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,i=C(e).linebreak,o=0;o<this.index.length;o++){var s=this.index[o].toString(e);(s||n)&&(t&&(t+=i),t+=s)}return t},e}(),ue=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=s({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new le(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var i=this.rules.add(e,t,r);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(n?n.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var i=this.rules.replace(e,t,r);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?n.renderable&&this.renderer.replaceRule(n.renderable,i):this.renderer.deleteRule(n)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var i=this.addRule(n,e[n],t);i&&r.push(i)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),ce=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var i=this.registry.onCreateRule[n](e,t,r);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,i=0;i<this.registry.onChangeValue.length;i++)n=this.registry.onChangeValue[i](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),fe=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=a(t,["attached"]),i=C(n).linebreak,o="",s=0;s<this.registry.length;s++){var l=this.registry[s];null!=r&&l.attached!==r||(o&&(o+=i),o+=l.toString(n))}return o},v(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),de=new fe,pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),he="2f1acc6c3a606b082e5eef5e54414ffb";null==pe[he]&&(pe[he]=0);var ye=pe[he]++,ge=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var i="",o="";return n&&(n.options.classNamePrefix&&(o=n.options.classNamePrefix),null!=n.options.jss.id&&(i=String(n.options.jss.id))),e.minify?""+(o||"c")+ye+i+t:o+r.key+"-"+ye+(i?"-"+i:"")+"-"+t}},me=function(e){var t;return function(){return t||(t=e()),t}},ve=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},be=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=O(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var i=n?n.indexOf("!important"):-1,o=i>-1?n.substr(0,i-1):n;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},we=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},xe=function(e,t){return e.selectorText=t,e.selectorText===t},ke=me((function(){return document.querySelector("head")}));var Se=me((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Re=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},Pe=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Oe=function(){function e(e){this.getPropertyValue=ve,this.setProperty=be,this.removeProperty=we,this.setSelector=xe,this.hasInsertedRules=!1,this.cssRules=[],e&&de.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var o=Se();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=function(e){var t=de.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var i=function(e){for(var t=ke(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var i=r,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else ke().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,i=r;if("conditional"===e.type||"keyframes"===e.type){var o=Pe(r,t);if(!1===(i=Re(r,n.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(n.rules,i),i}var s=e.toString();if(!s)return!1;var a=Pe(r,t),l=Re(r,s,a);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,a,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof ue&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ce=0,Ae=function(){function e(e){this.id=Ce++,this.version="10.10.0",this.plugins=new ce,this.options={id:{minify:!1},createGenerateId:ge,Renderer:h?Oe:null,plugins:[]},this.generateId=ge({minify:!1});for(var t=0;t<oe.length;t++)this.plugins.use(oe[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=s({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===de.index?0:de.index+1);var n=new ue(e,s({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),de.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=s({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var i=R(e,t,n);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.plugins.use(t)})),this},e}(),Ee=function(e){return new Ae(e)},je=function(){function e(){this.length=0,this.sheets=new WeakMap}var t=e.prototype;return t.get=function(e){var t=this.sheets.get(e);return t&&t.sheet},t.add=function(e,t){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:t,refs:0}))},t.manage=function(e){var t=this.sheets.get(e);if(t)return 0===t.refs&&t.sheet.attach(),t.refs++,t.sheet},t.unmanage=function(e){var t=this.sheets.get(e);t&&t.refs>0&&(t.refs--,0===t.refs&&t.sheet.detach())},v(e,[{key:"size",get:function(){return this.length}}]),e}(),Te="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Me(e){var t=null;for(var r in e){var n=e[r],i=typeof n;if("function"===i)t||(t={}),t[r]=n;else if("object"===i&&null!==n&&!Array.isArray(n)){var o=Me(n);o&&(t||(t={}),t[r]=o)}}return t}Ee();var Ie=Date.now(),_e="fnValues"+Ie,Le="fnStyle"+ ++Ie,Ve=r(603),$e=function(e){return e&&e[Ve.Z]&&e===e[Ve.Z]()},Ne=/;\n/,ze=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},r=e.split(Ne),n=0;n<r.length;n++){var i=(r[n]||"").trim();if(i){var o=i.indexOf(":");if(-1!==o){var s=i.substr(0,o).trim(),a=i.substr(o+1).trim();t[s]=a}}}return t}(e.style))},De="@global",Fe=function(){function e(e,t,r){for(var n in this.type="global",this.at=De,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new le(s({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),We=function(){function e(e,t,r){this.type="global",this.at=De,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,s({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ue=/\s*,\s*/g;function qe(e,t){for(var r=e.split(Ue),n="",i=0;i<r.length;i++)n+=t+" "+r[i].trim(),r[i+1]&&(n+=", ");return n}var He=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},Ge="extendCurrValue"+Date.now();function Be(e,t,r,n){return void 0===n&&(n={}),function(e,t,r,n){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var i=0;i<e.extend.length;i++){var o=e.extend[i];Be("string"==typeof o?s({},e,{extend:o}):e.extend[i],t,r,n)}else for(var a in e.extend)"extend"!==a?He(e.extend[a])?(a in n||(n[a]={}),Be(e.extend[a],t,r,n[a])):n[a]=e.extend[a]:Be(e.extend.extend,t,r,n);else{if(!r)return;var l=r.getRule(e.extend);if(!l)return;if(l===t)return;var u=l.options.parent;u&&Be(u.rules.raw[e.extend],t,r,n)}}(e,t,r,n),function(e,t,r,n){for(var i in e)"extend"!==i&&(He(n[i])&&He(e[i])?Be(e[i],t,r,n[i]):He(e[i])?n[i]=Be(e[i],t,r):n[i]=e[i])}(e,t,r,n),n}var Xe=function(){return{onProcessStyle:function(e,t,r){return"extend"in e?Be(e,t,r):e},onChangeValue:function(e,t,r){if("extend"!==t)return e;if(null==e||!1===e){for(var n in r[Ge])r.prop(n,null);return r[Ge]=null,null}if("object"==typeof e){for(var i in e)r.prop(i,e[i]);r[Ge]=e}return null}}},Je=/\s*,\s*/g,Ye=/&/g,Ze=/\$([\w-]+)/g,Ke=function(){function e(e,t){return function(r,n){var i=e.getRule(n)||t&&t.getRule(n);return i?i.selector:n}}function t(e,t){for(var r=t.split(Je),n=e.split(Je),i="",o=0;o<r.length;o++)for(var s=r[o],a=0;a<n.length;a++){var l=n[a];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Ye,s):s+" "+l}return i}function r(e,t,r){if(r)return s({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var i=s({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(n,i,o){if("style"!==i.type)return n;var a,l,u=i,c=u.options.parent;for(var f in n){var d=-1!==f.indexOf("&"),p="@"===f[0];if(d||p){if(a=r(u,c,a),d){var h=t(f,u.selector);l||(l=e(c,o)),h=h.replace(Ze,l);var y=u.key+"-"+f;"replaceRule"in c?c.replaceRule(y,n[f],s({},a,{selector:h})):c.addRule(y,n[f],s({},a,{selector:h}))}else p&&c.addRule(f,{},a).addRule(u.key,n[f],{selector:u.selector});delete n[f]}}return n}}};function Qe(e,t){if(!t)return!0;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(!Qe(e,t[r]))return!1;return!0}if(t.indexOf(" ")>-1)return Qe(e,t.split(" "));var n=e.options.parent;if("$"===t[0]){var i=n.getRule(t.substr(1));return!!i&&i!==e&&(n.classes[e.key]+=" "+n.classes[i.key],!0)}return n.classes[e.key]+=" "+t,!0}var et=function(){return{onProcessStyle:function(e,t){return"composes"in e?(Qe(t,e.composes),delete e.composes,e):e}}},tt=/[A-Z]/g,rt=/^ms-/,nt={};function it(e){return"-"+e.toLowerCase()}var ot=function(e){if(nt.hasOwnProperty(e))return nt[e];var t=e.replace(tt,it);return nt[e]=rt.test(t)?"-"+t:t};function st(e){var t={};for(var r in e)t[0===r.indexOf("--")?r:ot(r)]=e[r];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(st):t.fallbacks=st(e.fallbacks)),t}var at=Te&&CSS?CSS.px:"px",lt=Te&&CSS?CSS.ms:"ms",ut=Te&&CSS?CSS.percent:"%";function ct(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var i in e)n[i]=e[i],n[i.replace(t,r)]=e[i];return n}var ft=ct({"animation-delay":lt,"animation-duration":lt,"background-position":at,"background-position-x":at,"background-position-y":at,"background-size":at,border:at,"border-bottom":at,"border-bottom-left-radius":at,"border-bottom-right-radius":at,"border-bottom-width":at,"border-left":at,"border-left-width":at,"border-radius":at,"border-right":at,"border-right-width":at,"border-top":at,"border-top-left-radius":at,"border-top-right-radius":at,"border-top-width":at,"border-width":at,"border-block":at,"border-block-end":at,"border-block-end-width":at,"border-block-start":at,"border-block-start-width":at,"border-block-width":at,"border-inline":at,"border-inline-end":at,"border-inline-end-width":at,"border-inline-start":at,"border-inline-start-width":at,"border-inline-width":at,"border-start-start-radius":at,"border-start-end-radius":at,"border-end-start-radius":at,"border-end-end-radius":at,margin:at,"margin-bottom":at,"margin-left":at,"margin-right":at,"margin-top":at,"margin-block":at,"margin-block-end":at,"margin-block-start":at,"margin-inline":at,"margin-inline-end":at,"margin-inline-start":at,padding:at,"padding-bottom":at,"padding-left":at,"padding-right":at,"padding-top":at,"padding-block":at,"padding-block-end":at,"padding-block-start":at,"padding-inline":at,"padding-inline-end":at,"padding-inline-start":at,"mask-position-x":at,"mask-position-y":at,"mask-size":at,height:at,width:at,"min-height":at,"max-height":at,"min-width":at,"max-width":at,bottom:at,left:at,top:at,right:at,inset:at,"inset-block":at,"inset-block-end":at,"inset-block-start":at,"inset-inline":at,"inset-inline-end":at,"inset-inline-start":at,"box-shadow":at,"text-shadow":at,"column-gap":at,"column-rule":at,"column-rule-width":at,"column-width":at,"font-size":at,"font-size-delta":at,"letter-spacing":at,"text-decoration-thickness":at,"text-indent":at,"text-stroke":at,"text-stroke-width":at,"word-spacing":at,motion:at,"motion-offset":at,outline:at,"outline-offset":at,"outline-width":at,perspective:at,"perspective-origin-x":ut,"perspective-origin-y":ut,"transform-origin":ut,"transform-origin-x":ut,"transform-origin-y":ut,"transform-origin-z":ut,"transition-delay":lt,"transition-duration":lt,"vertical-align":at,"flex-basis":at,"shape-margin":at,size:at,gap:at,grid:at,"grid-gap":at,"row-gap":at,"grid-row-gap":at,"grid-column-gap":at,"grid-template-rows":at,"grid-template-columns":at,"grid-auto-rows":at,"grid-auto-columns":at,"box-shadow-x":at,"box-shadow-y":at,"box-shadow-blur":at,"box-shadow-spread":at,"font-line-height":at,"text-shadow-x":at,"text-shadow-y":at,"text-shadow-blur":at});function dt(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=dt(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=dt(i,t[i],r);else for(var o in t)t[o]=dt(e+"-"+o,t[o],r);else if("number"==typeof t&&!1===isNaN(t)){var s=r[e]||ft[e];return!s||0===t&&s===at?t.toString():"function"==typeof s?s(t).toString():""+t+s}return t}var pt=function(e){void 0===e&&(e={});var t=ct(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=dt(n,e[n],t);return e},onChangeValue:function(e,r){return dt(r,e,t)}}},ht={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},yt={position:!0,size:!0},gt={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},mt={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function vt(e,t,r,n){return null==r[t]?e:0===e.length?[]:Array.isArray(e[0])?vt(e[0],t,r,n):"object"==typeof e[0]?function(e,t,r){return e.map((function(e){return bt(e,t,r,!1,!0)}))}(e,t,n):[e]}function bt(e,t,r,n,i){if(!gt[t]&&!mt[t])return[];var o=[];if(mt[t]&&(e=function(e,t,r,n){for(var i in r){var o=r[i];if(void 0!==e[i]&&(n||!t.prop(o))){var s,a=wt((s={},s[o]=e[i],s),t)[o];n?t.style.fallbacks[o]=a:t.style[o]=a}delete e[i]}return e}(e,r,mt[t],n)),Object.keys(e).length)for(var s in gt[t])e[s]?Array.isArray(e[s])?o.push(null===yt[s]?e[s]:e[s].join(" ")):o.push(e[s]):null!=gt[t][s]&&o.push(gt[t][s]);return!o.length||i?o:[o]}function wt(e,t,r){for(var n in e){var i=e[n];if(Array.isArray(i)){if(!Array.isArray(i[0])){if("fallbacks"===n){for(var o=0;o<e.fallbacks.length;o++)e.fallbacks[o]=wt(e.fallbacks[o],t,!0);continue}e[n]=vt(i,n,ht,t),e[n].length||delete e[n]}}else if("object"==typeof i){if("fallbacks"===n){e.fallbacks=wt(e.fallbacks,t,!0);continue}e[n]=bt(i,n,t,r),e[n].length||delete e[n]}else""===e[n]&&delete e[n]}return e}function xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var kt="",St="",Rt="",Pt="",Ot=h&&"ontouchstart"in document.documentElement;if(h){var Ct={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},At=document.createElement("p").style;for(var Et in Ct)if(Et+"Transform"in At){kt=Et,St=Ct[Et];break}"Webkit"===kt&&"msHyphens"in At&&(kt="ms",St=Ct.ms,Pt="edge"),"Webkit"===kt&&"-apple-trailing-word"in At&&(Rt="apple")}var jt=kt,Tt=St,Mt=Rt,It=Pt,_t=Ot,Lt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===jt?"-webkit-"+e:Tt+e)}},Vt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===jt?Tt+"print-"+e:e)}},$t=/[-\s]+(.)?/g;function Nt(e,t){return t?t.toUpperCase():""}function zt(e){return e.replace($t,Nt)}function Dt(e){return zt("-"+e)}var Ft,Wt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===jt){var r="mask-image";if(zt(r)in t)return e;if(jt+Dt(r)in t)return Tt+e}return e}},Ut={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Mt||_t?e:Tt+e)}},qt={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:Tt+e)}},Ht={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:Tt+e)}},Gt={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===jt||"ms"===jt&&"edge"!==It?Tt+e:e)}},Bt={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===jt||"ms"===jt||"apple"===Mt?Tt+e:e)}},Xt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===jt?"WebkitColumn"+Dt(e)in t&&Tt+"column-"+e:"Moz"===jt&&"page"+Dt(e)in t&&"page-"+e)}},Jt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===jt)return e;var r=e.replace("-inline","");return jt+Dt(r)in t&&Tt+r}},Yt={supportedProperty:function(e,t){return zt(e)in t&&e}},Zt={supportedProperty:function(e,t){var r=Dt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:jt+r in t?Tt+e:"Webkit"!==jt&&"Webkit"+r in t&&"-webkit-"+e}},Kt={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===jt?""+Tt+e:e)}},Qt={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===jt?Tt+"scroll-chaining":e)}},er={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},tr={supportedProperty:function(e,t){var r=er[e];return!!r&&jt+Dt(r)in t&&Tt+r}},rr={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},nr=Object.keys(rr),ir=function(e){return Tt+e},or={supportedProperty:function(e,t,r){var n=r.multiple;if(nr.indexOf(e)>-1){var i=rr[e];if(!Array.isArray(i))return jt+Dt(i)in t&&Tt+i;if(!n)return!1;for(var o=0;o<i.length;o++)if(!(jt+Dt(i[0])in t))return!1;return i.map(ir)}return!1}},sr=[Lt,Vt,Wt,Ut,qt,Ht,Gt,Bt,Xt,Jt,Yt,Zt,Kt,Qt,tr,or],ar=sr.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),lr=sr.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,function(e){if(Array.isArray(e))return xt(e)}(r=t.noPrefill)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return xt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xt(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),e;var r}),[]),ur={};if(h){Ft=document.createElement("p");var cr=window.getComputedStyle(document.documentElement,"");for(var fr in cr)isNaN(fr)||(ur[cr[fr]]=cr[fr]);lr.forEach((function(e){return delete ur[e]}))}function dr(e,t){if(void 0===t&&(t={}),!Ft)return e;if(null!=ur[e])return ur[e];"transition"!==e&&"transform"!==e||(t[e]=e in Ft.style);for(var r=0;r<ar.length&&(ur[e]=ar[r](e,Ft.style,t),!ur[e]);r++);try{Ft.style[e]=""}catch(e){return!1}return ur[e]}var pr,hr={},yr={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},gr=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function mr(e,t,r){return"var"===t?"var":"all"===t?"all":"all"===r?", all":(t?dr(t):", "+dr(r))||t||r}function vr(e,t){var r=t;if(!pr||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=hr[n])return hr[n];try{pr.style[e]=r}catch(e){return hr[n]=!1,!1}if(yr[e])r=r.replace(gr,mr);else if(""===pr.style[e]&&("-ms-flex"===(r=Tt+r)&&(pr.style[e]="-ms-flexbox"),pr.style[e]=r,""===pr.style[e]))return hr[n]=!1,!1;return pr.style[e]="",hr[n]=r,hr[n]}h&&(pr=document.createElement("p"));var br=function(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var i=!1,o=dr(r);o&&o!==r&&(i=!0);var s=!1,a=vr(o,O(n));a&&a!==n&&(s=!0),(i||s)&&(i&&delete t[r],t[o||r]=a||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===jt?e:"@"+Tt+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return vr(t,O(e))||e}}},wr=function(e){return void 0===e&&(e={}),{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=R(e,{},r);return n[Le]=t,n},onProcessStyle:function(e,t){if(_e in t||Le in t)return e;var r={};for(var n in e){var i=e[n];"function"==typeof i&&(delete e[n],r[n]=i)}return t[_e]=r,e},onUpdate:function(e,t,r,n){var i=t,o=i[Le];o&&(i.style=o(e)||{});var s=i[_e];if(s)for(var a in s)i.prop(a,s[a](e),n)}},(r=e.observable,{onCreateRule:function(e,t,n){if(!$e(t))return null;var i=t,o=R(e,{},n);return i.subscribe((function(e){for(var t in e)o.prop(t,e[t],r)})),o},onProcessRule:function(e){if(!e||"style"===e.type){var t=e,n=t.style,i=function(e){var i=n[e];if(!$e(i))return"continue";delete n[e],i.subscribe({next:function(n){t.prop(e,n,r)}})};for(var o in n)i(o)}}}),{onProcessRule:ze},{onCreateRule:function(e,t,r){if(!e)return null;if(e===De)return new Fe(e,t,r);if("@"===e[0]&&"@global "===e.substr(0,8))return new We(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,i=n?n[De]:null;if(i){for(var o in i)t.addRule(o,i[o],s({},r,{selector:qe(o,e.selector)}));delete n[De]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var i in n)if("@"===i[0]&&i.substr(0,7)===De){var o=qe(i.substr(7),e.selector);t.addRule(o,n[i],s({},r,{selector:o})),delete n[i]}}(e,t))}},Xe(),Ke(),et(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=st(e[t]);return e}return st(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=ot(t);return t===n?e:(r.prop(n,e),null)}},pt(e.defaultUnit),{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var r=0;r<e.length;r++)e[r]=wt(e[r],t);return e}return wt(e,t)}},br(),(t=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n={},i=Object.keys(e).sort(t),o=0;o<i.length;o++)n[i[o]]=e[i[o]];return n}})]};var t,r},xr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kr=(function(e){var t={}}((function(e){return xr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ee(wr())),Sr=function(e){void 0===e&&(e=kr);var t,r=new Map,n=0,i=function(){return(!t||t.rules.index.length>1e4)&&(t=e.createStyleSheet().attach()),t};function o(){var e=arguments,t=JSON.stringify(e),o=r.get(t);if(o)return o.className;var s=[];for(var a in e){var l=e[a];if(Array.isArray(l))for(var u=0;u<l.length;u++)s.push(l[u]);else s.push(l)}for(var c={},f=[],d=0;d<s.length;d++){var p=s[d];if(p){var h=p;if("string"==typeof p){var y=r.get(p);y&&(y.labels.length&&f.push.apply(f,y.labels),h=y.style)}h.label&&-1===f.indexOf(h.label)&&f.push(h.label),Object.assign(c,h)}}delete c.label;var g=(0===f.length?"css":f.join("-"))+"-"+n++;i().addRule(g,c);var m=i().classes[g],v={style:c,labels:f,className:m};return r.set(t,v),r.set(m,v),m}return o.getSheet=i,o}(),Rr=Sr,Pr=Number.MIN_SAFE_INTEGER||-1e9,Or=(0,e.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!h}),Cr=new Map,Ar=function(e,t){var r=e.managers;if(r)return r[t]||(r[t]=new je),r[t];var n=Cr.get(t);return n||(n=new je,Cr.set(t,n)),n},Er=function(e){var t=e.sheet,r=e.context,n=e.index,i=e.theme;t&&(Ar(r,n).manage(i),r.registry&&r.registry.add(t))},jr=Ee(wr()),Tr=new WeakMap,Mr=function(e){return Tr.get(e)},Ir=function(e){if(!e.context.disableStylesGeneration){var t=Ar(e.context,e.index),r=t.get(e.theme);if(r)return r;var n=e.context.jss||jr,i=function(e){var t=e.styles;return"function"!=typeof t?t:t(e.theme)}(e),o=Me(i),a=n.createStyleSheet(i,function(e,t){var r;e.context.id&&null!=e.context.id.minify&&(r=e.context.id.minify);var n=e.context.classNamePrefix||"";e.name&&!r&&(n+=e.name.replace(/\s/g,"-")+"-");var i="";return e.name&&(i=e.name+", "),i+="function"==typeof e.styles?"Themed":"Unthemed",s({},e.sheetOptions,{index:e.index,meta:i,classNamePrefix:n,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}(e,null!==o));return function(e,t){Tr.set(e,t)}(a,{dynamicStyles:o,styles:i}),t.add(e.theme,a),a}},_r=function(e,t){var r=Mr(e);if(r){var n={};for(var i in r.dynamicStyles)for(var o=e.rules.index.length,s=e.addRule(i,r.dynamicStyles[i]),a=o;a<e.rules.index.length;a++){var l=e.rules.index[a];e.updateOne(l,t),n[s===l?i:l.key]=l}return n}};function Lr(r){return r?e.useEffect:t().useInsertionEffect||e.useLayoutEffect}var Vr={};Symbol("react-jss-styled"),function(e){void 0===e&&(e=Rr)}();const $r=function(t,r){void 0===r&&(r={});var n=r,i=n.index,o=void 0===i?Pr++:i,s=n.theming,l=n.name,u=a(n,["index","theming","name"]),c=s&&s.context||d,f={};return function(r){var n=(0,e.useRef)(!0),i=(0,e.useContext)(Or),s=function(r){return"function"==typeof t&&(r||(0,e.useContext)(c))||Vr}(r&&r.theme),a=(0,e.useMemo)((function(){var e=Ir({context:i,styles:t,name:l,theme:s,index:o,sheetOptions:u});return e&&i.isSSR&&Er({index:o,context:i,sheet:e,theme:s}),[e,e?_r(e,r):null]}),[i,s]),d=a[0],p=a[1];Lr(i.isSSR)((function(){d&&p&&!n.current&&function(e,t,r){for(var n in r)t.updateOne(r[n],e)}(r,d,p)}),[r]),Lr(i.isSSR)((function(){return d&&Er({index:o,context:i,sheet:d,theme:s}),function(){d&&(function(e){e.sheet&&Ar(e.context,e.index).unmanage(e.theme)}({index:o,context:i,sheet:d,theme:s}),p&&function(e,t){for(var r in t)e.deleteRule(t[r])}(d,p))}}),[d]);var h=(0,e.useMemo)((function(){return d&&p?function(e,t){if(!t)return e.classes;var r=Mr(e);if(!r)return e.classes;var n={};for(var i in r.styles)n[i]=e.classes[i],i in t&&(n[i]+=" "+e.classes[t[i].key]);return n}(d,p):f}),[d,p]);return(0,e.useDebugValue)(h),(0,e.useDebugValue)(s===Vr?"No theme":s),(0,e.useEffect)((function(){n.current=!1})),h}}({component:{}});var Nr=r(322);const zr=()=>{},Dr=zr(),Fr=Object,Wr=e=>e===Dr,Ur=e=>"function"==typeof e,qr=(e,t)=>({...e,...t}),Hr=new WeakMap;let Gr=0;const Br=e=>{const t=typeof e,r=e&&e.constructor,n=r==Date;let i,o;if(Fr(e)!==e||n||r==RegExp)i=n?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(i=Hr.get(e),i)return i;if(i=++Gr+"~",Hr.set(e,i),r==Array){for(i="@",o=0;o<e.length;o++)i+=Br(e[o])+",";Hr.set(e,i)}if(r==Fr){i="#";const t=Fr.keys(e).sort();for(;!Wr(o=t.pop());)Wr(e[o])||(i+=o+":"+Br(e[o])+",");Hr.set(e,i)}}return i},Xr=new WeakMap,Jr={},Yr={},Zr="undefined",Kr=typeof window!=Zr,Qr=typeof document!=Zr,en=(e,t)=>{const r=Xr.get(e);return[()=>!Wr(t)&&e.get(t)||Jr,n=>{if(!Wr(t)){const i=e.get(t);t in Yr||(Yr[t]=i),r[5](t,qr(i,n),i||Jr)}},r[6],()=>!Wr(t)&&t in Yr?Yr[t]:!Wr(t)&&e.get(t)||Jr]};let tn=!0;const[rn,nn]=Kr&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[zr,zr],on={isOnline:()=>tn,isVisible:()=>{const e=Qr&&document.visibilityState;return Wr(e)||"hidden"!==e}},sn={initFocus:e=>(Qr&&document.addEventListener("visibilitychange",e),rn("focus",e),()=>{Qr&&document.removeEventListener("visibilitychange",e),nn("focus",e)}),initReconnect:e=>{const t=()=>{tn=!0,e()},r=()=>{tn=!1};return rn("online",t),rn("offline",r),()=>{nn("online",t),nn("offline",r)}}},an=!e.useId,ln=!Kr||"Deno"in window,un=ln?e.useEffect:e.useLayoutEffect,cn="undefined"!=typeof navigator&&navigator.connection,fn=!ln&&cn&&(["slow-2g","2g"].includes(cn.effectiveType)||cn.saveData),dn=e=>{if(Ur(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Br(e):"",t]};let pn=0;const hn=()=>++pn;async function yn(...e){const[t,r,n,i]=e,o=qr({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{});let s=o.populateCache;const a=o.rollbackOnError;let l=o.optimisticData;const u=!1!==o.revalidate,c=o.throwOnError;if(Ur(r)){const e=r,n=[],i=t.keys();for(const r of i)!/^\$(inf|sub)\$/.test(r)&&e(t.get(r)._k)&&n.push(r);return Promise.all(n.map(f))}return f(r);async function f(r){const[i]=dn(r);if(!i)return;const[o,f]=en(t,i),[d,p,h,y]=Xr.get(t),g=()=>{const e=d[i];return u&&(delete h[i],delete y[i],e&&e[0])?e[0](2).then((()=>o().data)):o().data};if(e.length<3)return g();let m,v=n;const b=hn();p[i]=[b,0];const w=!Wr(l),x=o(),k=x.data,S=x._c,R=Wr(S)?k:S;if(w&&(l=Ur(l)?l(R,k):l,f({data:l,_c:R})),Ur(v))try{v=v(R)}catch(e){m=e}if(v&&Ur(v.then)){if(v=await v.catch((e=>{m=e})),b!==p[i][0]){if(m)throw m;return v}m&&w&&(e=>"function"==typeof a?a(e):!1!==a)(m)&&(s=!0,f({data:R,_c:Dr}))}if(s&&!m)if(Ur(s)){const e=s(v,R);f({data:e,error:Dr,_c:Dr})}else f({data:v,error:Dr,_c:Dr});if(p[i][1]=hn(),Promise.resolve(g()).then((()=>{f({_c:Dr})})),!m)return v;if(c)throw m}}const gn=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},mn=(e,t)=>{if(!Xr.has(e)){const r=qr(sn,t),n={},i=yn.bind(Dr,e);let o=zr;const s={},a=(e,t)=>{const r=s[e]||[];return s[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},l=(t,r,n)=>{e.set(t,r);const i=s[t];if(i)for(const e of i)e(r,n)},u=()=>{if(!Xr.has(e)&&(Xr.set(e,[n,{},{},{},i,l,a]),!ln)){const t=r.initFocus(setTimeout.bind(Dr,gn.bind(Dr,n,0))),i=r.initReconnect(setTimeout.bind(Dr,gn.bind(Dr,n,1)));o=()=>{t&&t(),i&&i(),Xr.delete(e)}}};return u(),[e,i,u,o]}return[e,Xr.get(e)[4]]},[vn,bn]=mn(new Map),wn=qr({onLoadingSlow:zr,onSuccess:zr,onError:zr,onErrorRetry:(e,__,t,r,n)=>{const i=t.errorRetryCount,o=n.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*t.errorRetryInterval;!Wr(i)&&o>i||setTimeout(r,s,n)},onDiscarded:zr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:fn?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:fn?5e3:3e3,compare:(e,t)=>Br(e)==Br(t),isPaused:()=>!1,cache:vn,mutate:bn,fallback:{}},on),xn=(e,t)=>{const r=qr(e,t);if(t){const{use:n,fallback:i}=e,{use:o,fallback:s}=t;n&&o&&(r.use=n.concat(o)),i&&s&&(r.fallback=qr(i,s))}return r},kn=(0,e.createContext)({}),Sn=Kr&&window.__SWR_DEVTOOLS_USE__,Rn=Sn?window.__SWR_DEVTOOLS_USE__:[],Pn=Rn.concat((e=>(t,r,n)=>{const i=r&&((...e)=>{const[n]=dn(t),[,,,i]=Xr.get(vn);if(n.startsWith("$inf$"))return r(...e);const o=i[n];return Wr(o)?r(...e):(delete i[n],o)});return e(t,i,n)}));Sn&&(window.__SWR_DEVTOOLS_REACT__=e);const On=e.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),Cn={dedupe:!0},An=(Fr.defineProperty((t=>{const{value:r}=t,n=(0,e.useContext)(kn),i=Ur(r),o=(0,e.useMemo)((()=>i?r(n):r),[i,n,r]),s=(0,e.useMemo)((()=>i?o:xn(n,o)),[i,n,o]),a=o&&o.provider,l=(0,e.useRef)(Dr);a&&!l.current&&(l.current=mn(a(s.cache||vn),o));const u=l.current;return u&&(s.cache=u[0],s.mutate=u[1]),un((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),(0,e.createElement)(kn.Provider,qr(t,{value:s}))}),"defaultValue",{value:wn}),En=(t,r,n)=>{const{cache:i,compare:o,suspense:s,fallbackData:a,revalidateOnMount:l,revalidateIfStale:u,refreshInterval:c,refreshWhenHidden:f,refreshWhenOffline:d,keepPreviousData:p}=n,[h,y,g,m]=Xr.get(i),[v,b]=dn(t),w=(0,e.useRef)(!1),x=(0,e.useRef)(!1),k=(0,e.useRef)(v),S=(0,e.useRef)(r),R=(0,e.useRef)(n),P=()=>R.current,O=()=>P().isVisible()&&P().isOnline(),[C,A,E,j]=en(i,v),T=(0,e.useRef)({}).current,M=Wr(a)?n.fallback[v]:a,I=(e,t)=>{for(const r in T){const n=r;if("data"===n){if(!o(e[n],t[n])){if(!Wr(e[n]))return!1;if(!o(W,t[n]))return!1}}else if(t[n]!==e[n])return!1}return!0},_=(0,e.useMemo)((()=>{const e=!!v&&!!r&&(Wr(l)?!P().isPaused()&&!s&&(!!Wr(u)||u):l),t=t=>{const r=qr(t);return delete r._k,e?{isValidating:!0,isLoading:!0,...r}:r},n=C(),i=j(),o=t(n),a=n===i?o:t(i);let c=o;return[()=>{const e=t(C());return I(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>a]}),[i,v]),L=(0,Nr.useSyncExternalStore)((0,e.useCallback)((e=>E(v,((t,r)=>{I(r,t)||e()}))),[i,v]),_[0],_[1]),V=!w.current,$=h[v]&&h[v].length>0,N=L.data,z=Wr(N)?M:N,D=L.error,F=(0,e.useRef)(z),W=p?Wr(N)?F.current:N:z,U=!($&&!Wr(D))&&(V&&!Wr(l)?l:!P().isPaused()&&(s?!Wr(z)&&u:Wr(z)||u)),q=!!(v&&r&&V&&U),H=Wr(L.isValidating)?q:L.isValidating,G=Wr(L.isLoading)?q:L.isLoading,B=(0,e.useCallback)((async e=>{const t=S.current;if(!v||!t||x.current||P().isPaused())return!1;let r,i,s=!0;const a=e||{},l=!g[v]||!a.dedupe,u=()=>an?!x.current&&v===k.current&&w.current:v===k.current,c={isValidating:!1,isLoading:!1},f=()=>{A(c)},d=()=>{const e=g[v];e&&e[1]===i&&delete g[v]},p={isValidating:!0};Wr(C().data)&&(p.isLoading=!0);try{if(l&&(A(p),n.loadingTimeout&&Wr(C().data)&&setTimeout((()=>{s&&u()&&P().onLoadingSlow(v,n)}),n.loadingTimeout),g[v]=[t(b),hn()]),[r,i]=g[v],r=await r,l&&setTimeout(d,n.dedupingInterval),!g[v]||g[v][1]!==i)return l&&u()&&P().onDiscarded(v),!1;c.error=Dr;const e=y[v];if(!Wr(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return f(),l&&u()&&P().onDiscarded(v),!1;const a=C().data;c.data=o(a,r)?a:r,l&&u()&&P().onSuccess(r,v,n)}catch(e){d();const t=P(),{shouldRetryOnError:r}=t;t.isPaused()||(c.error=e,l&&u()&&(t.onError(e,v,t),(!0===r||Ur(r)&&r(e))&&O()&&t.onErrorRetry(e,v,t,(e=>{const t=h[v];t&&t[0]&&t[0](3,e)}),{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return s=!1,f(),!0}),[v,i]),X=(0,e.useCallback)(((...e)=>yn(i,k.current,...e)),[]);if(un((()=>{S.current=r,R.current=n,Wr(N)||(F.current=N)})),un((()=>{if(!v)return;const e=B.bind(Dr,Cn);let t=0;const r=((e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}})(v,h,((r,n={})=>{if(0==r){const r=Date.now();P().revalidateOnFocus&&r>t&&O()&&(t=r+P().focusThrottleInterval,e())}else if(1==r)P().revalidateOnReconnect&&O()&&e();else{if(2==r)return B();if(3==r)return B(n)}}));return x.current=!1,k.current=v,w.current=!0,A({_k:b}),U&&(Wr(z)||ln?e():(n=e,Kr&&typeof window.requestAnimationFrame!=Zr?window.requestAnimationFrame(n):setTimeout(n,1))),()=>{x.current=!0,r()};var n}),[v]),un((()=>{let e;function t(){const t=Ur(c)?c(C().data):c;t&&-1!==e&&(e=setTimeout(r,t))}function r(){C().error||!f&&!P().isVisible()||!d&&!P().isOnline()?t():B(Cn).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[c,f,d,v]),(0,e.useDebugValue)(W),s&&Wr(z)&&v){if(!an&&ln)throw new Error("Fallback data is required when using suspense in SSR.");S.current=r,R.current=n,x.current=!1;const e=m[v];if(!Wr(e)){const t=X(e);On(t)}if(!Wr(D))throw D;{const e=B(Cn);Wr(W)||(e.status="fulfilled",e.value=!0),On(e)}}return{mutate:X,get data(){return T.data=!0,W},get error(){return T.error=!0,D},get isValidating(){return T.isValidating=!0,H},get isLoading(){return T.isLoading=!0,G}}},function(...t){const r=qr(wn,(0,e.useContext)(kn)),[n,i,o]=(e=>Ur(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(t),s=xn(r,o);let a=En;const{use:l}=s,u=(l||[]).concat(Pn);for(let e=u.length;e--;)a=u[e](a);return a(n,i||s.fetcher||null,s)});var En,jn=window.wp.apiFetch,Tn=r.n(jn);var Mn=()=>{const t=$r(),{value:r}=(()=>{const{data:e,mutate:t}=An(window.ClimbPress.RESTNamespace+"/grading-systems",(e=>Tn()({path:e})));return{value:null!=e?e:[],add:r=>{t([{id:r,name:r,grades:[]},...e])}}})(),n=r.map((e=>{let t=0;return e.grades.forEach((e=>{t=Math.max(t,e.difficulty)})),t})),i=Math.max(...n),o={};for(let e=0;e<i;e++)r.forEach((t=>{const r=t.grades.find((t=>t.difficulty==e));r&&(o[e]||(o[e]={}),o[e][t.id]=r.label)}));return(0,e.createElement)("div",{className:t.component},(0,e.createElement)("table",{className:"wp-list-table widefat fixed striped posts"},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(s="Range of values",null!==(a=window.ClimbPress.i18n[s])&&void 0!==a?a:`? ${s} ?`)),r.map((t=>(0,e.createElement)("th",{key:t.id},t.name))))),(0,e.createElement)("tbody",null,Object.keys(o).map((t=>{const n=o[t];return(0,e.createElement)("tr",{key:t},(0,e.createElement)("td",null,t),r.map((t=>{var r;return(0,e.createElement)("td",{key:t.id},null!==(r=n?.[t.id])&&void 0!==r?r:"")})))})))));var s,a};i()((()=>{(0,o.render)((0,e.createElement)(Mn,null),document.getElementById(window.ClimbPress.rootId))}))}()}();
     1!function(){"use strict";var e={535:function(e,t,r){var n=r(237),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=p(r);i&&i!==h&&e(t,i,n)}var s=c(r);f&&(s=s.concat(f(r)));for(var a=l(t),y=l(r),g=0;g<s.length;++g){var m=s[g];if(!(o[m]||n&&n[m]||y&&y[m]||a&&a[m])){var v=d(r,m);try{u(t,m,v)}catch(e){}}}}return t}},684:function(e,t){},198:function(e,t){var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case f:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case y:case l:return e;default:return t}}case i:return t}}}function k(e){return x(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=y,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||x(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===y},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===a||e===s||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===y||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===m)},t.typeOf=x},237:function(e,t,r){e.exports=r(198)},603:function(e,t,r){r.d(t,{Z:function(){return n}}),e=r.hmd(e);var n=function(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:e)},415:function(e,t,r){var n=r(196),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,s=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return a((function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,r,t]),s((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},322:function(e,t,r){e.exports=r(415)},196:function(e){e.exports=window.React}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n](o,o.exports,r),o.loaded=!0,o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e=r(196),t=r.n(e),n=window.wp.domReady,i=r.n(n),o=window.wp.element;function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function a(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}r(535);function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r(684);var f,d=(0,e.createContext)(),p=(function(e){}(f=d),function(e){}(f),function(e){var r=function(r){var n,i;function o(){for(var n,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return l(c(c(n=r.call.apply(r,[this].concat(o))||this)),"cachedTheme",void 0),l(c(c(n)),"lastOuterTheme",void 0),l(c(c(n)),"lastTheme",void 0),l(c(c(n)),"renderProvider",(function(r){var i=n.props.children;return t().createElement(e.Provider,{value:n.getTheme(r)},i)})),n}i=r,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var s=o.prototype;return s.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,"function"==typeof this.lastTheme){var t=this.props.theme;this.cachedTheme=t(e)}else{var r=this.props.theme;this.cachedTheme=e?u({},e,r):r}return this.cachedTheme},s.render=function(){return this.props.children?t().createElement(e.Consumer,null,this.renderProvider):null},o}(t().Component)}(f),"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),h="object"===("undefined"==typeof window?"undefined":p(window))&&"object"===("undefined"==typeof document?"undefined":p(document))&&9===document.nodeType;function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function g(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===y(t)?t:String(t)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function v(e,t,r){return t&&m(e.prototype,t),r&&m(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function w(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,b(e,t)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var k={}.constructor;function S(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(S);if(e.constructor!==k)return e;var t={};for(var r in e)t[r]=S(e[r]);return t}function R(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,i=S(t);return n.plugins.onCreateRule(e,i,r)||(e[0],null)}var P=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},O=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=P(e[r]," ");else t=P(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function C(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function A(e,t){for(var r="",n=0;n<t;n++)r+="  ";return r+e}function E(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var i=r.indent,o=void 0===i?0:i,s=t.fallbacks;!1===r.format&&(o=-1/0);var a=C(r),l=a.linebreak,u=a.space;if(e&&o++,s)if(Array.isArray(s))for(var c=0;c<s.length;c++){var f=s[c];for(var d in f){var p=f[d];null!=p&&(n&&(n+=l),n+=A(d+":"+u+O(p)+";",o))}}else for(var h in s){var y=s[h];null!=y&&(n&&(n+=l),n+=A(h+":"+u+O(y)+";",o))}for(var g in t){var m=t[g];null!=m&&"fallbacks"!==g&&(n&&(n+=l),n+=A(g+":"+u+O(m)+";",o))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),A(""+e+u+"{"+n,--o)+A("}",o)):n}var j=/([[\].#*$><+~=|^:(),"'`\s])/g,T="undefined"!=typeof CSS&&CSS.escape,M=function(e){return T?T(e):e.replace(j,"\\$1")},I=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,i=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var i=t;r&&!1===r.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,s=e in this.style;if(o&&!s&&!n)return this;var a=o&&s;if(a?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),_=function(e){function t(t,r,n){var i;i=e.call(this,t,r,n)||this;var o=n.selector,s=n.scoped,a=n.sheet,l=n.generateId;return o?i.selectorText=o:!1!==s&&(i.id=l(x(x(i)),a),i.selectorText="."+M(i.id)),i}w(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=O(r))}return e},r.toString=function(e){var t=this.options.sheet,r=t&&t.options.link?s({},e,{allowEmpty:!0}):e;return E(this.selectorText,this.style,r)},v(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;r&&t&&(t.setSelector(r,e)||t.replaceRule(r,this))}},get:function(){return this.selectorText}}]),t}(I),L={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new _(e,t,r)}},V={indent:1,children:!0},$=/@([\w-]+)/,N=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match($);for(var i in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new le(s({},r,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=V);var t=C(e).linebreak;if(null==e.indent&&(e.indent=V.indent),null==e.children&&(e.children=V.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),z=/@container|@media|@supports\s+/,D={onCreateRule:function(e,t,r){return z.test(e)?new N(e,t,r):null}},F={indent:1,children:!0},W=/@keyframes\s+([\w-]+)/,U=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(W);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var i=r.scoped,o=r.sheet,a=r.generateId;for(var l in this.id=!1===i?this.name:M(a(this,o)),this.rules=new le(s({},r,{parent:this})),t)this.rules.add(l,t[l],s({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=F);var t=C(e).linebreak;if(null==e.indent&&(e.indent=F.indent),null==e.children&&(e.children=F.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),q=/@keyframes\s+/,H=/\$([\w-]+)/g,G=function(e,t){return"string"==typeof e?e.replace(H,(function(e,r){return r in t?t[r]:e})):e},B=function(e,t,r){var n=e[t],i=G(n,r);i!==n&&(e[t]=i)},X={onCreateRule:function(e,t,r){return"string"==typeof e&&q.test(e)?new U(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&B(e,"animation-name",r.keyframes),"animation"in e&&B(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return G(e,n.keyframes);default:return e}}},J=function(e){function t(){return e.apply(this,arguments)||this}return w(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=t&&t.options.link?s({},e,{allowEmpty:!0}):e;return E(this.key,this.style,r)},t}(I),Y={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new J(e,t,r):null}},Z=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=C(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=E(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return E(this.at,this.style,e)},e}(),K=/@font-face/,Q={onCreateRule:function(e,t,r){return K.test(e)?new Z(e,t,r):null}},ee=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return E(this.key,this.style,e)},e}(),te={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new ee(e,t,r):null}},re=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),ne={"@charset":!0,"@import":!0,"@namespace":!0},ie={onCreateRule:function(e,t,r){return e in ne?new re(e,t,r):null}},oe=[L,D,X,Y,Q,te,ie],se={process:!0},ae={force:!0,process:!0},le=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,i=n.parent,o=n.sheet,a=n.jss,l=n.Renderer,u=n.generateId,c=n.scoped,f=s({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:l,generateId:u,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(f.selector="."+M(this.classes[d]));var p=R(d,t,f);if(!p)return null;this.register(p);var h=void 0===f.index?this.index.length:f.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,r){var n=this.get(e),i=this.index.indexOf(n);n&&this.remove(n);var o=r;return-1!==i&&(o=s({},r,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof _?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof U&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof _?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof U&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=se);var i=this.options,o=i.jss.plugins,s=i.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var a=t.style;if(o.onUpdate(r,t,s,n),n.process&&a&&a!==t.style){for(var l in o.onProcessStyle(t.style,t,s),t.style){var u=t.style[l];u!==a[l]&&t.prop(l,u,ae)}for(var c in a){var f=t.style[c],d=a[c];null==f&&f!==d&&t.prop(c,null,ae)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,i=C(e).linebreak,o=0;o<this.index.length;o++){var s=this.index[o].toString(e);(s||n)&&(t&&(t+=i),t+=s)}return t},e}(),ue=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=s({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new le(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var i=this.rules.add(e,t,r);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(n?n.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var i=this.rules.replace(e,t,r);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?n.renderable&&this.renderer.replaceRule(n.renderable,i):this.renderer.deleteRule(n)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var i=this.addRule(n,e[n],t);i&&r.push(i)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),ce=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var i=this.registry.onCreateRule[n](e,t,r);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,i=0;i<this.registry.onChangeValue.length;i++)n=this.registry.onChangeValue[i](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),fe=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=a(t,["attached"]),i=C(n).linebreak,o="",s=0;s<this.registry.length;s++){var l=this.registry[s];null!=r&&l.attached!==r||(o&&(o+=i),o+=l.toString(n))}return o},v(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),de=new fe,pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),he="2f1acc6c3a606b082e5eef5e54414ffb";null==pe[he]&&(pe[he]=0);var ye=pe[he]++,ge=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var i="",o="";return n&&(n.options.classNamePrefix&&(o=n.options.classNamePrefix),null!=n.options.jss.id&&(i=String(n.options.jss.id))),e.minify?""+(o||"c")+ye+i+t:o+r.key+"-"+ye+(i?"-"+i:"")+"-"+t}},me=function(e){var t;return function(){return t||(t=e()),t}},ve=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},be=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=O(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var i=n?n.indexOf("!important"):-1,o=i>-1?n.substr(0,i-1):n;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},we=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},xe=function(e,t){return e.selectorText=t,e.selectorText===t},ke=me((function(){return document.querySelector("head")}));var Se=me((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Re=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},Pe=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Oe=function(){function e(e){this.getPropertyValue=ve,this.setProperty=be,this.removeProperty=we,this.setSelector=xe,this.hasInsertedRules=!1,this.cssRules=[],e&&de.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var o=Se();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=function(e){var t=de.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var i=function(e){for(var t=ke(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var i=r,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else ke().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,i=r;if("conditional"===e.type||"keyframes"===e.type){var o=Pe(r,t);if(!1===(i=Re(r,n.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(n.rules,i),i}var s=e.toString();if(!s)return!1;var a=Pe(r,t),l=Re(r,s,a);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,a,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof ue&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ce=0,Ae=function(){function e(e){this.id=Ce++,this.version="10.10.0",this.plugins=new ce,this.options={id:{minify:!1},createGenerateId:ge,Renderer:h?Oe:null,plugins:[]},this.generateId=ge({minify:!1});for(var t=0;t<oe.length;t++)this.plugins.use(oe[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=s({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===de.index?0:de.index+1);var n=new ue(e,s({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),de.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=s({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var i=R(e,t,n);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.plugins.use(t)})),this},e}(),Ee=function(e){return new Ae(e)},je=function(){function e(){this.length=0,this.sheets=new WeakMap}var t=e.prototype;return t.get=function(e){var t=this.sheets.get(e);return t&&t.sheet},t.add=function(e,t){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:t,refs:0}))},t.manage=function(e){var t=this.sheets.get(e);if(t)return 0===t.refs&&t.sheet.attach(),t.refs++,t.sheet},t.unmanage=function(e){var t=this.sheets.get(e);t&&t.refs>0&&(t.refs--,0===t.refs&&t.sheet.detach())},v(e,[{key:"size",get:function(){return this.length}}]),e}(),Te="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Me(e){var t=null;for(var r in e){var n=e[r],i=typeof n;if("function"===i)t||(t={}),t[r]=n;else if("object"===i&&null!==n&&!Array.isArray(n)){var o=Me(n);o&&(t||(t={}),t[r]=o)}}return t}Ee();var Ie=Date.now(),_e="fnValues"+Ie,Le="fnStyle"+ ++Ie,Ve=r(603),$e=function(e){return e&&e[Ve.Z]&&e===e[Ve.Z]()},Ne=/;\n/,ze=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},r=e.split(Ne),n=0;n<r.length;n++){var i=(r[n]||"").trim();if(i){var o=i.indexOf(":");if(-1!==o){var s=i.substr(0,o).trim(),a=i.substr(o+1).trim();t[s]=a}}}return t}(e.style))},De="@global",Fe=function(){function e(e,t,r){for(var n in this.type="global",this.at=De,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new le(s({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),We=function(){function e(e,t,r){this.type="global",this.at=De,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,s({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ue=/\s*,\s*/g;function qe(e,t){for(var r=e.split(Ue),n="",i=0;i<r.length;i++)n+=t+" "+r[i].trim(),r[i+1]&&(n+=", ");return n}var He=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},Ge="extendCurrValue"+Date.now();function Be(e,t,r,n){return void 0===n&&(n={}),function(e,t,r,n){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var i=0;i<e.extend.length;i++){var o=e.extend[i];Be("string"==typeof o?s({},e,{extend:o}):e.extend[i],t,r,n)}else for(var a in e.extend)"extend"!==a?He(e.extend[a])?(a in n||(n[a]={}),Be(e.extend[a],t,r,n[a])):n[a]=e.extend[a]:Be(e.extend.extend,t,r,n);else{if(!r)return;var l=r.getRule(e.extend);if(!l)return;if(l===t)return;var u=l.options.parent;u&&Be(u.rules.raw[e.extend],t,r,n)}}(e,t,r,n),function(e,t,r,n){for(var i in e)"extend"!==i&&(He(n[i])&&He(e[i])?Be(e[i],t,r,n[i]):He(e[i])?n[i]=Be(e[i],t,r):n[i]=e[i])}(e,t,r,n),n}var Xe=function(){return{onProcessStyle:function(e,t,r){return"extend"in e?Be(e,t,r):e},onChangeValue:function(e,t,r){if("extend"!==t)return e;if(null==e||!1===e){for(var n in r[Ge])r.prop(n,null);return r[Ge]=null,null}if("object"==typeof e){for(var i in e)r.prop(i,e[i]);r[Ge]=e}return null}}},Je=/\s*,\s*/g,Ye=/&/g,Ze=/\$([\w-]+)/g,Ke=function(){function e(e,t){return function(r,n){var i=e.getRule(n)||t&&t.getRule(n);return i?i.selector:n}}function t(e,t){for(var r=t.split(Je),n=e.split(Je),i="",o=0;o<r.length;o++)for(var s=r[o],a=0;a<n.length;a++){var l=n[a];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Ye,s):s+" "+l}return i}function r(e,t,r){if(r)return s({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var i=s({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(n,i,o){if("style"!==i.type)return n;var a,l,u=i,c=u.options.parent;for(var f in n){var d=-1!==f.indexOf("&"),p="@"===f[0];if(d||p){if(a=r(u,c,a),d){var h=t(f,u.selector);l||(l=e(c,o)),h=h.replace(Ze,l);var y=u.key+"-"+f;"replaceRule"in c?c.replaceRule(y,n[f],s({},a,{selector:h})):c.addRule(y,n[f],s({},a,{selector:h}))}else p&&c.addRule(f,{},a).addRule(u.key,n[f],{selector:u.selector});delete n[f]}}return n}}};function Qe(e,t){if(!t)return!0;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(!Qe(e,t[r]))return!1;return!0}if(t.indexOf(" ")>-1)return Qe(e,t.split(" "));var n=e.options.parent;if("$"===t[0]){var i=n.getRule(t.substr(1));return!!i&&i!==e&&(n.classes[e.key]+=" "+n.classes[i.key],!0)}return n.classes[e.key]+=" "+t,!0}var et=function(){return{onProcessStyle:function(e,t){return"composes"in e?(Qe(t,e.composes),delete e.composes,e):e}}},tt=/[A-Z]/g,rt=/^ms-/,nt={};function it(e){return"-"+e.toLowerCase()}var ot=function(e){if(nt.hasOwnProperty(e))return nt[e];var t=e.replace(tt,it);return nt[e]=rt.test(t)?"-"+t:t};function st(e){var t={};for(var r in e)t[0===r.indexOf("--")?r:ot(r)]=e[r];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(st):t.fallbacks=st(e.fallbacks)),t}var at=Te&&CSS?CSS.px:"px",lt=Te&&CSS?CSS.ms:"ms",ut=Te&&CSS?CSS.percent:"%";function ct(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var i in e)n[i]=e[i],n[i.replace(t,r)]=e[i];return n}var ft=ct({"animation-delay":lt,"animation-duration":lt,"background-position":at,"background-position-x":at,"background-position-y":at,"background-size":at,border:at,"border-bottom":at,"border-bottom-left-radius":at,"border-bottom-right-radius":at,"border-bottom-width":at,"border-left":at,"border-left-width":at,"border-radius":at,"border-right":at,"border-right-width":at,"border-top":at,"border-top-left-radius":at,"border-top-right-radius":at,"border-top-width":at,"border-width":at,"border-block":at,"border-block-end":at,"border-block-end-width":at,"border-block-start":at,"border-block-start-width":at,"border-block-width":at,"border-inline":at,"border-inline-end":at,"border-inline-end-width":at,"border-inline-start":at,"border-inline-start-width":at,"border-inline-width":at,"border-start-start-radius":at,"border-start-end-radius":at,"border-end-start-radius":at,"border-end-end-radius":at,margin:at,"margin-bottom":at,"margin-left":at,"margin-right":at,"margin-top":at,"margin-block":at,"margin-block-end":at,"margin-block-start":at,"margin-inline":at,"margin-inline-end":at,"margin-inline-start":at,padding:at,"padding-bottom":at,"padding-left":at,"padding-right":at,"padding-top":at,"padding-block":at,"padding-block-end":at,"padding-block-start":at,"padding-inline":at,"padding-inline-end":at,"padding-inline-start":at,"mask-position-x":at,"mask-position-y":at,"mask-size":at,height:at,width:at,"min-height":at,"max-height":at,"min-width":at,"max-width":at,bottom:at,left:at,top:at,right:at,inset:at,"inset-block":at,"inset-block-end":at,"inset-block-start":at,"inset-inline":at,"inset-inline-end":at,"inset-inline-start":at,"box-shadow":at,"text-shadow":at,"column-gap":at,"column-rule":at,"column-rule-width":at,"column-width":at,"font-size":at,"font-size-delta":at,"letter-spacing":at,"text-decoration-thickness":at,"text-indent":at,"text-stroke":at,"text-stroke-width":at,"word-spacing":at,motion:at,"motion-offset":at,outline:at,"outline-offset":at,"outline-width":at,perspective:at,"perspective-origin-x":ut,"perspective-origin-y":ut,"transform-origin":ut,"transform-origin-x":ut,"transform-origin-y":ut,"transform-origin-z":ut,"transition-delay":lt,"transition-duration":lt,"vertical-align":at,"flex-basis":at,"shape-margin":at,size:at,gap:at,grid:at,"grid-gap":at,"row-gap":at,"grid-row-gap":at,"grid-column-gap":at,"grid-template-rows":at,"grid-template-columns":at,"grid-auto-rows":at,"grid-auto-columns":at,"box-shadow-x":at,"box-shadow-y":at,"box-shadow-blur":at,"box-shadow-spread":at,"font-line-height":at,"text-shadow-x":at,"text-shadow-y":at,"text-shadow-blur":at});function dt(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=dt(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=dt(i,t[i],r);else for(var o in t)t[o]=dt(e+"-"+o,t[o],r);else if("number"==typeof t&&!1===isNaN(t)){var s=r[e]||ft[e];return!s||0===t&&s===at?t.toString():"function"==typeof s?s(t).toString():""+t+s}return t}var pt=function(e){void 0===e&&(e={});var t=ct(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=dt(n,e[n],t);return e},onChangeValue:function(e,r){return dt(r,e,t)}}},ht={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},yt={position:!0,size:!0},gt={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},mt={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function vt(e,t,r,n){return null==r[t]?e:0===e.length?[]:Array.isArray(e[0])?vt(e[0],t,r,n):"object"==typeof e[0]?function(e,t,r){return e.map((function(e){return bt(e,t,r,!1,!0)}))}(e,t,n):[e]}function bt(e,t,r,n,i){if(!gt[t]&&!mt[t])return[];var o=[];if(mt[t]&&(e=function(e,t,r,n){for(var i in r){var o=r[i];if(void 0!==e[i]&&(n||!t.prop(o))){var s,a=wt((s={},s[o]=e[i],s),t)[o];n?t.style.fallbacks[o]=a:t.style[o]=a}delete e[i]}return e}(e,r,mt[t],n)),Object.keys(e).length)for(var s in gt[t])e[s]?Array.isArray(e[s])?o.push(null===yt[s]?e[s]:e[s].join(" ")):o.push(e[s]):null!=gt[t][s]&&o.push(gt[t][s]);return!o.length||i?o:[o]}function wt(e,t,r){for(var n in e){var i=e[n];if(Array.isArray(i)){if(!Array.isArray(i[0])){if("fallbacks"===n){for(var o=0;o<e.fallbacks.length;o++)e.fallbacks[o]=wt(e.fallbacks[o],t,!0);continue}e[n]=vt(i,n,ht,t),e[n].length||delete e[n]}}else if("object"==typeof i){if("fallbacks"===n){e.fallbacks=wt(e.fallbacks,t,!0);continue}e[n]=bt(i,n,t,r),e[n].length||delete e[n]}else""===e[n]&&delete e[n]}return e}function xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var kt="",St="",Rt="",Pt="",Ot=h&&"ontouchstart"in document.documentElement;if(h){var Ct={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},At=document.createElement("p").style;for(var Et in Ct)if(Et+"Transform"in At){kt=Et,St=Ct[Et];break}"Webkit"===kt&&"msHyphens"in At&&(kt="ms",St=Ct.ms,Pt="edge"),"Webkit"===kt&&"-apple-trailing-word"in At&&(Rt="apple")}var jt=kt,Tt=St,Mt=Rt,It=Pt,_t=Ot,Lt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===jt?"-webkit-"+e:Tt+e)}},Vt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===jt?Tt+"print-"+e:e)}},$t=/[-\s]+(.)?/g;function Nt(e,t){return t?t.toUpperCase():""}function zt(e){return e.replace($t,Nt)}function Dt(e){return zt("-"+e)}var Ft,Wt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===jt){var r="mask-image";if(zt(r)in t)return e;if(jt+Dt(r)in t)return Tt+e}return e}},Ut={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Mt||_t?e:Tt+e)}},qt={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:Tt+e)}},Ht={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:Tt+e)}},Gt={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===jt||"ms"===jt&&"edge"!==It?Tt+e:e)}},Bt={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===jt||"ms"===jt||"apple"===Mt?Tt+e:e)}},Xt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===jt?"WebkitColumn"+Dt(e)in t&&Tt+"column-"+e:"Moz"===jt&&"page"+Dt(e)in t&&"page-"+e)}},Jt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===jt)return e;var r=e.replace("-inline","");return jt+Dt(r)in t&&Tt+r}},Yt={supportedProperty:function(e,t){return zt(e)in t&&e}},Zt={supportedProperty:function(e,t){var r=Dt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:jt+r in t?Tt+e:"Webkit"!==jt&&"Webkit"+r in t&&"-webkit-"+e}},Kt={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===jt?""+Tt+e:e)}},Qt={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===jt?Tt+"scroll-chaining":e)}},er={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},tr={supportedProperty:function(e,t){var r=er[e];return!!r&&jt+Dt(r)in t&&Tt+r}},rr={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},nr=Object.keys(rr),ir=function(e){return Tt+e},or={supportedProperty:function(e,t,r){var n=r.multiple;if(nr.indexOf(e)>-1){var i=rr[e];if(!Array.isArray(i))return jt+Dt(i)in t&&Tt+i;if(!n)return!1;for(var o=0;o<i.length;o++)if(!(jt+Dt(i[0])in t))return!1;return i.map(ir)}return!1}},sr=[Lt,Vt,Wt,Ut,qt,Ht,Gt,Bt,Xt,Jt,Yt,Zt,Kt,Qt,tr,or],ar=sr.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),lr=sr.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,function(e){if(Array.isArray(e))return xt(e)}(r=t.noPrefill)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return xt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xt(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),e;var r}),[]),ur={};if(h){Ft=document.createElement("p");var cr=window.getComputedStyle(document.documentElement,"");for(var fr in cr)isNaN(fr)||(ur[cr[fr]]=cr[fr]);lr.forEach((function(e){return delete ur[e]}))}function dr(e,t){if(void 0===t&&(t={}),!Ft)return e;if(null!=ur[e])return ur[e];"transition"!==e&&"transform"!==e||(t[e]=e in Ft.style);for(var r=0;r<ar.length&&(ur[e]=ar[r](e,Ft.style,t),!ur[e]);r++);try{Ft.style[e]=""}catch(e){return!1}return ur[e]}var pr,hr={},yr={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},gr=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function mr(e,t,r){return"var"===t?"var":"all"===t?"all":"all"===r?", all":(t?dr(t):", "+dr(r))||t||r}function vr(e,t){var r=t;if(!pr||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=hr[n])return hr[n];try{pr.style[e]=r}catch(e){return hr[n]=!1,!1}if(yr[e])r=r.replace(gr,mr);else if(""===pr.style[e]&&("-ms-flex"===(r=Tt+r)&&(pr.style[e]="-ms-flexbox"),pr.style[e]=r,""===pr.style[e]))return hr[n]=!1,!1;return pr.style[e]="",hr[n]=r,hr[n]}h&&(pr=document.createElement("p"));var br=function(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var i=!1,o=dr(r);o&&o!==r&&(i=!0);var s=!1,a=vr(o,O(n));a&&a!==n&&(s=!0),(i||s)&&(i&&delete t[r],t[o||r]=a||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===jt?e:"@"+Tt+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return vr(t,O(e))||e}}},wr=function(e){return void 0===e&&(e={}),{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=R(e,{},r);return n[Le]=t,n},onProcessStyle:function(e,t){if(_e in t||Le in t)return e;var r={};for(var n in e){var i=e[n];"function"==typeof i&&(delete e[n],r[n]=i)}return t[_e]=r,e},onUpdate:function(e,t,r,n){var i=t,o=i[Le];o&&(i.style=o(e)||{});var s=i[_e];if(s)for(var a in s)i.prop(a,s[a](e),n)}},(r=e.observable,{onCreateRule:function(e,t,n){if(!$e(t))return null;var i=t,o=R(e,{},n);return i.subscribe((function(e){for(var t in e)o.prop(t,e[t],r)})),o},onProcessRule:function(e){if(!e||"style"===e.type){var t=e,n=t.style,i=function(e){var i=n[e];if(!$e(i))return"continue";delete n[e],i.subscribe({next:function(n){t.prop(e,n,r)}})};for(var o in n)i(o)}}}),{onProcessRule:ze},{onCreateRule:function(e,t,r){if(!e)return null;if(e===De)return new Fe(e,t,r);if("@"===e[0]&&"@global "===e.substr(0,8))return new We(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,i=n?n[De]:null;if(i){for(var o in i)t.addRule(o,i[o],s({},r,{selector:qe(o,e.selector)}));delete n[De]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var i in n)if("@"===i[0]&&i.substr(0,7)===De){var o=qe(i.substr(7),e.selector);t.addRule(o,n[i],s({},r,{selector:o})),delete n[i]}}(e,t))}},Xe(),Ke(),et(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=st(e[t]);return e}return st(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=ot(t);return t===n?e:(r.prop(n,e),null)}},pt(e.defaultUnit),{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var r=0;r<e.length;r++)e[r]=wt(e[r],t);return e}return wt(e,t)}},br(),(t=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n={},i=Object.keys(e).sort(t),o=0;o<i.length;o++)n[i[o]]=e[i[o]];return n}})]};var t,r},xr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kr=(function(e){var t={}}((function(e){return xr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ee(wr())),Sr=function(e){void 0===e&&(e=kr);var t,r=new Map,n=0,i=function(){return(!t||t.rules.index.length>1e4)&&(t=e.createStyleSheet().attach()),t};function o(){var e=arguments,t=JSON.stringify(e),o=r.get(t);if(o)return o.className;var s=[];for(var a in e){var l=e[a];if(Array.isArray(l))for(var u=0;u<l.length;u++)s.push(l[u]);else s.push(l)}for(var c={},f=[],d=0;d<s.length;d++){var p=s[d];if(p){var h=p;if("string"==typeof p){var y=r.get(p);y&&(y.labels.length&&f.push.apply(f,y.labels),h=y.style)}h.label&&-1===f.indexOf(h.label)&&f.push(h.label),Object.assign(c,h)}}delete c.label;var g=(0===f.length?"css":f.join("-"))+"-"+n++;i().addRule(g,c);var m=i().classes[g],v={style:c,labels:f,className:m};return r.set(t,v),r.set(m,v),m}return o.getSheet=i,o}(),Rr=Sr,Pr=Number.MIN_SAFE_INTEGER||-1e9,Or=(0,e.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!h}),Cr=new Map,Ar=function(e,t){var r=e.managers;if(r)return r[t]||(r[t]=new je),r[t];var n=Cr.get(t);return n||(n=new je,Cr.set(t,n)),n},Er=function(e){var t=e.sheet,r=e.context,n=e.index,i=e.theme;t&&(Ar(r,n).manage(i),r.registry&&r.registry.add(t))},jr=Ee(wr()),Tr=new WeakMap,Mr=function(e){return Tr.get(e)},Ir=function(e){if(!e.context.disableStylesGeneration){var t=Ar(e.context,e.index),r=t.get(e.theme);if(r)return r;var n=e.context.jss||jr,i=function(e){var t=e.styles;return"function"!=typeof t?t:t(e.theme)}(e),o=Me(i),a=n.createStyleSheet(i,function(e,t){var r;e.context.id&&null!=e.context.id.minify&&(r=e.context.id.minify);var n=e.context.classNamePrefix||"";e.name&&!r&&(n+=e.name.replace(/\s/g,"-")+"-");var i="";return e.name&&(i=e.name+", "),i+="function"==typeof e.styles?"Themed":"Unthemed",s({},e.sheetOptions,{index:e.index,meta:i,classNamePrefix:n,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}(e,null!==o));return function(e,t){Tr.set(e,t)}(a,{dynamicStyles:o,styles:i}),t.add(e.theme,a),a}},_r=function(e,t){var r=Mr(e);if(r){var n={};for(var i in r.dynamicStyles)for(var o=e.rules.index.length,s=e.addRule(i,r.dynamicStyles[i]),a=o;a<e.rules.index.length;a++){var l=e.rules.index[a];e.updateOne(l,t),n[s===l?i:l.key]=l}return n}};function Lr(r){return r?e.useEffect:t().useInsertionEffect||e.useLayoutEffect}var Vr={};Symbol("react-jss-styled"),function(e){void 0===e&&(e=Rr)}();const $r=function(t,r){void 0===r&&(r={});var n=r,i=n.index,o=void 0===i?Pr++:i,s=n.theming,l=n.name,u=a(n,["index","theming","name"]),c=s&&s.context||d,f={};return function(r){var n=(0,e.useRef)(!0),i=(0,e.useContext)(Or),s=function(r){return"function"==typeof t&&(r||(0,e.useContext)(c))||Vr}(r&&r.theme),a=(0,e.useMemo)((function(){var e=Ir({context:i,styles:t,name:l,theme:s,index:o,sheetOptions:u});return e&&i.isSSR&&Er({index:o,context:i,sheet:e,theme:s}),[e,e?_r(e,r):null]}),[i,s]),d=a[0],p=a[1];Lr(i.isSSR)((function(){d&&p&&!n.current&&function(e,t,r){for(var n in r)t.updateOne(r[n],e)}(r,d,p)}),[r]),Lr(i.isSSR)((function(){return d&&Er({index:o,context:i,sheet:d,theme:s}),function(){d&&(function(e){e.sheet&&Ar(e.context,e.index).unmanage(e.theme)}({index:o,context:i,sheet:d,theme:s}),p&&function(e,t){for(var r in t)e.deleteRule(t[r])}(d,p))}}),[d]);var h=(0,e.useMemo)((function(){return d&&p?function(e,t){if(!t)return e.classes;var r=Mr(e);if(!r)return e.classes;var n={};for(var i in r.styles)n[i]=e.classes[i],i in t&&(n[i]+=" "+e.classes[t[i].key]);return n}(d,p):f}),[d,p]);return(0,e.useDebugValue)(h),(0,e.useDebugValue)(s===Vr?"No theme":s),(0,e.useEffect)((function(){n.current=!1})),h}}({component:{}});var Nr=r(322);const zr=()=>{},Dr=zr(),Fr=Object,Wr=e=>e===Dr,Ur=e=>"function"==typeof e,qr=(e,t)=>({...e,...t}),Hr=new WeakMap;let Gr=0;const Br=e=>{const t=typeof e,r=e&&e.constructor,n=r==Date;let i,o;if(Fr(e)!==e||n||r==RegExp)i=n?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(i=Hr.get(e),i)return i;if(i=++Gr+"~",Hr.set(e,i),r==Array){for(i="@",o=0;o<e.length;o++)i+=Br(e[o])+",";Hr.set(e,i)}if(r==Fr){i="#";const t=Fr.keys(e).sort();for(;!Wr(o=t.pop());)Wr(e[o])||(i+=o+":"+Br(e[o])+",");Hr.set(e,i)}}return i},Xr=new WeakMap,Jr={},Yr={},Zr="undefined",Kr=typeof window!=Zr,Qr=typeof document!=Zr,en=(e,t)=>{const r=Xr.get(e);return[()=>!Wr(t)&&e.get(t)||Jr,n=>{if(!Wr(t)){const i=e.get(t);t in Yr||(Yr[t]=i),r[5](t,qr(i,n),i||Jr)}},r[6],()=>!Wr(t)&&t in Yr?Yr[t]:!Wr(t)&&e.get(t)||Jr]};let tn=!0;const[rn,nn]=Kr&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[zr,zr],on={isOnline:()=>tn,isVisible:()=>{const e=Qr&&document.visibilityState;return Wr(e)||"hidden"!==e}},sn={initFocus:e=>(Qr&&document.addEventListener("visibilitychange",e),rn("focus",e),()=>{Qr&&document.removeEventListener("visibilitychange",e),nn("focus",e)}),initReconnect:e=>{const t=()=>{tn=!0,e()},r=()=>{tn=!1};return rn("online",t),rn("offline",r),()=>{nn("online",t),nn("offline",r)}}},an=!e.useId,ln=!Kr||"Deno"in window,un=ln?e.useEffect:e.useLayoutEffect,cn="undefined"!=typeof navigator&&navigator.connection,fn=!ln&&cn&&(["slow-2g","2g"].includes(cn.effectiveType)||cn.saveData),dn=e=>{if(Ur(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Br(e):"",t]};let pn=0;const hn=()=>++pn;async function yn(...e){const[t,r,n,i]=e,o=qr({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{});let s=o.populateCache;const a=o.rollbackOnError;let l=o.optimisticData;const u=o.throwOnError;if(Ur(r)){const e=r,n=[],i=t.keys();for(const r of i)!/^\$(inf|sub)\$/.test(r)&&e(t.get(r)._k)&&n.push(r);return Promise.all(n.map(c))}return c(r);async function c(r){const[i]=dn(r);if(!i)return;const[c,f]=en(t,i),[d,p,h,y]=Xr.get(t),g=()=>{const e=d[i];return(Ur(o.revalidate)?o.revalidate(c().data,r):!1!==o.revalidate)&&(delete h[i],delete y[i],e&&e[0])?e[0](2).then((()=>c().data)):c().data};if(e.length<3)return g();let m,v=n;const b=hn();p[i]=[b,0];const w=!Wr(l),x=c(),k=x.data,S=x._c,R=Wr(S)?k:S;if(w&&(l=Ur(l)?l(R,k):l,f({data:l,_c:R})),Ur(v))try{v=v(R)}catch(e){m=e}if(v&&Ur(v.then)){if(v=await v.catch((e=>{m=e})),b!==p[i][0]){if(m)throw m;return v}m&&w&&(e=>"function"==typeof a?a(e):!1!==a)(m)&&(s=!0,f({data:R,_c:Dr}))}if(s&&!m)if(Ur(s)){const e=s(v,R);f({data:e,error:Dr,_c:Dr})}else f({data:v,error:Dr,_c:Dr});if(p[i][1]=hn(),Promise.resolve(g()).then((()=>{f({_c:Dr})})),!m)return v;if(u)throw m}}const gn=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},mn=(e,t)=>{if(!Xr.has(e)){const r=qr(sn,t),n={},i=yn.bind(Dr,e);let o=zr;const s={},a=(e,t)=>{const r=s[e]||[];return s[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},l=(t,r,n)=>{e.set(t,r);const i=s[t];if(i)for(const e of i)e(r,n)},u=()=>{if(!Xr.has(e)&&(Xr.set(e,[n,{},{},{},i,l,a]),!ln)){const t=r.initFocus(setTimeout.bind(Dr,gn.bind(Dr,n,0))),i=r.initReconnect(setTimeout.bind(Dr,gn.bind(Dr,n,1)));o=()=>{t&&t(),i&&i(),Xr.delete(e)}}};return u(),[e,i,u,o]}return[e,Xr.get(e)[4]]},[vn,bn]=mn(new Map),wn=qr({onLoadingSlow:zr,onSuccess:zr,onError:zr,onErrorRetry:(e,__,t,r,n)=>{const i=t.errorRetryCount,o=n.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*t.errorRetryInterval;!Wr(i)&&o>i||setTimeout(r,s,n)},onDiscarded:zr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:fn?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:fn?5e3:3e3,compare:(e,t)=>Br(e)==Br(t),isPaused:()=>!1,cache:vn,mutate:bn,fallback:{}},on),xn=(e,t)=>{const r=qr(e,t);if(t){const{use:n,fallback:i}=e,{use:o,fallback:s}=t;n&&o&&(r.use=n.concat(o)),i&&s&&(r.fallback=qr(i,s))}return r},kn=(0,e.createContext)({}),Sn=Kr&&window.__SWR_DEVTOOLS_USE__,Rn=Sn?window.__SWR_DEVTOOLS_USE__:[],Pn=Rn.concat((e=>(t,r,n)=>{const i=r&&((...e)=>{const[n]=dn(t),[,,,i]=Xr.get(vn);if(n.startsWith("$inf$"))return r(...e);const o=i[n];return Wr(o)?r(...e):(delete i[n],o)});return e(t,i,n)}));Sn&&(window.__SWR_DEVTOOLS_REACT__=e);const On=e.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),Cn={dedupe:!0},An=(Fr.defineProperty((t=>{const{value:r}=t,n=(0,e.useContext)(kn),i=Ur(r),o=(0,e.useMemo)((()=>i?r(n):r),[i,n,r]),s=(0,e.useMemo)((()=>i?o:xn(n,o)),[i,n,o]),a=o&&o.provider,l=(0,e.useRef)(Dr);a&&!l.current&&(l.current=mn(a(s.cache||vn),o));const u=l.current;return u&&(s.cache=u[0],s.mutate=u[1]),un((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),(0,e.createElement)(kn.Provider,qr(t,{value:s}))}),"defaultValue",{value:wn}),En=(t,r,n)=>{const{cache:i,compare:o,suspense:s,fallbackData:a,revalidateOnMount:l,revalidateIfStale:u,refreshInterval:c,refreshWhenHidden:f,refreshWhenOffline:d,keepPreviousData:p}=n,[h,y,g,m]=Xr.get(i),[v,b]=dn(t),w=(0,e.useRef)(!1),x=(0,e.useRef)(!1),k=(0,e.useRef)(v),S=(0,e.useRef)(r),R=(0,e.useRef)(n),P=()=>R.current,O=()=>P().isVisible()&&P().isOnline(),[C,A,E,j]=en(i,v),T=(0,e.useRef)({}).current,M=Wr(a)?n.fallback[v]:a,I=(e,t)=>{for(const r in T){const n=r;if("data"===n){if(!o(e[n],t[n])){if(!Wr(e[n]))return!1;if(!o(W,t[n]))return!1}}else if(t[n]!==e[n])return!1}return!0},_=(0,e.useMemo)((()=>{const e=!!v&&!!r&&(Wr(l)?!P().isPaused()&&!s&&(!!Wr(u)||u):l),t=t=>{const r=qr(t);return delete r._k,e?{isValidating:!0,isLoading:!0,...r}:r},n=C(),i=j(),o=t(n),a=n===i?o:t(i);let c=o;return[()=>{const e=t(C());return I(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>a]}),[i,v]),L=(0,Nr.useSyncExternalStore)((0,e.useCallback)((e=>E(v,((t,r)=>{I(r,t)||e()}))),[i,v]),_[0],_[1]),V=!w.current,$=h[v]&&h[v].length>0,N=L.data,z=Wr(N)?M:N,D=L.error,F=(0,e.useRef)(z),W=p?Wr(N)?F.current:N:z,U=!($&&!Wr(D))&&(V&&!Wr(l)?l:!P().isPaused()&&(s?!Wr(z)&&u:Wr(z)||u)),q=!!(v&&r&&V&&U),H=Wr(L.isValidating)?q:L.isValidating,G=Wr(L.isLoading)?q:L.isLoading,B=(0,e.useCallback)((async e=>{const t=S.current;if(!v||!t||x.current||P().isPaused())return!1;let r,i,s=!0;const a=e||{},l=!g[v]||!a.dedupe,u=()=>an?!x.current&&v===k.current&&w.current:v===k.current,c={isValidating:!1,isLoading:!1},f=()=>{A(c)},d=()=>{const e=g[v];e&&e[1]===i&&delete g[v]},p={isValidating:!0};Wr(C().data)&&(p.isLoading=!0);try{if(l&&(A(p),n.loadingTimeout&&Wr(C().data)&&setTimeout((()=>{s&&u()&&P().onLoadingSlow(v,n)}),n.loadingTimeout),g[v]=[t(b),hn()]),[r,i]=g[v],r=await r,l&&setTimeout(d,n.dedupingInterval),!g[v]||g[v][1]!==i)return l&&u()&&P().onDiscarded(v),!1;c.error=Dr;const e=y[v];if(!Wr(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return f(),l&&u()&&P().onDiscarded(v),!1;const a=C().data;c.data=o(a,r)?a:r,l&&u()&&P().onSuccess(r,v,n)}catch(e){d();const t=P(),{shouldRetryOnError:r}=t;t.isPaused()||(c.error=e,l&&u()&&(t.onError(e,v,t),(!0===r||Ur(r)&&r(e))&&(P().revalidateOnFocus&&P().revalidateOnReconnect&&!O()||t.onErrorRetry(e,v,t,(e=>{const t=h[v];t&&t[0]&&t[0](3,e)}),{retryCount:(a.retryCount||0)+1,dedupe:!0}))))}return s=!1,f(),!0}),[v,i]),X=(0,e.useCallback)(((...e)=>yn(i,k.current,...e)),[]);if(un((()=>{S.current=r,R.current=n,Wr(N)||(F.current=N)})),un((()=>{if(!v)return;const e=B.bind(Dr,Cn);let t=0;const r=((e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}})(v,h,((r,n={})=>{if(0==r){const r=Date.now();P().revalidateOnFocus&&r>t&&O()&&(t=r+P().focusThrottleInterval,e())}else if(1==r)P().revalidateOnReconnect&&O()&&e();else{if(2==r)return B();if(3==r)return B(n)}}));return x.current=!1,k.current=v,w.current=!0,A({_k:b}),U&&(Wr(z)||ln?e():(n=e,Kr&&typeof window.requestAnimationFrame!=Zr?window.requestAnimationFrame(n):setTimeout(n,1))),()=>{x.current=!0,r()};var n}),[v]),un((()=>{let e;function t(){const t=Ur(c)?c(C().data):c;t&&-1!==e&&(e=setTimeout(r,t))}function r(){C().error||!f&&!P().isVisible()||!d&&!P().isOnline()?t():B(Cn).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[c,f,d,v]),(0,e.useDebugValue)(W),s&&Wr(z)&&v){if(!an&&ln)throw new Error("Fallback data is required when using suspense in SSR.");S.current=r,R.current=n,x.current=!1;const e=m[v];if(!Wr(e)){const t=X(e);On(t)}if(!Wr(D))throw D;{const e=B(Cn);Wr(W)||(e.status="fulfilled",e.value=!0),On(e)}}return{mutate:X,get data(){return T.data=!0,W},get error(){return T.error=!0,D},get isValidating(){return T.isValidating=!0,H},get isLoading(){return T.isLoading=!0,G}}},function(...t){const r=qr(wn,(0,e.useContext)(kn)),[n,i,o]=(e=>Ur(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(t),s=xn(r,o);let a=En;const{use:l}=s,u=(l||[]).concat(Pn);for(let e=u.length;e--;)a=u[e](a);return a(n,i||s.fetcher||null,s)});var En,jn=window.wp.apiFetch,Tn=r.n(jn);var Mn=()=>{const t=$r(),{value:r}=(()=>{const{data:e,mutate:t}=An(window.ClimbPress.RESTNamespace+"/grading-systems",(e=>Tn()({path:e})));return{value:null!=e?e:[],add:r=>{t([{id:r,name:r,grades:[]},...e])}}})(),n=r.map((e=>{let t=0;return e.grades.forEach((e=>{t=Math.max(t,e.difficulty)})),t})),i=Math.max(...n),o={};for(let e=0;e<i;e++)r.forEach((t=>{const r=t.grades.find((t=>t.difficulty==e));r&&(o[e]||(o[e]={}),o[e][t.id]=r.label)}));return(0,e.createElement)("div",{className:t.component},(0,e.createElement)("table",{className:"wp-list-table widefat fixed striped posts"},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(s="Range of values",null!==(a=window.ClimbPress.i18n[s])&&void 0!==a?a:`? ${s} ?`)),r.map((t=>(0,e.createElement)("th",{key:t.id},t.name))))),(0,e.createElement)("tbody",null,Object.keys(o).map((t=>{const n=o[t];return(0,e.createElement)("tr",{key:t},(0,e.createElement)("td",null,t),r.map((t=>{var r;return(0,e.createElement)("td",{key:t.id},null!==(r=n?.[t.id])&&void 0!==r?r:"")})))})))));var s,a};i()((()=>{(0,o.render)((0,e.createElement)(Mn,null),document.getElementById(window.ClimbPress.rootId))}))}()}();
  • climbpress/tags/0.6.2/dist/routes.asset.php

    r3024800 r3045938  
    1 <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-dom-ready', 'wp-element'), 'version' => 'bb17490b4d88065943a4');
     1<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-dom-ready', 'wp-element'), 'version' => '611d32c7b94aac3fc7d4');
  • climbpress/tags/0.6.2/dist/routes.js

    r3024800 r3045938  
    1 !function(){var e={376:function(e){"use strict";var t={single_source_shortest_paths:function(e,n,r){var o={},i={};i[n]=0;var s,a,l,u,c,d,f,h=t.PriorityQueue.make();for(h.push(n,0);!h.empty();)for(l in a=(s=h.pop()).value,u=s.cost,c=e[a]||{})c.hasOwnProperty(l)&&(d=u+c[l],f=i[l],(void 0===i[l]||f>d)&&(i[l]=d,h.push(l,d),o[l]=a));if(void 0!==r&&void 0===i[r]){var p=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(p)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var o=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,o={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=e.sorter||r.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},654:function(e){"use strict";e.exports=function(e){for(var t=[],n=e.length,r=0;r<n;r++){var o=e.charCodeAt(r);if(o>=55296&&o<=56319&&n>r+1){var i=e.charCodeAt(r+1);i>=56320&&i<=57343&&(o=1024*(o-55296)+i-56320+65536,r+=1)}o<128?t.push(o):o<2048?(t.push(o>>6|192),t.push(63&o|128)):o<55296||o>=57344&&o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(63&o|128)):o>=65536&&o<=1114111?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(63&o|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},535:function(e,t,n){"use strict";var r=n(237),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var s=c(n);d&&(s=s.concat(d(n)));for(var a=l(t),m=l(n),g=0;g<s.length;++g){var y=s[g];if(!(i[y]||r&&r[y]||m&&m[y]||a&&a[y])){var v=f(n,y);try{u(t,y,v)}catch(e){}}}}return t}},119:function(e,t,n){const r=n(363),o=n(638),i=n(141),s=n(857);function a(e,t,n,i,s){const a=[].slice.call(arguments,1),l=a.length,u="function"==typeof a[l-1];if(!u&&!r())throw new Error("Callback required as last argument");if(!u){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=t,t=i=void 0):2!==l||t.getContext||(i=n,n=t,t=void 0),new Promise((function(r,s){try{const s=o.create(n,i);r(e(s,t,i))}catch(e){s(e)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(s=n,n=t,t=i=void 0):3===l&&(t.getContext&&void 0===s?(s=i,i=void 0):(s=i,i=n,n=t,t=void 0));try{const r=o.create(n,i);s(null,e(r,t,i))}catch(e){s(e)}}t.create=o.create,t.toCanvas=a.bind(null,i.render),t.toDataURL=a.bind(null,i.renderToDataURL),t.toString=a.bind(null,(function(e,t,n){return s.render(e,n)}))},363:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},539:function(e,t,n){const r=n(137).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=r(e),o=145===n?26:2*Math.ceil((n-13)/(2*t-2)),i=[n-7];for(let e=1;e<t-1;e++)i[e]=i[e-1]-o;return i.push(6),i.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),o=r.length;for(let e=0;e<o;e++)for(let t=0;t<o;t++)0===e&&0===t||0===e&&t===o-1||e===o-1&&0===t||n.push([r[e],r[t]]);return n}},215:function(e,t,n){const r=n(965),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(e){this.mode=r.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*o.indexOf(this.data[t]);n+=o.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=i},520:function(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},844:function(e){function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){const o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},145:function(e,t,n){const r=n(654),o=n(965);function i(e){this.mode=o.BYTE,"string"==typeof e&&(e=r(e)),this.data=new Uint8Array(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=i},944:function(e,t,n){const r=n(873),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}}},873:function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},577:function(e,t,n){const r=n(137).getSymbolSize;t.getPositions=function(e){const t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},853:function(e,t,n){const r=n(137),o=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let i=n<<10;for(;r.getBCHDigit(i)-o>=0;)i^=1335<<r.getBCHDigit(i)-o;return 21522^(n<<10|i)}},670:function(e,t){const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285);for(let e=255;e<512;e++)n[e]=n[e-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},515:function(e,t,n){const r=n(965),o=n(137);function i(e){this.mode=r.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=o.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=i},662:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function n(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let n=0,r=0,o=0,i=null,s=null;for(let a=0;a<t;a++){r=o=0,i=s=null;for(let l=0;l<t;l++){let t=e.get(a,l);t===i?r++:(r>=5&&(n+=r-5+3),i=t,r=1),t=e.get(l,a),t===s?o++:(o>=5&&(n+=o-5+3),s=t,o=1)}r>=5&&(n+=r-5+3),o>=5&&(n+=o-5+3)}return n},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let r=0;r<t-1;r++)for(let o=0;o<t-1;o++){const t=e.get(r,o)+e.get(r,o+1)+e.get(r+1,o)+e.get(r+1,o+1);4!==t&&0!==t||n++}return 3*n},t.getPenaltyN3=function(e){const t=e.size;let n=0,r=0,o=0;for(let i=0;i<t;i++){r=o=0;for(let s=0;s<t;s++)r=r<<1&2047|e.get(i,s),s>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(s,i),s>=10&&(1488===o||93===o)&&n++}return 40*n},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return 10*Math.abs(Math.ceil(100*t/n/5)-10)},t.applyMask=function(e,t){const r=t.size;for(let o=0;o<r;o++)for(let i=0;i<r;i++)t.isReserved(i,o)||t.xor(i,o,n(e,i,o))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let o=0,i=1/0;for(let s=0;s<r;s++){n(s),t.applyMask(s,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(s,e),r<i&&(i=r,o=s)}return o}},965:function(e,t,n){const r=n(499),o=n(795);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},958:function(e,t,n){const r=n(965);function o(e){this.mode=r.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const o=this.data.length-t;o>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*o+1))},e.exports=o},94:function(e,t,n){const r=n(670);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let o=0;o<e.length;o++)for(let i=0;i<t.length;i++)n[o+i]^=r.mul(e[o],t[i]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let o=0;o<t.length;o++)n[o]^=r.mul(t[o],e);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let o=0;o<e;o++)n=t.mul(n,new Uint8Array([1,r.exp(o)]));return n}},638:function(e,t,n){const r=n(137),o=n(873),i=n(520),s=n(844),a=n(539),l=n(577),u=n(662),c=n(944),d=n(460),f=n(941),h=n(853),p=n(965),m=n(660);function g(e,t,n){const r=e.size,o=h.getEncodedBits(t,n);let i,s;for(i=0;i<15;i++)s=1==(o>>i&1),i<6?e.set(i,8,s,!0):i<8?e.set(i+1,8,s,!0):e.set(r-15+i,8,s,!0),i<8?e.set(8,r-i-1,s,!0):i<9?e.set(8,15-i-1+1,s,!0):e.set(8,15-i-1,s,!0);e.set(r-8,8,1,!0)}function y(e,t,n,o){let h;if(Array.isArray(e))h=m.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let r=t;if(!r){const t=m.rawSplit(e);r=f.getBestVersionForData(t,n)}h=m.fromString(e,r||40)}}const y=f.getBestVersionForData(h,n);if(!y)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<y)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+y+".\n")}else t=y;const v=function(e,t,n){const o=new i;n.forEach((function(t){o.put(t.mode.bit,4),o.put(t.getLength(),p.getCharCountIndicator(t.mode,e)),t.write(o)}));const s=8*(r.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,t));for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);const a=(s-o.getLengthInBits())/8;for(let e=0;e<a;e++)o.put(e%2?17:236,8);return function(e,t,n){const o=r.getSymbolTotalCodewords(t),i=o-c.getTotalCodewordsCount(t,n),s=c.getBlocksCount(t,n),a=s-o%s,l=Math.floor(o/s),u=Math.floor(i/s),f=u+1,h=l-u,p=new d(h);let m=0;const g=new Array(s),y=new Array(s);let v=0;const b=new Uint8Array(e.buffer);for(let e=0;e<s;e++){const t=e<a?u:f;g[e]=b.slice(m,m+t),y[e]=p.encode(g[e]),m+=t,v=Math.max(v,t)}const w=new Uint8Array(o);let x,k,E=0;for(x=0;x<v;x++)for(k=0;k<s;k++)x<g[k].length&&(w[E++]=g[k][x]);for(x=0;x<h;x++)for(k=0;k<s;k++)w[E++]=y[k][x];return w}(o,e,t)}(t,n,h),b=r.getSymbolSize(t),w=new s(b);return function(e,t){const n=e.size,r=l.getPositions(t);for(let t=0;t<r.length;t++){const o=r[t][0],i=r[t][1];for(let t=-1;t<=7;t++)if(!(o+t<=-1||n<=o+t))for(let r=-1;r<=7;r++)i+r<=-1||n<=i+r||(t>=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(o+t,i+r,!0,!0):e.set(o+t,i+r,!1,!0))}}(w,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(w),function(e,t){const n=a.getPositions(t);for(let t=0;t<n.length;t++){const r=n[t][0],o=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)-2===t||2===t||-2===n||2===n||0===t&&0===n?e.set(r+t,o+n,!0,!0):e.set(r+t,o+n,!1,!0)}}(w,t),g(w,n,0),t>=7&&function(e,t){const n=e.size,r=f.getEncodedBits(t);let o,i,s;for(let t=0;t<18;t++)o=Math.floor(t/3),i=t%3+n-8-3,s=1==(r>>t&1),e.set(o,i,s,!0),e.set(i,o,s,!0)}(w,t),function(e,t){const n=e.size;let r=-1,o=n-1,i=7,s=0;for(let a=n-1;a>0;a-=2)for(6===a&&a--;;){for(let n=0;n<2;n++)if(!e.isReserved(o,a-n)){let r=!1;s<t.length&&(r=1==(t[s]>>>i&1)),e.set(o,a-n,r),i--,-1===i&&(s++,i=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}(w,v),isNaN(o)&&(o=u.getBestMask(w,g.bind(null,w,n))),u.applyMask(o,w),g(w,n,o),{modules:w,version:t,errorCorrectionLevel:n,maskPattern:o,segments:h}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");let n,i,s=o.M;return void 0!==t&&(s=o.from(t.errorCorrectionLevel,o.M),n=f.from(t.version),i=u.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),y(e,n,s,i)}},460:function(e,t,n){const r=n(94);function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),o=this.degree-n.length;if(o>0){const e=new Uint8Array(this.degree);return e.set(n,o),e}return n},e.exports=o},795:function(e,t){const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const i=new RegExp("^"+r+"$"),s=new RegExp("^"+n+"$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return s.test(e)},t.testAlphanumeric=function(e){return a.test(e)}},660:function(e,t,n){const r=n(965),o=n(958),i=n(215),s=n(145),a=n(515),l=n(795),u=n(137),c=n(376);function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,n){const r=[];let o;for(;null!==(o=e.exec(n));)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function h(e){const t=f(l.NUMERIC,r.NUMERIC,e),n=f(l.ALPHANUMERIC,r.ALPHANUMERIC,e);let o,i;return u.isKanjiModeEnabled()?(o=f(l.BYTE,r.BYTE,e),i=f(l.KANJI,r.KANJI,e)):(o=f(l.BYTE_KANJI,r.BYTE,e),i=[]),t.concat(n,o,i).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function p(e,t){switch(t){case r.NUMERIC:return o.getBitsLength(e);case r.ALPHANUMERIC:return i.getBitsLength(e);case r.KANJI:return a.getBitsLength(e);case r.BYTE:return s.getBitsLength(e)}}function m(e,t){let n;const l=r.getBestModeForData(e);if(n=r.from(t,l),n!==r.BYTE&&n.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(l));switch(n!==r.KANJI||u.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new o(e);case r.ALPHANUMERIC:return new i(e);case r.KANJI:return new a(e);case r.BYTE:return new s(e)}}t.fromArray=function(e){return e.reduce((function(e,t){return"string"==typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e}),[])},t.fromString=function(e,n){const o=function(e){const t=[];for(let n=0;n<e.length;n++){const o=e[n];switch(o.mode){case r.NUMERIC:t.push([o,{data:o.data,mode:r.ALPHANUMERIC,length:o.length},{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.ALPHANUMERIC:t.push([o,{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.KANJI:t.push([o,{data:o.data,mode:r.BYTE,length:d(o.data)}]);break;case r.BYTE:t.push([{data:o.data,mode:r.BYTE,length:d(o.data)}])}}return t}(h(e,u.isKanjiModeEnabled())),i=function(e,t){const n={},o={start:{}};let i=["start"];for(let s=0;s<e.length;s++){const a=e[s],l=[];for(let e=0;e<a.length;e++){const u=a[e],c=""+s+e;l.push(c),n[c]={node:u,lastCount:0},o[c]={};for(let e=0;e<i.length;e++){const s=i[e];n[s]&&n[s].node.mode===u.mode?(o[s][c]=p(n[s].lastCount+u.length,u.mode)-p(n[s].lastCount,u.mode),n[s].lastCount+=u.length):(n[s]&&(n[s].lastCount=u.length),o[s][c]=p(u.length,u.mode)+4+r.getCharCountIndicator(u.mode,t))}}i=l}for(let e=0;e<i.length;e++)o[i[e]].end=0;return{map:o,table:n}}(o,n),s=c.find_path(i.map,"start","end"),a=[];for(let e=1;e<s.length-1;e++)a.push(i.table[s[e]].node);return t.fromArray(a.reduce((function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[]))},t.rawSplit=function(e){return t.fromArray(h(e,u.isKanjiModeEnabled()))}},137:function(e,t){let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},499:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},941:function(e,t,n){const r=n(137),o=n(944),i=n(873),s=n(965),a=n(499),l=r.getBCHDigit(7973);function u(e,t){return s.getCharCountIndicator(e,t)+4}function c(e,t){let n=0;return e.forEach((function(e){const r=u(e.mode,t);n+=r+e.getBitsLength()})),n}t.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!a.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=s.BYTE);const i=8*(r.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t));if(n===s.MIXED)return i;const l=i-u(n,e);switch(n){case s.NUMERIC:return Math.floor(l/10*3);case s.ALPHANUMERIC:return Math.floor(l/11*2);case s.KANJI:return Math.floor(l/13);case s.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let r;const o=i.from(n,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(c(e,r)<=t.getCapacity(r,n,s.MIXED))return r}(e,o);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(r.mode,r.getLength(),o)},t.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<<r.getBCHDigit(t)-l;return e<<12|t}},141:function(e,t,n){const r=n(369);t.render=function(e,t,n){let o=n,i=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=r.getOptions(o);const s=r.getImageWidth(e.modules.size,o),a=i.getContext("2d"),l=a.createImageData(s,s);return r.qrToImageData(l.data,e,o),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(a,i,s),a.putImageData(l,0,0),i},t.renderToDataURL=function(e,n,r){let o=r;void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={});const i=t.render(e,n,o),s=o.type||"image/png",a=o.rendererOpts||{};return i.toDataURL(s,a.quality)}},857:function(e,t,n){const r=n(369);function o(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function i(e,t,n){let r=e+t;return void 0!==n&&(r+=" "+n),r}t.render=function(e,t,n){const s=r.getOptions(t),a=e.modules.size,l=e.modules.data,u=a+2*s.margin,c=s.color.light.a?"<path "+o(s.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",d="<path "+o(s.color.dark,"stroke")+' d="'+function(e,t,n){let r="",o=0,s=!1,a=0;for(let l=0;l<e.length;l++){const u=Math.floor(l%t),c=Math.floor(l/t);u||s||(s=!0),e[l]?(a++,l>0&&u>0&&e[l-1]||(r+=s?i("M",u+n,.5+c+n):i("m",o,0),o=0,s=!1),u+1<t&&e[l+1]||(r+=i("h",a),a=0)):o++}return r}(l,a,s.margin)+'"/>',f='viewBox="0 0 '+u+" "+u+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+f+' shape-rendering="crispEdges">'+c+d+"</svg>\n";return"function"==typeof n&&n(null,h),h}},369:function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:r,scale:r?4:o,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const o=n.modules.size,i=n.modules.data,s=t.getScale(o,r),a=Math.floor((o+2*r.margin)*s),l=r.margin*s,u=[r.color.light,r.color.dark];for(let t=0;t<a;t++)for(let n=0;n<a;n++){let c=4*(t*a+n),d=r.color.light;t>=l&&n>=l&&t<a-l&&n<a-l&&(d=u[i[Math.floor((t-l)/s)*o+Math.floor((n-l)/s)]?1:0]),e[c++]=d.r,e[c++]=d.g,e[c++]=d.b,e[c]=d.a}}},684:function(e,t){},198:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case a:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function k(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return k(e)||x(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},237:function(e,t,n){"use strict";e.exports=n(198)},603:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),e=n.hmd(e);var r=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e)},415:function(e,t,n){"use strict";var r=n(196),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return a((function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,n,t]),s((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},322:function(e,t,n){"use strict";e.exports=n(415)},196:function(e){"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=n(196),t=n.n(e),r=window.wp.domReady,o=n.n(r),i=window.wp.element;const s=e=>{var t;return null!==(t=window.ClimbPress.i18n[e])&&void 0!==t?t:`? ${e} ?`},a=()=>window.ClimbPress.RESTNamespace,l=()=>window.ClimbPress.gradingSystems,u=e=>{var t;return null!==(t=l().find((t=>t.id==e)))&&void 0!==t?t:null};var c=window.wp.apiFetch,d=n.n(c),f=n(322);const h=()=>{},p=h(),m=Object,g=e=>e===p,y=e=>"function"==typeof e,v=(e,t)=>({...e,...t}),b=new WeakMap;let w=0;const x=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(m(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=b.get(e),o)return o;if(o=++w+"~",b.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=x(e[i])+",";b.set(e,o)}if(n==m){o="#";const t=m.keys(e).sort();for(;!g(i=t.pop());)g(e[i])||(o+=i+":"+x(e[i])+",");b.set(e,o)}}return o},k=new WeakMap,E={},S={},C="undefined",R=typeof window!=C,P=typeof document!=C,A=(e,t)=>{const n=k.get(e);return[()=>!g(t)&&e.get(t)||E,r=>{if(!g(t)){const o=e.get(t);t in S||(S[t]=o),n[5](t,v(o,r),o||E)}},n[6],()=>!g(t)&&t in S?S[t]:!g(t)&&e.get(t)||E]};let T=!0;const[M,I]=R&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[h,h],N={isOnline:()=>T,isVisible:()=>{const e=P&&document.visibilityState;return g(e)||"hidden"!==e}},O={initFocus:e=>(P&&document.addEventListener("visibilitychange",e),M("focus",e),()=>{P&&document.removeEventListener("visibilitychange",e),I("focus",e)}),initReconnect:e=>{const t=()=>{T=!0,e()},n=()=>{T=!1};return M("online",t),M("offline",n),()=>{I("online",t),I("offline",n)}}},L=!e.useId,B=!R||"Deno"in window,j=B?e.useEffect:e.useLayoutEffect,D="undefined"!=typeof navigator&&navigator.connection,z=!B&&D&&(["slow-2g","2g"].includes(D.effectiveType)||D.saveData),U=e=>{if(y(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?x(e):"",t]};let F=0;const _=()=>++F;async function V(...e){const[t,n,r,o]=e,i=v({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let s=i.populateCache;const a=i.rollbackOnError;let l=i.optimisticData;const u=!1!==i.revalidate,c=i.throwOnError;if(y(n)){const e=n,r=[],o=t.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(d))}return d(n);async function d(n){const[o]=U(n);if(!o)return;const[i,d]=A(t,o),[f,h,m,v]=k.get(t),b=()=>{const e=f[o];return u&&(delete m[o],delete v[o],e&&e[0])?e[0](2).then((()=>i().data)):i().data};if(e.length<3)return b();let w,x=r;const E=_();h[o]=[E,0];const S=!g(l),C=i(),R=C.data,P=C._c,T=g(P)?R:P;if(S&&(l=y(l)?l(T,R):l,d({data:l,_c:T})),y(x))try{x=x(T)}catch(e){w=e}if(x&&y(x.then)){if(x=await x.catch((e=>{w=e})),E!==h[o][0]){if(w)throw w;return x}w&&S&&(e=>"function"==typeof a?a(e):!1!==a)(w)&&(s=!0,d({data:T,_c:p}))}if(s&&!w)if(y(s)){const e=s(x,T);d({data:e,error:p,_c:p})}else d({data:x,error:p,_c:p});if(h[o][1]=_(),Promise.resolve(b()).then((()=>{d({_c:p})})),!w)return x;if(c)throw w}}const H=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},$=(e,t)=>{if(!k.has(e)){const n=v(O,t),r={},o=V.bind(p,e);let i=h;const s={},a=(e,t)=>{const n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,r)=>{e.set(t,n);const o=s[t];if(o)for(const e of o)e(n,r)},u=()=>{if(!k.has(e)&&(k.set(e,[r,{},{},{},o,l,a]),!B)){const t=n.initFocus(setTimeout.bind(p,H.bind(p,r,0))),o=n.initReconnect(setTimeout.bind(p,H.bind(p,r,1)));i=()=>{t&&t(),o&&o(),k.delete(e)}}};return u(),[e,o,u,i]}return[e,k.get(e)[4]]},[q,W]=$(new Map),J=v({onLoadingSlow:h,onSuccess:h,onError:h,onErrorRetry:(e,__,t,n,r)=>{const o=t.errorRetryCount,i=r.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*t.errorRetryInterval;!g(o)&&i>o||setTimeout(n,s,r)},onDiscarded:h,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:z?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:z?5e3:3e3,compare:(e,t)=>x(e)==x(t),isPaused:()=>!1,cache:q,mutate:W,fallback:{}},N),Y=(e,t)=>{const n=v(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:s}=t;r&&i&&(n.use=r.concat(i)),o&&s&&(n.fallback=v(o,s))}return n},Z=(0,e.createContext)({}),K=R&&window.__SWR_DEVTOOLS_USE__,G=K?window.__SWR_DEVTOOLS_USE__:[],Q=G.concat((e=>(t,n,r)=>{const o=n&&((...e)=>{const[r]=U(t),[,,,o]=k.get(q);if(r.startsWith("$inf$"))return n(...e);const i=o[r];return g(i)?n(...e):(delete o[r],i)});return e(t,o,r)}));K&&(window.__SWR_DEVTOOLS_REACT__=e);const X=e.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),ee={dedupe:!0},te=(m.defineProperty((t=>{const{value:n}=t,r=(0,e.useContext)(Z),o=y(n),i=(0,e.useMemo)((()=>o?n(r):n),[o,r,n]),s=(0,e.useMemo)((()=>o?i:Y(r,i)),[o,r,i]),a=i&&i.provider,l=(0,e.useRef)(p);a&&!l.current&&(l.current=$(a(s.cache||q),i));const u=l.current;return u&&(s.cache=u[0],s.mutate=u[1]),j((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),(0,e.createElement)(Z.Provider,v(t,{value:s}))}),"defaultValue",{value:J}),ne=(t,n,r)=>{const{cache:o,compare:i,suspense:s,fallbackData:a,revalidateOnMount:l,revalidateIfStale:u,refreshInterval:c,refreshWhenHidden:d,refreshWhenOffline:h,keepPreviousData:m}=r,[b,w,x,E]=k.get(o),[S,P]=U(t),T=(0,e.useRef)(!1),M=(0,e.useRef)(!1),I=(0,e.useRef)(S),N=(0,e.useRef)(n),O=(0,e.useRef)(r),D=()=>O.current,z=()=>D().isVisible()&&D().isOnline(),[F,H,$,q]=A(o,S),W=(0,e.useRef)({}).current,J=g(a)?r.fallback[S]:a,Y=(e,t)=>{for(const n in W){const r=n;if("data"===r){if(!i(e[r],t[r])){if(!g(e[r]))return!1;if(!i(ie,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},Z=(0,e.useMemo)((()=>{const e=!!S&&!!n&&(g(l)?!D().isPaused()&&!s&&(!!g(u)||u):l),t=t=>{const n=v(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=F(),o=q(),i=t(r),a=r===o?i:t(o);let c=i;return[()=>{const e=t(F());return Y(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>a]}),[o,S]),K=(0,f.useSyncExternalStore)((0,e.useCallback)((e=>$(S,((t,n)=>{Y(n,t)||e()}))),[o,S]),Z[0],Z[1]),G=!T.current,Q=b[S]&&b[S].length>0,te=K.data,ne=g(te)?J:te,re=K.error,oe=(0,e.useRef)(ne),ie=m?g(te)?oe.current:te:ne,se=!(Q&&!g(re))&&(G&&!g(l)?l:!D().isPaused()&&(s?!g(ne)&&u:g(ne)||u)),ae=!!(S&&n&&G&&se),le=g(K.isValidating)?ae:K.isValidating,ue=g(K.isLoading)?ae:K.isLoading,ce=(0,e.useCallback)((async e=>{const t=N.current;if(!S||!t||M.current||D().isPaused())return!1;let n,o,s=!0;const a=e||{},l=!x[S]||!a.dedupe,u=()=>L?!M.current&&S===I.current&&T.current:S===I.current,c={isValidating:!1,isLoading:!1},d=()=>{H(c)},f=()=>{const e=x[S];e&&e[1]===o&&delete x[S]},h={isValidating:!0};g(F().data)&&(h.isLoading=!0);try{if(l&&(H(h),r.loadingTimeout&&g(F().data)&&setTimeout((()=>{s&&u()&&D().onLoadingSlow(S,r)}),r.loadingTimeout),x[S]=[t(P),_()]),[n,o]=x[S],n=await n,l&&setTimeout(f,r.dedupingInterval),!x[S]||x[S][1]!==o)return l&&u()&&D().onDiscarded(S),!1;c.error=p;const e=w[S];if(!g(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return d(),l&&u()&&D().onDiscarded(S),!1;const a=F().data;c.data=i(a,n)?a:n,l&&u()&&D().onSuccess(n,S,r)}catch(e){f();const t=D(),{shouldRetryOnError:n}=t;t.isPaused()||(c.error=e,l&&u()&&(t.onError(e,S,t),(!0===n||y(n)&&n(e))&&z()&&t.onErrorRetry(e,S,t,(e=>{const t=b[S];t&&t[0]&&t[0](3,e)}),{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return s=!1,d(),!0}),[S,o]),de=(0,e.useCallback)(((...e)=>V(o,I.current,...e)),[]);if(j((()=>{N.current=n,O.current=r,g(te)||(oe.current=te)})),j((()=>{if(!S)return;const e=ce.bind(p,ee);let t=0;const n=((e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(S,b,((n,r={})=>{if(0==n){const n=Date.now();D().revalidateOnFocus&&n>t&&z()&&(t=n+D().focusThrottleInterval,e())}else if(1==n)D().revalidateOnReconnect&&z()&&e();else{if(2==n)return ce();if(3==n)return ce(r)}}));return M.current=!1,I.current=S,T.current=!0,H({_k:P}),se&&(g(ne)||B?e():(r=e,R&&typeof window.requestAnimationFrame!=C?window.requestAnimationFrame(r):setTimeout(r,1))),()=>{M.current=!0,n()};var r}),[S]),j((()=>{let e;function t(){const t=y(c)?c(F().data):c;t&&-1!==e&&(e=setTimeout(n,t))}function n(){F().error||!d&&!D().isVisible()||!h&&!D().isOnline()?t():ce(ee).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[c,d,h,S]),(0,e.useDebugValue)(ie),s&&g(ne)&&S){if(!L&&B)throw new Error("Fallback data is required when using suspense in SSR.");N.current=n,O.current=r,M.current=!1;const e=E[S];if(!g(e)){const t=de(e);X(t)}if(!g(re))throw re;{const e=ce(ee);g(ie)||(e.status="fulfilled",e.value=!0),X(e)}}return{mutate:de,get data(){return W.data=!0,ie},get error(){return W.error=!0,re},get isValidating(){return W.isValidating=!0,le},get isLoading(){return W.isLoading=!0,ue}}},function(...t){const n=v(J,(0,e.useContext)(Z)),[r,o,i]=(e=>y(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(t),s=Y(n,i);let a=ne;const{use:l}=s,u=(l||[]).concat(Q);for(let e=u.length;e--;)a=u[e](a);return a(r,o||s.fetcher||null,s)});var ne;function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},re.apply(this,arguments)}function oe(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n(535);function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(){return se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},se.apply(this,arguments)}function ae(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(684);var le,ue=(0,e.createContext)(),ce=(function(e){}(le=ue),function(e){}(le),function(e){var n=function(n){var r,o;function i(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return ie(ae(ae(r=n.call.apply(n,[this].concat(i))||this)),"cachedTheme",void 0),ie(ae(ae(r)),"lastOuterTheme",void 0),ie(ae(ae(r)),"lastTheme",void 0),ie(ae(ae(r)),"renderProvider",(function(n){var o=r.props.children;return t().createElement(e.Provider,{value:r.getTheme(n)},o)})),r}o=n,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var s=i.prototype;return s.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,"function"==typeof this.lastTheme){var t=this.props.theme;this.cachedTheme=t(e)}else{var n=this.props.theme;this.cachedTheme=e?se({},e,n):n}return this.cachedTheme},s.render=function(){return this.props.children?t().createElement(e.Consumer,null,this.renderProvider):null},i}(t().Component)}(le),"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),de="object"===("undefined"==typeof window?"undefined":ce(window))&&"object"===("undefined"==typeof document?"undefined":ce(document))&&9===document.nodeType;function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function he(e){var t=function(e,t){if("object"!==fe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==fe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===fe(t)?t:String(t)}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,he(r.key),r)}}function me(e,t,n){return t&&pe(e.prototype,t),n&&pe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ge(e,t){return ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ge(e,t)}function ye(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ge(e,t)}function ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var be={}.constructor;function we(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(we);if(e.constructor!==be)return e;var t={};for(var n in e)t[n]=we(e[n]);return t}function xe(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=we(t);return r.plugins.onCreateRule(e,o,n)||(e[0],null)}var ke=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Ee=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=ke(e[n]," ");else t=ke(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Se(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Ce(e,t){for(var n="",r=0;r<t;r++)n+="  ";return n+e}function Re(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,s=t.fallbacks;!1===n.format&&(i=-1/0);var a=Se(n),l=a.linebreak,u=a.space;if(e&&i++,s)if(Array.isArray(s))for(var c=0;c<s.length;c++){var d=s[c];for(var f in d){var h=d[f];null!=h&&(r&&(r+=l),r+=Ce(f+":"+u+Ee(h)+";",i))}}else for(var p in s){var m=s[p];null!=m&&(r&&(r+=l),r+=Ce(p+":"+u+Ee(m)+";",i))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=Ce(g+":"+u+Ee(y)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Ce(""+e+u+"{"+r,--i)+Ce("}",i)):r}var Pe=/([[\].#*$><+~=|^:(),"'`\s])/g,Ae="undefined"!=typeof CSS&&CSS.escape,Te=function(e){return Ae?Ae(e):e.replace(Pe,"\\$1")},Me=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,s=e in this.style;if(i&&!s&&!r)return this;var a=i&&s;if(a?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Ie=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,s=r.scoped,a=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==s&&(o.id=l(ve(ve(o)),a),o.selectorText="."+Te(o.id)),o}ye(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Ee(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?re({},e,{allowEmpty:!0}):e;return Re(this.selectorText,this.style,n)},me(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(Me),Ne={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Ie(e,t,n)}},Oe={indent:1,children:!0},Le=/@([\w-]+)/,Be=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Le);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new it(re({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Oe);var t=Se(e).linebreak;if(null==e.indent&&(e.indent=Oe.indent),null==e.children&&(e.children=Oe.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),je=/@container|@media|@supports\s+/,De={onCreateRule:function(e,t,n){return je.test(e)?new Be(e,t,n):null}},ze={indent:1,children:!0},Ue=/@keyframes\s+([\w-]+)/,Fe=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Ue);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,s=n.generateId;for(var a in this.id=!1===o?this.name:Te(s(this,i)),this.rules=new it(re({},n,{parent:this})),t)this.rules.add(a,t[a],re({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=ze);var t=Se(e).linebreak;if(null==e.indent&&(e.indent=ze.indent),null==e.children&&(e.children=ze.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),_e=/@keyframes\s+/,Ve=/\$([\w-]+)/g,He=function(e,t){return"string"==typeof e?e.replace(Ve,(function(e,n){return n in t?t[n]:e})):e},$e=function(e,t,n){var r=e[t],o=He(r,n);o!==r&&(e[t]=o)},qe={onCreateRule:function(e,t,n){return"string"==typeof e&&_e.test(e)?new Fe(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&$e(e,"animation-name",n.keyframes),"animation"in e&&$e(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return He(e,r.keyframes);default:return e}}},We=function(e){function t(){return e.apply(this,arguments)||this}return ye(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?re({},e,{allowEmpty:!0}):e;return Re(this.key,this.style,n)},t}(Me),Je={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new We(e,t,n):null}},Ye=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=Se(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Re(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Re(this.at,this.style,e)},e}(),Ze=/@font-face/,Ke={onCreateRule:function(e,t,n){return Ze.test(e)?new Ye(e,t,n):null}},Ge=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Re(this.key,this.style,e)},e}(),Qe={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Ge(e,t,n):null}},Xe=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),et={"@charset":!0,"@import":!0,"@namespace":!0},tt={onCreateRule:function(e,t,n){return e in et?new Xe(e,t,n):null}},nt=[Ne,De,qe,Je,Ke,Qe,tt],rt={process:!0},ot={force:!0,process:!0},it=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,s=r.jss,a=r.Renderer,l=r.generateId,u=r.scoped,c=re({classes:this.classes,parent:o,sheet:i,jss:s,Renderer:a,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+Te(this.classes[d]));var f=xe(d,t,c);if(!f)return null;this.register(f);var h=void 0===c.index?this.index.length:c.index;return this.index.splice(h,0,f),f},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=re({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Ie?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Fe&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Ie?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Fe&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=rt);var o=this.options,i=o.jss.plugins,s=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var a=t.style;if(i.onUpdate(n,t,s,r),r.process&&a&&a!==t.style){for(var l in i.onProcessStyle(t.style,t,s),t.style){var u=t.style[l];u!==a[l]&&t.prop(l,u,ot)}for(var c in a){var d=t.style[c],f=a[c];null==d&&d!==f&&t.prop(c,null,ot)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=Se(e).linebreak,i=0;i<this.index.length;i++){var s=this.index[i].toString(e);(s||r)&&(t&&(t+=o),t+=s)}return t},e}(),st=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=re({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new it(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),at=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),lt=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=oe(t,["attached"]),o=Se(r).linebreak,i="",s=0;s<this.registry.length;s++){var a=this.registry[s];null!=n&&a.attached!==n||(i&&(i+=o),i+=a.toString(r))}return i},me(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ut=new lt,ct="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),dt="2f1acc6c3a606b082e5eef5e54414ffb";null==ct[dt]&&(ct[dt]=0);var ft=ct[dt]++,ht=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+ft+o+t:i+n.key+"-"+ft+(o?"-"+o:"")+"-"+t}},pt=function(e){var t;return function(){return t||(t=e()),t}},mt=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},gt=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Ee(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},yt=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},vt=function(e,t){return e.selectorText=t,e.selectorText===t},bt=pt((function(){return document.querySelector("head")}));var wt=pt((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),xt=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},kt=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Et=function(){function e(e){this.getPropertyValue=mt,this.setProperty=gt,this.removeProperty=yt,this.setSelector=vt,this.hasInsertedRules=!1,this.cssRules=[],e&&ut.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=wt();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=ut.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=bt(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else bt().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=kt(n,t);if(!1===(o=xt(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var s=e.toString();if(!s)return!1;var a=kt(n,t),l=xt(n,s,a);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,a,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof st&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),St=0,Ct=function(){function e(e){this.id=St++,this.version="10.10.0",this.plugins=new at,this.options={id:{minify:!1},createGenerateId:ht,Renderer:de?Et:null,plugins:[]},this.generateId=ht({minify:!1});for(var t=0;t<nt.length;t++)this.plugins.use(nt[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=re({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===ut.index?0:ut.index+1);var r=new st(e,re({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),ut.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=re({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=xe(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Rt=function(e){return new Ct(e)},Pt=function(){function e(){this.length=0,this.sheets=new WeakMap}var t=e.prototype;return t.get=function(e){var t=this.sheets.get(e);return t&&t.sheet},t.add=function(e,t){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:t,refs:0}))},t.manage=function(e){var t=this.sheets.get(e);if(t)return 0===t.refs&&t.sheet.attach(),t.refs++,t.sheet},t.unmanage=function(e){var t=this.sheets.get(e);t&&t.refs>0&&(t.refs--,0===t.refs&&t.sheet.detach())},me(e,[{key:"size",get:function(){return this.length}}]),e}(),At="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Tt(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Tt(r);i&&(t||(t={}),t[n]=i)}}return t}Rt();var Mt=Date.now(),It="fnValues"+Mt,Nt="fnStyle"+ ++Mt,Ot=n(603),Lt=function(e){return e&&e[Ot.Z]&&e===e[Ot.Z]()},Bt=/;\n/,jt=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},n=e.split(Bt),r=0;r<n.length;r++){var o=(n[r]||"").trim();if(o){var i=o.indexOf(":");if(-1!==i){var s=o.substr(0,i).trim(),a=o.substr(i+1).trim();t[s]=a}}}return t}(e.style))},Dt="@global",zt=function(){function e(e,t,n){for(var r in this.type="global",this.at=Dt,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new it(re({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Ut=function(){function e(e,t,n){this.type="global",this.at=Dt,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,re({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ft=/\s*,\s*/g;function _t(e,t){for(var n=e.split(Ft),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var Vt=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},Ht="extendCurrValue"+Date.now();function $t(e,t,n,r){return void 0===r&&(r={}),function(e,t,n,r){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var o=0;o<e.extend.length;o++){var i=e.extend[o];$t("string"==typeof i?re({},e,{extend:i}):e.extend[o],t,n,r)}else for(var s in e.extend)"extend"!==s?Vt(e.extend[s])?(s in r||(r[s]={}),$t(e.extend[s],t,n,r[s])):r[s]=e.extend[s]:$t(e.extend.extend,t,n,r);else{if(!n)return;var a=n.getRule(e.extend);if(!a)return;if(a===t)return;var l=a.options.parent;l&&$t(l.rules.raw[e.extend],t,n,r)}}(e,t,n,r),function(e,t,n,r){for(var o in e)"extend"!==o&&(Vt(r[o])&&Vt(e[o])?$t(e[o],t,n,r[o]):Vt(e[o])?r[o]=$t(e[o],t,n):r[o]=e[o])}(e,t,n,r),r}var qt=function(){return{onProcessStyle:function(e,t,n){return"extend"in e?$t(e,t,n):e},onChangeValue:function(e,t,n){if("extend"!==t)return e;if(null==e||!1===e){for(var r in n[Ht])n.prop(r,null);return n[Ht]=null,null}if("object"==typeof e){for(var o in e)n.prop(o,e[o]);n[Ht]=e}return null}}},Wt=/\s*,\s*/g,Jt=/&/g,Yt=/\$([\w-]+)/g,Zt=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(Wt),r=e.split(Wt),o="",i=0;i<n.length;i++)for(var s=n[i],a=0;a<r.length;a++){var l=r[a];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Jt,s):s+" "+l}return o}function n(e,t,n){if(n)return re({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=re({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var s,a,l=o,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),f="@"===c[0];if(d||f){if(s=n(l,u,s),d){var h=t(c,l.selector);a||(a=e(u,i)),h=h.replace(Yt,a);var p=l.key+"-"+c;"replaceRule"in u?u.replaceRule(p,r[c],re({},s,{selector:h})):u.addRule(p,r[c],re({},s,{selector:h}))}else f&&u.addRule(c,{},s).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}};function Kt(e,t){if(!t)return!0;if(Array.isArray(t)){for(var n=0;n<t.length;n++)if(!Kt(e,t[n]))return!1;return!0}if(t.indexOf(" ")>-1)return Kt(e,t.split(" "));var r=e.options.parent;if("$"===t[0]){var o=r.getRule(t.substr(1));return!!o&&o!==e&&(r.classes[e.key]+=" "+r.classes[o.key],!0)}return r.classes[e.key]+=" "+t,!0}var Gt=function(){return{onProcessStyle:function(e,t){return"composes"in e?(Kt(t,e.composes),delete e.composes,e):e}}},Qt=/[A-Z]/g,Xt=/^ms-/,en={};function tn(e){return"-"+e.toLowerCase()}var nn=function(e){if(en.hasOwnProperty(e))return en[e];var t=e.replace(Qt,tn);return en[e]=Xt.test(t)?"-"+t:t};function rn(e){var t={};for(var n in e)t[0===n.indexOf("--")?n:nn(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(rn):t.fallbacks=rn(e.fallbacks)),t}var on=At&&CSS?CSS.px:"px",sn=At&&CSS?CSS.ms:"ms",an=At&&CSS?CSS.percent:"%";function ln(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var un=ln({"animation-delay":sn,"animation-duration":sn,"background-position":on,"background-position-x":on,"background-position-y":on,"background-size":on,border:on,"border-bottom":on,"border-bottom-left-radius":on,"border-bottom-right-radius":on,"border-bottom-width":on,"border-left":on,"border-left-width":on,"border-radius":on,"border-right":on,"border-right-width":on,"border-top":on,"border-top-left-radius":on,"border-top-right-radius":on,"border-top-width":on,"border-width":on,"border-block":on,"border-block-end":on,"border-block-end-width":on,"border-block-start":on,"border-block-start-width":on,"border-block-width":on,"border-inline":on,"border-inline-end":on,"border-inline-end-width":on,"border-inline-start":on,"border-inline-start-width":on,"border-inline-width":on,"border-start-start-radius":on,"border-start-end-radius":on,"border-end-start-radius":on,"border-end-end-radius":on,margin:on,"margin-bottom":on,"margin-left":on,"margin-right":on,"margin-top":on,"margin-block":on,"margin-block-end":on,"margin-block-start":on,"margin-inline":on,"margin-inline-end":on,"margin-inline-start":on,padding:on,"padding-bottom":on,"padding-left":on,"padding-right":on,"padding-top":on,"padding-block":on,"padding-block-end":on,"padding-block-start":on,"padding-inline":on,"padding-inline-end":on,"padding-inline-start":on,"mask-position-x":on,"mask-position-y":on,"mask-size":on,height:on,width:on,"min-height":on,"max-height":on,"min-width":on,"max-width":on,bottom:on,left:on,top:on,right:on,inset:on,"inset-block":on,"inset-block-end":on,"inset-block-start":on,"inset-inline":on,"inset-inline-end":on,"inset-inline-start":on,"box-shadow":on,"text-shadow":on,"column-gap":on,"column-rule":on,"column-rule-width":on,"column-width":on,"font-size":on,"font-size-delta":on,"letter-spacing":on,"text-decoration-thickness":on,"text-indent":on,"text-stroke":on,"text-stroke-width":on,"word-spacing":on,motion:on,"motion-offset":on,outline:on,"outline-offset":on,"outline-width":on,perspective:on,"perspective-origin-x":an,"perspective-origin-y":an,"transform-origin":an,"transform-origin-x":an,"transform-origin-y":an,"transform-origin-z":an,"transition-delay":sn,"transition-duration":sn,"vertical-align":on,"flex-basis":on,"shape-margin":on,size:on,gap:on,grid:on,"grid-gap":on,"row-gap":on,"grid-row-gap":on,"grid-column-gap":on,"grid-template-rows":on,"grid-template-columns":on,"grid-auto-rows":on,"grid-auto-columns":on,"box-shadow-x":on,"box-shadow-y":on,"box-shadow-blur":on,"box-shadow-spread":on,"font-line-height":on,"text-shadow-x":on,"text-shadow-y":on,"text-shadow-blur":on});function cn(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=cn(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=cn(o,t[o],n);else for(var i in t)t[i]=cn(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var s=n[e]||un[e];return!s||0===t&&s===on?t.toString():"function"==typeof s?s(t).toString():""+t+s}return t}var dn=function(e){void 0===e&&(e={});var t=ln(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=cn(r,e[r],t);return e},onChangeValue:function(e,n){return cn(n,e,t)}}},fn={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},hn={position:!0,size:!0},pn={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},mn={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function gn(e,t,n,r){return null==n[t]?e:0===e.length?[]:Array.isArray(e[0])?gn(e[0],t,n,r):"object"==typeof e[0]?function(e,t,n){return e.map((function(e){return yn(e,t,n,!1,!0)}))}(e,t,r):[e]}function yn(e,t,n,r,o){if(!pn[t]&&!mn[t])return[];var i=[];if(mn[t]&&(e=function(e,t,n,r){for(var o in n){var i=n[o];if(void 0!==e[o]&&(r||!t.prop(i))){var s,a=vn((s={},s[i]=e[o],s),t)[i];r?t.style.fallbacks[i]=a:t.style[i]=a}delete e[o]}return e}(e,n,mn[t],r)),Object.keys(e).length)for(var s in pn[t])e[s]?Array.isArray(e[s])?i.push(null===hn[s]?e[s]:e[s].join(" ")):i.push(e[s]):null!=pn[t][s]&&i.push(pn[t][s]);return!i.length||o?i:[i]}function vn(e,t,n){for(var r in e){var o=e[r];if(Array.isArray(o)){if(!Array.isArray(o[0])){if("fallbacks"===r){for(var i=0;i<e.fallbacks.length;i++)e.fallbacks[i]=vn(e.fallbacks[i],t,!0);continue}e[r]=gn(o,r,fn,t),e[r].length||delete e[r]}}else if("object"==typeof o){if("fallbacks"===r){e.fallbacks=vn(e.fallbacks,t,!0);continue}e[r]=yn(o,r,t,n),e[r].length||delete e[r]}else""===e[r]&&delete e[r]}return e}function bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wn="",xn="",kn="",En="",Sn=de&&"ontouchstart"in document.documentElement;if(de){var Cn={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Rn=document.createElement("p").style;for(var Pn in Cn)if(Pn+"Transform"in Rn){wn=Pn,xn=Cn[Pn];break}"Webkit"===wn&&"msHyphens"in Rn&&(wn="ms",xn=Cn.ms,En="edge"),"Webkit"===wn&&"-apple-trailing-word"in Rn&&(kn="apple")}var An=wn,Tn=xn,Mn=kn,In=En,Nn=Sn,On={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===An?"-webkit-"+e:Tn+e)}},Ln={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===An?Tn+"print-"+e:e)}},Bn=/[-\s]+(.)?/g;function jn(e,t){return t?t.toUpperCase():""}function Dn(e){return e.replace(Bn,jn)}function zn(e){return Dn("-"+e)}var Un,Fn={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===An){var n="mask-image";if(Dn(n)in t)return e;if(An+zn(n)in t)return Tn+e}return e}},Vn={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Mn||Nn?e:Tn+e)}},Hn={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Tn+e)}},$n={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Tn+e)}},qn={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===An||"ms"===An&&"edge"!==In?Tn+e:e)}},Wn={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===An||"ms"===An||"apple"===Mn?Tn+e:e)}},Jn={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===An?"WebkitColumn"+zn(e)in t&&Tn+"column-"+e:"Moz"===An&&"page"+zn(e)in t&&"page-"+e)}},Yn={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===An)return e;var n=e.replace("-inline","");return An+zn(n)in t&&Tn+n}},Zn={supportedProperty:function(e,t){return Dn(e)in t&&e}},Kn={supportedProperty:function(e,t){var n=zn(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:An+n in t?Tn+e:"Webkit"!==An&&"Webkit"+n in t&&"-webkit-"+e}},Gn={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===An?""+Tn+e:e)}},Qn={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===An?Tn+"scroll-chaining":e)}},Xn={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},er={supportedProperty:function(e,t){var n=Xn[e];return!!n&&An+zn(n)in t&&Tn+n}},tr={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},nr=Object.keys(tr),rr=function(e){return Tn+e},or={supportedProperty:function(e,t,n){var r=n.multiple;if(nr.indexOf(e)>-1){var o=tr[e];if(!Array.isArray(o))return An+zn(o)in t&&Tn+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(An+zn(o[0])in t))return!1;return o.map(rr)}return!1}},ir=[On,Ln,Fn,Vn,Hn,$n,qn,Wn,Jn,Yn,Zn,Kn,Gn,Qn,er,or],sr=ir.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),ar=ir.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,function(e){if(Array.isArray(e))return bn(e)}(n=t.noPrefill)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bn(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),e;var n}),[]),lr={};if(de){Un=document.createElement("p");var ur=window.getComputedStyle(document.documentElement,"");for(var cr in ur)isNaN(cr)||(lr[ur[cr]]=ur[cr]);ar.forEach((function(e){return delete lr[e]}))}function dr(e,t){if(void 0===t&&(t={}),!Un)return e;if(null!=lr[e])return lr[e];"transition"!==e&&"transform"!==e||(t[e]=e in Un.style);for(var n=0;n<sr.length&&(lr[e]=sr[n](e,Un.style,t),!lr[e]);n++);try{Un.style[e]=""}catch(e){return!1}return lr[e]}var fr,hr={},pr={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},mr=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function gr(e,t,n){return"var"===t?"var":"all"===t?"all":"all"===n?", all":(t?dr(t):", "+dr(n))||t||n}function yr(e,t){var n=t;if(!fr||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=hr[r])return hr[r];try{fr.style[e]=n}catch(e){return hr[r]=!1,!1}if(pr[e])n=n.replace(mr,gr);else if(""===fr.style[e]&&("-ms-flex"===(n=Tn+n)&&(fr.style[e]="-ms-flexbox"),fr.style[e]=n,""===fr.style[e]))return hr[r]=!1,!1;return fr.style[e]="",hr[r]=n,hr[r]}de&&(fr=document.createElement("p"));var vr=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=dr(n);i&&i!==n&&(o=!0);var s=!1,a=yr(i,Ee(r));a&&a!==r&&(s=!0),(o||s)&&(o&&delete t[n],t[i||n]=a||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===An?e:"@"+Tn+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return yr(t,Ee(e))||e}}},br=function(e){return void 0===e&&(e={}),{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=xe(e,{},n);return r[Nt]=t,r},onProcessStyle:function(e,t){if(It in t||Nt in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[It]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Nt];i&&(o.style=i(e)||{});var s=o[It];if(s)for(var a in s)o.prop(a,s[a](e),r)}},(n=e.observable,{onCreateRule:function(e,t,r){if(!Lt(t))return null;var o=t,i=xe(e,{},r);return o.subscribe((function(e){for(var t in e)i.prop(t,e[t],n)})),i},onProcessRule:function(e){if(!e||"style"===e.type){var t=e,r=t.style,o=function(e){var o=r[e];if(!Lt(o))return"continue";delete r[e],o.subscribe({next:function(r){t.prop(e,r,n)}})};for(var i in r)o(i)}}}),{onProcessRule:jt},{onCreateRule:function(e,t,n){if(!e)return null;if(e===Dt)return new zt(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,8))return new Ut(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Dt]:null;if(o){for(var i in o)t.addRule(i,o[i],re({},n,{selector:_t(i,e.selector)}));delete r[Dt]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===Dt){var i=_t(o.substr(7),e.selector);t.addRule(i,r[o],re({},n,{selector:i})),delete r[o]}}(e,t))}},qt(),Zt(),Gt(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=rn(e[t]);return e}return rn(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=nn(t);return t===r?e:(n.prop(r,e),null)}},dn(e.defaultUnit),{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var n=0;n<e.length;n++)e[n]=vn(e[n],t);return e}return vn(e,t)}},vr(),(t=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r={},o=Object.keys(e).sort(t),i=0;i<o.length;i++)r[o[i]]=e[o[i]];return r}})]};var t,n},wr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,xr=(function(e){var t={}}((function(e){return wr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Rt(br())),kr=function(e){void 0===e&&(e=xr);var t,n=new Map,r=0,o=function(){return(!t||t.rules.index.length>1e4)&&(t=e.createStyleSheet().attach()),t};function i(){var e=arguments,t=JSON.stringify(e),i=n.get(t);if(i)return i.className;var s=[];for(var a in e){var l=e[a];if(Array.isArray(l))for(var u=0;u<l.length;u++)s.push(l[u]);else s.push(l)}for(var c={},d=[],f=0;f<s.length;f++){var h=s[f];if(h){var p=h;if("string"==typeof h){var m=n.get(h);m&&(m.labels.length&&d.push.apply(d,m.labels),p=m.style)}p.label&&-1===d.indexOf(p.label)&&d.push(p.label),Object.assign(c,p)}}delete c.label;var g=(0===d.length?"css":d.join("-"))+"-"+r++;o().addRule(g,c);var y=o().classes[g],v={style:c,labels:d,className:y};return n.set(t,v),n.set(y,v),y}return i.getSheet=o,i}(),Er=kr,Sr=Number.MIN_SAFE_INTEGER||-1e9,Cr=(0,e.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!de}),Rr=new Map,Pr=function(e,t){var n=e.managers;if(n)return n[t]||(n[t]=new Pt),n[t];var r=Rr.get(t);return r||(r=new Pt,Rr.set(t,r)),r},Ar=function(e){var t=e.sheet,n=e.context,r=e.index,o=e.theme;t&&(Pr(n,r).manage(o),n.registry&&n.registry.add(t))},Tr=Rt(br()),Mr=new WeakMap,Ir=function(e){return Mr.get(e)},Nr=function(e){if(!e.context.disableStylesGeneration){var t=Pr(e.context,e.index),n=t.get(e.theme);if(n)return n;var r=e.context.jss||Tr,o=function(e){var t=e.styles;return"function"!=typeof t?t:t(e.theme)}(e),i=Tt(o),s=r.createStyleSheet(o,function(e,t){var n;e.context.id&&null!=e.context.id.minify&&(n=e.context.id.minify);var r=e.context.classNamePrefix||"";e.name&&!n&&(r+=e.name.replace(/\s/g,"-")+"-");var o="";return e.name&&(o=e.name+", "),o+="function"==typeof e.styles?"Themed":"Unthemed",re({},e.sheetOptions,{index:e.index,meta:o,classNamePrefix:r,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}(e,null!==i));return function(e,t){Mr.set(e,t)}(s,{dynamicStyles:i,styles:o}),t.add(e.theme,s),s}},Or=function(e,t){var n=Ir(e);if(n){var r={};for(var o in n.dynamicStyles)for(var i=e.rules.index.length,s=e.addRule(o,n.dynamicStyles[o]),a=i;a<e.rules.index.length;a++){var l=e.rules.index[a];e.updateOne(l,t),r[s===l?o:l.key]=l}return r}};function Lr(n){return n?e.useEffect:t().useInsertionEffect||e.useLayoutEffect}var Br={},jr=function(t,n){void 0===n&&(n={});var r=n,o=r.index,i=void 0===o?Sr++:o,s=r.theming,a=r.name,l=oe(r,["index","theming","name"]),u=s&&s.context||ue,c={};return function(n){var r=(0,e.useRef)(!0),o=(0,e.useContext)(Cr),s=function(n){return"function"==typeof t&&(n||(0,e.useContext)(u))||Br}(n&&n.theme),d=(0,e.useMemo)((function(){var e=Nr({context:o,styles:t,name:a,theme:s,index:i,sheetOptions:l});return e&&o.isSSR&&Ar({index:i,context:o,sheet:e,theme:s}),[e,e?Or(e,n):null]}),[o,s]),f=d[0],h=d[1];Lr(o.isSSR)((function(){f&&h&&!r.current&&function(e,t,n){for(var r in n)t.updateOne(n[r],e)}(n,f,h)}),[n]),Lr(o.isSSR)((function(){return f&&Ar({index:i,context:o,sheet:f,theme:s}),function(){f&&(function(e){e.sheet&&Pr(e.context,e.index).unmanage(e.theme)}({index:i,context:o,sheet:f,theme:s}),h&&function(e,t){for(var n in t)e.deleteRule(t[n])}(f,h))}}),[f]);var p=(0,e.useMemo)((function(){return f&&h?function(e,t){if(!t)return e.classes;var n=Ir(e);if(!n)return e.classes;var r={};for(var o in n.styles)r[o]=e.classes[o],o in t&&(r[o]+=" "+e.classes[t[o].key]);return r}(f,h):c}),[f,h]);return(0,e.useDebugValue)(p),(0,e.useDebugValue)(s===Br?"No theme":s),(0,e.useEffect)((function(){r.current=!1})),p}};Symbol("react-jss-styled"),function(e){void 0===e&&(e=Er)}();const Dr=jr({component:{},columnsControl:{padding:10,background:"white",width:180,border:"1px solid black"},controls:{display:"flex",gap:10},yearSelectControl:{padding:10,cursor:"pointer"},table:{width:"100%"}}),zr="climbpress-route-table-columns",Ur=(e,t)=>e.find((e=>e.id==t)),Fr=(e,t)=>{let n=-1,r=-1;return t.grades.forEach(((t,o)=>{const i=Math.abs(t.difficulty-e);(r<0||r>i)&&(r=i,n=o)})),t.grades[n]},_r={neutral50:"#FAFAFA",neutral100:"#F5F5F5",neutral200:"#EEEEEE",neutral300:"#E0E0E0",neutral400:"#BDBDBD",neutral500:"#9E9E9E",neutral600:"#757575",neutral700:"#616161",neutral800:"#424242",neutral900:"#212121"},Vr={primary:"#455a64",onPrimary:_r.neutral50,primaryDark:"#1c313a",onPrimaryDark:_r.neutral50,primaryLight:"#718792",onPrimaryLight:_r.neutral900,secondary:"#d7ccc8",onSecondary:_r.neutral900,secondaryDark:"#a69b97",onSecondaryDark:_r.neutral900,secondaryLight:"#fffffb",onSecondaryLight:_r.neutral900,neutral:_r,delete:"#D32F2F",deleteDark:"#C62828",deleteLight:"#FFEBEE",onDelete:_r.neutral50,onDeleteDark:_r.neutral50,onDeleteLight:_r.neutral900},Hr=jr({table:{borderCollapse:"collapse",marginBlock:25,fontSize:"1em",fontFamily:"sans-serif",boxShadow:"0 0 20px rgba(0, 0, 0, 0.15)","& th":{backgroundColor:Vr.neutral.neutral200,color:Vr.onSecondary,textAlign:"left",borderBottom:"2px solid "+Vr.neutral.neutral300,whiteSpace:"nowrap"},"& td":{backgroundColor:"white"},"& th, & td":{paddingBlock:12,paddingInline:15},"& tbody tr:hover td":{backgroundColor:Vr.neutral.neutral100},tfooter:{borderBottom:"2px solid black"}},icon:{width:16,display:"block"},dropdown:{color:"black",background:"white",boxShadow:"0 0 20px rgba(0, 0, 0, 0.15)",listStyle:"none",padding:0,margin:0},dropdownButton:{cursor:"pointer"},dropdownItem:{cursor:"pointer",paddingBlock:12,paddingInline:18,whiteSpace:"nowrap","&:hover":{backgroundColor:"#F5F5F5"}},controls:{display:"flex",flexDirection:"column",gap:"4px"},difficulty:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:4},chart:{width:20}}),$r=jr({component:{},wrapper:{position:"relative"},content:{position:"absolute",bottom:0,top:-10}});var qr=({show:t,children:n,content:r})=>{const o=$r(),i=(0,e.useRef)();return(0,e.createElement)("div",{className:o.component,ref:i},n,(0,e.createElement)("div",{className:o.wrapper},(0,e.createElement)("div",{className:o.content},t&&r)))};const Wr=jr({component:{cursor:"pointer",marginRight:20,userSelect:"none"},active:{marginRight:0},icon:{width:16,marginLeft:4,display:"inline-block"}}),Jr=jr({component:{}}),Yr=()=>(0,e.createElement)("path",{d:"M160-160v-320h160v320H160Zm240 0v-640h160v640H400Zm240 0v-440h160v440H640Z"}),Zr=()=>(0,e.createElement)("path",{d:"M490.3 40.4C512.2 62.27 512.2 97.73 490.3 119.6L460.3 149.7L362.3 51.72L392.4 21.66C414.3-.2135 449.7-.2135 471.6 21.66L490.3 40.4zM172.4 241.7L339.7 74.34L437.7 172.3L270.3 339.6C264.2 345.8 256.7 350.4 248.4 353.2L159.6 382.8C150.1 385.6 141.5 383.4 135 376.1C128.6 370.5 126.4 361 129.2 352.4L158.8 263.6C161.6 255.3 166.2 247.8 172.4 241.7V241.7zM192 63.1C209.7 63.1 224 78.33 224 95.1C224 113.7 209.7 127.1 192 127.1H96C78.33 127.1 64 142.3 64 159.1V416C64 433.7 78.33 448 96 448H352C369.7 448 384 433.7 384 416V319.1C384 302.3 398.3 287.1 416 287.1C433.7 287.1 448 302.3 448 319.1V416C448 469 405 512 352 512H96C42.98 512 0 469 0 416V159.1C0 106.1 42.98 63.1 96 63.1H192z"}),Kr=()=>(0,e.createElement)("path",{fill:"currentColor",d:"M320 224H416c17.67 0 32-14.33 32-32s-14.33-32-32-32h-95.1c-17.67 0-32 14.33-32 32S302.3 224 320 224zM320 352H480c17.67 0 32-14.33 32-32s-14.33-32-32-32h-159.1c-17.67 0-32 14.33-32 32S302.3 352 320 352zM320 96h32c17.67 0 31.1-14.33 31.1-32s-14.33-32-31.1-32h-32c-17.67 0-32 14.33-32 32S302.3 96 320 96zM544 416h-223.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H544c17.67 0 32-14.33 32-32S561.7 416 544 416zM192.4 330.7L160 366.1V64.03C160 46.33 145.7 32 128 32S96 46.33 96 64.03v302L63.6 330.7c-6.312-6.883-14.94-10.38-23.61-10.38c-7.719 0-15.47 2.781-21.61 8.414c-13.03 11.95-13.9 32.22-1.969 45.27l87.1 96.09c12.12 13.26 35.06 13.26 47.19 0l87.1-96.09c11.94-13.05 11.06-33.31-1.969-45.27C224.6 316.8 204.4 317.7 192.4 330.7z"}),Gr=()=>(0,e.createElement)("path",{fill:"currentColor",d:"M416 288h-95.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H416c17.67 0 32-14.33 32-32S433.7 288 416 288zM544 32h-223.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H544c17.67 0 32-14.33 32-32S561.7 32 544 32zM352 416h-32c-17.67 0-32 14.33-32 32s14.33 32 32 32h32c17.67 0 31.1-14.33 31.1-32S369.7 416 352 416zM480 160h-159.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H480c17.67 0 32-14.33 32-32S497.7 160 480 160zM192.4 330.7L160 366.1V64.03C160 46.33 145.7 32 128 32S96 46.33 96 64.03v302L63.6 330.7c-6.312-6.883-14.94-10.38-23.61-10.38c-7.719 0-15.47 2.781-21.61 8.414c-13.03 11.95-13.9 32.22-1.969 45.27l87.1 96.09c12.12 13.26 35.06 13.26 47.19 0l87.1-96.09c11.94-13.05 11.06-33.31-1.969-45.27C224.6 316.8 204.4 317.7 192.4 330.7z"}),Qr=()=>(0,e.createElement)("path",{fill:"currentColor",d:"M120-520v-320h320v320H120Zm80-80h160v-160H200v160Zm-80 480v-320h320v320H120Zm80-80h160v-160H200v160Zm320-320v-320h320v320H520Zm80-80h160v-160H600v160Zm160 480v-80h80v80h-80ZM520-360v-80h80v80h-80Zm80 80v-80h80v80h-80Zm-80 80v-80h80v80h-80Zm80 80v-80h80v80h-80Zm80-80v-80h80v80h-80Zm0-160v-80h80v80h-80Zm80 80v-80h80v80h-80Z"});var Xr=({icon:t,className:n=""})=>{const r=Jr();return(0,e.createElement)("div",{className:[r.component,n].join(" ")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"qr"!=t&&"chart"!=t?"0 0 576 512":"0 -960 960 960"},"asc"==t&&(0,e.createElement)(Kr,null),"desc"==t&&(0,e.createElement)(Gr,null),"edit"==t&&(0,e.createElement)(Zr,null),"qr"==t&&(0,e.createElement)(Qr,null),"chart"==t&&(0,e.createElement)(Yr,null)))},eo=({direction:t,onClick:n,children:r})=>{const o=Wr(),i=[o.component];return""!=t&&i.push(o.active),(0,e.createElement)("div",{className:i.join(" "),onClick:n},r,"asc"==t&&(0,e.createElement)(Xr,{icon:"asc",className:o.icon}),"desc"==t&&(0,e.createElement)(Xr,{icon:"desc",className:o.icon}))};const to=jr({component:{appearance:"button",backfaceVisibility:"hidden",backgroundColor:"var(--background-color)",borderRadius:4,borderWidth:0,boxSizing:"border-box",color:"var(--text-color)",cursor:"pointer",height:44,outline:"none",padding:"0 25px",textAlign:"center",transition:"all .2s,box-shadow .08s ease-in",userSelect:"none",fontWeight:700,"&:hover":{backgroundColor:"var(--background-color-hover)",color:"var(--text-color-hover)"},"&:disabled":{cursor:"disabled"},"&:focus":{boxShadow:"rgba(50, 50, 93, .1) 0 0 0 1px inset, rgba(50, 50, 93, .2) 0 6px 15px 0, rgba(0, 0, 0, .1) 0 2px 2px 0, rgba(50, 151, 211, .3) 0 0 0 4px"}},primary:{"--text-color":Vr.onPrimary,"--text-color-hover":Vr.onPrimaryDark,"--background-color":Vr.primary,"--background-color-hover":Vr.primaryDark},secondary:{"--text-color":Vr.onSecondary,"--text-color-hover":Vr.onSecondaryDark,"--background-color":Vr.secondary,"--background-color-hover":Vr.secondaryDark},outline:{"--text-color":Vr.neutral.neutral900,"--text-color-hover":Vr.onSecondaryDark,"--background-color":Vr.neutral.neutral50,"--background-color-hover":Vr.neutral.neutral50,border:"3px solid "+Vr.neutral.neutral300,"&:hover":{borderColor:Vr.neutral.neutral400}},delete:{"--text-color":Vr.onDeleteLight,"--text-color-hover":Vr.onDeleteDark,"--background-color":Vr.deleteLight,"--background-color-hover":Vr.deleteDark,border:"3px solid "+Vr.delete,"&:hover":{borderColor:Vr.deleteDark}},dense:{padding:"0 10px",height:24,borderRadius:4}});var no=({variant:t="primary",size:n="normal",className:r="",children:o,onClick:i})=>{const s=to();return(0,e.createElement)("button",{className:`${s.component} ${s[t]} ${s[n]} ${r}`,onClick:i},o)};const ro=({route:t,system:n,columns:r,metaStructure:o,onEditClick:i,onClickDifficulty:s,onQRClick:a})=>{const l=Hr();return(0,e.createElement)("tr",null,r.map((r=>{if("status"==r)return(0,e.createElement)("td",null,oo[t.status]);if("difficulty"==r)return(0,e.createElement)("td",null,(0,e.createElement)(no,{variant:"outline",size:"dense",onClick:s,className:l.difficulty},Fr(t.difficulty,n).label));if("gradingSystem"==r)return(0,e.createElement)("td",null,n.name);if("created"==r)return(0,e.createElement)("td",null,new Date(Date.parse(t.created)).toLocaleDateString());if(t.metas[r]){var i;const n=t.metas[r],s=o.find((e=>e.key==r))?.options,a=s?.find((e=>e.key==n)),l=null!==(i=a?.label)&&void 0!==i?i:n;return(0,e.createElement)("td",{key:r},l)}return(0,e.createElement)("td",{key:r},t[r])})),(0,e.createElement)("td",{className:l.controls},(0,e.createElement)(no,{variant:"outline",size:"dense",onClick:i},(0,e.createElement)(Xr,{icon:"edit",className:l.icon})),(0,e.createElement)(no,{variant:"outline",size:"dense",onClick:a},(0,e.createElement)(Xr,{icon:"qr",className:l.icon}))))},oo={any:"⚪️","screwed-on":"🟢","screwed-off":"🔴"};var io=({className:t="",columns:n={},children:r,onChange:o,state:i})=>{const a=Hr(),[l,u]=(0,e.useState)(!1);return(0,e.createElement)("table",{className:`${a.table} ${t}`},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,Object.keys(n).map((t=>{if("status"==t)return(0,e.createElement)("th",{key:t},(0,e.createElement)(qr,{show:l,content:(0,e.createElement)("ul",{className:a.dropdown},(0,e.createElement)("li",{className:a.dropdownItem,onClick:()=>{u(!1),o({...i,status:"any"})}},oo.any," ",s("All")),(0,e.createElement)("li",{className:a.dropdownItem,onClick:()=>{u(!1),o({...i,status:"screwed-on"})}},oo["screwed-on"]," ",s("Screwed on")),(0,e.createElement)("li",{className:a.dropdownItem,onClick:()=>{u(!1),o({...i,status:"screwed-off"})}},oo["screwed-off"]," ",s("Screwed off")))},(0,e.createElement)("div",{className:a.dropdownButton,onClick:()=>u((e=>!e))},oo[i.status])));const r=n[t];return(0,e.createElement)("th",{key:t},(0,e.createElement)(eo,{direction:i.orderBy==t?i.orderDirection:"",onClick:(c=t,()=>{i.orderBy!=c?o({...i,orderBy:c,orderDirection:"asc"}):"asc"==i.orderDirection?o({...i,orderDirection:"desc"}):o({...i,orderBy:"",orderDirection:""})})},r));var c})),(0,e.createElement)("th",null))),(0,e.createElement)("tbody",null,r))};const so=jr({component:{},item:{display:"block","& + &":{marginTop:5}}}),ao={status:s("Status"),name:s("Route name"),created:s("Date"),difficulty:s("Grade"),gradingSystem:s("Grading-System")};var lo=({columns:t,state:n,onChange:r})=>{const o=so();return(0,e.createElement)("div",{className:o.component},Object.keys(t).map((i=>{const s=t[i];return(0,e.createElement)("label",{key:i,className:o.item},(0,e.createElement)("input",{type:"checkbox",onChange:(a=i,()=>{const e=n.includes(a)?n.filter((e=>e!=a)):[...n,a];r(e)}),checked:n.includes(i)})," ",s);var a})))};const uo=jr({component:{},formContent:{width:"100%",minWidth:360,"@media (min-width: 600px)":{minWidth:560,display:"grid",gap:10,gridTemplateColumns:"repeat(2, 1fr)"},"@media (min-width: 900px)":{minWidth:800,display:"grid",gap:10,gridTemplateColumns:"repeat(3, 1fr)"}},field:{marginBlock:10},controls:{marginTop:26,display:"flex",justifyContent:"end",gap:10}});function co({label:t,value:n,type:r="text",onChange:o}){return(0,e.createElement)("label",{className:"cp-input-control"},t,(0,e.createElement)("br",null),(0,e.createElement)("input",{className:"cp-input-control--input",type:r,value:n,onChange:e=>o(e.target.value)}))}function fo({label:t,value:n,options:r,onChange:o}){return(0,e.createElement)("label",{className:"cp-select-control"},t,(0,e.createElement)("br",null),(0,e.createElement)("select",{value:n,onChange:e=>o(e.target.value)},r.map((t=>(0,e.createElement)("option",{key:t.value,value:t.value},t.label)))))}const ho=jr({component:{"@media (min-width: 400px)":{display:"grid",gap:10,gridTemplateColumns:"repeat(2, 1fr)"}}});var po=({selectedSystemId:t,difficulty:n,systems:r,onChangeSystem:o,onChangeDifficulty:i})=>{const a=ho(),l=r.find((e=>e.id==t));(0,e.useEffect)((()=>{l||o(r[0].id)}),[t]);const u=Fr(n,l);return(0,e.createElement)("div",{className:a.component},(0,e.createElement)(fo,{label:s("Grade"),value:u.difficulty+"",options:r.find((e=>e.id==t))?.grades?.map((e=>({value:e.difficulty+"",label:e.label}))),onChange:e=>i(parseInt(e))}),(0,e.createElement)(fo,{label:s("Grading-System"),value:t,options:r.map((e=>({value:e.id,label:e.name}))),onChange:o}))},mo=({route:t,systems:n,metaStructure:r,onChange:o,onCancel:i,onDelete:a})=>{var l;const u=uo(),[c,d]=(0,e.useState)(t),f=null!==(l=Ur(n,c.gradingSystem))&&void 0!==l?l:n[0],h=(0,e.useMemo)((()=>Fr(c.difficulty,f)),[c.difficulty,f.id]);(0,e.useEffect)((()=>{d(t)}),[t.id]),(0,e.useEffect)((()=>{""==c.created&&d({...c,created:(new Date).toISOString().split("T")[0]})}),[c.created]);const p=e=>t=>{d((n=>({...n,[e]:t})))},m=e=>t=>{d((n=>({...n,metas:{...n.metas,[e]:t}})))};return(0,e.createElement)("div",{className:u.component},"function"==typeof a&&(0,e.createElement)("div",null,(0,e.createElement)(no,{variant:"outline",onClick:()=>{d((e=>({...e,status:"screwed-on"==e.status?"screwed-off":"screwed-on"})))}},"screwed-on"==c.status?"🟢 "+s("Screwed on"):"⚪️ "+s("Screwed off"))),(0,e.createElement)("div",{className:u.field},(0,e.createElement)(co,{label:s("Route name"),value:c.name,onChange:p("name")})),(0,e.createElement)("div",{className:u.field},(0,e.createElement)(po,{selectedSystemId:c.gradingSystem,difficulty:h.difficulty,systems:n,onChangeSystem:p("gradingSystem"),onChangeDifficulty:p("difficulty")})),(0,e.createElement)("div",{className:u.formContent},(0,e.createElement)("div",{className:u.field},(0,e.createElement)(co,{label:s("Date"),value:c.created,onChange:p("created"),type:"date"})),r.map((t=>{var n,r;return(0,e.createElement)("div",{key:t.key,className:u.field},t.options.length>0?(0,e.createElement)(fo,{label:t.label,value:null!==(n=c.metas?.[t.key])&&void 0!==n?n:"",options:[{value:"",label:""},...t.options.map((e=>({value:e.key,label:e.label})))],onChange:m(t.key)}):(0,e.createElement)(co,{key:t.key,label:t.label,value:null!==(r=c.metas?.[t.key])&&void 0!==r?r:"",onChange:m(t.key)}))}))),(0,e.createElement)("div",{className:u.controls},"function"==typeof a&&(0,e.createElement)(no,{onClick:()=>a(),variant:"delete"},s("Delete")),(0,e.createElement)(no,{variant:"outline",onClick:i},s("Cancel")),(0,e.createElement)(no,{onClick:()=>o(c)},s("Save"))))};function go({onClick:t,children:n}){const r=(0,i.useRef)();return(0,e.useEffect)((()=>{const e=e=>{r.current&&!r.current.contains(e.target)&&t()};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[r]),(0,e.createElement)("div",{ref:r},n)}var yo=n(119);function vo(){var e=function(e){var n=e.text,r=e.options,o=e.logo,i=t().useRef(null);return t().useEffect((function(){var e,t,s,a,l,u,c,d,f;if(i&&i.current&&(yo.toCanvas(i.current,n,r,(function(e){if(e)throw e})),o)){var h=i.current.getContext("2d");if(h){var p=new Image;p.src=o.src;var m=(null===(e=null==o?void 0:o.options)||void 0===e?void 0:e.width)||30;if((null===(t=null==o?void 0:o.options)||void 0===t?void 0:t.hasOwnProperty("x"))&&(null===(s=null==o?void 0:o.options)||void 0===s?void 0:s.hasOwnProperty("y"))){var g=(null===(a=null==o?void 0:o.options)||void 0===a?void 0:a.x)||0,y=(null===(l=null==o?void 0:o.options)||void 0===l?void 0:l.y)||0;p.onload=function(){h.drawImage(p,g,y,m,m)}}if(!(null===(u=null==o?void 0:o.options)||void 0===u?void 0:u.hasOwnProperty("x"))||!(null===(c=null==o?void 0:o.options)||void 0===c?void 0:c.hasOwnProperty("y"))||void 0===(null===(d=null==o?void 0:o.options)||void 0===d?void 0:d.x)||void 0===(null===(f=null==o?void 0:o.options)||void 0===f?void 0:f.y)){var v=null==r?void 0:r.margin;v=v?8*v:0===v?0:32;var b=(((null==r?void 0:r.width)||116+v)-m)/2;p.onload=function(){h.drawImage(p,b,b,m,m)}}}}}),[i,n,r,o]),t().createElement("canvas",{ref:i})};return t().useMemo((function(){return e}),[])}const bo=jr({component:{display:"flex",flexDirection:"column",fontSize:"0.8em",gap:4,paddingRight:20,"& .item":{position:"relative",width:300,display:"grid",gridTemplateColumns:"40px 1fr",gap:2},"& .label":{fontWeight:"bold",padding:2,borderRadius:4,border:"1px solid #2271b1",textAlign:"center"},"& .is-setter-grade .label":{background:"#2271b1",color:"white"}},bar:{position:"relative",background:"#2271b1",height:"100%",borderRadius:4,"& span":{position:"absolute",top:3,right:-26}},isSetterGrade:{"& .label":{background:"red"}},setterBar:{background:"red",width:"100%"}});function wo({gradingSystem:t,setterGrade:n,votings:r}){const o=bo(),i=[...t.grades].reverse(),s=r.reduce(((e,t)=>e+t.votes),0);return(0,e.createElement)("div",{className:o.component},i.map((t=>{var i;const a=r.find((({difficulty:e})=>e==t.difficulty)),l=t.difficulty==n.difficulty,u=s>0?(null!==(i=a?.votes)&&void 0!==i?i:0)/s:0,c=Math.floor(100*u);return(0,e.createElement)("div",{key:t.difficulty,className:"item "+(l?"is-setter-grade":"")},(0,e.createElement)("div",{className:"label"},t.label),(0,e.createElement)("div",{className:o.bar,style:{width:100*u+"%"}},(0,e.createElement)("span",null,c,"%")))})))}function xo({route:t}){const[n,r]=(e=>{const{data:t=[],isLoading:n}=te(`${a()}/routes/${e}/votes`,(e=>d()({path:e})));return[t,n]})(t.id),o=l(),i=Ur(o,t.gradingSystem);if(!i)return;const s=Fr(t.difficulty,i),u=n.reduce(((e,t)=>e+t.votes),0);return(0,e.createElement)("div",null,(0,e.createElement)("h3",{style:{marginTop:0}},t.name),(0,e.createElement)("p",null,"Bewertungena aus der Community: ",u),(0,e.createElement)(wo,{gradingSystem:i,setterGrade:s,votings:n}))}var ko=()=>{var n,r;const o=Dr(),{Image:c}={Image:(_=function(e){var n=e.text,r=e.options,o=t().useRef(null);return t().useEffect((function(){o&&o.current&&yo.toDataURL(n,r,(function(e,t){if(e)throw e;o.current instanceof HTMLImageElement&&(o.current.src=t)}))}),[n,r,o]),t().createElement("img",{ref:o})},t().useMemo((function(){return _}),[])),Canvas:vo(),SVG:(V=function(e){var n=e.text,r=e.options,o=t().useRef(null);return t().useEffect((function(){yo.toString(n,r,(function(e,t){if(e)throw e;o.current instanceof HTMLDivElement&&(o.current.innerHTML=t)}))}),[n,r]),t().createElement("div",{ref:o})},t().useMemo((function(){return V}),[]))},f=l(),h=window.ClimbPress.routeMetaStructure,p=u(window.ClimbPress.defaultGradingSystemId),m=window.ClimbPress.availableYears,g=(0,i.useRef)(-1),y=(0,i.useRef)(null),[v,b]=(0,i.useState)(null),[w,x]=(0,i.useState)(!1),[k,E]=(0,i.useState)(!1),[S,C]=(()=>{const[t,n]=(0,i.useState)(JSON.parse(localStorage.getItem(zr))||[]);return(0,e.useEffect)((()=>{localStorage.setItem(zr,JSON.stringify(t))}),[t]),[t,n]})(),[R,P]=(0,i.useState)(""),[A,T]=(0,i.useState)({status:"screwed-on",orderBy:"",orderDirection:""}),{routes:M,update:I,add:N,remove:O}=((e="any",t="")=>{const{data:n,mutate:r}=te(a()+"/routes?status="+e+"&year="+t,(e=>d()({path:e})));return{routes:null!=n?n:[],update:e=>{d()({path:a()+"/routes/"+e.id,method:"PATCH",data:{name:e.name,status:e.status,difficulty:e.difficulty,grading_system:e.gradingSystem,created:e.created,metas:e.metas}}).finally((()=>{r(n.map((t=>({...t.id==e.id?e:t}))))}))},add:e=>{d()({path:a()+"/routes",method:"POST",data:{name:e.name,status:e.status,difficulty:e.difficulty,grading_system:e.gradingSystem,created:e.created,metas:e.metas}}).then((e=>{r([e,...n])}))},remove:e=>{d()({path:a()+"/routes/"+e,method:"DELETE"}).then((()=>{r(n.filter((t=>t.id!=e)))}))}}})(A.status,R),L=M.find((e=>e.id==v?.routeId)),B=()=>y.current.showModal(),j=()=>y.current.close(),D=(0,i.useMemo)((()=>{const e={...ao};return h.forEach((t=>{e[t.key]=t.label})),e}),[h,ao]),z=(0,i.useMemo)((()=>Object.keys(D).filter((e=>!S.includes(e)))),[S,D]),U=(0,i.useMemo)((()=>{const e={};return Object.keys(D).forEach((t=>{S.includes(t)||(e[t]=D[t])})),e}),[S,D]),F=(e,t="")=>{const n=new URL(window.location.origin);return""!=t&&(n.pathname="route/"+t),n.searchParams.set(window.ClimbPress.votingPageParam,e+""),n.toString()};var _,V;return(0,e.createElement)("div",{className:o.component},(0,e.createElement)("div",{className:o.controls},(0,e.createElement)(no,{onClick:()=>{b({type:"edit",routeId:0}),B()}},s("New Route")),(0,e.createElement)(qr,{show:w,content:(0,e.createElement)(go,{onClick:()=>{x(!1)}},(0,e.createElement)("div",{className:o.columnsControl},(0,e.createElement)(lo,{columns:D,state:z,onChange:e=>{const t=Object.keys(D).filter((t=>!e.includes(t)));C(t)}})))},(0,e.createElement)(no,{onClick:()=>x((e=>!e)),variant:"outline"},s("Columns"))),(0,e.createElement)(qr,{show:k,content:(0,e.createElement)(go,{onClick:()=>E(!1)},(0,e.createElement)("div",{className:o.columnsControl},(0,e.createElement)("div",{className:o.yearSelectControl,onClick:()=>{P("")}},(0,e.createElement)("input",{type:"radio",checked:""==R})," ",s("All routes")),m.map((t=>(0,e.createElement)("div",{key:t,className:o.yearSelectControl,onClick:()=>{P(t)}},(0,e.createElement)("input",{type:"radio",checked:R==t})," ",t)))))},(0,e.createElement)(no,{onClick:()=>E((e=>!e)),variant:"outline"},""==R?s("All years"):R)),(0,e.createElement)(no,{onClick:()=>{return window.open((e=R,window.ClimbPress.exportUrl+(""!=e?"&year="+e:"")));var e},variant:"outline"},s("Export"))),(0,e.createElement)("dialog",{ref:y},"edit"==v?.type?L?(0,e.createElement)(mo,{route:L,systems:f,metaStructure:h,onChange:e=>{j(),I(e)},onCancel:j,onDelete:()=>{const e=s('Permanently delete "%s"?').replace("%s",L.name);confirm(e)&&(O(L.id),b({type:"edit",routeId:0}),y.current.close())}}):(0,e.createElement)(mo,{route:{id:g.current,name:"",status:"screwed-on",created:"",difficulty:null!==(n=p?.grades?.[0]?.difficulty)&&void 0!==n?n:0,gradingSystem:null!==(r=p?.id)&&void 0!==r?r:"",metas:{}},systems:f,metaStructure:h,onChange:e=>{j(),N(e),g.current--},onCancel:j}):null,"qr"==v?.type?(0,e.createElement)(go,{onClick:()=>{b(null),j()}},(0,e.createElement)(c,{text:F(v.routeId),options:{type:"image/jpeg",quality:.6,errorCorrectionLevel:"H",margin:4,scale:4,width:300}}),(0,e.createElement)("p",null,(0,e.createElement)("a",{href:F(v.routeId)},F(v.routeId)))):null,"difficulty"==v?.type&&L?(0,e.createElement)(go,{onClick:()=>{}},(0,e.createElement)(xo,{route:L})):null),(0,e.createElement)(io,{state:A,onChange:T,className:o.table,columns:U},((e,t="",n="desc")=>""===t?e:[...e].sort(((e,r)=>{const o="desc"==n?r:e,i="desc"==n?e:r;return"name"==t?o.name.localeCompare(i.name):"difficulty"==t?o.difficulty-i.difficulty:"gradingSystem"==t?o.gradingSystem.localeCompare(i.gradingSystem,"de",{sensitivity:"base"}):"created"==t?o.created.localeCompare(i.created,"de",{sensitivity:"base"}):o.metas[t]?.localeCompare(i.metas[t],"de",{sensitivity:"base"})})))(M,A.orderBy,A.orderDirection).map((t=>(0,e.createElement)(ro,{key:t.id,route:t,system:Ur(f,t.gradingSystem),columns:Object.keys(U),metaStructure:h,onClickDifficulty:()=>{b({type:"difficulty",routeId:t.id}),B()},onEditClick:()=>{b({type:"edit",routeId:t.id}),B()},onQRClick:()=>{b({type:"qr",routeId:t.id}),B()}})))))};o()((()=>{(0,i.render)((0,e.createElement)(ko,null),document.getElementById(window.ClimbPress.rootId))}))}()}();
     1!function(){var e={376:function(e){"use strict";var t={single_source_shortest_paths:function(e,n,r){var o={},i={};i[n]=0;var s,a,l,u,c,d,f,h=t.PriorityQueue.make();for(h.push(n,0);!h.empty();)for(l in a=(s=h.pop()).value,u=s.cost,c=e[a]||{})c.hasOwnProperty(l)&&(d=u+c[l],f=i[l],(void 0===i[l]||f>d)&&(i[l]=d,h.push(l,d),o[l]=a));if(void 0!==r&&void 0===i[r]){var p=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(p)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var o=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,o={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=e.sorter||r.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},654:function(e){"use strict";e.exports=function(e){for(var t=[],n=e.length,r=0;r<n;r++){var o=e.charCodeAt(r);if(o>=55296&&o<=56319&&n>r+1){var i=e.charCodeAt(r+1);i>=56320&&i<=57343&&(o=1024*(o-55296)+i-56320+65536,r+=1)}o<128?t.push(o):o<2048?(t.push(o>>6|192),t.push(63&o|128)):o<55296||o>=57344&&o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(63&o|128)):o>=65536&&o<=1114111?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(63&o|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},535:function(e,t,n){"use strict";var r=n(237),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var s=c(n);d&&(s=s.concat(d(n)));for(var a=l(t),m=l(n),g=0;g<s.length;++g){var y=s[g];if(!(i[y]||r&&r[y]||m&&m[y]||a&&a[y])){var v=f(n,y);try{u(t,y,v)}catch(e){}}}}return t}},119:function(e,t,n){const r=n(363),o=n(638),i=n(141),s=n(857);function a(e,t,n,i,s){const a=[].slice.call(arguments,1),l=a.length,u="function"==typeof a[l-1];if(!u&&!r())throw new Error("Callback required as last argument");if(!u){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=t,t=i=void 0):2!==l||t.getContext||(i=n,n=t,t=void 0),new Promise((function(r,s){try{const s=o.create(n,i);r(e(s,t,i))}catch(e){s(e)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(s=n,n=t,t=i=void 0):3===l&&(t.getContext&&void 0===s?(s=i,i=void 0):(s=i,i=n,n=t,t=void 0));try{const r=o.create(n,i);s(null,e(r,t,i))}catch(e){s(e)}}t.create=o.create,t.toCanvas=a.bind(null,i.render),t.toDataURL=a.bind(null,i.renderToDataURL),t.toString=a.bind(null,(function(e,t,n){return s.render(e,n)}))},363:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},539:function(e,t,n){const r=n(137).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=r(e),o=145===n?26:2*Math.ceil((n-13)/(2*t-2)),i=[n-7];for(let e=1;e<t-1;e++)i[e]=i[e-1]-o;return i.push(6),i.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),o=r.length;for(let e=0;e<o;e++)for(let t=0;t<o;t++)0===e&&0===t||0===e&&t===o-1||e===o-1&&0===t||n.push([r[e],r[t]]);return n}},215:function(e,t,n){const r=n(965),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(e){this.mode=r.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*o.indexOf(this.data[t]);n+=o.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=i},520:function(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},844:function(e){function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){const o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},145:function(e,t,n){const r=n(654),o=n(965);function i(e){this.mode=o.BYTE,"string"==typeof e&&(e=r(e)),this.data=new Uint8Array(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=i},944:function(e,t,n){const r=n(873),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}}},873:function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},577:function(e,t,n){const r=n(137).getSymbolSize;t.getPositions=function(e){const t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},853:function(e,t,n){const r=n(137),o=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let i=n<<10;for(;r.getBCHDigit(i)-o>=0;)i^=1335<<r.getBCHDigit(i)-o;return 21522^(n<<10|i)}},670:function(e,t){const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285);for(let e=255;e<512;e++)n[e]=n[e-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},515:function(e,t,n){const r=n(965),o=n(137);function i(e){this.mode=r.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=o.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=i},662:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function n(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let n=0,r=0,o=0,i=null,s=null;for(let a=0;a<t;a++){r=o=0,i=s=null;for(let l=0;l<t;l++){let t=e.get(a,l);t===i?r++:(r>=5&&(n+=r-5+3),i=t,r=1),t=e.get(l,a),t===s?o++:(o>=5&&(n+=o-5+3),s=t,o=1)}r>=5&&(n+=r-5+3),o>=5&&(n+=o-5+3)}return n},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let r=0;r<t-1;r++)for(let o=0;o<t-1;o++){const t=e.get(r,o)+e.get(r,o+1)+e.get(r+1,o)+e.get(r+1,o+1);4!==t&&0!==t||n++}return 3*n},t.getPenaltyN3=function(e){const t=e.size;let n=0,r=0,o=0;for(let i=0;i<t;i++){r=o=0;for(let s=0;s<t;s++)r=r<<1&2047|e.get(i,s),s>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(s,i),s>=10&&(1488===o||93===o)&&n++}return 40*n},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return 10*Math.abs(Math.ceil(100*t/n/5)-10)},t.applyMask=function(e,t){const r=t.size;for(let o=0;o<r;o++)for(let i=0;i<r;i++)t.isReserved(i,o)||t.xor(i,o,n(e,i,o))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let o=0,i=1/0;for(let s=0;s<r;s++){n(s),t.applyMask(s,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(s,e),r<i&&(i=r,o=s)}return o}},965:function(e,t,n){const r=n(499),o=n(795);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},958:function(e,t,n){const r=n(965);function o(e){this.mode=r.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const o=this.data.length-t;o>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*o+1))},e.exports=o},94:function(e,t,n){const r=n(670);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let o=0;o<e.length;o++)for(let i=0;i<t.length;i++)n[o+i]^=r.mul(e[o],t[i]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let o=0;o<t.length;o++)n[o]^=r.mul(t[o],e);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let o=0;o<e;o++)n=t.mul(n,new Uint8Array([1,r.exp(o)]));return n}},638:function(e,t,n){const r=n(137),o=n(873),i=n(520),s=n(844),a=n(539),l=n(577),u=n(662),c=n(944),d=n(460),f=n(941),h=n(853),p=n(965),m=n(660);function g(e,t,n){const r=e.size,o=h.getEncodedBits(t,n);let i,s;for(i=0;i<15;i++)s=1==(o>>i&1),i<6?e.set(i,8,s,!0):i<8?e.set(i+1,8,s,!0):e.set(r-15+i,8,s,!0),i<8?e.set(8,r-i-1,s,!0):i<9?e.set(8,15-i-1+1,s,!0):e.set(8,15-i-1,s,!0);e.set(r-8,8,1,!0)}function y(e,t,n,o){let h;if(Array.isArray(e))h=m.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let r=t;if(!r){const t=m.rawSplit(e);r=f.getBestVersionForData(t,n)}h=m.fromString(e,r||40)}}const y=f.getBestVersionForData(h,n);if(!y)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<y)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+y+".\n")}else t=y;const v=function(e,t,n){const o=new i;n.forEach((function(t){o.put(t.mode.bit,4),o.put(t.getLength(),p.getCharCountIndicator(t.mode,e)),t.write(o)}));const s=8*(r.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,t));for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);const a=(s-o.getLengthInBits())/8;for(let e=0;e<a;e++)o.put(e%2?17:236,8);return function(e,t,n){const o=r.getSymbolTotalCodewords(t),i=o-c.getTotalCodewordsCount(t,n),s=c.getBlocksCount(t,n),a=s-o%s,l=Math.floor(o/s),u=Math.floor(i/s),f=u+1,h=l-u,p=new d(h);let m=0;const g=new Array(s),y=new Array(s);let v=0;const b=new Uint8Array(e.buffer);for(let e=0;e<s;e++){const t=e<a?u:f;g[e]=b.slice(m,m+t),y[e]=p.encode(g[e]),m+=t,v=Math.max(v,t)}const w=new Uint8Array(o);let x,k,E=0;for(x=0;x<v;x++)for(k=0;k<s;k++)x<g[k].length&&(w[E++]=g[k][x]);for(x=0;x<h;x++)for(k=0;k<s;k++)w[E++]=y[k][x];return w}(o,e,t)}(t,n,h),b=r.getSymbolSize(t),w=new s(b);return function(e,t){const n=e.size,r=l.getPositions(t);for(let t=0;t<r.length;t++){const o=r[t][0],i=r[t][1];for(let t=-1;t<=7;t++)if(!(o+t<=-1||n<=o+t))for(let r=-1;r<=7;r++)i+r<=-1||n<=i+r||(t>=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(o+t,i+r,!0,!0):e.set(o+t,i+r,!1,!0))}}(w,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(w),function(e,t){const n=a.getPositions(t);for(let t=0;t<n.length;t++){const r=n[t][0],o=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)-2===t||2===t||-2===n||2===n||0===t&&0===n?e.set(r+t,o+n,!0,!0):e.set(r+t,o+n,!1,!0)}}(w,t),g(w,n,0),t>=7&&function(e,t){const n=e.size,r=f.getEncodedBits(t);let o,i,s;for(let t=0;t<18;t++)o=Math.floor(t/3),i=t%3+n-8-3,s=1==(r>>t&1),e.set(o,i,s,!0),e.set(i,o,s,!0)}(w,t),function(e,t){const n=e.size;let r=-1,o=n-1,i=7,s=0;for(let a=n-1;a>0;a-=2)for(6===a&&a--;;){for(let n=0;n<2;n++)if(!e.isReserved(o,a-n)){let r=!1;s<t.length&&(r=1==(t[s]>>>i&1)),e.set(o,a-n,r),i--,-1===i&&(s++,i=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}(w,v),isNaN(o)&&(o=u.getBestMask(w,g.bind(null,w,n))),u.applyMask(o,w),g(w,n,o),{modules:w,version:t,errorCorrectionLevel:n,maskPattern:o,segments:h}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");let n,i,s=o.M;return void 0!==t&&(s=o.from(t.errorCorrectionLevel,o.M),n=f.from(t.version),i=u.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),y(e,n,s,i)}},460:function(e,t,n){const r=n(94);function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),o=this.degree-n.length;if(o>0){const e=new Uint8Array(this.degree);return e.set(n,o),e}return n},e.exports=o},795:function(e,t){const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const i=new RegExp("^"+r+"$"),s=new RegExp("^"+n+"$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return s.test(e)},t.testAlphanumeric=function(e){return a.test(e)}},660:function(e,t,n){const r=n(965),o=n(958),i=n(215),s=n(145),a=n(515),l=n(795),u=n(137),c=n(376);function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,n){const r=[];let o;for(;null!==(o=e.exec(n));)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function h(e){const t=f(l.NUMERIC,r.NUMERIC,e),n=f(l.ALPHANUMERIC,r.ALPHANUMERIC,e);let o,i;return u.isKanjiModeEnabled()?(o=f(l.BYTE,r.BYTE,e),i=f(l.KANJI,r.KANJI,e)):(o=f(l.BYTE_KANJI,r.BYTE,e),i=[]),t.concat(n,o,i).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function p(e,t){switch(t){case r.NUMERIC:return o.getBitsLength(e);case r.ALPHANUMERIC:return i.getBitsLength(e);case r.KANJI:return a.getBitsLength(e);case r.BYTE:return s.getBitsLength(e)}}function m(e,t){let n;const l=r.getBestModeForData(e);if(n=r.from(t,l),n!==r.BYTE&&n.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(l));switch(n!==r.KANJI||u.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new o(e);case r.ALPHANUMERIC:return new i(e);case r.KANJI:return new a(e);case r.BYTE:return new s(e)}}t.fromArray=function(e){return e.reduce((function(e,t){return"string"==typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e}),[])},t.fromString=function(e,n){const o=function(e){const t=[];for(let n=0;n<e.length;n++){const o=e[n];switch(o.mode){case r.NUMERIC:t.push([o,{data:o.data,mode:r.ALPHANUMERIC,length:o.length},{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.ALPHANUMERIC:t.push([o,{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.KANJI:t.push([o,{data:o.data,mode:r.BYTE,length:d(o.data)}]);break;case r.BYTE:t.push([{data:o.data,mode:r.BYTE,length:d(o.data)}])}}return t}(h(e,u.isKanjiModeEnabled())),i=function(e,t){const n={},o={start:{}};let i=["start"];for(let s=0;s<e.length;s++){const a=e[s],l=[];for(let e=0;e<a.length;e++){const u=a[e],c=""+s+e;l.push(c),n[c]={node:u,lastCount:0},o[c]={};for(let e=0;e<i.length;e++){const s=i[e];n[s]&&n[s].node.mode===u.mode?(o[s][c]=p(n[s].lastCount+u.length,u.mode)-p(n[s].lastCount,u.mode),n[s].lastCount+=u.length):(n[s]&&(n[s].lastCount=u.length),o[s][c]=p(u.length,u.mode)+4+r.getCharCountIndicator(u.mode,t))}}i=l}for(let e=0;e<i.length;e++)o[i[e]].end=0;return{map:o,table:n}}(o,n),s=c.find_path(i.map,"start","end"),a=[];for(let e=1;e<s.length-1;e++)a.push(i.table[s[e]].node);return t.fromArray(a.reduce((function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[]))},t.rawSplit=function(e){return t.fromArray(h(e,u.isKanjiModeEnabled()))}},137:function(e,t){let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},499:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},941:function(e,t,n){const r=n(137),o=n(944),i=n(873),s=n(965),a=n(499),l=r.getBCHDigit(7973);function u(e,t){return s.getCharCountIndicator(e,t)+4}function c(e,t){let n=0;return e.forEach((function(e){const r=u(e.mode,t);n+=r+e.getBitsLength()})),n}t.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!a.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=s.BYTE);const i=8*(r.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t));if(n===s.MIXED)return i;const l=i-u(n,e);switch(n){case s.NUMERIC:return Math.floor(l/10*3);case s.ALPHANUMERIC:return Math.floor(l/11*2);case s.KANJI:return Math.floor(l/13);case s.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let r;const o=i.from(n,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(c(e,r)<=t.getCapacity(r,n,s.MIXED))return r}(e,o);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(r.mode,r.getLength(),o)},t.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<<r.getBCHDigit(t)-l;return e<<12|t}},141:function(e,t,n){const r=n(369);t.render=function(e,t,n){let o=n,i=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=r.getOptions(o);const s=r.getImageWidth(e.modules.size,o),a=i.getContext("2d"),l=a.createImageData(s,s);return r.qrToImageData(l.data,e,o),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(a,i,s),a.putImageData(l,0,0),i},t.renderToDataURL=function(e,n,r){let o=r;void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={});const i=t.render(e,n,o),s=o.type||"image/png",a=o.rendererOpts||{};return i.toDataURL(s,a.quality)}},857:function(e,t,n){const r=n(369);function o(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function i(e,t,n){let r=e+t;return void 0!==n&&(r+=" "+n),r}t.render=function(e,t,n){const s=r.getOptions(t),a=e.modules.size,l=e.modules.data,u=a+2*s.margin,c=s.color.light.a?"<path "+o(s.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",d="<path "+o(s.color.dark,"stroke")+' d="'+function(e,t,n){let r="",o=0,s=!1,a=0;for(let l=0;l<e.length;l++){const u=Math.floor(l%t),c=Math.floor(l/t);u||s||(s=!0),e[l]?(a++,l>0&&u>0&&e[l-1]||(r+=s?i("M",u+n,.5+c+n):i("m",o,0),o=0,s=!1),u+1<t&&e[l+1]||(r+=i("h",a),a=0)):o++}return r}(l,a,s.margin)+'"/>',f='viewBox="0 0 '+u+" "+u+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+f+' shape-rendering="crispEdges">'+c+d+"</svg>\n";return"function"==typeof n&&n(null,h),h}},369:function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:r,scale:r?4:o,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const o=n.modules.size,i=n.modules.data,s=t.getScale(o,r),a=Math.floor((o+2*r.margin)*s),l=r.margin*s,u=[r.color.light,r.color.dark];for(let t=0;t<a;t++)for(let n=0;n<a;n++){let c=4*(t*a+n),d=r.color.light;t>=l&&n>=l&&t<a-l&&n<a-l&&(d=u[i[Math.floor((t-l)/s)*o+Math.floor((n-l)/s)]?1:0]),e[c++]=d.r,e[c++]=d.g,e[c++]=d.b,e[c]=d.a}}},684:function(e,t){},198:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case a:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function k(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return k(e)||x(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},237:function(e,t,n){"use strict";e.exports=n(198)},603:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),e=n.hmd(e);var r=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e)},415:function(e,t,n){"use strict";var r=n(196),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return a((function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,n,t]),s((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},322:function(e,t,n){"use strict";e.exports=n(415)},196:function(e){"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=n(196),t=n.n(e),r=window.wp.domReady,o=n.n(r),i=window.wp.element;const s=e=>{var t;return null!==(t=window.ClimbPress.i18n[e])&&void 0!==t?t:`? ${e} ?`},a=()=>window.ClimbPress.RESTNamespace,l=()=>window.ClimbPress.gradingSystems,u=e=>{var t;return null!==(t=l().find((t=>t.id==e)))&&void 0!==t?t:null};var c=window.wp.apiFetch,d=n.n(c),f=n(322);const h=()=>{},p=h(),m=Object,g=e=>e===p,y=e=>"function"==typeof e,v=(e,t)=>({...e,...t}),b=new WeakMap;let w=0;const x=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(m(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=b.get(e),o)return o;if(o=++w+"~",b.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=x(e[i])+",";b.set(e,o)}if(n==m){o="#";const t=m.keys(e).sort();for(;!g(i=t.pop());)g(e[i])||(o+=i+":"+x(e[i])+",");b.set(e,o)}}return o},k=new WeakMap,E={},S={},C="undefined",R=typeof window!=C,P=typeof document!=C,A=(e,t)=>{const n=k.get(e);return[()=>!g(t)&&e.get(t)||E,r=>{if(!g(t)){const o=e.get(t);t in S||(S[t]=o),n[5](t,v(o,r),o||E)}},n[6],()=>!g(t)&&t in S?S[t]:!g(t)&&e.get(t)||E]};let T=!0;const[M,I]=R&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[h,h],N={isOnline:()=>T,isVisible:()=>{const e=P&&document.visibilityState;return g(e)||"hidden"!==e}},O={initFocus:e=>(P&&document.addEventListener("visibilitychange",e),M("focus",e),()=>{P&&document.removeEventListener("visibilitychange",e),I("focus",e)}),initReconnect:e=>{const t=()=>{T=!0,e()},n=()=>{T=!1};return M("online",t),M("offline",n),()=>{I("online",t),I("offline",n)}}},L=!e.useId,B=!R||"Deno"in window,j=B?e.useEffect:e.useLayoutEffect,D="undefined"!=typeof navigator&&navigator.connection,z=!B&&D&&(["slow-2g","2g"].includes(D.effectiveType)||D.saveData),U=e=>{if(y(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?x(e):"",t]};let F=0;const _=()=>++F;async function V(...e){const[t,n,r,o]=e,i=v({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let s=i.populateCache;const a=i.rollbackOnError;let l=i.optimisticData;const u=i.throwOnError;if(y(n)){const e=n,r=[],o=t.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(c))}return c(n);async function c(n){const[o]=U(n);if(!o)return;const[c,d]=A(t,o),[f,h,m,v]=k.get(t),b=()=>{const e=f[o];return(y(i.revalidate)?i.revalidate(c().data,n):!1!==i.revalidate)&&(delete m[o],delete v[o],e&&e[0])?e[0](2).then((()=>c().data)):c().data};if(e.length<3)return b();let w,x=r;const E=_();h[o]=[E,0];const S=!g(l),C=c(),R=C.data,P=C._c,T=g(P)?R:P;if(S&&(l=y(l)?l(T,R):l,d({data:l,_c:T})),y(x))try{x=x(T)}catch(e){w=e}if(x&&y(x.then)){if(x=await x.catch((e=>{w=e})),E!==h[o][0]){if(w)throw w;return x}w&&S&&(e=>"function"==typeof a?a(e):!1!==a)(w)&&(s=!0,d({data:T,_c:p}))}if(s&&!w)if(y(s)){const e=s(x,T);d({data:e,error:p,_c:p})}else d({data:x,error:p,_c:p});if(h[o][1]=_(),Promise.resolve(b()).then((()=>{d({_c:p})})),!w)return x;if(u)throw w}}const H=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},$=(e,t)=>{if(!k.has(e)){const n=v(O,t),r={},o=V.bind(p,e);let i=h;const s={},a=(e,t)=>{const n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,r)=>{e.set(t,n);const o=s[t];if(o)for(const e of o)e(n,r)},u=()=>{if(!k.has(e)&&(k.set(e,[r,{},{},{},o,l,a]),!B)){const t=n.initFocus(setTimeout.bind(p,H.bind(p,r,0))),o=n.initReconnect(setTimeout.bind(p,H.bind(p,r,1)));i=()=>{t&&t(),o&&o(),k.delete(e)}}};return u(),[e,o,u,i]}return[e,k.get(e)[4]]},[q,W]=$(new Map),J=v({onLoadingSlow:h,onSuccess:h,onError:h,onErrorRetry:(e,__,t,n,r)=>{const o=t.errorRetryCount,i=r.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*t.errorRetryInterval;!g(o)&&i>o||setTimeout(n,s,r)},onDiscarded:h,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:z?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:z?5e3:3e3,compare:(e,t)=>x(e)==x(t),isPaused:()=>!1,cache:q,mutate:W,fallback:{}},N),Y=(e,t)=>{const n=v(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:s}=t;r&&i&&(n.use=r.concat(i)),o&&s&&(n.fallback=v(o,s))}return n},Z=(0,e.createContext)({}),K=R&&window.__SWR_DEVTOOLS_USE__,G=K?window.__SWR_DEVTOOLS_USE__:[],Q=G.concat((e=>(t,n,r)=>{const o=n&&((...e)=>{const[r]=U(t),[,,,o]=k.get(q);if(r.startsWith("$inf$"))return n(...e);const i=o[r];return g(i)?n(...e):(delete o[r],i)});return e(t,o,r)}));K&&(window.__SWR_DEVTOOLS_REACT__=e);const X=e.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),ee={dedupe:!0},te=(m.defineProperty((t=>{const{value:n}=t,r=(0,e.useContext)(Z),o=y(n),i=(0,e.useMemo)((()=>o?n(r):n),[o,r,n]),s=(0,e.useMemo)((()=>o?i:Y(r,i)),[o,r,i]),a=i&&i.provider,l=(0,e.useRef)(p);a&&!l.current&&(l.current=$(a(s.cache||q),i));const u=l.current;return u&&(s.cache=u[0],s.mutate=u[1]),j((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),(0,e.createElement)(Z.Provider,v(t,{value:s}))}),"defaultValue",{value:J}),ne=(t,n,r)=>{const{cache:o,compare:i,suspense:s,fallbackData:a,revalidateOnMount:l,revalidateIfStale:u,refreshInterval:c,refreshWhenHidden:d,refreshWhenOffline:h,keepPreviousData:m}=r,[b,w,x,E]=k.get(o),[S,P]=U(t),T=(0,e.useRef)(!1),M=(0,e.useRef)(!1),I=(0,e.useRef)(S),N=(0,e.useRef)(n),O=(0,e.useRef)(r),D=()=>O.current,z=()=>D().isVisible()&&D().isOnline(),[F,H,$,q]=A(o,S),W=(0,e.useRef)({}).current,J=g(a)?r.fallback[S]:a,Y=(e,t)=>{for(const n in W){const r=n;if("data"===r){if(!i(e[r],t[r])){if(!g(e[r]))return!1;if(!i(ie,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},Z=(0,e.useMemo)((()=>{const e=!!S&&!!n&&(g(l)?!D().isPaused()&&!s&&(!!g(u)||u):l),t=t=>{const n=v(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=F(),o=q(),i=t(r),a=r===o?i:t(o);let c=i;return[()=>{const e=t(F());return Y(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>a]}),[o,S]),K=(0,f.useSyncExternalStore)((0,e.useCallback)((e=>$(S,((t,n)=>{Y(n,t)||e()}))),[o,S]),Z[0],Z[1]),G=!T.current,Q=b[S]&&b[S].length>0,te=K.data,ne=g(te)?J:te,re=K.error,oe=(0,e.useRef)(ne),ie=m?g(te)?oe.current:te:ne,se=!(Q&&!g(re))&&(G&&!g(l)?l:!D().isPaused()&&(s?!g(ne)&&u:g(ne)||u)),ae=!!(S&&n&&G&&se),le=g(K.isValidating)?ae:K.isValidating,ue=g(K.isLoading)?ae:K.isLoading,ce=(0,e.useCallback)((async e=>{const t=N.current;if(!S||!t||M.current||D().isPaused())return!1;let n,o,s=!0;const a=e||{},l=!x[S]||!a.dedupe,u=()=>L?!M.current&&S===I.current&&T.current:S===I.current,c={isValidating:!1,isLoading:!1},d=()=>{H(c)},f=()=>{const e=x[S];e&&e[1]===o&&delete x[S]},h={isValidating:!0};g(F().data)&&(h.isLoading=!0);try{if(l&&(H(h),r.loadingTimeout&&g(F().data)&&setTimeout((()=>{s&&u()&&D().onLoadingSlow(S,r)}),r.loadingTimeout),x[S]=[t(P),_()]),[n,o]=x[S],n=await n,l&&setTimeout(f,r.dedupingInterval),!x[S]||x[S][1]!==o)return l&&u()&&D().onDiscarded(S),!1;c.error=p;const e=w[S];if(!g(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return d(),l&&u()&&D().onDiscarded(S),!1;const a=F().data;c.data=i(a,n)?a:n,l&&u()&&D().onSuccess(n,S,r)}catch(e){f();const t=D(),{shouldRetryOnError:n}=t;t.isPaused()||(c.error=e,l&&u()&&(t.onError(e,S,t),(!0===n||y(n)&&n(e))&&(D().revalidateOnFocus&&D().revalidateOnReconnect&&!z()||t.onErrorRetry(e,S,t,(e=>{const t=b[S];t&&t[0]&&t[0](3,e)}),{retryCount:(a.retryCount||0)+1,dedupe:!0}))))}return s=!1,d(),!0}),[S,o]),de=(0,e.useCallback)(((...e)=>V(o,I.current,...e)),[]);if(j((()=>{N.current=n,O.current=r,g(te)||(oe.current=te)})),j((()=>{if(!S)return;const e=ce.bind(p,ee);let t=0;const n=((e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(S,b,((n,r={})=>{if(0==n){const n=Date.now();D().revalidateOnFocus&&n>t&&z()&&(t=n+D().focusThrottleInterval,e())}else if(1==n)D().revalidateOnReconnect&&z()&&e();else{if(2==n)return ce();if(3==n)return ce(r)}}));return M.current=!1,I.current=S,T.current=!0,H({_k:P}),se&&(g(ne)||B?e():(r=e,R&&typeof window.requestAnimationFrame!=C?window.requestAnimationFrame(r):setTimeout(r,1))),()=>{M.current=!0,n()};var r}),[S]),j((()=>{let e;function t(){const t=y(c)?c(F().data):c;t&&-1!==e&&(e=setTimeout(n,t))}function n(){F().error||!d&&!D().isVisible()||!h&&!D().isOnline()?t():ce(ee).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[c,d,h,S]),(0,e.useDebugValue)(ie),s&&g(ne)&&S){if(!L&&B)throw new Error("Fallback data is required when using suspense in SSR.");N.current=n,O.current=r,M.current=!1;const e=E[S];if(!g(e)){const t=de(e);X(t)}if(!g(re))throw re;{const e=ce(ee);g(ie)||(e.status="fulfilled",e.value=!0),X(e)}}return{mutate:de,get data(){return W.data=!0,ie},get error(){return W.error=!0,re},get isValidating(){return W.isValidating=!0,le},get isLoading(){return W.isLoading=!0,ue}}},function(...t){const n=v(J,(0,e.useContext)(Z)),[r,o,i]=(e=>y(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(t),s=Y(n,i);let a=ne;const{use:l}=s,u=(l||[]).concat(Q);for(let e=u.length;e--;)a=u[e](a);return a(r,o||s.fetcher||null,s)});var ne;function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},re.apply(this,arguments)}function oe(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n(535);function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(){return se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},se.apply(this,arguments)}function ae(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(684);var le,ue=(0,e.createContext)(),ce=(function(e){}(le=ue),function(e){}(le),function(e){var n=function(n){var r,o;function i(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return ie(ae(ae(r=n.call.apply(n,[this].concat(i))||this)),"cachedTheme",void 0),ie(ae(ae(r)),"lastOuterTheme",void 0),ie(ae(ae(r)),"lastTheme",void 0),ie(ae(ae(r)),"renderProvider",(function(n){var o=r.props.children;return t().createElement(e.Provider,{value:r.getTheme(n)},o)})),r}o=n,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var s=i.prototype;return s.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,"function"==typeof this.lastTheme){var t=this.props.theme;this.cachedTheme=t(e)}else{var n=this.props.theme;this.cachedTheme=e?se({},e,n):n}return this.cachedTheme},s.render=function(){return this.props.children?t().createElement(e.Consumer,null,this.renderProvider):null},i}(t().Component)}(le),"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),de="object"===("undefined"==typeof window?"undefined":ce(window))&&"object"===("undefined"==typeof document?"undefined":ce(document))&&9===document.nodeType;function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function he(e){var t=function(e,t){if("object"!==fe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==fe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===fe(t)?t:String(t)}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,he(r.key),r)}}function me(e,t,n){return t&&pe(e.prototype,t),n&&pe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ge(e,t){return ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ge(e,t)}function ye(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ge(e,t)}function ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var be={}.constructor;function we(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(we);if(e.constructor!==be)return e;var t={};for(var n in e)t[n]=we(e[n]);return t}function xe(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=we(t);return r.plugins.onCreateRule(e,o,n)||(e[0],null)}var ke=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Ee=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=ke(e[n]," ");else t=ke(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Se(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Ce(e,t){for(var n="",r=0;r<t;r++)n+="  ";return n+e}function Re(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,s=t.fallbacks;!1===n.format&&(i=-1/0);var a=Se(n),l=a.linebreak,u=a.space;if(e&&i++,s)if(Array.isArray(s))for(var c=0;c<s.length;c++){var d=s[c];for(var f in d){var h=d[f];null!=h&&(r&&(r+=l),r+=Ce(f+":"+u+Ee(h)+";",i))}}else for(var p in s){var m=s[p];null!=m&&(r&&(r+=l),r+=Ce(p+":"+u+Ee(m)+";",i))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=Ce(g+":"+u+Ee(y)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Ce(""+e+u+"{"+r,--i)+Ce("}",i)):r}var Pe=/([[\].#*$><+~=|^:(),"'`\s])/g,Ae="undefined"!=typeof CSS&&CSS.escape,Te=function(e){return Ae?Ae(e):e.replace(Pe,"\\$1")},Me=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,s=e in this.style;if(i&&!s&&!r)return this;var a=i&&s;if(a?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Ie=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,s=r.scoped,a=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==s&&(o.id=l(ve(ve(o)),a),o.selectorText="."+Te(o.id)),o}ye(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Ee(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?re({},e,{allowEmpty:!0}):e;return Re(this.selectorText,this.style,n)},me(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(Me),Ne={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Ie(e,t,n)}},Oe={indent:1,children:!0},Le=/@([\w-]+)/,Be=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Le);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new it(re({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Oe);var t=Se(e).linebreak;if(null==e.indent&&(e.indent=Oe.indent),null==e.children&&(e.children=Oe.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),je=/@container|@media|@supports\s+/,De={onCreateRule:function(e,t,n){return je.test(e)?new Be(e,t,n):null}},ze={indent:1,children:!0},Ue=/@keyframes\s+([\w-]+)/,Fe=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Ue);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,s=n.generateId;for(var a in this.id=!1===o?this.name:Te(s(this,i)),this.rules=new it(re({},n,{parent:this})),t)this.rules.add(a,t[a],re({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=ze);var t=Se(e).linebreak;if(null==e.indent&&(e.indent=ze.indent),null==e.children&&(e.children=ze.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),_e=/@keyframes\s+/,Ve=/\$([\w-]+)/g,He=function(e,t){return"string"==typeof e?e.replace(Ve,(function(e,n){return n in t?t[n]:e})):e},$e=function(e,t,n){var r=e[t],o=He(r,n);o!==r&&(e[t]=o)},qe={onCreateRule:function(e,t,n){return"string"==typeof e&&_e.test(e)?new Fe(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&$e(e,"animation-name",n.keyframes),"animation"in e&&$e(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return He(e,r.keyframes);default:return e}}},We=function(e){function t(){return e.apply(this,arguments)||this}return ye(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?re({},e,{allowEmpty:!0}):e;return Re(this.key,this.style,n)},t}(Me),Je={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new We(e,t,n):null}},Ye=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=Se(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Re(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Re(this.at,this.style,e)},e}(),Ze=/@font-face/,Ke={onCreateRule:function(e,t,n){return Ze.test(e)?new Ye(e,t,n):null}},Ge=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Re(this.key,this.style,e)},e}(),Qe={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Ge(e,t,n):null}},Xe=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),et={"@charset":!0,"@import":!0,"@namespace":!0},tt={onCreateRule:function(e,t,n){return e in et?new Xe(e,t,n):null}},nt=[Ne,De,qe,Je,Ke,Qe,tt],rt={process:!0},ot={force:!0,process:!0},it=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,s=r.jss,a=r.Renderer,l=r.generateId,u=r.scoped,c=re({classes:this.classes,parent:o,sheet:i,jss:s,Renderer:a,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+Te(this.classes[d]));var f=xe(d,t,c);if(!f)return null;this.register(f);var h=void 0===c.index?this.index.length:c.index;return this.index.splice(h,0,f),f},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=re({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Ie?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Fe&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Ie?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Fe&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=rt);var o=this.options,i=o.jss.plugins,s=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var a=t.style;if(i.onUpdate(n,t,s,r),r.process&&a&&a!==t.style){for(var l in i.onProcessStyle(t.style,t,s),t.style){var u=t.style[l];u!==a[l]&&t.prop(l,u,ot)}for(var c in a){var d=t.style[c],f=a[c];null==d&&d!==f&&t.prop(c,null,ot)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=Se(e).linebreak,i=0;i<this.index.length;i++){var s=this.index[i].toString(e);(s||r)&&(t&&(t+=o),t+=s)}return t},e}(),st=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=re({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new it(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),at=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),lt=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=oe(t,["attached"]),o=Se(r).linebreak,i="",s=0;s<this.registry.length;s++){var a=this.registry[s];null!=n&&a.attached!==n||(i&&(i+=o),i+=a.toString(r))}return i},me(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ut=new lt,ct="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),dt="2f1acc6c3a606b082e5eef5e54414ffb";null==ct[dt]&&(ct[dt]=0);var ft=ct[dt]++,ht=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+ft+o+t:i+n.key+"-"+ft+(o?"-"+o:"")+"-"+t}},pt=function(e){var t;return function(){return t||(t=e()),t}},mt=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},gt=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Ee(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},yt=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},vt=function(e,t){return e.selectorText=t,e.selectorText===t},bt=pt((function(){return document.querySelector("head")}));var wt=pt((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),xt=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},kt=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Et=function(){function e(e){this.getPropertyValue=mt,this.setProperty=gt,this.removeProperty=yt,this.setSelector=vt,this.hasInsertedRules=!1,this.cssRules=[],e&&ut.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=wt();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=ut.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=bt(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else bt().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=kt(n,t);if(!1===(o=xt(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var s=e.toString();if(!s)return!1;var a=kt(n,t),l=xt(n,s,a);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,a,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof st&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),St=0,Ct=function(){function e(e){this.id=St++,this.version="10.10.0",this.plugins=new at,this.options={id:{minify:!1},createGenerateId:ht,Renderer:de?Et:null,plugins:[]},this.generateId=ht({minify:!1});for(var t=0;t<nt.length;t++)this.plugins.use(nt[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=re({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===ut.index?0:ut.index+1);var r=new st(e,re({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),ut.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=re({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=xe(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Rt=function(e){return new Ct(e)},Pt=function(){function e(){this.length=0,this.sheets=new WeakMap}var t=e.prototype;return t.get=function(e){var t=this.sheets.get(e);return t&&t.sheet},t.add=function(e,t){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:t,refs:0}))},t.manage=function(e){var t=this.sheets.get(e);if(t)return 0===t.refs&&t.sheet.attach(),t.refs++,t.sheet},t.unmanage=function(e){var t=this.sheets.get(e);t&&t.refs>0&&(t.refs--,0===t.refs&&t.sheet.detach())},me(e,[{key:"size",get:function(){return this.length}}]),e}(),At="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Tt(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Tt(r);i&&(t||(t={}),t[n]=i)}}return t}Rt();var Mt=Date.now(),It="fnValues"+Mt,Nt="fnStyle"+ ++Mt,Ot=n(603),Lt=function(e){return e&&e[Ot.Z]&&e===e[Ot.Z]()},Bt=/;\n/,jt=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},n=e.split(Bt),r=0;r<n.length;r++){var o=(n[r]||"").trim();if(o){var i=o.indexOf(":");if(-1!==i){var s=o.substr(0,i).trim(),a=o.substr(i+1).trim();t[s]=a}}}return t}(e.style))},Dt="@global",zt=function(){function e(e,t,n){for(var r in this.type="global",this.at=Dt,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new it(re({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Ut=function(){function e(e,t,n){this.type="global",this.at=Dt,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,re({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ft=/\s*,\s*/g;function _t(e,t){for(var n=e.split(Ft),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var Vt=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},Ht="extendCurrValue"+Date.now();function $t(e,t,n,r){return void 0===r&&(r={}),function(e,t,n,r){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var o=0;o<e.extend.length;o++){var i=e.extend[o];$t("string"==typeof i?re({},e,{extend:i}):e.extend[o],t,n,r)}else for(var s in e.extend)"extend"!==s?Vt(e.extend[s])?(s in r||(r[s]={}),$t(e.extend[s],t,n,r[s])):r[s]=e.extend[s]:$t(e.extend.extend,t,n,r);else{if(!n)return;var a=n.getRule(e.extend);if(!a)return;if(a===t)return;var l=a.options.parent;l&&$t(l.rules.raw[e.extend],t,n,r)}}(e,t,n,r),function(e,t,n,r){for(var o in e)"extend"!==o&&(Vt(r[o])&&Vt(e[o])?$t(e[o],t,n,r[o]):Vt(e[o])?r[o]=$t(e[o],t,n):r[o]=e[o])}(e,t,n,r),r}var qt=function(){return{onProcessStyle:function(e,t,n){return"extend"in e?$t(e,t,n):e},onChangeValue:function(e,t,n){if("extend"!==t)return e;if(null==e||!1===e){for(var r in n[Ht])n.prop(r,null);return n[Ht]=null,null}if("object"==typeof e){for(var o in e)n.prop(o,e[o]);n[Ht]=e}return null}}},Wt=/\s*,\s*/g,Jt=/&/g,Yt=/\$([\w-]+)/g,Zt=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(Wt),r=e.split(Wt),o="",i=0;i<n.length;i++)for(var s=n[i],a=0;a<r.length;a++){var l=r[a];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Jt,s):s+" "+l}return o}function n(e,t,n){if(n)return re({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=re({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var s,a,l=o,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),f="@"===c[0];if(d||f){if(s=n(l,u,s),d){var h=t(c,l.selector);a||(a=e(u,i)),h=h.replace(Yt,a);var p=l.key+"-"+c;"replaceRule"in u?u.replaceRule(p,r[c],re({},s,{selector:h})):u.addRule(p,r[c],re({},s,{selector:h}))}else f&&u.addRule(c,{},s).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}};function Kt(e,t){if(!t)return!0;if(Array.isArray(t)){for(var n=0;n<t.length;n++)if(!Kt(e,t[n]))return!1;return!0}if(t.indexOf(" ")>-1)return Kt(e,t.split(" "));var r=e.options.parent;if("$"===t[0]){var o=r.getRule(t.substr(1));return!!o&&o!==e&&(r.classes[e.key]+=" "+r.classes[o.key],!0)}return r.classes[e.key]+=" "+t,!0}var Gt=function(){return{onProcessStyle:function(e,t){return"composes"in e?(Kt(t,e.composes),delete e.composes,e):e}}},Qt=/[A-Z]/g,Xt=/^ms-/,en={};function tn(e){return"-"+e.toLowerCase()}var nn=function(e){if(en.hasOwnProperty(e))return en[e];var t=e.replace(Qt,tn);return en[e]=Xt.test(t)?"-"+t:t};function rn(e){var t={};for(var n in e)t[0===n.indexOf("--")?n:nn(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(rn):t.fallbacks=rn(e.fallbacks)),t}var on=At&&CSS?CSS.px:"px",sn=At&&CSS?CSS.ms:"ms",an=At&&CSS?CSS.percent:"%";function ln(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var un=ln({"animation-delay":sn,"animation-duration":sn,"background-position":on,"background-position-x":on,"background-position-y":on,"background-size":on,border:on,"border-bottom":on,"border-bottom-left-radius":on,"border-bottom-right-radius":on,"border-bottom-width":on,"border-left":on,"border-left-width":on,"border-radius":on,"border-right":on,"border-right-width":on,"border-top":on,"border-top-left-radius":on,"border-top-right-radius":on,"border-top-width":on,"border-width":on,"border-block":on,"border-block-end":on,"border-block-end-width":on,"border-block-start":on,"border-block-start-width":on,"border-block-width":on,"border-inline":on,"border-inline-end":on,"border-inline-end-width":on,"border-inline-start":on,"border-inline-start-width":on,"border-inline-width":on,"border-start-start-radius":on,"border-start-end-radius":on,"border-end-start-radius":on,"border-end-end-radius":on,margin:on,"margin-bottom":on,"margin-left":on,"margin-right":on,"margin-top":on,"margin-block":on,"margin-block-end":on,"margin-block-start":on,"margin-inline":on,"margin-inline-end":on,"margin-inline-start":on,padding:on,"padding-bottom":on,"padding-left":on,"padding-right":on,"padding-top":on,"padding-block":on,"padding-block-end":on,"padding-block-start":on,"padding-inline":on,"padding-inline-end":on,"padding-inline-start":on,"mask-position-x":on,"mask-position-y":on,"mask-size":on,height:on,width:on,"min-height":on,"max-height":on,"min-width":on,"max-width":on,bottom:on,left:on,top:on,right:on,inset:on,"inset-block":on,"inset-block-end":on,"inset-block-start":on,"inset-inline":on,"inset-inline-end":on,"inset-inline-start":on,"box-shadow":on,"text-shadow":on,"column-gap":on,"column-rule":on,"column-rule-width":on,"column-width":on,"font-size":on,"font-size-delta":on,"letter-spacing":on,"text-decoration-thickness":on,"text-indent":on,"text-stroke":on,"text-stroke-width":on,"word-spacing":on,motion:on,"motion-offset":on,outline:on,"outline-offset":on,"outline-width":on,perspective:on,"perspective-origin-x":an,"perspective-origin-y":an,"transform-origin":an,"transform-origin-x":an,"transform-origin-y":an,"transform-origin-z":an,"transition-delay":sn,"transition-duration":sn,"vertical-align":on,"flex-basis":on,"shape-margin":on,size:on,gap:on,grid:on,"grid-gap":on,"row-gap":on,"grid-row-gap":on,"grid-column-gap":on,"grid-template-rows":on,"grid-template-columns":on,"grid-auto-rows":on,"grid-auto-columns":on,"box-shadow-x":on,"box-shadow-y":on,"box-shadow-blur":on,"box-shadow-spread":on,"font-line-height":on,"text-shadow-x":on,"text-shadow-y":on,"text-shadow-blur":on});function cn(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=cn(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=cn(o,t[o],n);else for(var i in t)t[i]=cn(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var s=n[e]||un[e];return!s||0===t&&s===on?t.toString():"function"==typeof s?s(t).toString():""+t+s}return t}var dn=function(e){void 0===e&&(e={});var t=ln(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=cn(r,e[r],t);return e},onChangeValue:function(e,n){return cn(n,e,t)}}},fn={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},hn={position:!0,size:!0},pn={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},mn={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function gn(e,t,n,r){return null==n[t]?e:0===e.length?[]:Array.isArray(e[0])?gn(e[0],t,n,r):"object"==typeof e[0]?function(e,t,n){return e.map((function(e){return yn(e,t,n,!1,!0)}))}(e,t,r):[e]}function yn(e,t,n,r,o){if(!pn[t]&&!mn[t])return[];var i=[];if(mn[t]&&(e=function(e,t,n,r){for(var o in n){var i=n[o];if(void 0!==e[o]&&(r||!t.prop(i))){var s,a=vn((s={},s[i]=e[o],s),t)[i];r?t.style.fallbacks[i]=a:t.style[i]=a}delete e[o]}return e}(e,n,mn[t],r)),Object.keys(e).length)for(var s in pn[t])e[s]?Array.isArray(e[s])?i.push(null===hn[s]?e[s]:e[s].join(" ")):i.push(e[s]):null!=pn[t][s]&&i.push(pn[t][s]);return!i.length||o?i:[i]}function vn(e,t,n){for(var r in e){var o=e[r];if(Array.isArray(o)){if(!Array.isArray(o[0])){if("fallbacks"===r){for(var i=0;i<e.fallbacks.length;i++)e.fallbacks[i]=vn(e.fallbacks[i],t,!0);continue}e[r]=gn(o,r,fn,t),e[r].length||delete e[r]}}else if("object"==typeof o){if("fallbacks"===r){e.fallbacks=vn(e.fallbacks,t,!0);continue}e[r]=yn(o,r,t,n),e[r].length||delete e[r]}else""===e[r]&&delete e[r]}return e}function bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wn="",xn="",kn="",En="",Sn=de&&"ontouchstart"in document.documentElement;if(de){var Cn={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Rn=document.createElement("p").style;for(var Pn in Cn)if(Pn+"Transform"in Rn){wn=Pn,xn=Cn[Pn];break}"Webkit"===wn&&"msHyphens"in Rn&&(wn="ms",xn=Cn.ms,En="edge"),"Webkit"===wn&&"-apple-trailing-word"in Rn&&(kn="apple")}var An=wn,Tn=xn,Mn=kn,In=En,Nn=Sn,On={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===An?"-webkit-"+e:Tn+e)}},Ln={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===An?Tn+"print-"+e:e)}},Bn=/[-\s]+(.)?/g;function jn(e,t){return t?t.toUpperCase():""}function Dn(e){return e.replace(Bn,jn)}function zn(e){return Dn("-"+e)}var Un,Fn={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===An){var n="mask-image";if(Dn(n)in t)return e;if(An+zn(n)in t)return Tn+e}return e}},Vn={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Mn||Nn?e:Tn+e)}},Hn={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Tn+e)}},$n={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Tn+e)}},qn={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===An||"ms"===An&&"edge"!==In?Tn+e:e)}},Wn={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===An||"ms"===An||"apple"===Mn?Tn+e:e)}},Jn={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===An?"WebkitColumn"+zn(e)in t&&Tn+"column-"+e:"Moz"===An&&"page"+zn(e)in t&&"page-"+e)}},Yn={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===An)return e;var n=e.replace("-inline","");return An+zn(n)in t&&Tn+n}},Zn={supportedProperty:function(e,t){return Dn(e)in t&&e}},Kn={supportedProperty:function(e,t){var n=zn(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:An+n in t?Tn+e:"Webkit"!==An&&"Webkit"+n in t&&"-webkit-"+e}},Gn={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===An?""+Tn+e:e)}},Qn={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===An?Tn+"scroll-chaining":e)}},Xn={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},er={supportedProperty:function(e,t){var n=Xn[e];return!!n&&An+zn(n)in t&&Tn+n}},tr={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},nr=Object.keys(tr),rr=function(e){return Tn+e},or={supportedProperty:function(e,t,n){var r=n.multiple;if(nr.indexOf(e)>-1){var o=tr[e];if(!Array.isArray(o))return An+zn(o)in t&&Tn+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(An+zn(o[0])in t))return!1;return o.map(rr)}return!1}},ir=[On,Ln,Fn,Vn,Hn,$n,qn,Wn,Jn,Yn,Zn,Kn,Gn,Qn,er,or],sr=ir.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),ar=ir.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,function(e){if(Array.isArray(e))return bn(e)}(n=t.noPrefill)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bn(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),e;var n}),[]),lr={};if(de){Un=document.createElement("p");var ur=window.getComputedStyle(document.documentElement,"");for(var cr in ur)isNaN(cr)||(lr[ur[cr]]=ur[cr]);ar.forEach((function(e){return delete lr[e]}))}function dr(e,t){if(void 0===t&&(t={}),!Un)return e;if(null!=lr[e])return lr[e];"transition"!==e&&"transform"!==e||(t[e]=e in Un.style);for(var n=0;n<sr.length&&(lr[e]=sr[n](e,Un.style,t),!lr[e]);n++);try{Un.style[e]=""}catch(e){return!1}return lr[e]}var fr,hr={},pr={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},mr=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function gr(e,t,n){return"var"===t?"var":"all"===t?"all":"all"===n?", all":(t?dr(t):", "+dr(n))||t||n}function yr(e,t){var n=t;if(!fr||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=hr[r])return hr[r];try{fr.style[e]=n}catch(e){return hr[r]=!1,!1}if(pr[e])n=n.replace(mr,gr);else if(""===fr.style[e]&&("-ms-flex"===(n=Tn+n)&&(fr.style[e]="-ms-flexbox"),fr.style[e]=n,""===fr.style[e]))return hr[r]=!1,!1;return fr.style[e]="",hr[r]=n,hr[r]}de&&(fr=document.createElement("p"));var vr=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=dr(n);i&&i!==n&&(o=!0);var s=!1,a=yr(i,Ee(r));a&&a!==r&&(s=!0),(o||s)&&(o&&delete t[n],t[i||n]=a||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===An?e:"@"+Tn+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return yr(t,Ee(e))||e}}},br=function(e){return void 0===e&&(e={}),{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=xe(e,{},n);return r[Nt]=t,r},onProcessStyle:function(e,t){if(It in t||Nt in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[It]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Nt];i&&(o.style=i(e)||{});var s=o[It];if(s)for(var a in s)o.prop(a,s[a](e),r)}},(n=e.observable,{onCreateRule:function(e,t,r){if(!Lt(t))return null;var o=t,i=xe(e,{},r);return o.subscribe((function(e){for(var t in e)i.prop(t,e[t],n)})),i},onProcessRule:function(e){if(!e||"style"===e.type){var t=e,r=t.style,o=function(e){var o=r[e];if(!Lt(o))return"continue";delete r[e],o.subscribe({next:function(r){t.prop(e,r,n)}})};for(var i in r)o(i)}}}),{onProcessRule:jt},{onCreateRule:function(e,t,n){if(!e)return null;if(e===Dt)return new zt(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,8))return new Ut(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Dt]:null;if(o){for(var i in o)t.addRule(i,o[i],re({},n,{selector:_t(i,e.selector)}));delete r[Dt]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===Dt){var i=_t(o.substr(7),e.selector);t.addRule(i,r[o],re({},n,{selector:i})),delete r[o]}}(e,t))}},qt(),Zt(),Gt(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=rn(e[t]);return e}return rn(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=nn(t);return t===r?e:(n.prop(r,e),null)}},dn(e.defaultUnit),{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var n=0;n<e.length;n++)e[n]=vn(e[n],t);return e}return vn(e,t)}},vr(),(t=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r={},o=Object.keys(e).sort(t),i=0;i<o.length;i++)r[o[i]]=e[o[i]];return r}})]};var t,n},wr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,xr=(function(e){var t={}}((function(e){return wr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Rt(br())),kr=function(e){void 0===e&&(e=xr);var t,n=new Map,r=0,o=function(){return(!t||t.rules.index.length>1e4)&&(t=e.createStyleSheet().attach()),t};function i(){var e=arguments,t=JSON.stringify(e),i=n.get(t);if(i)return i.className;var s=[];for(var a in e){var l=e[a];if(Array.isArray(l))for(var u=0;u<l.length;u++)s.push(l[u]);else s.push(l)}for(var c={},d=[],f=0;f<s.length;f++){var h=s[f];if(h){var p=h;if("string"==typeof h){var m=n.get(h);m&&(m.labels.length&&d.push.apply(d,m.labels),p=m.style)}p.label&&-1===d.indexOf(p.label)&&d.push(p.label),Object.assign(c,p)}}delete c.label;var g=(0===d.length?"css":d.join("-"))+"-"+r++;o().addRule(g,c);var y=o().classes[g],v={style:c,labels:d,className:y};return n.set(t,v),n.set(y,v),y}return i.getSheet=o,i}(),Er=kr,Sr=Number.MIN_SAFE_INTEGER||-1e9,Cr=(0,e.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!de}),Rr=new Map,Pr=function(e,t){var n=e.managers;if(n)return n[t]||(n[t]=new Pt),n[t];var r=Rr.get(t);return r||(r=new Pt,Rr.set(t,r)),r},Ar=function(e){var t=e.sheet,n=e.context,r=e.index,o=e.theme;t&&(Pr(n,r).manage(o),n.registry&&n.registry.add(t))},Tr=Rt(br()),Mr=new WeakMap,Ir=function(e){return Mr.get(e)},Nr=function(e){if(!e.context.disableStylesGeneration){var t=Pr(e.context,e.index),n=t.get(e.theme);if(n)return n;var r=e.context.jss||Tr,o=function(e){var t=e.styles;return"function"!=typeof t?t:t(e.theme)}(e),i=Tt(o),s=r.createStyleSheet(o,function(e,t){var n;e.context.id&&null!=e.context.id.minify&&(n=e.context.id.minify);var r=e.context.classNamePrefix||"";e.name&&!n&&(r+=e.name.replace(/\s/g,"-")+"-");var o="";return e.name&&(o=e.name+", "),o+="function"==typeof e.styles?"Themed":"Unthemed",re({},e.sheetOptions,{index:e.index,meta:o,classNamePrefix:r,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}(e,null!==i));return function(e,t){Mr.set(e,t)}(s,{dynamicStyles:i,styles:o}),t.add(e.theme,s),s}},Or=function(e,t){var n=Ir(e);if(n){var r={};for(var o in n.dynamicStyles)for(var i=e.rules.index.length,s=e.addRule(o,n.dynamicStyles[o]),a=i;a<e.rules.index.length;a++){var l=e.rules.index[a];e.updateOne(l,t),r[s===l?o:l.key]=l}return r}};function Lr(n){return n?e.useEffect:t().useInsertionEffect||e.useLayoutEffect}var Br={},jr=function(t,n){void 0===n&&(n={});var r=n,o=r.index,i=void 0===o?Sr++:o,s=r.theming,a=r.name,l=oe(r,["index","theming","name"]),u=s&&s.context||ue,c={};return function(n){var r=(0,e.useRef)(!0),o=(0,e.useContext)(Cr),s=function(n){return"function"==typeof t&&(n||(0,e.useContext)(u))||Br}(n&&n.theme),d=(0,e.useMemo)((function(){var e=Nr({context:o,styles:t,name:a,theme:s,index:i,sheetOptions:l});return e&&o.isSSR&&Ar({index:i,context:o,sheet:e,theme:s}),[e,e?Or(e,n):null]}),[o,s]),f=d[0],h=d[1];Lr(o.isSSR)((function(){f&&h&&!r.current&&function(e,t,n){for(var r in n)t.updateOne(n[r],e)}(n,f,h)}),[n]),Lr(o.isSSR)((function(){return f&&Ar({index:i,context:o,sheet:f,theme:s}),function(){f&&(function(e){e.sheet&&Pr(e.context,e.index).unmanage(e.theme)}({index:i,context:o,sheet:f,theme:s}),h&&function(e,t){for(var n in t)e.deleteRule(t[n])}(f,h))}}),[f]);var p=(0,e.useMemo)((function(){return f&&h?function(e,t){if(!t)return e.classes;var n=Ir(e);if(!n)return e.classes;var r={};for(var o in n.styles)r[o]=e.classes[o],o in t&&(r[o]+=" "+e.classes[t[o].key]);return r}(f,h):c}),[f,h]);return(0,e.useDebugValue)(p),(0,e.useDebugValue)(s===Br?"No theme":s),(0,e.useEffect)((function(){r.current=!1})),p}};Symbol("react-jss-styled"),function(e){void 0===e&&(e=Er)}();const Dr=jr({component:{},columnsControl:{padding:10,background:"white",width:180,border:"1px solid black"},controls:{display:"flex",gap:10},yearSelectControl:{padding:10,cursor:"pointer"},table:{width:"100%"}}),zr="climbpress-route-table-columns",Ur=(e,t)=>e.find((e=>e.id==t)),Fr=(e,t)=>{let n=-1,r=-1;return t.grades.forEach(((t,o)=>{const i=Math.abs(t.difficulty-e);(r<0||r>i)&&(r=i,n=o)})),t.grades[n]},_r={neutral50:"#FAFAFA",neutral100:"#F5F5F5",neutral200:"#EEEEEE",neutral300:"#E0E0E0",neutral400:"#BDBDBD",neutral500:"#9E9E9E",neutral600:"#757575",neutral700:"#616161",neutral800:"#424242",neutral900:"#212121"},Vr={primary:"#455a64",onPrimary:_r.neutral50,primaryDark:"#1c313a",onPrimaryDark:_r.neutral50,primaryLight:"#718792",onPrimaryLight:_r.neutral900,secondary:"#d7ccc8",onSecondary:_r.neutral900,secondaryDark:"#a69b97",onSecondaryDark:_r.neutral900,secondaryLight:"#fffffb",onSecondaryLight:_r.neutral900,neutral:_r,delete:"#D32F2F",deleteDark:"#C62828",deleteLight:"#FFEBEE",onDelete:_r.neutral50,onDeleteDark:_r.neutral50,onDeleteLight:_r.neutral900},Hr=jr({table:{borderCollapse:"collapse",marginBlock:25,fontSize:"1em",fontFamily:"sans-serif",boxShadow:"0 0 20px rgba(0, 0, 0, 0.15)","& th":{backgroundColor:Vr.neutral.neutral200,color:Vr.onSecondary,textAlign:"left",borderBottom:"2px solid "+Vr.neutral.neutral300,whiteSpace:"nowrap"},"& td":{backgroundColor:"white"},"& th, & td":{paddingBlock:12,paddingInline:15},"& tbody tr:hover td":{backgroundColor:Vr.neutral.neutral100},tfooter:{borderBottom:"2px solid black"}},icon:{width:16,display:"block"},dropdown:{color:"black",background:"white",boxShadow:"0 0 20px rgba(0, 0, 0, 0.15)",listStyle:"none",padding:0,margin:0},dropdownButton:{cursor:"pointer"},dropdownItem:{cursor:"pointer",paddingBlock:12,paddingInline:18,whiteSpace:"nowrap","&:hover":{backgroundColor:"#F5F5F5"}},controls:{display:"flex",flexDirection:"column",gap:"4px"},difficulty:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:4},chart:{width:20}}),$r=jr({component:{},wrapper:{position:"relative"},content:{position:"absolute",bottom:0,top:-10}});var qr=({show:t,children:n,content:r})=>{const o=$r(),i=(0,e.useRef)();return(0,e.createElement)("div",{className:o.component,ref:i},n,(0,e.createElement)("div",{className:o.wrapper},(0,e.createElement)("div",{className:o.content},t&&r)))};const Wr=jr({component:{cursor:"pointer",marginRight:20,userSelect:"none"},active:{marginRight:0},icon:{width:16,marginLeft:4,display:"inline-block"}}),Jr=jr({component:{}}),Yr=()=>(0,e.createElement)("path",{d:"M160-160v-320h160v320H160Zm240 0v-640h160v640H400Zm240 0v-440h160v440H640Z"}),Zr=()=>(0,e.createElement)("path",{d:"M490.3 40.4C512.2 62.27 512.2 97.73 490.3 119.6L460.3 149.7L362.3 51.72L392.4 21.66C414.3-.2135 449.7-.2135 471.6 21.66L490.3 40.4zM172.4 241.7L339.7 74.34L437.7 172.3L270.3 339.6C264.2 345.8 256.7 350.4 248.4 353.2L159.6 382.8C150.1 385.6 141.5 383.4 135 376.1C128.6 370.5 126.4 361 129.2 352.4L158.8 263.6C161.6 255.3 166.2 247.8 172.4 241.7V241.7zM192 63.1C209.7 63.1 224 78.33 224 95.1C224 113.7 209.7 127.1 192 127.1H96C78.33 127.1 64 142.3 64 159.1V416C64 433.7 78.33 448 96 448H352C369.7 448 384 433.7 384 416V319.1C384 302.3 398.3 287.1 416 287.1C433.7 287.1 448 302.3 448 319.1V416C448 469 405 512 352 512H96C42.98 512 0 469 0 416V159.1C0 106.1 42.98 63.1 96 63.1H192z"}),Kr=()=>(0,e.createElement)("path",{fill:"currentColor",d:"M320 224H416c17.67 0 32-14.33 32-32s-14.33-32-32-32h-95.1c-17.67 0-32 14.33-32 32S302.3 224 320 224zM320 352H480c17.67 0 32-14.33 32-32s-14.33-32-32-32h-159.1c-17.67 0-32 14.33-32 32S302.3 352 320 352zM320 96h32c17.67 0 31.1-14.33 31.1-32s-14.33-32-31.1-32h-32c-17.67 0-32 14.33-32 32S302.3 96 320 96zM544 416h-223.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H544c17.67 0 32-14.33 32-32S561.7 416 544 416zM192.4 330.7L160 366.1V64.03C160 46.33 145.7 32 128 32S96 46.33 96 64.03v302L63.6 330.7c-6.312-6.883-14.94-10.38-23.61-10.38c-7.719 0-15.47 2.781-21.61 8.414c-13.03 11.95-13.9 32.22-1.969 45.27l87.1 96.09c12.12 13.26 35.06 13.26 47.19 0l87.1-96.09c11.94-13.05 11.06-33.31-1.969-45.27C224.6 316.8 204.4 317.7 192.4 330.7z"}),Gr=()=>(0,e.createElement)("path",{fill:"currentColor",d:"M416 288h-95.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H416c17.67 0 32-14.33 32-32S433.7 288 416 288zM544 32h-223.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H544c17.67 0 32-14.33 32-32S561.7 32 544 32zM352 416h-32c-17.67 0-32 14.33-32 32s14.33 32 32 32h32c17.67 0 31.1-14.33 31.1-32S369.7 416 352 416zM480 160h-159.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H480c17.67 0 32-14.33 32-32S497.7 160 480 160zM192.4 330.7L160 366.1V64.03C160 46.33 145.7 32 128 32S96 46.33 96 64.03v302L63.6 330.7c-6.312-6.883-14.94-10.38-23.61-10.38c-7.719 0-15.47 2.781-21.61 8.414c-13.03 11.95-13.9 32.22-1.969 45.27l87.1 96.09c12.12 13.26 35.06 13.26 47.19 0l87.1-96.09c11.94-13.05 11.06-33.31-1.969-45.27C224.6 316.8 204.4 317.7 192.4 330.7z"}),Qr=()=>(0,e.createElement)("path",{fill:"currentColor",d:"M120-520v-320h320v320H120Zm80-80h160v-160H200v160Zm-80 480v-320h320v320H120Zm80-80h160v-160H200v160Zm320-320v-320h320v320H520Zm80-80h160v-160H600v160Zm160 480v-80h80v80h-80ZM520-360v-80h80v80h-80Zm80 80v-80h80v80h-80Zm-80 80v-80h80v80h-80Zm80 80v-80h80v80h-80Zm80-80v-80h80v80h-80Zm0-160v-80h80v80h-80Zm80 80v-80h80v80h-80Z"});var Xr=({icon:t,className:n=""})=>{const r=Jr();return(0,e.createElement)("div",{className:[r.component,n].join(" ")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"qr"!=t&&"chart"!=t?"0 0 576 512":"0 -960 960 960"},"asc"==t&&(0,e.createElement)(Kr,null),"desc"==t&&(0,e.createElement)(Gr,null),"edit"==t&&(0,e.createElement)(Zr,null),"qr"==t&&(0,e.createElement)(Qr,null),"chart"==t&&(0,e.createElement)(Yr,null)))},eo=({direction:t,onClick:n,children:r})=>{const o=Wr(),i=[o.component];return""!=t&&i.push(o.active),(0,e.createElement)("div",{className:i.join(" "),onClick:n},r,"asc"==t&&(0,e.createElement)(Xr,{icon:"asc",className:o.icon}),"desc"==t&&(0,e.createElement)(Xr,{icon:"desc",className:o.icon}))};const to=jr({component:{appearance:"button",backfaceVisibility:"hidden",backgroundColor:"var(--background-color)",borderRadius:4,borderWidth:0,boxSizing:"border-box",color:"var(--text-color)",cursor:"pointer",height:44,outline:"none",padding:"0 25px",textAlign:"center",transition:"all .2s,box-shadow .08s ease-in",userSelect:"none",fontWeight:700,"&:hover":{backgroundColor:"var(--background-color-hover)",color:"var(--text-color-hover)"},"&:disabled":{cursor:"disabled"},"&:focus":{boxShadow:"rgba(50, 50, 93, .1) 0 0 0 1px inset, rgba(50, 50, 93, .2) 0 6px 15px 0, rgba(0, 0, 0, .1) 0 2px 2px 0, rgba(50, 151, 211, .3) 0 0 0 4px"}},primary:{"--text-color":Vr.onPrimary,"--text-color-hover":Vr.onPrimaryDark,"--background-color":Vr.primary,"--background-color-hover":Vr.primaryDark},secondary:{"--text-color":Vr.onSecondary,"--text-color-hover":Vr.onSecondaryDark,"--background-color":Vr.secondary,"--background-color-hover":Vr.secondaryDark},outline:{"--text-color":Vr.neutral.neutral900,"--text-color-hover":Vr.onSecondaryDark,"--background-color":Vr.neutral.neutral50,"--background-color-hover":Vr.neutral.neutral50,border:"3px solid "+Vr.neutral.neutral300,"&:hover":{borderColor:Vr.neutral.neutral400}},delete:{"--text-color":Vr.onDeleteLight,"--text-color-hover":Vr.onDeleteDark,"--background-color":Vr.deleteLight,"--background-color-hover":Vr.deleteDark,border:"3px solid "+Vr.delete,"&:hover":{borderColor:Vr.deleteDark}},dense:{padding:"0 10px",height:24,borderRadius:4}});var no=({variant:t="primary",size:n="normal",className:r="",children:o,onClick:i})=>{const s=to();return(0,e.createElement)("button",{className:`${s.component} ${s[t]} ${s[n]} ${r}`,onClick:i},o)};const ro=({route:t,system:n,columns:r,metaStructure:o,onEditClick:i,onClickDifficulty:s,onQRClick:a})=>{const l=Hr();return(0,e.createElement)("tr",null,r.map((r=>{if("status"==r)return(0,e.createElement)("td",null,oo[t.status]);if("difficulty"==r)return(0,e.createElement)("td",null,(0,e.createElement)(no,{variant:"outline",size:"dense",onClick:s,className:l.difficulty},Fr(t.difficulty,n).label));if("gradingSystem"==r)return(0,e.createElement)("td",null,n.name);if("created"==r)return(0,e.createElement)("td",null,new Date(Date.parse(t.created)).toLocaleDateString());if(t.metas[r]){var i;const n=t.metas[r],s=o.find((e=>e.key==r))?.options,a=s?.find((e=>e.key==n)),l=null!==(i=a?.label)&&void 0!==i?i:n;return(0,e.createElement)("td",{key:r},l)}return(0,e.createElement)("td",{key:r},t[r])})),(0,e.createElement)("td",{className:l.controls},(0,e.createElement)(no,{variant:"outline",size:"dense",onClick:i},(0,e.createElement)(Xr,{icon:"edit",className:l.icon})),(0,e.createElement)(no,{variant:"outline",size:"dense",onClick:a},(0,e.createElement)(Xr,{icon:"qr",className:l.icon}))))},oo={any:"⚪️","screwed-on":"🟢","screwed-off":"🔴"};var io=({className:t="",columns:n={},children:r,onChange:o,state:i})=>{const a=Hr(),[l,u]=(0,e.useState)(!1);return(0,e.createElement)("table",{className:`${a.table} ${t}`},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,Object.keys(n).map((t=>{if("status"==t)return(0,e.createElement)("th",{key:t},(0,e.createElement)(qr,{show:l,content:(0,e.createElement)("ul",{className:a.dropdown},(0,e.createElement)("li",{className:a.dropdownItem,onClick:()=>{u(!1),o({...i,status:"any"})}},oo.any," ",s("All")),(0,e.createElement)("li",{className:a.dropdownItem,onClick:()=>{u(!1),o({...i,status:"screwed-on"})}},oo["screwed-on"]," ",s("Screwed on")),(0,e.createElement)("li",{className:a.dropdownItem,onClick:()=>{u(!1),o({...i,status:"screwed-off"})}},oo["screwed-off"]," ",s("Screwed off")))},(0,e.createElement)("div",{className:a.dropdownButton,onClick:()=>u((e=>!e))},oo[i.status])));const r=n[t];return(0,e.createElement)("th",{key:t},(0,e.createElement)(eo,{direction:i.orderBy==t?i.orderDirection:"",onClick:(c=t,()=>{i.orderBy!=c?o({...i,orderBy:c,orderDirection:"asc"}):"asc"==i.orderDirection?o({...i,orderDirection:"desc"}):o({...i,orderBy:"",orderDirection:""})})},r));var c})),(0,e.createElement)("th",null))),(0,e.createElement)("tbody",null,r))};const so=jr({component:{},item:{display:"block","& + &":{marginTop:5}}}),ao={status:s("Status"),name:s("Route name"),created:s("Date"),difficulty:s("Grade"),gradingSystem:s("Grading-System")};var lo=({columns:t,state:n,onChange:r})=>{const o=so();return(0,e.createElement)("div",{className:o.component},Object.keys(t).map((i=>{const s=t[i];return(0,e.createElement)("label",{key:i,className:o.item},(0,e.createElement)("input",{type:"checkbox",onChange:(a=i,()=>{const e=n.includes(a)?n.filter((e=>e!=a)):[...n,a];r(e)}),checked:n.includes(i)})," ",s);var a})))};const uo=jr({component:{},formContent:{width:"100%",minWidth:360,"@media (min-width: 600px)":{minWidth:560,display:"grid",gap:10,gridTemplateColumns:"repeat(2, 1fr)"},"@media (min-width: 900px)":{minWidth:800,display:"grid",gap:10,gridTemplateColumns:"repeat(3, 1fr)"}},field:{marginBlock:10},controls:{marginTop:26,display:"flex",justifyContent:"end",gap:10}});function co({label:t,value:n,type:r="text",onChange:o}){return(0,e.createElement)("label",{className:"cp-input-control"},t,(0,e.createElement)("br",null),(0,e.createElement)("input",{className:"cp-input-control--input",type:r,value:n,onChange:e=>o(e.target.value)}))}function fo({label:t,value:n,options:r,onChange:o}){return(0,e.createElement)("label",{className:"cp-select-control"},t,(0,e.createElement)("br",null),(0,e.createElement)("select",{value:n,onChange:e=>o(e.target.value)},r.map((t=>(0,e.createElement)("option",{key:t.value,value:t.value},t.label)))))}const ho=jr({component:{"@media (min-width: 400px)":{display:"grid",gap:10,gridTemplateColumns:"repeat(2, 1fr)"}}});var po=({selectedSystemId:t,difficulty:n,systems:r,onChangeSystem:o,onChangeDifficulty:i})=>{const a=ho(),l=r.find((e=>e.id==t));(0,e.useEffect)((()=>{l||o(r[0].id)}),[t]);const u=Fr(n,l);return(0,e.createElement)("div",{className:a.component},(0,e.createElement)(fo,{label:s("Grade"),value:u.difficulty+"",options:r.find((e=>e.id==t))?.grades?.map((e=>({value:e.difficulty+"",label:e.label}))),onChange:e=>i(parseInt(e))}),(0,e.createElement)(fo,{label:s("Grading-System"),value:t,options:r.map((e=>({value:e.id,label:e.name}))),onChange:o}))},mo=({route:t,systems:n,metaStructure:r,onChange:o,onCancel:i,onDelete:a})=>{var l;const u=uo(),[c,d]=(0,e.useState)(t),f=null!==(l=Ur(n,c.gradingSystem))&&void 0!==l?l:n[0],h=(0,e.useMemo)((()=>Fr(c.difficulty,f)),[c.difficulty,f.id]);(0,e.useEffect)((()=>{d(t)}),[t.id]),(0,e.useEffect)((()=>{""==c.created&&d({...c,created:(new Date).toISOString().split("T")[0]})}),[c.created]);const p=e=>t=>{d((n=>({...n,[e]:t})))},m=e=>t=>{d((n=>({...n,metas:{...n.metas,[e]:t}})))};return(0,e.createElement)("div",{className:u.component},"function"==typeof a&&(0,e.createElement)("div",null,(0,e.createElement)(no,{variant:"outline",onClick:()=>{d((e=>({...e,status:"screwed-on"==e.status?"screwed-off":"screwed-on"})))}},"screwed-on"==c.status?"🟢 "+s("Screwed on"):"⚪️ "+s("Screwed off"))),(0,e.createElement)("div",{className:u.field},(0,e.createElement)(co,{label:s("Route name"),value:c.name,onChange:p("name")})),(0,e.createElement)("div",{className:u.field},(0,e.createElement)(po,{selectedSystemId:c.gradingSystem,difficulty:h.difficulty,systems:n,onChangeSystem:p("gradingSystem"),onChangeDifficulty:p("difficulty")})),(0,e.createElement)("div",{className:u.formContent},(0,e.createElement)("div",{className:u.field},(0,e.createElement)(co,{label:s("Date"),value:c.created,onChange:p("created"),type:"date"})),r.map((t=>{var n,r;return(0,e.createElement)("div",{key:t.key,className:u.field},t.options.length>0?(0,e.createElement)(fo,{label:t.label,value:null!==(n=c.metas?.[t.key])&&void 0!==n?n:"",options:[{value:"",label:""},...t.options.map((e=>({value:e.key,label:e.label})))],onChange:m(t.key)}):(0,e.createElement)(co,{key:t.key,label:t.label,value:null!==(r=c.metas?.[t.key])&&void 0!==r?r:"",onChange:m(t.key)}))}))),(0,e.createElement)("div",{className:u.controls},"function"==typeof a&&(0,e.createElement)(no,{onClick:()=>a(),variant:"delete"},s("Delete")),(0,e.createElement)(no,{variant:"outline",onClick:i},s("Cancel")),(0,e.createElement)(no,{onClick:()=>o(c)},s("Save"))))};function go({onClick:t,children:n}){const r=(0,i.useRef)();return(0,e.useEffect)((()=>{const e=e=>{r.current&&!r.current.contains(e.target)&&t()};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[r]),(0,e.createElement)("div",{ref:r},n)}var yo=n(119);function vo(){var e=function(e){var n=e.text,r=e.options,o=e.logo,i=t().useRef(null);return t().useEffect((function(){var e,t,s,a,l,u,c,d,f;if(i&&i.current&&(yo.toCanvas(i.current,n,r,(function(e){if(e)throw e})),o)){var h=i.current.getContext("2d");if(h){var p=new Image;p.src=o.src;var m=(null===(e=null==o?void 0:o.options)||void 0===e?void 0:e.width)||30;if((null===(t=null==o?void 0:o.options)||void 0===t?void 0:t.hasOwnProperty("x"))&&(null===(s=null==o?void 0:o.options)||void 0===s?void 0:s.hasOwnProperty("y"))){var g=(null===(a=null==o?void 0:o.options)||void 0===a?void 0:a.x)||0,y=(null===(l=null==o?void 0:o.options)||void 0===l?void 0:l.y)||0;p.onload=function(){h.drawImage(p,g,y,m,m)}}if(!(null===(u=null==o?void 0:o.options)||void 0===u?void 0:u.hasOwnProperty("x"))||!(null===(c=null==o?void 0:o.options)||void 0===c?void 0:c.hasOwnProperty("y"))||void 0===(null===(d=null==o?void 0:o.options)||void 0===d?void 0:d.x)||void 0===(null===(f=null==o?void 0:o.options)||void 0===f?void 0:f.y)){var v=null==r?void 0:r.margin;v=v?8*v:0===v?0:32;var b=(((null==r?void 0:r.width)||116+v)-m)/2;p.onload=function(){h.drawImage(p,b,b,m,m)}}}}}),[i,n,r,o]),t().createElement("canvas",{ref:i})};return t().useMemo((function(){return e}),[])}const bo=jr({component:{display:"flex",flexDirection:"column",fontSize:"0.8em",gap:4,paddingRight:20,"& .item":{position:"relative",width:300,display:"grid",gridTemplateColumns:"40px 1fr",gap:2},"& .label":{fontWeight:"bold",padding:2,borderRadius:4,border:"1px solid #2271b1",textAlign:"center"},"& .is-setter-grade .label":{background:"#2271b1",color:"white"}},bar:{position:"relative",background:"#2271b1",height:"100%",borderRadius:4,"& span":{position:"absolute",top:3,right:-26}},isSetterGrade:{"& .label":{background:"red"}},setterBar:{background:"red",width:"100%"}});function wo({gradingSystem:t,setterGrade:n,votings:r}){const o=bo(),i=[...t.grades].reverse(),s=r.reduce(((e,t)=>e+t.votes),0);return(0,e.createElement)("div",{className:o.component},i.map((t=>{var i;const a=r.find((({difficulty:e})=>e==t.difficulty)),l=t.difficulty==n.difficulty,u=s>0?(null!==(i=a?.votes)&&void 0!==i?i:0)/s:0,c=Math.floor(100*u);return(0,e.createElement)("div",{key:t.difficulty,className:"item "+(l?"is-setter-grade":"")},(0,e.createElement)("div",{className:"label"},t.label),(0,e.createElement)("div",{className:o.bar,style:{width:100*u+"%"}},(0,e.createElement)("span",null,c,"%")))})))}function xo({route:t}){const[n,r]=(e=>{const{data:t=[],isLoading:n}=te(`${a()}/routes/${e}/votes`,(e=>d()({path:e})));return[t,n]})(t.id),o=l(),i=Ur(o,t.gradingSystem);if(!i)return;const s=Fr(t.difficulty,i),u=n.reduce(((e,t)=>e+t.votes),0);return(0,e.createElement)("div",null,(0,e.createElement)("h3",{style:{marginTop:0}},t.name),(0,e.createElement)("p",null,"Bewertungena aus der Community: ",u),(0,e.createElement)(wo,{gradingSystem:i,setterGrade:s,votings:n}))}var ko=()=>{var n,r;const o=Dr(),{Image:c}={Image:(_=function(e){var n=e.text,r=e.options,o=t().useRef(null);return t().useEffect((function(){o&&o.current&&yo.toDataURL(n,r,(function(e,t){if(e)throw e;o.current instanceof HTMLImageElement&&(o.current.src=t)}))}),[n,r,o]),t().createElement("img",{ref:o})},t().useMemo((function(){return _}),[])),Canvas:vo(),SVG:(V=function(e){var n=e.text,r=e.options,o=t().useRef(null);return t().useEffect((function(){yo.toString(n,r,(function(e,t){if(e)throw e;o.current instanceof HTMLDivElement&&(o.current.innerHTML=t)}))}),[n,r]),t().createElement("div",{ref:o})},t().useMemo((function(){return V}),[]))},f=l(),h=window.ClimbPress.routeMetaStructure,p=u(window.ClimbPress.defaultGradingSystemId),m=window.ClimbPress.availableYears,g=(0,i.useRef)(-1),y=(0,i.useRef)(null),[v,b]=(0,i.useState)(null),[w,x]=(0,i.useState)(!1),[k,E]=(0,i.useState)(!1),[S,C]=(()=>{const[t,n]=(0,i.useState)(JSON.parse(localStorage.getItem(zr))||[]);return(0,e.useEffect)((()=>{localStorage.setItem(zr,JSON.stringify(t))}),[t]),[t,n]})(),[R,P]=(0,i.useState)(""),[A,T]=(0,i.useState)({status:"screwed-on",orderBy:"",orderDirection:""}),{routes:M,update:I,add:N,remove:O}=((e="any",t="")=>{const{data:n,mutate:r}=te(a()+"/routes?status="+e+"&year="+t,(e=>d()({path:e})));return{routes:null!=n?n:[],update:e=>{d()({path:a()+"/routes/"+e.id,method:"PATCH",data:{name:e.name,status:e.status,difficulty:e.difficulty,grading_system:e.gradingSystem,created:e.created,metas:e.metas}}).finally((()=>{r(n.map((t=>({...t.id==e.id?e:t}))))}))},add:e=>{d()({path:a()+"/routes",method:"POST",data:{name:e.name,status:e.status,difficulty:e.difficulty,grading_system:e.gradingSystem,created:e.created,metas:e.metas}}).then((e=>{r([e,...n])}))},remove:e=>{d()({path:a()+"/routes/"+e,method:"DELETE"}).then((()=>{r(n.filter((t=>t.id!=e)))}))}}})(A.status,R),L=M.find((e=>e.id==v?.routeId)),B=()=>y.current.showModal(),j=()=>y.current.close(),D=(0,i.useMemo)((()=>{const e={...ao};return h.forEach((t=>{e[t.key]=t.label})),e}),[h,ao]),z=(0,i.useMemo)((()=>Object.keys(D).filter((e=>!S.includes(e)))),[S,D]),U=(0,i.useMemo)((()=>{const e={};return Object.keys(D).forEach((t=>{S.includes(t)||(e[t]=D[t])})),e}),[S,D]),F=(e,t="")=>{const n=new URL(window.location.origin);return""!=t&&(n.pathname="route/"+t),n.searchParams.set(window.ClimbPress.votingPageParam,e+""),n.toString()};var _,V;return(0,e.createElement)("div",{className:o.component},(0,e.createElement)("div",{className:o.controls},(0,e.createElement)(no,{onClick:()=>{b({type:"edit",routeId:0}),B()}},s("New Route")),(0,e.createElement)(qr,{show:w,content:(0,e.createElement)(go,{onClick:()=>{x(!1)}},(0,e.createElement)("div",{className:o.columnsControl},(0,e.createElement)(lo,{columns:D,state:z,onChange:e=>{const t=Object.keys(D).filter((t=>!e.includes(t)));C(t)}})))},(0,e.createElement)(no,{onClick:()=>x((e=>!e)),variant:"outline"},s("Columns"))),(0,e.createElement)(qr,{show:k,content:(0,e.createElement)(go,{onClick:()=>E(!1)},(0,e.createElement)("div",{className:o.columnsControl},(0,e.createElement)("div",{className:o.yearSelectControl,onClick:()=>{P("")}},(0,e.createElement)("input",{type:"radio",checked:""==R})," ",s("All routes")),m.map((t=>(0,e.createElement)("div",{key:t,className:o.yearSelectControl,onClick:()=>{P(t)}},(0,e.createElement)("input",{type:"radio",checked:R==t})," ",t)))))},(0,e.createElement)(no,{onClick:()=>E((e=>!e)),variant:"outline"},""==R?s("All years"):R)),(0,e.createElement)(no,{onClick:()=>{return window.open((e=R,window.ClimbPress.exportUrl+(""!=e?"&year="+e:"")));var e},variant:"outline"},s("Export"))),(0,e.createElement)("dialog",{ref:y},"edit"==v?.type?L?(0,e.createElement)(mo,{route:L,systems:f,metaStructure:h,onChange:e=>{j(),I(e)},onCancel:j,onDelete:()=>{const e=s('Permanently delete "%s"?').replace("%s",L.name);confirm(e)&&(O(L.id),b({type:"edit",routeId:0}),y.current.close())}}):(0,e.createElement)(mo,{route:{id:g.current,name:"",status:"screwed-on",created:"",difficulty:null!==(n=p?.grades?.[0]?.difficulty)&&void 0!==n?n:0,gradingSystem:null!==(r=p?.id)&&void 0!==r?r:"",metas:{}},systems:f,metaStructure:h,onChange:e=>{j(),N(e),g.current--},onCancel:j}):null,"qr"==v?.type?(0,e.createElement)(go,{onClick:()=>{b(null),j()}},(0,e.createElement)(c,{text:F(v.routeId),options:{type:"image/jpeg",quality:.6,errorCorrectionLevel:"H",margin:4,scale:4,width:300}}),(0,e.createElement)("p",null,(0,e.createElement)("a",{href:F(v.routeId)},F(v.routeId)))):null,"difficulty"==v?.type&&L?(0,e.createElement)(go,{onClick:()=>{}},(0,e.createElement)(xo,{route:L})):null),(0,e.createElement)(io,{state:A,onChange:T,className:o.table,columns:U},((e,t="",n="desc")=>""===t?e:[...e].sort(((e,r)=>{const o="desc"==n?r:e,i="desc"==n?e:r;return"name"==t?o.name.localeCompare(i.name):"difficulty"==t?o.difficulty-i.difficulty:"gradingSystem"==t?o.gradingSystem.localeCompare(i.gradingSystem,"de",{sensitivity:"base"}):"created"==t?o.created.localeCompare(i.created,"de",{sensitivity:"base"}):o.metas[t]?.localeCompare(i.metas[t],"de",{sensitivity:"base"})})))(M,A.orderBy,A.orderDirection).map((t=>(0,e.createElement)(ro,{key:t.id,route:t,system:Ur(f,t.gradingSystem),columns:Object.keys(U),metaStructure:h,onClickDifficulty:()=>{b({type:"difficulty",routeId:t.id}),B()},onEditClick:()=>{b({type:"edit",routeId:t.id}),B()},onQRClick:()=>{b({type:"qr",routeId:t.id}),B()}})))))};o()((()=>{(0,i.render)((0,e.createElement)(ko,null),document.getElementById(window.ClimbPress.rootId))}))}()}();
  • climbpress/tags/0.6.2/dist/stats.asset.php

    r3024800 r3045938  
    1 <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-dom-ready', 'wp-element'), 'version' => '694f2029b4c03cbc15ac');
     1<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-dom-ready', 'wp-element'), 'version' => '2e25ad5ddeb912da85ff');
  • climbpress/tags/0.6.2/dist/stats.js

    r3024800 r3045938  
    1 !function(){"use strict";var e={535:function(e,t,r){var n=r(237),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=p(r);i&&i!==h&&e(t,i,n)}var s=c(r);d&&(s=s.concat(d(r)));for(var a=l(t),y=l(r),m=0;m<s.length;++m){var g=s[m];if(!(o[g]||n&&n[g]||y&&y[g]||a&&a[g])){var v=f(r,g);try{u(t,g,v)}catch(e){}}}}return t}},684:function(e,t){},198:function(e,t){var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case m:case y:case l:return e;default:return t}}case i:return t}}}function k(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=y,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||x(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===y},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=x},237:function(e,t,r){e.exports=r(198)},603:function(e,t,r){r.d(t,{Z:function(){return n}}),e=r.hmd(e);var n=function(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:e)},415:function(e,t,r){var n=r(196),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,s=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return a((function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,r,t]),s((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},322:function(e,t,r){e.exports=r(415)},196:function(e){e.exports=window.React}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n](o,o.exports,r),o.loaded=!0,o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e=r(196),t=r.n(e),n=window.wp.domReady,i=r.n(n),o=window.wp.element;const s=e=>{var t;return null!==(t=window.ClimbPress.i18n[e])&&void 0!==t?t:`? ${e} ?`},a=()=>window.ClimbPress.RESTNamespace,l=e=>{var t;return null!==(t=window.ClimbPress.gradingSystems.find((t=>t.id==e)))&&void 0!==t?t:null};function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function c(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}r(535);function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r(684);var h,y=(0,e.createContext)(),m=(function(e){}(h=y),function(e){}(h),function(e){var r=function(r){var n,i;function o(){for(var n,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return d(p(p(n=r.call.apply(r,[this].concat(o))||this)),"cachedTheme",void 0),d(p(p(n)),"lastOuterTheme",void 0),d(p(p(n)),"lastTheme",void 0),d(p(p(n)),"renderProvider",(function(r){var i=n.props.children;return t().createElement(e.Provider,{value:n.getTheme(r)},i)})),n}i=r,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var s=o.prototype;return s.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,"function"==typeof this.lastTheme){var t=this.props.theme;this.cachedTheme=t(e)}else{var r=this.props.theme;this.cachedTheme=e?f({},e,r):r}return this.cachedTheme},s.render=function(){return this.props.children?t().createElement(e.Consumer,null,this.renderProvider):null},o}(t().Component)}(h),"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),g="object"===("undefined"==typeof window?"undefined":m(window))&&"object"===("undefined"==typeof document?"undefined":m(document))&&9===document.nodeType;function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function b(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===v(t)?t:String(t)}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b(n.key),n)}}function x(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function S(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,k(e,t)}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var P={}.constructor;function O(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(O);if(e.constructor!==P)return e;var t={};for(var r in e)t[r]=O(e[r]);return t}function E(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,i=O(t);return n.plugins.onCreateRule(e,i,r)||(e[0],null)}var C=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},A=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=C(e[r]," ");else t=C(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function T(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function j(e,t){for(var r="",n=0;n<t;n++)r+="  ";return r+e}function M(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var i=r.indent,o=void 0===i?0:i,s=t.fallbacks;!1===r.format&&(o=-1/0);var a=T(r),l=a.linebreak,u=a.space;if(e&&o++,s)if(Array.isArray(s))for(var c=0;c<s.length;c++){var d=s[c];for(var f in d){var p=d[f];null!=p&&(n&&(n+=l),n+=j(f+":"+u+A(p)+";",o))}}else for(var h in s){var y=s[h];null!=y&&(n&&(n+=l),n+=j(h+":"+u+A(y)+";",o))}for(var m in t){var g=t[m];null!=g&&"fallbacks"!==m&&(n&&(n+=l),n+=j(m+":"+u+A(g)+";",o))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),j(""+e+u+"{"+n,--o)+j("}",o)):n}var I=/([[\].#*$><+~=|^:(),"'`\s])/g,N="undefined"!=typeof CSS&&CSS.escape,_=function(e){return N?N(e):e.replace(I,"\\$1")},L=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,i=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var i=t;r&&!1===r.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,s=e in this.style;if(o&&!s&&!n)return this;var a=o&&s;if(a?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),V=function(e){function t(t,r,n){var i;i=e.call(this,t,r,n)||this;var o=n.selector,s=n.scoped,a=n.sheet,l=n.generateId;return o?i.selectorText=o:!1!==s&&(i.id=l(R(R(i)),a),i.selectorText="."+_(i.id)),i}S(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=A(r))}return e},r.toString=function(e){var t=this.options.sheet,r=t&&t.options.link?u({},e,{allowEmpty:!0}):e;return M(this.selectorText,this.style,r)},x(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;r&&t&&(t.setSelector(r,e)||t.replaceRule(r,this))}},get:function(){return this.selectorText}}]),t}(L),$={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new V(e,t,r)}},z={indent:1,children:!0},D=/@([\w-]+)/,F=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(D);for(var i in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new de(u({},r,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=z);var t=T(e).linebreak;if(null==e.indent&&(e.indent=z.indent),null==e.children&&(e.children=z.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),W=/@container|@media|@supports\s+/,U={onCreateRule:function(e,t,r){return W.test(e)?new F(e,t,r):null}},q={indent:1,children:!0},G=/@keyframes\s+([\w-]+)/,B=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(G);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var i=r.scoped,o=r.sheet,s=r.generateId;for(var a in this.id=!1===i?this.name:_(s(this,o)),this.rules=new de(u({},r,{parent:this})),t)this.rules.add(a,t[a],u({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=q);var t=T(e).linebreak;if(null==e.indent&&(e.indent=q.indent),null==e.children&&(e.children=q.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),H=/@keyframes\s+/,X=/\$([\w-]+)/g,J=function(e,t){return"string"==typeof e?e.replace(X,(function(e,r){return r in t?t[r]:e})):e},Y=function(e,t,r){var n=e[t],i=J(n,r);i!==n&&(e[t]=i)},Z={onCreateRule:function(e,t,r){return"string"==typeof e&&H.test(e)?new B(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Y(e,"animation-name",r.keyframes),"animation"in e&&Y(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return J(e,n.keyframes);default:return e}}},K=function(e){function t(){return e.apply(this,arguments)||this}return S(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=t&&t.options.link?u({},e,{allowEmpty:!0}):e;return M(this.key,this.style,r)},t}(L),Q={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new K(e,t,r):null}},ee=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=T(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=M(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return M(this.at,this.style,e)},e}(),te=/@font-face/,re={onCreateRule:function(e,t,r){return te.test(e)?new ee(e,t,r):null}},ne=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return M(this.key,this.style,e)},e}(),ie={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new ne(e,t,r):null}},oe=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),se={"@charset":!0,"@import":!0,"@namespace":!0},ae={onCreateRule:function(e,t,r){return e in se?new oe(e,t,r):null}},le=[$,U,Z,Q,re,ie,ae],ue={process:!0},ce={force:!0,process:!0},de=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,i=n.parent,o=n.sheet,s=n.jss,a=n.Renderer,l=n.generateId,c=n.scoped,d=u({classes:this.classes,parent:i,sheet:o,jss:s,Renderer:a,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},r),f=e;e in this.raw&&(f=e+"-d"+this.counter++),this.raw[f]=t,f in this.classes&&(d.selector="."+_(this.classes[f]));var p=E(f,t,d);if(!p)return null;this.register(p);var h=void 0===d.index?this.index.length:d.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,r){var n=this.get(e),i=this.index.indexOf(n);n&&this.remove(n);var o=r;return-1!==i&&(o=u({},r,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof V?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof B&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof V?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof B&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=ue);var i=this.options,o=i.jss.plugins,s=i.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var a=t.style;if(o.onUpdate(r,t,s,n),n.process&&a&&a!==t.style){for(var l in o.onProcessStyle(t.style,t,s),t.style){var u=t.style[l];u!==a[l]&&t.prop(l,u,ce)}for(var c in a){var d=t.style[c],f=a[c];null==d&&d!==f&&t.prop(c,null,ce)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,i=T(e).linebreak,o=0;o<this.index.length;o++){var s=this.index[o].toString(e);(s||n)&&(t&&(t+=i),t+=s)}return t},e}(),fe=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=u({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new de(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var i=this.rules.add(e,t,r);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(n?n.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var i=this.rules.replace(e,t,r);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?n.renderable&&this.renderer.replaceRule(n.renderable,i):this.renderer.deleteRule(n)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var i=this.addRule(n,e[n],t);i&&r.push(i)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),pe=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var i=this.registry.onCreateRule[n](e,t,r);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,i=0;i<this.registry.onChangeValue.length;i++)n=this.registry.onChangeValue[i](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),he=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=c(t,["attached"]),i=T(n).linebreak,o="",s=0;s<this.registry.length;s++){var a=this.registry[s];null!=r&&a.attached!==r||(o&&(o+=i),o+=a.toString(n))}return o},x(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ye=new he,me="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ge="2f1acc6c3a606b082e5eef5e54414ffb";null==me[ge]&&(me[ge]=0);var ve=me[ge]++,be=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var i="",o="";return n&&(n.options.classNamePrefix&&(o=n.options.classNamePrefix),null!=n.options.jss.id&&(i=String(n.options.jss.id))),e.minify?""+(o||"c")+ve+i+t:o+r.key+"-"+ve+(i?"-"+i:"")+"-"+t}},we=function(e){var t;return function(){return t||(t=e()),t}},xe=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ke=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=A(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var i=n?n.indexOf("!important"):-1,o=i>-1?n.substr(0,i-1):n;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},Se=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Re=function(e,t){return e.selectorText=t,e.selectorText===t},Pe=we((function(){return document.querySelector("head")}));var Oe=we((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Ee=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},Ce=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Ae=function(){function e(e){this.getPropertyValue=xe,this.setProperty=ke,this.removeProperty=Se,this.setSelector=Re,this.hasInsertedRules=!1,this.cssRules=[],e&&ye.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var o=Oe();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=function(e){var t=ye.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var i=function(e){for(var t=Pe(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var i=r,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else Pe().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,i=r;if("conditional"===e.type||"keyframes"===e.type){var o=Ce(r,t);if(!1===(i=Ee(r,n.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(n.rules,i),i}var s=e.toString();if(!s)return!1;var a=Ce(r,t),l=Ee(r,s,a);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,a,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof fe&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Te=0,je=function(){function e(e){this.id=Te++,this.version="10.10.0",this.plugins=new pe,this.options={id:{minify:!1},createGenerateId:be,Renderer:g?Ae:null,plugins:[]},this.generateId=be({minify:!1});for(var t=0;t<le.length;t++)this.plugins.use(le[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=u({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===ye.index?0:ye.index+1);var n=new fe(e,u({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),ye.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=u({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var i=E(e,t,n);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.plugins.use(t)})),this},e}(),Me=function(e){return new je(e)},Ie=function(){function e(){this.length=0,this.sheets=new WeakMap}var t=e.prototype;return t.get=function(e){var t=this.sheets.get(e);return t&&t.sheet},t.add=function(e,t){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:t,refs:0}))},t.manage=function(e){var t=this.sheets.get(e);if(t)return 0===t.refs&&t.sheet.attach(),t.refs++,t.sheet},t.unmanage=function(e){var t=this.sheets.get(e);t&&t.refs>0&&(t.refs--,0===t.refs&&t.sheet.detach())},x(e,[{key:"size",get:function(){return this.length}}]),e}(),Ne="object"==typeof CSS&&null!=CSS&&"number"in CSS;function _e(e){var t=null;for(var r in e){var n=e[r],i=typeof n;if("function"===i)t||(t={}),t[r]=n;else if("object"===i&&null!==n&&!Array.isArray(n)){var o=_e(n);o&&(t||(t={}),t[r]=o)}}return t}Me();var Le=Date.now(),Ve="fnValues"+Le,$e="fnStyle"+ ++Le,ze=r(603),De=function(e){return e&&e[ze.Z]&&e===e[ze.Z]()},Fe=/;\n/,We=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},r=e.split(Fe),n=0;n<r.length;n++){var i=(r[n]||"").trim();if(i){var o=i.indexOf(":");if(-1!==o){var s=i.substr(0,o).trim(),a=i.substr(o+1).trim();t[s]=a}}}return t}(e.style))},Ue="@global",qe=function(){function e(e,t,r){for(var n in this.type="global",this.at=Ue,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new de(u({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Ge=function(){function e(e,t,r){this.type="global",this.at=Ue,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,u({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Be=/\s*,\s*/g;function He(e,t){for(var r=e.split(Be),n="",i=0;i<r.length;i++)n+=t+" "+r[i].trim(),r[i+1]&&(n+=", ");return n}var Xe=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},Je="extendCurrValue"+Date.now();function Ye(e,t,r,n){return void 0===n&&(n={}),function(e,t,r,n){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var i=0;i<e.extend.length;i++){var o=e.extend[i];Ye("string"==typeof o?u({},e,{extend:o}):e.extend[i],t,r,n)}else for(var s in e.extend)"extend"!==s?Xe(e.extend[s])?(s in n||(n[s]={}),Ye(e.extend[s],t,r,n[s])):n[s]=e.extend[s]:Ye(e.extend.extend,t,r,n);else{if(!r)return;var a=r.getRule(e.extend);if(!a)return;if(a===t)return;var l=a.options.parent;l&&Ye(l.rules.raw[e.extend],t,r,n)}}(e,t,r,n),function(e,t,r,n){for(var i in e)"extend"!==i&&(Xe(n[i])&&Xe(e[i])?Ye(e[i],t,r,n[i]):Xe(e[i])?n[i]=Ye(e[i],t,r):n[i]=e[i])}(e,t,r,n),n}var Ze=function(){return{onProcessStyle:function(e,t,r){return"extend"in e?Ye(e,t,r):e},onChangeValue:function(e,t,r){if("extend"!==t)return e;if(null==e||!1===e){for(var n in r[Je])r.prop(n,null);return r[Je]=null,null}if("object"==typeof e){for(var i in e)r.prop(i,e[i]);r[Je]=e}return null}}},Ke=/\s*,\s*/g,Qe=/&/g,et=/\$([\w-]+)/g,tt=function(){function e(e,t){return function(r,n){var i=e.getRule(n)||t&&t.getRule(n);return i?i.selector:n}}function t(e,t){for(var r=t.split(Ke),n=e.split(Ke),i="",o=0;o<r.length;o++)for(var s=r[o],a=0;a<n.length;a++){var l=n[a];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Qe,s):s+" "+l}return i}function r(e,t,r){if(r)return u({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var i=u({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(n,i,o){if("style"!==i.type)return n;var s,a,l=i,c=l.options.parent;for(var d in n){var f=-1!==d.indexOf("&"),p="@"===d[0];if(f||p){if(s=r(l,c,s),f){var h=t(d,l.selector);a||(a=e(c,o)),h=h.replace(et,a);var y=l.key+"-"+d;"replaceRule"in c?c.replaceRule(y,n[d],u({},s,{selector:h})):c.addRule(y,n[d],u({},s,{selector:h}))}else p&&c.addRule(d,{},s).addRule(l.key,n[d],{selector:l.selector});delete n[d]}}return n}}};function rt(e,t){if(!t)return!0;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(!rt(e,t[r]))return!1;return!0}if(t.indexOf(" ")>-1)return rt(e,t.split(" "));var n=e.options.parent;if("$"===t[0]){var i=n.getRule(t.substr(1));return!!i&&i!==e&&(n.classes[e.key]+=" "+n.classes[i.key],!0)}return n.classes[e.key]+=" "+t,!0}var nt=function(){return{onProcessStyle:function(e,t){return"composes"in e?(rt(t,e.composes),delete e.composes,e):e}}},it=/[A-Z]/g,ot=/^ms-/,st={};function at(e){return"-"+e.toLowerCase()}var lt=function(e){if(st.hasOwnProperty(e))return st[e];var t=e.replace(it,at);return st[e]=ot.test(t)?"-"+t:t};function ut(e){var t={};for(var r in e)t[0===r.indexOf("--")?r:lt(r)]=e[r];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(ut):t.fallbacks=ut(e.fallbacks)),t}var ct=Ne&&CSS?CSS.px:"px",dt=Ne&&CSS?CSS.ms:"ms",ft=Ne&&CSS?CSS.percent:"%";function pt(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var i in e)n[i]=e[i],n[i.replace(t,r)]=e[i];return n}var ht=pt({"animation-delay":dt,"animation-duration":dt,"background-position":ct,"background-position-x":ct,"background-position-y":ct,"background-size":ct,border:ct,"border-bottom":ct,"border-bottom-left-radius":ct,"border-bottom-right-radius":ct,"border-bottom-width":ct,"border-left":ct,"border-left-width":ct,"border-radius":ct,"border-right":ct,"border-right-width":ct,"border-top":ct,"border-top-left-radius":ct,"border-top-right-radius":ct,"border-top-width":ct,"border-width":ct,"border-block":ct,"border-block-end":ct,"border-block-end-width":ct,"border-block-start":ct,"border-block-start-width":ct,"border-block-width":ct,"border-inline":ct,"border-inline-end":ct,"border-inline-end-width":ct,"border-inline-start":ct,"border-inline-start-width":ct,"border-inline-width":ct,"border-start-start-radius":ct,"border-start-end-radius":ct,"border-end-start-radius":ct,"border-end-end-radius":ct,margin:ct,"margin-bottom":ct,"margin-left":ct,"margin-right":ct,"margin-top":ct,"margin-block":ct,"margin-block-end":ct,"margin-block-start":ct,"margin-inline":ct,"margin-inline-end":ct,"margin-inline-start":ct,padding:ct,"padding-bottom":ct,"padding-left":ct,"padding-right":ct,"padding-top":ct,"padding-block":ct,"padding-block-end":ct,"padding-block-start":ct,"padding-inline":ct,"padding-inline-end":ct,"padding-inline-start":ct,"mask-position-x":ct,"mask-position-y":ct,"mask-size":ct,height:ct,width:ct,"min-height":ct,"max-height":ct,"min-width":ct,"max-width":ct,bottom:ct,left:ct,top:ct,right:ct,inset:ct,"inset-block":ct,"inset-block-end":ct,"inset-block-start":ct,"inset-inline":ct,"inset-inline-end":ct,"inset-inline-start":ct,"box-shadow":ct,"text-shadow":ct,"column-gap":ct,"column-rule":ct,"column-rule-width":ct,"column-width":ct,"font-size":ct,"font-size-delta":ct,"letter-spacing":ct,"text-decoration-thickness":ct,"text-indent":ct,"text-stroke":ct,"text-stroke-width":ct,"word-spacing":ct,motion:ct,"motion-offset":ct,outline:ct,"outline-offset":ct,"outline-width":ct,perspective:ct,"perspective-origin-x":ft,"perspective-origin-y":ft,"transform-origin":ft,"transform-origin-x":ft,"transform-origin-y":ft,"transform-origin-z":ft,"transition-delay":dt,"transition-duration":dt,"vertical-align":ct,"flex-basis":ct,"shape-margin":ct,size:ct,gap:ct,grid:ct,"grid-gap":ct,"row-gap":ct,"grid-row-gap":ct,"grid-column-gap":ct,"grid-template-rows":ct,"grid-template-columns":ct,"grid-auto-rows":ct,"grid-auto-columns":ct,"box-shadow-x":ct,"box-shadow-y":ct,"box-shadow-blur":ct,"box-shadow-spread":ct,"font-line-height":ct,"text-shadow-x":ct,"text-shadow-y":ct,"text-shadow-blur":ct});function yt(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=yt(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=yt(i,t[i],r);else for(var o in t)t[o]=yt(e+"-"+o,t[o],r);else if("number"==typeof t&&!1===isNaN(t)){var s=r[e]||ht[e];return!s||0===t&&s===ct?t.toString():"function"==typeof s?s(t).toString():""+t+s}return t}var mt=function(e){void 0===e&&(e={});var t=pt(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=yt(n,e[n],t);return e},onChangeValue:function(e,r){return yt(r,e,t)}}},gt={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},vt={position:!0,size:!0},bt={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},wt={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function xt(e,t,r,n){return null==r[t]?e:0===e.length?[]:Array.isArray(e[0])?xt(e[0],t,r,n):"object"==typeof e[0]?function(e,t,r){return e.map((function(e){return kt(e,t,r,!1,!0)}))}(e,t,n):[e]}function kt(e,t,r,n,i){if(!bt[t]&&!wt[t])return[];var o=[];if(wt[t]&&(e=function(e,t,r,n){for(var i in r){var o=r[i];if(void 0!==e[i]&&(n||!t.prop(o))){var s,a=St((s={},s[o]=e[i],s),t)[o];n?t.style.fallbacks[o]=a:t.style[o]=a}delete e[i]}return e}(e,r,wt[t],n)),Object.keys(e).length)for(var s in bt[t])e[s]?Array.isArray(e[s])?o.push(null===vt[s]?e[s]:e[s].join(" ")):o.push(e[s]):null!=bt[t][s]&&o.push(bt[t][s]);return!o.length||i?o:[o]}function St(e,t,r){for(var n in e){var i=e[n];if(Array.isArray(i)){if(!Array.isArray(i[0])){if("fallbacks"===n){for(var o=0;o<e.fallbacks.length;o++)e.fallbacks[o]=St(e.fallbacks[o],t,!0);continue}e[n]=xt(i,n,gt,t),e[n].length||delete e[n]}}else if("object"==typeof i){if("fallbacks"===n){e.fallbacks=St(e.fallbacks,t,!0);continue}e[n]=kt(i,n,t,r),e[n].length||delete e[n]}else""===e[n]&&delete e[n]}return e}function Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Pt="",Ot="",Et="",Ct="",At=g&&"ontouchstart"in document.documentElement;if(g){var Tt={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},jt=document.createElement("p").style;for(var Mt in Tt)if(Mt+"Transform"in jt){Pt=Mt,Ot=Tt[Mt];break}"Webkit"===Pt&&"msHyphens"in jt&&(Pt="ms",Ot=Tt.ms,Ct="edge"),"Webkit"===Pt&&"-apple-trailing-word"in jt&&(Et="apple")}var It=Pt,Nt=Ot,_t=Et,Lt=Ct,Vt=At,$t={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===It?"-webkit-"+e:Nt+e)}},zt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===It?Nt+"print-"+e:e)}},Dt=/[-\s]+(.)?/g;function Ft(e,t){return t?t.toUpperCase():""}function Wt(e){return e.replace(Dt,Ft)}function Ut(e){return Wt("-"+e)}var qt,Gt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===It){var r="mask-image";if(Wt(r)in t)return e;if(It+Ut(r)in t)return Nt+e}return e}},Bt={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==_t||Vt?e:Nt+e)}},Ht={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:Nt+e)}},Xt={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:Nt+e)}},Jt={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===It||"ms"===It&&"edge"!==Lt?Nt+e:e)}},Yt={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===It||"ms"===It||"apple"===_t?Nt+e:e)}},Zt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===It?"WebkitColumn"+Ut(e)in t&&Nt+"column-"+e:"Moz"===It&&"page"+Ut(e)in t&&"page-"+e)}},Kt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===It)return e;var r=e.replace("-inline","");return It+Ut(r)in t&&Nt+r}},Qt={supportedProperty:function(e,t){return Wt(e)in t&&e}},er={supportedProperty:function(e,t){var r=Ut(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:It+r in t?Nt+e:"Webkit"!==It&&"Webkit"+r in t&&"-webkit-"+e}},tr={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===It?""+Nt+e:e)}},rr={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===It?Nt+"scroll-chaining":e)}},nr={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},ir={supportedProperty:function(e,t){var r=nr[e];return!!r&&It+Ut(r)in t&&Nt+r}},or={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},sr=Object.keys(or),ar=function(e){return Nt+e},lr={supportedProperty:function(e,t,r){var n=r.multiple;if(sr.indexOf(e)>-1){var i=or[e];if(!Array.isArray(i))return It+Ut(i)in t&&Nt+i;if(!n)return!1;for(var o=0;o<i.length;o++)if(!(It+Ut(i[0])in t))return!1;return i.map(ar)}return!1}},ur=[$t,zt,Gt,Bt,Ht,Xt,Jt,Yt,Zt,Kt,Qt,er,tr,rr,ir,lr],cr=ur.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),dr=ur.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,function(e){if(Array.isArray(e))return Rt(e)}(r=t.noPrefill)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return Rt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Rt(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),e;var r}),[]),fr={};if(g){qt=document.createElement("p");var pr=window.getComputedStyle(document.documentElement,"");for(var hr in pr)isNaN(hr)||(fr[pr[hr]]=pr[hr]);dr.forEach((function(e){return delete fr[e]}))}function yr(e,t){if(void 0===t&&(t={}),!qt)return e;if(null!=fr[e])return fr[e];"transition"!==e&&"transform"!==e||(t[e]=e in qt.style);for(var r=0;r<cr.length&&(fr[e]=cr[r](e,qt.style,t),!fr[e]);r++);try{qt.style[e]=""}catch(e){return!1}return fr[e]}var mr,gr={},vr={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},br=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function wr(e,t,r){return"var"===t?"var":"all"===t?"all":"all"===r?", all":(t?yr(t):", "+yr(r))||t||r}function xr(e,t){var r=t;if(!mr||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=gr[n])return gr[n];try{mr.style[e]=r}catch(e){return gr[n]=!1,!1}if(vr[e])r=r.replace(br,wr);else if(""===mr.style[e]&&("-ms-flex"===(r=Nt+r)&&(mr.style[e]="-ms-flexbox"),mr.style[e]=r,""===mr.style[e]))return gr[n]=!1,!1;return mr.style[e]="",gr[n]=r,gr[n]}g&&(mr=document.createElement("p"));var kr=function(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var i=!1,o=yr(r);o&&o!==r&&(i=!0);var s=!1,a=xr(o,A(n));a&&a!==n&&(s=!0),(i||s)&&(i&&delete t[r],t[o||r]=a||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===It?e:"@"+Nt+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return xr(t,A(e))||e}}},Sr=function(e){return void 0===e&&(e={}),{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=E(e,{},r);return n[$e]=t,n},onProcessStyle:function(e,t){if(Ve in t||$e in t)return e;var r={};for(var n in e){var i=e[n];"function"==typeof i&&(delete e[n],r[n]=i)}return t[Ve]=r,e},onUpdate:function(e,t,r,n){var i=t,o=i[$e];o&&(i.style=o(e)||{});var s=i[Ve];if(s)for(var a in s)i.prop(a,s[a](e),n)}},(r=e.observable,{onCreateRule:function(e,t,n){if(!De(t))return null;var i=t,o=E(e,{},n);return i.subscribe((function(e){for(var t in e)o.prop(t,e[t],r)})),o},onProcessRule:function(e){if(!e||"style"===e.type){var t=e,n=t.style,i=function(e){var i=n[e];if(!De(i))return"continue";delete n[e],i.subscribe({next:function(n){t.prop(e,n,r)}})};for(var o in n)i(o)}}}),{onProcessRule:We},{onCreateRule:function(e,t,r){if(!e)return null;if(e===Ue)return new qe(e,t,r);if("@"===e[0]&&"@global "===e.substr(0,8))return new Ge(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,i=n?n[Ue]:null;if(i){for(var o in i)t.addRule(o,i[o],u({},r,{selector:He(o,e.selector)}));delete n[Ue]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var i in n)if("@"===i[0]&&i.substr(0,7)===Ue){var o=He(i.substr(7),e.selector);t.addRule(o,n[i],u({},r,{selector:o})),delete n[i]}}(e,t))}},Ze(),tt(),nt(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=ut(e[t]);return e}return ut(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=lt(t);return t===n?e:(r.prop(n,e),null)}},mt(e.defaultUnit),{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var r=0;r<e.length;r++)e[r]=St(e[r],t);return e}return St(e,t)}},kr(),(t=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n={},i=Object.keys(e).sort(t),o=0;o<i.length;o++)n[i[o]]=e[i[o]];return n}})]};var t,r},Rr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Pr=(function(e){var t={}}((function(e){return Rr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Me(Sr())),Or=function(e){void 0===e&&(e=Pr);var t,r=new Map,n=0,i=function(){return(!t||t.rules.index.length>1e4)&&(t=e.createStyleSheet().attach()),t};function o(){var e=arguments,t=JSON.stringify(e),o=r.get(t);if(o)return o.className;var s=[];for(var a in e){var l=e[a];if(Array.isArray(l))for(var u=0;u<l.length;u++)s.push(l[u]);else s.push(l)}for(var c={},d=[],f=0;f<s.length;f++){var p=s[f];if(p){var h=p;if("string"==typeof p){var y=r.get(p);y&&(y.labels.length&&d.push.apply(d,y.labels),h=y.style)}h.label&&-1===d.indexOf(h.label)&&d.push(h.label),Object.assign(c,h)}}delete c.label;var m=(0===d.length?"css":d.join("-"))+"-"+n++;i().addRule(m,c);var g=i().classes[m],v={style:c,labels:d,className:g};return r.set(t,v),r.set(g,v),g}return o.getSheet=i,o}(),Er=Or,Cr=Number.MIN_SAFE_INTEGER||-1e9,Ar=(0,e.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!g}),Tr=new Map,jr=function(e,t){var r=e.managers;if(r)return r[t]||(r[t]=new Ie),r[t];var n=Tr.get(t);return n||(n=new Ie,Tr.set(t,n)),n},Mr=function(e){var t=e.sheet,r=e.context,n=e.index,i=e.theme;t&&(jr(r,n).manage(i),r.registry&&r.registry.add(t))},Ir=Me(Sr()),Nr=new WeakMap,_r=function(e){return Nr.get(e)},Lr=function(e){if(!e.context.disableStylesGeneration){var t=jr(e.context,e.index),r=t.get(e.theme);if(r)return r;var n=e.context.jss||Ir,i=function(e){var t=e.styles;return"function"!=typeof t?t:t(e.theme)}(e),o=_e(i),s=n.createStyleSheet(i,function(e,t){var r;e.context.id&&null!=e.context.id.minify&&(r=e.context.id.minify);var n=e.context.classNamePrefix||"";e.name&&!r&&(n+=e.name.replace(/\s/g,"-")+"-");var i="";return e.name&&(i=e.name+", "),i+="function"==typeof e.styles?"Themed":"Unthemed",u({},e.sheetOptions,{index:e.index,meta:i,classNamePrefix:n,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}(e,null!==o));return function(e,t){Nr.set(e,t)}(s,{dynamicStyles:o,styles:i}),t.add(e.theme,s),s}},Vr=function(e,t){var r=_r(e);if(r){var n={};for(var i in r.dynamicStyles)for(var o=e.rules.index.length,s=e.addRule(i,r.dynamicStyles[i]),a=o;a<e.rules.index.length;a++){var l=e.rules.index[a];e.updateOne(l,t),n[s===l?i:l.key]=l}return n}};function $r(r){return r?e.useEffect:t().useInsertionEffect||e.useLayoutEffect}var zr={};Symbol("react-jss-styled"),function(e){void 0===e&&(e=Er)}();const Dr={neutral50:"#FAFAFA",neutral100:"#F5F5F5",neutral200:"#EEEEEE",neutral300:"#E0E0E0",neutral400:"#BDBDBD",neutral500:"#9E9E9E",neutral600:"#757575",neutral700:"#616161",neutral800:"#424242",neutral900:"#212121"},Fr=function(t,r){void 0===r&&(r={});var n=r,i=n.index,o=void 0===i?Cr++:i,s=n.theming,a=n.name,l=c(n,["index","theming","name"]),u=s&&s.context||y,d={};return function(r){var n=(0,e.useRef)(!0),i=(0,e.useContext)(Ar),s=function(r){return"function"==typeof t&&(r||(0,e.useContext)(u))||zr}(r&&r.theme),c=(0,e.useMemo)((function(){var e=Lr({context:i,styles:t,name:a,theme:s,index:o,sheetOptions:l});return e&&i.isSSR&&Mr({index:o,context:i,sheet:e,theme:s}),[e,e?Vr(e,r):null]}),[i,s]),f=c[0],p=c[1];$r(i.isSSR)((function(){f&&p&&!n.current&&function(e,t,r){for(var n in r)t.updateOne(r[n],e)}(r,f,p)}),[r]),$r(i.isSSR)((function(){return f&&Mr({index:o,context:i,sheet:f,theme:s}),function(){f&&(function(e){e.sheet&&jr(e.context,e.index).unmanage(e.theme)}({index:o,context:i,sheet:f,theme:s}),p&&function(e,t){for(var r in t)e.deleteRule(t[r])}(f,p))}}),[f]);var h=(0,e.useMemo)((function(){return f&&p?function(e,t){if(!t)return e.classes;var r=_r(e);if(!r)return e.classes;var n={};for(var i in r.styles)n[i]=e.classes[i],i in t&&(n[i]+=" "+e.classes[t[i].key]);return n}(f,p):d}),[f,p]);return(0,e.useDebugValue)(h),(0,e.useDebugValue)(s===zr?"No theme":s),(0,e.useEffect)((function(){n.current=!1})),h}}({component:{},cards:{display:"grid",gridTemplateColumns:"repeat(1,1fr)",gap:10,"@media (min-width: 600px)":{gridTemplateColumns:"repeat(2,1fr)"},"@media (min-width: 900px)":{gridTemplateColumns:"repeat(3,1fr)"}},card:{background:"white",borderRadius:"4px",paddingInline:15},label:{fontSize:"1.3em",marginBottom:2},count:{fontSize:"0.8em",color:Dr.neutral700},chart:{background:Dr.neutral300,height:10,maxWidth:400},bar:{height:10,background:"#718792"}});var Wr=window.wp.apiFetch,Ur=r.n(Wr),qr=r(322);const Gr=()=>{},Br=Gr(),Hr=Object,Xr=e=>e===Br,Jr=e=>"function"==typeof e,Yr=(e,t)=>({...e,...t}),Zr=new WeakMap;let Kr=0;const Qr=e=>{const t=typeof e,r=e&&e.constructor,n=r==Date;let i,o;if(Hr(e)!==e||n||r==RegExp)i=n?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(i=Zr.get(e),i)return i;if(i=++Kr+"~",Zr.set(e,i),r==Array){for(i="@",o=0;o<e.length;o++)i+=Qr(e[o])+",";Zr.set(e,i)}if(r==Hr){i="#";const t=Hr.keys(e).sort();for(;!Xr(o=t.pop());)Xr(e[o])||(i+=o+":"+Qr(e[o])+",");Zr.set(e,i)}}return i},en=new WeakMap,tn={},rn={},nn="undefined",on=typeof window!=nn,sn=typeof document!=nn,an=(e,t)=>{const r=en.get(e);return[()=>!Xr(t)&&e.get(t)||tn,n=>{if(!Xr(t)){const i=e.get(t);t in rn||(rn[t]=i),r[5](t,Yr(i,n),i||tn)}},r[6],()=>!Xr(t)&&t in rn?rn[t]:!Xr(t)&&e.get(t)||tn]};let ln=!0;const[un,cn]=on&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Gr,Gr],dn={isOnline:()=>ln,isVisible:()=>{const e=sn&&document.visibilityState;return Xr(e)||"hidden"!==e}},fn={initFocus:e=>(sn&&document.addEventListener("visibilitychange",e),un("focus",e),()=>{sn&&document.removeEventListener("visibilitychange",e),cn("focus",e)}),initReconnect:e=>{const t=()=>{ln=!0,e()},r=()=>{ln=!1};return un("online",t),un("offline",r),()=>{cn("online",t),cn("offline",r)}}},pn=!e.useId,hn=!on||"Deno"in window,yn=hn?e.useEffect:e.useLayoutEffect,mn="undefined"!=typeof navigator&&navigator.connection,gn=!hn&&mn&&(["slow-2g","2g"].includes(mn.effectiveType)||mn.saveData),vn=e=>{if(Jr(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Qr(e):"",t]};let bn=0;const wn=()=>++bn;async function xn(...e){const[t,r,n,i]=e,o=Yr({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{});let s=o.populateCache;const a=o.rollbackOnError;let l=o.optimisticData;const u=!1!==o.revalidate,c=o.throwOnError;if(Jr(r)){const e=r,n=[],i=t.keys();for(const r of i)!/^\$(inf|sub)\$/.test(r)&&e(t.get(r)._k)&&n.push(r);return Promise.all(n.map(d))}return d(r);async function d(r){const[i]=vn(r);if(!i)return;const[o,d]=an(t,i),[f,p,h,y]=en.get(t),m=()=>{const e=f[i];return u&&(delete h[i],delete y[i],e&&e[0])?e[0](2).then((()=>o().data)):o().data};if(e.length<3)return m();let g,v=n;const b=wn();p[i]=[b,0];const w=!Xr(l),x=o(),k=x.data,S=x._c,R=Xr(S)?k:S;if(w&&(l=Jr(l)?l(R,k):l,d({data:l,_c:R})),Jr(v))try{v=v(R)}catch(e){g=e}if(v&&Jr(v.then)){if(v=await v.catch((e=>{g=e})),b!==p[i][0]){if(g)throw g;return v}g&&w&&(e=>"function"==typeof a?a(e):!1!==a)(g)&&(s=!0,d({data:R,_c:Br}))}if(s&&!g)if(Jr(s)){const e=s(v,R);d({data:e,error:Br,_c:Br})}else d({data:v,error:Br,_c:Br});if(p[i][1]=wn(),Promise.resolve(m()).then((()=>{d({_c:Br})})),!g)return v;if(c)throw g}}const kn=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},Sn=(e,t)=>{if(!en.has(e)){const r=Yr(fn,t),n={},i=xn.bind(Br,e);let o=Gr;const s={},a=(e,t)=>{const r=s[e]||[];return s[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},l=(t,r,n)=>{e.set(t,r);const i=s[t];if(i)for(const e of i)e(r,n)},u=()=>{if(!en.has(e)&&(en.set(e,[n,{},{},{},i,l,a]),!hn)){const t=r.initFocus(setTimeout.bind(Br,kn.bind(Br,n,0))),i=r.initReconnect(setTimeout.bind(Br,kn.bind(Br,n,1)));o=()=>{t&&t(),i&&i(),en.delete(e)}}};return u(),[e,i,u,o]}return[e,en.get(e)[4]]},[Rn,Pn]=Sn(new Map),On=Yr({onLoadingSlow:Gr,onSuccess:Gr,onError:Gr,onErrorRetry:(e,__,t,r,n)=>{const i=t.errorRetryCount,o=n.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*t.errorRetryInterval;!Xr(i)&&o>i||setTimeout(r,s,n)},onDiscarded:Gr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:gn?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:gn?5e3:3e3,compare:(e,t)=>Qr(e)==Qr(t),isPaused:()=>!1,cache:Rn,mutate:Pn,fallback:{}},dn),En=(e,t)=>{const r=Yr(e,t);if(t){const{use:n,fallback:i}=e,{use:o,fallback:s}=t;n&&o&&(r.use=n.concat(o)),i&&s&&(r.fallback=Yr(i,s))}return r},Cn=(0,e.createContext)({}),An=on&&window.__SWR_DEVTOOLS_USE__,Tn=An?window.__SWR_DEVTOOLS_USE__:[],jn=Tn.concat((e=>(t,r,n)=>{const i=r&&((...e)=>{const[n]=vn(t),[,,,i]=en.get(Rn);if(n.startsWith("$inf$"))return r(...e);const o=i[n];return Xr(o)?r(...e):(delete i[n],o)});return e(t,i,n)}));An&&(window.__SWR_DEVTOOLS_REACT__=e);const Mn=e.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),In={dedupe:!0},Nn=(Hr.defineProperty((t=>{const{value:r}=t,n=(0,e.useContext)(Cn),i=Jr(r),o=(0,e.useMemo)((()=>i?r(n):r),[i,n,r]),s=(0,e.useMemo)((()=>i?o:En(n,o)),[i,n,o]),a=o&&o.provider,l=(0,e.useRef)(Br);a&&!l.current&&(l.current=Sn(a(s.cache||Rn),o));const u=l.current;return u&&(s.cache=u[0],s.mutate=u[1]),yn((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),(0,e.createElement)(Cn.Provider,Yr(t,{value:s}))}),"defaultValue",{value:On}),Ln=(t,r,n)=>{const{cache:i,compare:o,suspense:s,fallbackData:a,revalidateOnMount:l,revalidateIfStale:u,refreshInterval:c,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:p}=n,[h,y,m,g]=en.get(i),[v,b]=vn(t),w=(0,e.useRef)(!1),x=(0,e.useRef)(!1),k=(0,e.useRef)(v),S=(0,e.useRef)(r),R=(0,e.useRef)(n),P=()=>R.current,O=()=>P().isVisible()&&P().isOnline(),[E,C,A,T]=an(i,v),j=(0,e.useRef)({}).current,M=Xr(a)?n.fallback[v]:a,I=(e,t)=>{for(const r in j){const n=r;if("data"===n){if(!o(e[n],t[n])){if(!Xr(e[n]))return!1;if(!o(W,t[n]))return!1}}else if(t[n]!==e[n])return!1}return!0},N=(0,e.useMemo)((()=>{const e=!!v&&!!r&&(Xr(l)?!P().isPaused()&&!s&&(!!Xr(u)||u):l),t=t=>{const r=Yr(t);return delete r._k,e?{isValidating:!0,isLoading:!0,...r}:r},n=E(),i=T(),o=t(n),a=n===i?o:t(i);let c=o;return[()=>{const e=t(E());return I(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>a]}),[i,v]),_=(0,qr.useSyncExternalStore)((0,e.useCallback)((e=>A(v,((t,r)=>{I(r,t)||e()}))),[i,v]),N[0],N[1]),L=!w.current,V=h[v]&&h[v].length>0,$=_.data,z=Xr($)?M:$,D=_.error,F=(0,e.useRef)(z),W=p?Xr($)?F.current:$:z,U=!(V&&!Xr(D))&&(L&&!Xr(l)?l:!P().isPaused()&&(s?!Xr(z)&&u:Xr(z)||u)),q=!!(v&&r&&L&&U),G=Xr(_.isValidating)?q:_.isValidating,B=Xr(_.isLoading)?q:_.isLoading,H=(0,e.useCallback)((async e=>{const t=S.current;if(!v||!t||x.current||P().isPaused())return!1;let r,i,s=!0;const a=e||{},l=!m[v]||!a.dedupe,u=()=>pn?!x.current&&v===k.current&&w.current:v===k.current,c={isValidating:!1,isLoading:!1},d=()=>{C(c)},f=()=>{const e=m[v];e&&e[1]===i&&delete m[v]},p={isValidating:!0};Xr(E().data)&&(p.isLoading=!0);try{if(l&&(C(p),n.loadingTimeout&&Xr(E().data)&&setTimeout((()=>{s&&u()&&P().onLoadingSlow(v,n)}),n.loadingTimeout),m[v]=[t(b),wn()]),[r,i]=m[v],r=await r,l&&setTimeout(f,n.dedupingInterval),!m[v]||m[v][1]!==i)return l&&u()&&P().onDiscarded(v),!1;c.error=Br;const e=y[v];if(!Xr(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return d(),l&&u()&&P().onDiscarded(v),!1;const a=E().data;c.data=o(a,r)?a:r,l&&u()&&P().onSuccess(r,v,n)}catch(e){f();const t=P(),{shouldRetryOnError:r}=t;t.isPaused()||(c.error=e,l&&u()&&(t.onError(e,v,t),(!0===r||Jr(r)&&r(e))&&O()&&t.onErrorRetry(e,v,t,(e=>{const t=h[v];t&&t[0]&&t[0](3,e)}),{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return s=!1,d(),!0}),[v,i]),X=(0,e.useCallback)(((...e)=>xn(i,k.current,...e)),[]);if(yn((()=>{S.current=r,R.current=n,Xr($)||(F.current=$)})),yn((()=>{if(!v)return;const e=H.bind(Br,In);let t=0;const r=((e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}})(v,h,((r,n={})=>{if(0==r){const r=Date.now();P().revalidateOnFocus&&r>t&&O()&&(t=r+P().focusThrottleInterval,e())}else if(1==r)P().revalidateOnReconnect&&O()&&e();else{if(2==r)return H();if(3==r)return H(n)}}));return x.current=!1,k.current=v,w.current=!0,C({_k:b}),U&&(Xr(z)||hn?e():(n=e,on&&typeof window.requestAnimationFrame!=nn?window.requestAnimationFrame(n):setTimeout(n,1))),()=>{x.current=!0,r()};var n}),[v]),yn((()=>{let e;function t(){const t=Jr(c)?c(E().data):c;t&&-1!==e&&(e=setTimeout(r,t))}function r(){E().error||!d&&!P().isVisible()||!f&&!P().isOnline()?t():H(In).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[c,d,f,v]),(0,e.useDebugValue)(W),s&&Xr(z)&&v){if(!pn&&hn)throw new Error("Fallback data is required when using suspense in SSR.");S.current=r,R.current=n,x.current=!1;const e=g[v];if(!Xr(e)){const t=X(e);Mn(t)}if(!Xr(D))throw D;{const e=H(In);Xr(W)||(e.status="fulfilled",e.value=!0),Mn(e)}}return{mutate:X,get data(){return j.data=!0,W},get error(){return j.error=!0,D},get isValidating(){return j.isValidating=!0,G},get isLoading(){return j.isLoading=!0,B}}},function(...t){const r=Yr(On,(0,e.useContext)(Cn)),[n,i,o]=(e=>Jr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(t),s=En(r,o);let a=Ln;const{use:l}=s,u=(l||[]).concat(jn);for(let e=u.length;e--;)a=u[e](a);return a(n,i||s.fetcher||null,s)});var Ln;const Vn=(e,t)=>{const r={};return t.forEach((t=>{var n;const i=t[e];r[i]=(null!==(n=r[i])&&void 0!==n?n:0)+1})),Object.keys(r).map((e=>({key:e,value:r[e]})))},$n=(e,t)=>{const r={};return t.forEach((t=>{var n,i;const o=null!==(n=t.metas[e])&&void 0!==n?n:s("- no indication -");r[o]=(null!==(i=r[o])&&void 0!==i?i:0)+1})),Object.keys(r).map((e=>({key:e,value:r[e]})))},zn=({items:t})=>{const r=Fr(),n=t.reduce(((e,t)=>t.count+e),0);return(0,e.createElement)("ul",null,t.map((t=>{const i=t.count/n*100;return(0,e.createElement)("li",{key:t.label},(0,e.createElement)("div",{className:r.label},t.label),(0,e.createElement)("div",{className:r.chart},(0,e.createElement)("div",{className:r.bar,style:{width:i+"%"}})),(0,e.createElement)("div",{className:r.count},t.count))})))};var Dn=()=>{const t=Fr(),{routes:r}=((e="any",t="")=>{const{data:r,mutate:n}=Nn(a()+"/routes?status="+e+"&year="+t,(e=>Ur()({path:e})));return{routes:null!=r?r:[],update:e=>{Ur()({path:a()+"/routes/"+e.id,method:"PATCH",data:{name:e.name,status:e.status,difficulty:e.difficulty,grading_system:e.gradingSystem,created:e.created,metas:e.metas}}).finally((()=>{n(r.map((t=>({...t.id==e.id?e:t}))))}))},add:e=>{Ur()({path:a()+"/routes",method:"POST",data:{name:e.name,status:e.status,difficulty:e.difficulty,grading_system:e.gradingSystem,created:e.created,metas:e.metas}}).then((e=>{n([e,...r])}))},remove:e=>{Ur()({path:a()+"/routes/"+e,method:"DELETE"}).then((()=>{n(r.filter((t=>t.id!=e)))}))}}})("screwed-on"),n=l(window.ClimbPress.defaultGradingSystemId),i=window.ClimbPress.routeMetaStructure,u=(0,o.useMemo)((()=>i.map((e=>({key:e.key,label:e.label,routes:$n(e.key,r)})))),[i,r]),c=(0,o.useMemo)((()=>Vn("gradingSystem",r)),[r]),d=(0,o.useMemo)((()=>Vn("difficulty",r).sort(((e,t)=>parseInt(e.key)-parseInt(t.key)))),[r]);return(0,e.createElement)("div",{className:t.component},(0,e.createElement)("div",{className:t.cards},c.length>1?(0,e.createElement)("div",{className:t.card},(0,e.createElement)("h2",null,s("Grading-System")),(0,e.createElement)(zn,{items:c.map((e=>({label:e.key,count:e.value})))})):null,(0,e.createElement)("div",{className:t.card},(0,e.createElement)("h2",null,s("Grades")),(0,e.createElement)(zn,{items:d.map((e=>({label:((e,t)=>{let r=-1,n=-1;return t.grades.forEach(((t,i)=>{const o=Math.abs(t.difficulty-e);(n<0||n>o)&&(n=o,r=i)})),t.grades[r]})(parseInt(e.key),n).label,count:e.value})))})),u.map((r=>(0,e.createElement)("div",{className:t.card,key:r.key},(0,e.createElement)("h2",null,r.label),(0,e.createElement)(zn,{items:r.routes.map((e=>{var t;return{label:null!==(t=e.key)&&void 0!==t?t:s("- no value -"),count:e.value}}))}))))),(0,e.createElement)("p",null,s("These statistics contain all screwed on routes.")))};i()((()=>{(0,o.render)((0,e.createElement)(Dn,null),document.getElementById(window.ClimbPress.rootId))}))}()}();
     1!function(){"use strict";var e={535:function(e,t,r){var n=r(237),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=p(r);i&&i!==h&&e(t,i,n)}var s=c(r);d&&(s=s.concat(d(r)));for(var a=l(t),y=l(r),m=0;m<s.length;++m){var g=s[m];if(!(o[g]||n&&n[g]||y&&y[g]||a&&a[g])){var v=f(r,g);try{u(t,g,v)}catch(e){}}}}return t}},684:function(e,t){},198:function(e,t){var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case m:case y:case l:return e;default:return t}}case i:return t}}}function k(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=y,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||x(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===y},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=x},237:function(e,t,r){e.exports=r(198)},603:function(e,t,r){r.d(t,{Z:function(){return n}}),e=r.hmd(e);var n=function(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:e)},415:function(e,t,r){var n=r(196),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,s=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return a((function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,r,t]),s((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},322:function(e,t,r){e.exports=r(415)},196:function(e){e.exports=window.React}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n](o,o.exports,r),o.loaded=!0,o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e=r(196),t=r.n(e),n=window.wp.domReady,i=r.n(n),o=window.wp.element;const s=e=>{var t;return null!==(t=window.ClimbPress.i18n[e])&&void 0!==t?t:`? ${e} ?`},a=()=>window.ClimbPress.RESTNamespace,l=e=>{var t;return null!==(t=window.ClimbPress.gradingSystems.find((t=>t.id==e)))&&void 0!==t?t:null};function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function c(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}r(535);function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r(684);var h,y=(0,e.createContext)(),m=(function(e){}(h=y),function(e){}(h),function(e){var r=function(r){var n,i;function o(){for(var n,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return d(p(p(n=r.call.apply(r,[this].concat(o))||this)),"cachedTheme",void 0),d(p(p(n)),"lastOuterTheme",void 0),d(p(p(n)),"lastTheme",void 0),d(p(p(n)),"renderProvider",(function(r){var i=n.props.children;return t().createElement(e.Provider,{value:n.getTheme(r)},i)})),n}i=r,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var s=o.prototype;return s.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,"function"==typeof this.lastTheme){var t=this.props.theme;this.cachedTheme=t(e)}else{var r=this.props.theme;this.cachedTheme=e?f({},e,r):r}return this.cachedTheme},s.render=function(){return this.props.children?t().createElement(e.Consumer,null,this.renderProvider):null},o}(t().Component)}(h),"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),g="object"===("undefined"==typeof window?"undefined":m(window))&&"object"===("undefined"==typeof document?"undefined":m(document))&&9===document.nodeType;function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function b(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===v(t)?t:String(t)}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b(n.key),n)}}function x(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function S(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,k(e,t)}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var P={}.constructor;function O(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(O);if(e.constructor!==P)return e;var t={};for(var r in e)t[r]=O(e[r]);return t}function E(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,i=O(t);return n.plugins.onCreateRule(e,i,r)||(e[0],null)}var C=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},A=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=C(e[r]," ");else t=C(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function T(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function j(e,t){for(var r="",n=0;n<t;n++)r+="  ";return r+e}function M(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var i=r.indent,o=void 0===i?0:i,s=t.fallbacks;!1===r.format&&(o=-1/0);var a=T(r),l=a.linebreak,u=a.space;if(e&&o++,s)if(Array.isArray(s))for(var c=0;c<s.length;c++){var d=s[c];for(var f in d){var p=d[f];null!=p&&(n&&(n+=l),n+=j(f+":"+u+A(p)+";",o))}}else for(var h in s){var y=s[h];null!=y&&(n&&(n+=l),n+=j(h+":"+u+A(y)+";",o))}for(var m in t){var g=t[m];null!=g&&"fallbacks"!==m&&(n&&(n+=l),n+=j(m+":"+u+A(g)+";",o))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),j(""+e+u+"{"+n,--o)+j("}",o)):n}var I=/([[\].#*$><+~=|^:(),"'`\s])/g,N="undefined"!=typeof CSS&&CSS.escape,_=function(e){return N?N(e):e.replace(I,"\\$1")},L=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,i=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var i=t;r&&!1===r.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,s=e in this.style;if(o&&!s&&!n)return this;var a=o&&s;if(a?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),V=function(e){function t(t,r,n){var i;i=e.call(this,t,r,n)||this;var o=n.selector,s=n.scoped,a=n.sheet,l=n.generateId;return o?i.selectorText=o:!1!==s&&(i.id=l(R(R(i)),a),i.selectorText="."+_(i.id)),i}S(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=A(r))}return e},r.toString=function(e){var t=this.options.sheet,r=t&&t.options.link?u({},e,{allowEmpty:!0}):e;return M(this.selectorText,this.style,r)},x(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;r&&t&&(t.setSelector(r,e)||t.replaceRule(r,this))}},get:function(){return this.selectorText}}]),t}(L),$={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new V(e,t,r)}},z={indent:1,children:!0},D=/@([\w-]+)/,F=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(D);for(var i in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new de(u({},r,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=z);var t=T(e).linebreak;if(null==e.indent&&(e.indent=z.indent),null==e.children&&(e.children=z.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),W=/@container|@media|@supports\s+/,U={onCreateRule:function(e,t,r){return W.test(e)?new F(e,t,r):null}},q={indent:1,children:!0},G=/@keyframes\s+([\w-]+)/,B=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(G);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var i=r.scoped,o=r.sheet,s=r.generateId;for(var a in this.id=!1===i?this.name:_(s(this,o)),this.rules=new de(u({},r,{parent:this})),t)this.rules.add(a,t[a],u({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=q);var t=T(e).linebreak;if(null==e.indent&&(e.indent=q.indent),null==e.children&&(e.children=q.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),H=/@keyframes\s+/,X=/\$([\w-]+)/g,J=function(e,t){return"string"==typeof e?e.replace(X,(function(e,r){return r in t?t[r]:e})):e},Y=function(e,t,r){var n=e[t],i=J(n,r);i!==n&&(e[t]=i)},Z={onCreateRule:function(e,t,r){return"string"==typeof e&&H.test(e)?new B(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Y(e,"animation-name",r.keyframes),"animation"in e&&Y(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return J(e,n.keyframes);default:return e}}},K=function(e){function t(){return e.apply(this,arguments)||this}return S(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=t&&t.options.link?u({},e,{allowEmpty:!0}):e;return M(this.key,this.style,r)},t}(L),Q={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new K(e,t,r):null}},ee=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=T(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=M(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return M(this.at,this.style,e)},e}(),te=/@font-face/,re={onCreateRule:function(e,t,r){return te.test(e)?new ee(e,t,r):null}},ne=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return M(this.key,this.style,e)},e}(),ie={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new ne(e,t,r):null}},oe=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),se={"@charset":!0,"@import":!0,"@namespace":!0},ae={onCreateRule:function(e,t,r){return e in se?new oe(e,t,r):null}},le=[$,U,Z,Q,re,ie,ae],ue={process:!0},ce={force:!0,process:!0},de=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,i=n.parent,o=n.sheet,s=n.jss,a=n.Renderer,l=n.generateId,c=n.scoped,d=u({classes:this.classes,parent:i,sheet:o,jss:s,Renderer:a,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},r),f=e;e in this.raw&&(f=e+"-d"+this.counter++),this.raw[f]=t,f in this.classes&&(d.selector="."+_(this.classes[f]));var p=E(f,t,d);if(!p)return null;this.register(p);var h=void 0===d.index?this.index.length:d.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,r){var n=this.get(e),i=this.index.indexOf(n);n&&this.remove(n);var o=r;return-1!==i&&(o=u({},r,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof V?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof B&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof V?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof B&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=ue);var i=this.options,o=i.jss.plugins,s=i.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var a=t.style;if(o.onUpdate(r,t,s,n),n.process&&a&&a!==t.style){for(var l in o.onProcessStyle(t.style,t,s),t.style){var u=t.style[l];u!==a[l]&&t.prop(l,u,ce)}for(var c in a){var d=t.style[c],f=a[c];null==d&&d!==f&&t.prop(c,null,ce)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,i=T(e).linebreak,o=0;o<this.index.length;o++){var s=this.index[o].toString(e);(s||n)&&(t&&(t+=i),t+=s)}return t},e}(),fe=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=u({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new de(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var i=this.rules.add(e,t,r);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(n?n.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var i=this.rules.replace(e,t,r);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?n.renderable&&this.renderer.replaceRule(n.renderable,i):this.renderer.deleteRule(n)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var i=this.addRule(n,e[n],t);i&&r.push(i)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),pe=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var i=this.registry.onCreateRule[n](e,t,r);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,i=0;i<this.registry.onChangeValue.length;i++)n=this.registry.onChangeValue[i](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),he=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=c(t,["attached"]),i=T(n).linebreak,o="",s=0;s<this.registry.length;s++){var a=this.registry[s];null!=r&&a.attached!==r||(o&&(o+=i),o+=a.toString(n))}return o},x(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ye=new he,me="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ge="2f1acc6c3a606b082e5eef5e54414ffb";null==me[ge]&&(me[ge]=0);var ve=me[ge]++,be=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var i="",o="";return n&&(n.options.classNamePrefix&&(o=n.options.classNamePrefix),null!=n.options.jss.id&&(i=String(n.options.jss.id))),e.minify?""+(o||"c")+ve+i+t:o+r.key+"-"+ve+(i?"-"+i:"")+"-"+t}},we=function(e){var t;return function(){return t||(t=e()),t}},xe=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ke=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=A(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var i=n?n.indexOf("!important"):-1,o=i>-1?n.substr(0,i-1):n;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},Se=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Re=function(e,t){return e.selectorText=t,e.selectorText===t},Pe=we((function(){return document.querySelector("head")}));var Oe=we((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Ee=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},Ce=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Ae=function(){function e(e){this.getPropertyValue=xe,this.setProperty=ke,this.removeProperty=Se,this.setSelector=Re,this.hasInsertedRules=!1,this.cssRules=[],e&&ye.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var o=Oe();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=function(e){var t=ye.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var i=function(e){for(var t=Pe(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var i=r,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else Pe().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,i=r;if("conditional"===e.type||"keyframes"===e.type){var o=Ce(r,t);if(!1===(i=Ee(r,n.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(n.rules,i),i}var s=e.toString();if(!s)return!1;var a=Ce(r,t),l=Ee(r,s,a);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,a,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof fe&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Te=0,je=function(){function e(e){this.id=Te++,this.version="10.10.0",this.plugins=new pe,this.options={id:{minify:!1},createGenerateId:be,Renderer:g?Ae:null,plugins:[]},this.generateId=be({minify:!1});for(var t=0;t<le.length;t++)this.plugins.use(le[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=u({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===ye.index?0:ye.index+1);var n=new fe(e,u({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),ye.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=u({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var i=E(e,t,n);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.plugins.use(t)})),this},e}(),Me=function(e){return new je(e)},Ie=function(){function e(){this.length=0,this.sheets=new WeakMap}var t=e.prototype;return t.get=function(e){var t=this.sheets.get(e);return t&&t.sheet},t.add=function(e,t){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:t,refs:0}))},t.manage=function(e){var t=this.sheets.get(e);if(t)return 0===t.refs&&t.sheet.attach(),t.refs++,t.sheet},t.unmanage=function(e){var t=this.sheets.get(e);t&&t.refs>0&&(t.refs--,0===t.refs&&t.sheet.detach())},x(e,[{key:"size",get:function(){return this.length}}]),e}(),Ne="object"==typeof CSS&&null!=CSS&&"number"in CSS;function _e(e){var t=null;for(var r in e){var n=e[r],i=typeof n;if("function"===i)t||(t={}),t[r]=n;else if("object"===i&&null!==n&&!Array.isArray(n)){var o=_e(n);o&&(t||(t={}),t[r]=o)}}return t}Me();var Le=Date.now(),Ve="fnValues"+Le,$e="fnStyle"+ ++Le,ze=r(603),De=function(e){return e&&e[ze.Z]&&e===e[ze.Z]()},Fe=/;\n/,We=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},r=e.split(Fe),n=0;n<r.length;n++){var i=(r[n]||"").trim();if(i){var o=i.indexOf(":");if(-1!==o){var s=i.substr(0,o).trim(),a=i.substr(o+1).trim();t[s]=a}}}return t}(e.style))},Ue="@global",qe=function(){function e(e,t,r){for(var n in this.type="global",this.at=Ue,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new de(u({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Ge=function(){function e(e,t,r){this.type="global",this.at=Ue,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,u({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Be=/\s*,\s*/g;function He(e,t){for(var r=e.split(Be),n="",i=0;i<r.length;i++)n+=t+" "+r[i].trim(),r[i+1]&&(n+=", ");return n}var Xe=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},Je="extendCurrValue"+Date.now();function Ye(e,t,r,n){return void 0===n&&(n={}),function(e,t,r,n){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var i=0;i<e.extend.length;i++){var o=e.extend[i];Ye("string"==typeof o?u({},e,{extend:o}):e.extend[i],t,r,n)}else for(var s in e.extend)"extend"!==s?Xe(e.extend[s])?(s in n||(n[s]={}),Ye(e.extend[s],t,r,n[s])):n[s]=e.extend[s]:Ye(e.extend.extend,t,r,n);else{if(!r)return;var a=r.getRule(e.extend);if(!a)return;if(a===t)return;var l=a.options.parent;l&&Ye(l.rules.raw[e.extend],t,r,n)}}(e,t,r,n),function(e,t,r,n){for(var i in e)"extend"!==i&&(Xe(n[i])&&Xe(e[i])?Ye(e[i],t,r,n[i]):Xe(e[i])?n[i]=Ye(e[i],t,r):n[i]=e[i])}(e,t,r,n),n}var Ze=function(){return{onProcessStyle:function(e,t,r){return"extend"in e?Ye(e,t,r):e},onChangeValue:function(e,t,r){if("extend"!==t)return e;if(null==e||!1===e){for(var n in r[Je])r.prop(n,null);return r[Je]=null,null}if("object"==typeof e){for(var i in e)r.prop(i,e[i]);r[Je]=e}return null}}},Ke=/\s*,\s*/g,Qe=/&/g,et=/\$([\w-]+)/g,tt=function(){function e(e,t){return function(r,n){var i=e.getRule(n)||t&&t.getRule(n);return i?i.selector:n}}function t(e,t){for(var r=t.split(Ke),n=e.split(Ke),i="",o=0;o<r.length;o++)for(var s=r[o],a=0;a<n.length;a++){var l=n[a];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Qe,s):s+" "+l}return i}function r(e,t,r){if(r)return u({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var i=u({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(n,i,o){if("style"!==i.type)return n;var s,a,l=i,c=l.options.parent;for(var d in n){var f=-1!==d.indexOf("&"),p="@"===d[0];if(f||p){if(s=r(l,c,s),f){var h=t(d,l.selector);a||(a=e(c,o)),h=h.replace(et,a);var y=l.key+"-"+d;"replaceRule"in c?c.replaceRule(y,n[d],u({},s,{selector:h})):c.addRule(y,n[d],u({},s,{selector:h}))}else p&&c.addRule(d,{},s).addRule(l.key,n[d],{selector:l.selector});delete n[d]}}return n}}};function rt(e,t){if(!t)return!0;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(!rt(e,t[r]))return!1;return!0}if(t.indexOf(" ")>-1)return rt(e,t.split(" "));var n=e.options.parent;if("$"===t[0]){var i=n.getRule(t.substr(1));return!!i&&i!==e&&(n.classes[e.key]+=" "+n.classes[i.key],!0)}return n.classes[e.key]+=" "+t,!0}var nt=function(){return{onProcessStyle:function(e,t){return"composes"in e?(rt(t,e.composes),delete e.composes,e):e}}},it=/[A-Z]/g,ot=/^ms-/,st={};function at(e){return"-"+e.toLowerCase()}var lt=function(e){if(st.hasOwnProperty(e))return st[e];var t=e.replace(it,at);return st[e]=ot.test(t)?"-"+t:t};function ut(e){var t={};for(var r in e)t[0===r.indexOf("--")?r:lt(r)]=e[r];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(ut):t.fallbacks=ut(e.fallbacks)),t}var ct=Ne&&CSS?CSS.px:"px",dt=Ne&&CSS?CSS.ms:"ms",ft=Ne&&CSS?CSS.percent:"%";function pt(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var i in e)n[i]=e[i],n[i.replace(t,r)]=e[i];return n}var ht=pt({"animation-delay":dt,"animation-duration":dt,"background-position":ct,"background-position-x":ct,"background-position-y":ct,"background-size":ct,border:ct,"border-bottom":ct,"border-bottom-left-radius":ct,"border-bottom-right-radius":ct,"border-bottom-width":ct,"border-left":ct,"border-left-width":ct,"border-radius":ct,"border-right":ct,"border-right-width":ct,"border-top":ct,"border-top-left-radius":ct,"border-top-right-radius":ct,"border-top-width":ct,"border-width":ct,"border-block":ct,"border-block-end":ct,"border-block-end-width":ct,"border-block-start":ct,"border-block-start-width":ct,"border-block-width":ct,"border-inline":ct,"border-inline-end":ct,"border-inline-end-width":ct,"border-inline-start":ct,"border-inline-start-width":ct,"border-inline-width":ct,"border-start-start-radius":ct,"border-start-end-radius":ct,"border-end-start-radius":ct,"border-end-end-radius":ct,margin:ct,"margin-bottom":ct,"margin-left":ct,"margin-right":ct,"margin-top":ct,"margin-block":ct,"margin-block-end":ct,"margin-block-start":ct,"margin-inline":ct,"margin-inline-end":ct,"margin-inline-start":ct,padding:ct,"padding-bottom":ct,"padding-left":ct,"padding-right":ct,"padding-top":ct,"padding-block":ct,"padding-block-end":ct,"padding-block-start":ct,"padding-inline":ct,"padding-inline-end":ct,"padding-inline-start":ct,"mask-position-x":ct,"mask-position-y":ct,"mask-size":ct,height:ct,width:ct,"min-height":ct,"max-height":ct,"min-width":ct,"max-width":ct,bottom:ct,left:ct,top:ct,right:ct,inset:ct,"inset-block":ct,"inset-block-end":ct,"inset-block-start":ct,"inset-inline":ct,"inset-inline-end":ct,"inset-inline-start":ct,"box-shadow":ct,"text-shadow":ct,"column-gap":ct,"column-rule":ct,"column-rule-width":ct,"column-width":ct,"font-size":ct,"font-size-delta":ct,"letter-spacing":ct,"text-decoration-thickness":ct,"text-indent":ct,"text-stroke":ct,"text-stroke-width":ct,"word-spacing":ct,motion:ct,"motion-offset":ct,outline:ct,"outline-offset":ct,"outline-width":ct,perspective:ct,"perspective-origin-x":ft,"perspective-origin-y":ft,"transform-origin":ft,"transform-origin-x":ft,"transform-origin-y":ft,"transform-origin-z":ft,"transition-delay":dt,"transition-duration":dt,"vertical-align":ct,"flex-basis":ct,"shape-margin":ct,size:ct,gap:ct,grid:ct,"grid-gap":ct,"row-gap":ct,"grid-row-gap":ct,"grid-column-gap":ct,"grid-template-rows":ct,"grid-template-columns":ct,"grid-auto-rows":ct,"grid-auto-columns":ct,"box-shadow-x":ct,"box-shadow-y":ct,"box-shadow-blur":ct,"box-shadow-spread":ct,"font-line-height":ct,"text-shadow-x":ct,"text-shadow-y":ct,"text-shadow-blur":ct});function yt(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=yt(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=yt(i,t[i],r);else for(var o in t)t[o]=yt(e+"-"+o,t[o],r);else if("number"==typeof t&&!1===isNaN(t)){var s=r[e]||ht[e];return!s||0===t&&s===ct?t.toString():"function"==typeof s?s(t).toString():""+t+s}return t}var mt=function(e){void 0===e&&(e={});var t=pt(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=yt(n,e[n],t);return e},onChangeValue:function(e,r){return yt(r,e,t)}}},gt={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},vt={position:!0,size:!0},bt={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},wt={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function xt(e,t,r,n){return null==r[t]?e:0===e.length?[]:Array.isArray(e[0])?xt(e[0],t,r,n):"object"==typeof e[0]?function(e,t,r){return e.map((function(e){return kt(e,t,r,!1,!0)}))}(e,t,n):[e]}function kt(e,t,r,n,i){if(!bt[t]&&!wt[t])return[];var o=[];if(wt[t]&&(e=function(e,t,r,n){for(var i in r){var o=r[i];if(void 0!==e[i]&&(n||!t.prop(o))){var s,a=St((s={},s[o]=e[i],s),t)[o];n?t.style.fallbacks[o]=a:t.style[o]=a}delete e[i]}return e}(e,r,wt[t],n)),Object.keys(e).length)for(var s in bt[t])e[s]?Array.isArray(e[s])?o.push(null===vt[s]?e[s]:e[s].join(" ")):o.push(e[s]):null!=bt[t][s]&&o.push(bt[t][s]);return!o.length||i?o:[o]}function St(e,t,r){for(var n in e){var i=e[n];if(Array.isArray(i)){if(!Array.isArray(i[0])){if("fallbacks"===n){for(var o=0;o<e.fallbacks.length;o++)e.fallbacks[o]=St(e.fallbacks[o],t,!0);continue}e[n]=xt(i,n,gt,t),e[n].length||delete e[n]}}else if("object"==typeof i){if("fallbacks"===n){e.fallbacks=St(e.fallbacks,t,!0);continue}e[n]=kt(i,n,t,r),e[n].length||delete e[n]}else""===e[n]&&delete e[n]}return e}function Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Pt="",Ot="",Et="",Ct="",At=g&&"ontouchstart"in document.documentElement;if(g){var Tt={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},jt=document.createElement("p").style;for(var Mt in Tt)if(Mt+"Transform"in jt){Pt=Mt,Ot=Tt[Mt];break}"Webkit"===Pt&&"msHyphens"in jt&&(Pt="ms",Ot=Tt.ms,Ct="edge"),"Webkit"===Pt&&"-apple-trailing-word"in jt&&(Et="apple")}var It=Pt,Nt=Ot,_t=Et,Lt=Ct,Vt=At,$t={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===It?"-webkit-"+e:Nt+e)}},zt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===It?Nt+"print-"+e:e)}},Dt=/[-\s]+(.)?/g;function Ft(e,t){return t?t.toUpperCase():""}function Wt(e){return e.replace(Dt,Ft)}function Ut(e){return Wt("-"+e)}var qt,Gt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===It){var r="mask-image";if(Wt(r)in t)return e;if(It+Ut(r)in t)return Nt+e}return e}},Bt={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==_t||Vt?e:Nt+e)}},Ht={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:Nt+e)}},Xt={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:Nt+e)}},Jt={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===It||"ms"===It&&"edge"!==Lt?Nt+e:e)}},Yt={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===It||"ms"===It||"apple"===_t?Nt+e:e)}},Zt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===It?"WebkitColumn"+Ut(e)in t&&Nt+"column-"+e:"Moz"===It&&"page"+Ut(e)in t&&"page-"+e)}},Kt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===It)return e;var r=e.replace("-inline","");return It+Ut(r)in t&&Nt+r}},Qt={supportedProperty:function(e,t){return Wt(e)in t&&e}},er={supportedProperty:function(e,t){var r=Ut(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:It+r in t?Nt+e:"Webkit"!==It&&"Webkit"+r in t&&"-webkit-"+e}},tr={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===It?""+Nt+e:e)}},rr={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===It?Nt+"scroll-chaining":e)}},nr={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},ir={supportedProperty:function(e,t){var r=nr[e];return!!r&&It+Ut(r)in t&&Nt+r}},or={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},sr=Object.keys(or),ar=function(e){return Nt+e},lr={supportedProperty:function(e,t,r){var n=r.multiple;if(sr.indexOf(e)>-1){var i=or[e];if(!Array.isArray(i))return It+Ut(i)in t&&Nt+i;if(!n)return!1;for(var o=0;o<i.length;o++)if(!(It+Ut(i[0])in t))return!1;return i.map(ar)}return!1}},ur=[$t,zt,Gt,Bt,Ht,Xt,Jt,Yt,Zt,Kt,Qt,er,tr,rr,ir,lr],cr=ur.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),dr=ur.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,function(e){if(Array.isArray(e))return Rt(e)}(r=t.noPrefill)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return Rt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Rt(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),e;var r}),[]),fr={};if(g){qt=document.createElement("p");var pr=window.getComputedStyle(document.documentElement,"");for(var hr in pr)isNaN(hr)||(fr[pr[hr]]=pr[hr]);dr.forEach((function(e){return delete fr[e]}))}function yr(e,t){if(void 0===t&&(t={}),!qt)return e;if(null!=fr[e])return fr[e];"transition"!==e&&"transform"!==e||(t[e]=e in qt.style);for(var r=0;r<cr.length&&(fr[e]=cr[r](e,qt.style,t),!fr[e]);r++);try{qt.style[e]=""}catch(e){return!1}return fr[e]}var mr,gr={},vr={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},br=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function wr(e,t,r){return"var"===t?"var":"all"===t?"all":"all"===r?", all":(t?yr(t):", "+yr(r))||t||r}function xr(e,t){var r=t;if(!mr||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=gr[n])return gr[n];try{mr.style[e]=r}catch(e){return gr[n]=!1,!1}if(vr[e])r=r.replace(br,wr);else if(""===mr.style[e]&&("-ms-flex"===(r=Nt+r)&&(mr.style[e]="-ms-flexbox"),mr.style[e]=r,""===mr.style[e]))return gr[n]=!1,!1;return mr.style[e]="",gr[n]=r,gr[n]}g&&(mr=document.createElement("p"));var kr=function(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var i=!1,o=yr(r);o&&o!==r&&(i=!0);var s=!1,a=xr(o,A(n));a&&a!==n&&(s=!0),(i||s)&&(i&&delete t[r],t[o||r]=a||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===It?e:"@"+Nt+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return xr(t,A(e))||e}}},Sr=function(e){return void 0===e&&(e={}),{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=E(e,{},r);return n[$e]=t,n},onProcessStyle:function(e,t){if(Ve in t||$e in t)return e;var r={};for(var n in e){var i=e[n];"function"==typeof i&&(delete e[n],r[n]=i)}return t[Ve]=r,e},onUpdate:function(e,t,r,n){var i=t,o=i[$e];o&&(i.style=o(e)||{});var s=i[Ve];if(s)for(var a in s)i.prop(a,s[a](e),n)}},(r=e.observable,{onCreateRule:function(e,t,n){if(!De(t))return null;var i=t,o=E(e,{},n);return i.subscribe((function(e){for(var t in e)o.prop(t,e[t],r)})),o},onProcessRule:function(e){if(!e||"style"===e.type){var t=e,n=t.style,i=function(e){var i=n[e];if(!De(i))return"continue";delete n[e],i.subscribe({next:function(n){t.prop(e,n,r)}})};for(var o in n)i(o)}}}),{onProcessRule:We},{onCreateRule:function(e,t,r){if(!e)return null;if(e===Ue)return new qe(e,t,r);if("@"===e[0]&&"@global "===e.substr(0,8))return new Ge(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,i=n?n[Ue]:null;if(i){for(var o in i)t.addRule(o,i[o],u({},r,{selector:He(o,e.selector)}));delete n[Ue]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var i in n)if("@"===i[0]&&i.substr(0,7)===Ue){var o=He(i.substr(7),e.selector);t.addRule(o,n[i],u({},r,{selector:o})),delete n[i]}}(e,t))}},Ze(),tt(),nt(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=ut(e[t]);return e}return ut(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=lt(t);return t===n?e:(r.prop(n,e),null)}},mt(e.defaultUnit),{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var r=0;r<e.length;r++)e[r]=St(e[r],t);return e}return St(e,t)}},kr(),(t=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n={},i=Object.keys(e).sort(t),o=0;o<i.length;o++)n[i[o]]=e[i[o]];return n}})]};var t,r},Rr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Pr=(function(e){var t={}}((function(e){return Rr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Me(Sr())),Or=function(e){void 0===e&&(e=Pr);var t,r=new Map,n=0,i=function(){return(!t||t.rules.index.length>1e4)&&(t=e.createStyleSheet().attach()),t};function o(){var e=arguments,t=JSON.stringify(e),o=r.get(t);if(o)return o.className;var s=[];for(var a in e){var l=e[a];if(Array.isArray(l))for(var u=0;u<l.length;u++)s.push(l[u]);else s.push(l)}for(var c={},d=[],f=0;f<s.length;f++){var p=s[f];if(p){var h=p;if("string"==typeof p){var y=r.get(p);y&&(y.labels.length&&d.push.apply(d,y.labels),h=y.style)}h.label&&-1===d.indexOf(h.label)&&d.push(h.label),Object.assign(c,h)}}delete c.label;var m=(0===d.length?"css":d.join("-"))+"-"+n++;i().addRule(m,c);var g=i().classes[m],v={style:c,labels:d,className:g};return r.set(t,v),r.set(g,v),g}return o.getSheet=i,o}(),Er=Or,Cr=Number.MIN_SAFE_INTEGER||-1e9,Ar=(0,e.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!g}),Tr=new Map,jr=function(e,t){var r=e.managers;if(r)return r[t]||(r[t]=new Ie),r[t];var n=Tr.get(t);return n||(n=new Ie,Tr.set(t,n)),n},Mr=function(e){var t=e.sheet,r=e.context,n=e.index,i=e.theme;t&&(jr(r,n).manage(i),r.registry&&r.registry.add(t))},Ir=Me(Sr()),Nr=new WeakMap,_r=function(e){return Nr.get(e)},Lr=function(e){if(!e.context.disableStylesGeneration){var t=jr(e.context,e.index),r=t.get(e.theme);if(r)return r;var n=e.context.jss||Ir,i=function(e){var t=e.styles;return"function"!=typeof t?t:t(e.theme)}(e),o=_e(i),s=n.createStyleSheet(i,function(e,t){var r;e.context.id&&null!=e.context.id.minify&&(r=e.context.id.minify);var n=e.context.classNamePrefix||"";e.name&&!r&&(n+=e.name.replace(/\s/g,"-")+"-");var i="";return e.name&&(i=e.name+", "),i+="function"==typeof e.styles?"Themed":"Unthemed",u({},e.sheetOptions,{index:e.index,meta:i,classNamePrefix:n,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}(e,null!==o));return function(e,t){Nr.set(e,t)}(s,{dynamicStyles:o,styles:i}),t.add(e.theme,s),s}},Vr=function(e,t){var r=_r(e);if(r){var n={};for(var i in r.dynamicStyles)for(var o=e.rules.index.length,s=e.addRule(i,r.dynamicStyles[i]),a=o;a<e.rules.index.length;a++){var l=e.rules.index[a];e.updateOne(l,t),n[s===l?i:l.key]=l}return n}};function $r(r){return r?e.useEffect:t().useInsertionEffect||e.useLayoutEffect}var zr={};Symbol("react-jss-styled"),function(e){void 0===e&&(e=Er)}();const Dr={neutral50:"#FAFAFA",neutral100:"#F5F5F5",neutral200:"#EEEEEE",neutral300:"#E0E0E0",neutral400:"#BDBDBD",neutral500:"#9E9E9E",neutral600:"#757575",neutral700:"#616161",neutral800:"#424242",neutral900:"#212121"},Fr=function(t,r){void 0===r&&(r={});var n=r,i=n.index,o=void 0===i?Cr++:i,s=n.theming,a=n.name,l=c(n,["index","theming","name"]),u=s&&s.context||y,d={};return function(r){var n=(0,e.useRef)(!0),i=(0,e.useContext)(Ar),s=function(r){return"function"==typeof t&&(r||(0,e.useContext)(u))||zr}(r&&r.theme),c=(0,e.useMemo)((function(){var e=Lr({context:i,styles:t,name:a,theme:s,index:o,sheetOptions:l});return e&&i.isSSR&&Mr({index:o,context:i,sheet:e,theme:s}),[e,e?Vr(e,r):null]}),[i,s]),f=c[0],p=c[1];$r(i.isSSR)((function(){f&&p&&!n.current&&function(e,t,r){for(var n in r)t.updateOne(r[n],e)}(r,f,p)}),[r]),$r(i.isSSR)((function(){return f&&Mr({index:o,context:i,sheet:f,theme:s}),function(){f&&(function(e){e.sheet&&jr(e.context,e.index).unmanage(e.theme)}({index:o,context:i,sheet:f,theme:s}),p&&function(e,t){for(var r in t)e.deleteRule(t[r])}(f,p))}}),[f]);var h=(0,e.useMemo)((function(){return f&&p?function(e,t){if(!t)return e.classes;var r=_r(e);if(!r)return e.classes;var n={};for(var i in r.styles)n[i]=e.classes[i],i in t&&(n[i]+=" "+e.classes[t[i].key]);return n}(f,p):d}),[f,p]);return(0,e.useDebugValue)(h),(0,e.useDebugValue)(s===zr?"No theme":s),(0,e.useEffect)((function(){n.current=!1})),h}}({component:{},cards:{display:"grid",gridTemplateColumns:"repeat(1,1fr)",gap:10,"@media (min-width: 600px)":{gridTemplateColumns:"repeat(2,1fr)"},"@media (min-width: 900px)":{gridTemplateColumns:"repeat(3,1fr)"}},card:{background:"white",borderRadius:"4px",paddingInline:15},label:{fontSize:"1.3em",marginBottom:2},count:{fontSize:"0.8em",color:Dr.neutral700},chart:{background:Dr.neutral300,height:10,maxWidth:400},bar:{height:10,background:"#718792"}});var Wr=window.wp.apiFetch,Ur=r.n(Wr),qr=r(322);const Gr=()=>{},Br=Gr(),Hr=Object,Xr=e=>e===Br,Jr=e=>"function"==typeof e,Yr=(e,t)=>({...e,...t}),Zr=new WeakMap;let Kr=0;const Qr=e=>{const t=typeof e,r=e&&e.constructor,n=r==Date;let i,o;if(Hr(e)!==e||n||r==RegExp)i=n?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(i=Zr.get(e),i)return i;if(i=++Kr+"~",Zr.set(e,i),r==Array){for(i="@",o=0;o<e.length;o++)i+=Qr(e[o])+",";Zr.set(e,i)}if(r==Hr){i="#";const t=Hr.keys(e).sort();for(;!Xr(o=t.pop());)Xr(e[o])||(i+=o+":"+Qr(e[o])+",");Zr.set(e,i)}}return i},en=new WeakMap,tn={},rn={},nn="undefined",on=typeof window!=nn,sn=typeof document!=nn,an=(e,t)=>{const r=en.get(e);return[()=>!Xr(t)&&e.get(t)||tn,n=>{if(!Xr(t)){const i=e.get(t);t in rn||(rn[t]=i),r[5](t,Yr(i,n),i||tn)}},r[6],()=>!Xr(t)&&t in rn?rn[t]:!Xr(t)&&e.get(t)||tn]};let ln=!0;const[un,cn]=on&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Gr,Gr],dn={isOnline:()=>ln,isVisible:()=>{const e=sn&&document.visibilityState;return Xr(e)||"hidden"!==e}},fn={initFocus:e=>(sn&&document.addEventListener("visibilitychange",e),un("focus",e),()=>{sn&&document.removeEventListener("visibilitychange",e),cn("focus",e)}),initReconnect:e=>{const t=()=>{ln=!0,e()},r=()=>{ln=!1};return un("online",t),un("offline",r),()=>{cn("online",t),cn("offline",r)}}},pn=!e.useId,hn=!on||"Deno"in window,yn=hn?e.useEffect:e.useLayoutEffect,mn="undefined"!=typeof navigator&&navigator.connection,gn=!hn&&mn&&(["slow-2g","2g"].includes(mn.effectiveType)||mn.saveData),vn=e=>{if(Jr(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Qr(e):"",t]};let bn=0;const wn=()=>++bn;async function xn(...e){const[t,r,n,i]=e,o=Yr({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{});let s=o.populateCache;const a=o.rollbackOnError;let l=o.optimisticData;const u=o.throwOnError;if(Jr(r)){const e=r,n=[],i=t.keys();for(const r of i)!/^\$(inf|sub)\$/.test(r)&&e(t.get(r)._k)&&n.push(r);return Promise.all(n.map(c))}return c(r);async function c(r){const[i]=vn(r);if(!i)return;const[c,d]=an(t,i),[f,p,h,y]=en.get(t),m=()=>{const e=f[i];return(Jr(o.revalidate)?o.revalidate(c().data,r):!1!==o.revalidate)&&(delete h[i],delete y[i],e&&e[0])?e[0](2).then((()=>c().data)):c().data};if(e.length<3)return m();let g,v=n;const b=wn();p[i]=[b,0];const w=!Xr(l),x=c(),k=x.data,S=x._c,R=Xr(S)?k:S;if(w&&(l=Jr(l)?l(R,k):l,d({data:l,_c:R})),Jr(v))try{v=v(R)}catch(e){g=e}if(v&&Jr(v.then)){if(v=await v.catch((e=>{g=e})),b!==p[i][0]){if(g)throw g;return v}g&&w&&(e=>"function"==typeof a?a(e):!1!==a)(g)&&(s=!0,d({data:R,_c:Br}))}if(s&&!g)if(Jr(s)){const e=s(v,R);d({data:e,error:Br,_c:Br})}else d({data:v,error:Br,_c:Br});if(p[i][1]=wn(),Promise.resolve(m()).then((()=>{d({_c:Br})})),!g)return v;if(u)throw g}}const kn=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},Sn=(e,t)=>{if(!en.has(e)){const r=Yr(fn,t),n={},i=xn.bind(Br,e);let o=Gr;const s={},a=(e,t)=>{const r=s[e]||[];return s[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},l=(t,r,n)=>{e.set(t,r);const i=s[t];if(i)for(const e of i)e(r,n)},u=()=>{if(!en.has(e)&&(en.set(e,[n,{},{},{},i,l,a]),!hn)){const t=r.initFocus(setTimeout.bind(Br,kn.bind(Br,n,0))),i=r.initReconnect(setTimeout.bind(Br,kn.bind(Br,n,1)));o=()=>{t&&t(),i&&i(),en.delete(e)}}};return u(),[e,i,u,o]}return[e,en.get(e)[4]]},[Rn,Pn]=Sn(new Map),On=Yr({onLoadingSlow:Gr,onSuccess:Gr,onError:Gr,onErrorRetry:(e,__,t,r,n)=>{const i=t.errorRetryCount,o=n.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*t.errorRetryInterval;!Xr(i)&&o>i||setTimeout(r,s,n)},onDiscarded:Gr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:gn?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:gn?5e3:3e3,compare:(e,t)=>Qr(e)==Qr(t),isPaused:()=>!1,cache:Rn,mutate:Pn,fallback:{}},dn),En=(e,t)=>{const r=Yr(e,t);if(t){const{use:n,fallback:i}=e,{use:o,fallback:s}=t;n&&o&&(r.use=n.concat(o)),i&&s&&(r.fallback=Yr(i,s))}return r},Cn=(0,e.createContext)({}),An=on&&window.__SWR_DEVTOOLS_USE__,Tn=An?window.__SWR_DEVTOOLS_USE__:[],jn=Tn.concat((e=>(t,r,n)=>{const i=r&&((...e)=>{const[n]=vn(t),[,,,i]=en.get(Rn);if(n.startsWith("$inf$"))return r(...e);const o=i[n];return Xr(o)?r(...e):(delete i[n],o)});return e(t,i,n)}));An&&(window.__SWR_DEVTOOLS_REACT__=e);const Mn=e.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),In={dedupe:!0},Nn=(Hr.defineProperty((t=>{const{value:r}=t,n=(0,e.useContext)(Cn),i=Jr(r),o=(0,e.useMemo)((()=>i?r(n):r),[i,n,r]),s=(0,e.useMemo)((()=>i?o:En(n,o)),[i,n,o]),a=o&&o.provider,l=(0,e.useRef)(Br);a&&!l.current&&(l.current=Sn(a(s.cache||Rn),o));const u=l.current;return u&&(s.cache=u[0],s.mutate=u[1]),yn((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),(0,e.createElement)(Cn.Provider,Yr(t,{value:s}))}),"defaultValue",{value:On}),Ln=(t,r,n)=>{const{cache:i,compare:o,suspense:s,fallbackData:a,revalidateOnMount:l,revalidateIfStale:u,refreshInterval:c,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:p}=n,[h,y,m,g]=en.get(i),[v,b]=vn(t),w=(0,e.useRef)(!1),x=(0,e.useRef)(!1),k=(0,e.useRef)(v),S=(0,e.useRef)(r),R=(0,e.useRef)(n),P=()=>R.current,O=()=>P().isVisible()&&P().isOnline(),[E,C,A,T]=an(i,v),j=(0,e.useRef)({}).current,M=Xr(a)?n.fallback[v]:a,I=(e,t)=>{for(const r in j){const n=r;if("data"===n){if(!o(e[n],t[n])){if(!Xr(e[n]))return!1;if(!o(W,t[n]))return!1}}else if(t[n]!==e[n])return!1}return!0},N=(0,e.useMemo)((()=>{const e=!!v&&!!r&&(Xr(l)?!P().isPaused()&&!s&&(!!Xr(u)||u):l),t=t=>{const r=Yr(t);return delete r._k,e?{isValidating:!0,isLoading:!0,...r}:r},n=E(),i=T(),o=t(n),a=n===i?o:t(i);let c=o;return[()=>{const e=t(E());return I(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>a]}),[i,v]),_=(0,qr.useSyncExternalStore)((0,e.useCallback)((e=>A(v,((t,r)=>{I(r,t)||e()}))),[i,v]),N[0],N[1]),L=!w.current,V=h[v]&&h[v].length>0,$=_.data,z=Xr($)?M:$,D=_.error,F=(0,e.useRef)(z),W=p?Xr($)?F.current:$:z,U=!(V&&!Xr(D))&&(L&&!Xr(l)?l:!P().isPaused()&&(s?!Xr(z)&&u:Xr(z)||u)),q=!!(v&&r&&L&&U),G=Xr(_.isValidating)?q:_.isValidating,B=Xr(_.isLoading)?q:_.isLoading,H=(0,e.useCallback)((async e=>{const t=S.current;if(!v||!t||x.current||P().isPaused())return!1;let r,i,s=!0;const a=e||{},l=!m[v]||!a.dedupe,u=()=>pn?!x.current&&v===k.current&&w.current:v===k.current,c={isValidating:!1,isLoading:!1},d=()=>{C(c)},f=()=>{const e=m[v];e&&e[1]===i&&delete m[v]},p={isValidating:!0};Xr(E().data)&&(p.isLoading=!0);try{if(l&&(C(p),n.loadingTimeout&&Xr(E().data)&&setTimeout((()=>{s&&u()&&P().onLoadingSlow(v,n)}),n.loadingTimeout),m[v]=[t(b),wn()]),[r,i]=m[v],r=await r,l&&setTimeout(f,n.dedupingInterval),!m[v]||m[v][1]!==i)return l&&u()&&P().onDiscarded(v),!1;c.error=Br;const e=y[v];if(!Xr(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return d(),l&&u()&&P().onDiscarded(v),!1;const a=E().data;c.data=o(a,r)?a:r,l&&u()&&P().onSuccess(r,v,n)}catch(e){f();const t=P(),{shouldRetryOnError:r}=t;t.isPaused()||(c.error=e,l&&u()&&(t.onError(e,v,t),(!0===r||Jr(r)&&r(e))&&(P().revalidateOnFocus&&P().revalidateOnReconnect&&!O()||t.onErrorRetry(e,v,t,(e=>{const t=h[v];t&&t[0]&&t[0](3,e)}),{retryCount:(a.retryCount||0)+1,dedupe:!0}))))}return s=!1,d(),!0}),[v,i]),X=(0,e.useCallback)(((...e)=>xn(i,k.current,...e)),[]);if(yn((()=>{S.current=r,R.current=n,Xr($)||(F.current=$)})),yn((()=>{if(!v)return;const e=H.bind(Br,In);let t=0;const r=((e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}})(v,h,((r,n={})=>{if(0==r){const r=Date.now();P().revalidateOnFocus&&r>t&&O()&&(t=r+P().focusThrottleInterval,e())}else if(1==r)P().revalidateOnReconnect&&O()&&e();else{if(2==r)return H();if(3==r)return H(n)}}));return x.current=!1,k.current=v,w.current=!0,C({_k:b}),U&&(Xr(z)||hn?e():(n=e,on&&typeof window.requestAnimationFrame!=nn?window.requestAnimationFrame(n):setTimeout(n,1))),()=>{x.current=!0,r()};var n}),[v]),yn((()=>{let e;function t(){const t=Jr(c)?c(E().data):c;t&&-1!==e&&(e=setTimeout(r,t))}function r(){E().error||!d&&!P().isVisible()||!f&&!P().isOnline()?t():H(In).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[c,d,f,v]),(0,e.useDebugValue)(W),s&&Xr(z)&&v){if(!pn&&hn)throw new Error("Fallback data is required when using suspense in SSR.");S.current=r,R.current=n,x.current=!1;const e=g[v];if(!Xr(e)){const t=X(e);Mn(t)}if(!Xr(D))throw D;{const e=H(In);Xr(W)||(e.status="fulfilled",e.value=!0),Mn(e)}}return{mutate:X,get data(){return j.data=!0,W},get error(){return j.error=!0,D},get isValidating(){return j.isValidating=!0,G},get isLoading(){return j.isLoading=!0,B}}},function(...t){const r=Yr(On,(0,e.useContext)(Cn)),[n,i,o]=(e=>Jr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(t),s=En(r,o);let a=Ln;const{use:l}=s,u=(l||[]).concat(jn);for(let e=u.length;e--;)a=u[e](a);return a(n,i||s.fetcher||null,s)});var Ln;const Vn=(e,t)=>{const r={};return t.forEach((t=>{var n;const i=t[e];r[i]=(null!==(n=r[i])&&void 0!==n?n:0)+1})),Object.keys(r).map((e=>({key:e,value:r[e]})))},$n=(e,t)=>{const r={};return t.forEach((t=>{var n,i;const o=null!==(n=t.metas[e])&&void 0!==n?n:s("- no indication -");r[o]=(null!==(i=r[o])&&void 0!==i?i:0)+1})),Object.keys(r).map((e=>({key:e,value:r[e]})))},zn=({items:t})=>{const r=Fr(),n=t.reduce(((e,t)=>t.count+e),0);return(0,e.createElement)("ul",null,t.map((t=>{const i=t.count/n*100;return(0,e.createElement)("li",{key:t.label},(0,e.createElement)("div",{className:r.label},t.label),(0,e.createElement)("div",{className:r.chart},(0,e.createElement)("div",{className:r.bar,style:{width:i+"%"}})),(0,e.createElement)("div",{className:r.count},t.count))})))};var Dn=()=>{const t=Fr(),{routes:r}=((e="any",t="")=>{const{data:r,mutate:n}=Nn(a()+"/routes?status="+e+"&year="+t,(e=>Ur()({path:e})));return{routes:null!=r?r:[],update:e=>{Ur()({path:a()+"/routes/"+e.id,method:"PATCH",data:{name:e.name,status:e.status,difficulty:e.difficulty,grading_system:e.gradingSystem,created:e.created,metas:e.metas}}).finally((()=>{n(r.map((t=>({...t.id==e.id?e:t}))))}))},add:e=>{Ur()({path:a()+"/routes",method:"POST",data:{name:e.name,status:e.status,difficulty:e.difficulty,grading_system:e.gradingSystem,created:e.created,metas:e.metas}}).then((e=>{n([e,...r])}))},remove:e=>{Ur()({path:a()+"/routes/"+e,method:"DELETE"}).then((()=>{n(r.filter((t=>t.id!=e)))}))}}})("screwed-on"),n=l(window.ClimbPress.defaultGradingSystemId),i=window.ClimbPress.routeMetaStructure,u=(0,o.useMemo)((()=>i.map((e=>({key:e.key,label:e.label,routes:$n(e.key,r)})))),[i,r]),c=(0,o.useMemo)((()=>Vn("gradingSystem",r)),[r]),d=(0,o.useMemo)((()=>Vn("difficulty",r).sort(((e,t)=>parseInt(e.key)-parseInt(t.key)))),[r]);return(0,e.createElement)("div",{className:t.component},(0,e.createElement)("div",{className:t.cards},c.length>1?(0,e.createElement)("div",{className:t.card},(0,e.createElement)("h2",null,s("Grading-System")),(0,e.createElement)(zn,{items:c.map((e=>({label:e.key,count:e.value})))})):null,(0,e.createElement)("div",{className:t.card},(0,e.createElement)("h2",null,s("Grades")),(0,e.createElement)(zn,{items:d.map((e=>({label:((e,t)=>{let r=-1,n=-1;return t.grades.forEach(((t,i)=>{const o=Math.abs(t.difficulty-e);(n<0||n>o)&&(n=o,r=i)})),t.grades[r]})(parseInt(e.key),n).label,count:e.value})))})),u.map((r=>(0,e.createElement)("div",{className:t.card,key:r.key},(0,e.createElement)("h2",null,r.label),(0,e.createElement)(zn,{items:r.routes.map((e=>{var t;return{label:null!==(t=e.key)&&void 0!==t?t:s("- no value -"),count:e.value}}))}))))),(0,e.createElement)("p",null,s("These statistics contain all screwed on routes.")))};i()((()=>{(0,o.render)((0,e.createElement)(Dn,null),document.getElementById(window.ClimbPress.rootId))}))}()}();
  • climbpress/tags/0.6.2/plugin.php

    r3024800 r3045938  
    55 * Plugin URI: https://www.climbpress.com/
    66 * Description: Route management for climbing and boulder gyms
    7  * Version: 0.6.1
     7 * Version: 0.6.2
    88 * Author: Edward Bock <hi@edwardbock.de>
    99 * Author URI: https://www.edwardbock.de
    1010 * Requires at least: 5.0
    11  * Tested up to: 6.4.2
     11 * Tested up to: 6.4.3
    1212 * Requires PHP: 8.0
    1313 * Text Domain: climbpress
    1414 * License: http://www.gnu.org/licenses/gpl-2.0.html GPLv2
    15  * @copyright Copyright (c) 2023, Edward Bock
     15 * @copyright Copyright by Edward Bock
    1616 * @package ClimbPress
    1717 *
  • climbpress/tags/0.6.2/vendor/composer/installed.php

    r3024800 r3045938  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '4865370b023bb817af2e5caad812ff3e2696f3c7',
     6        'reference' => 'f9f75480cb70a6542683e7a437cf3a1d06944eab',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => '4865370b023bb817af2e5caad812ff3e2696f3c7',
     16            'reference' => 'f9f75480cb70a6542683e7a437cf3a1d06944eab',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • climbpress/tags/0.6.2/web-components/routes.js

    r3024800 r3045938  
    77 * Copyright 2017 Google LLC
    88 * SPDX-License-Identifier: BSD-3-Clause
    9  */const{is:Dt,defineProperty:zt,getOwnPropertyDescriptor:Bt,getOwnPropertyNames:Jt,getOwnPropertySymbols:qt,getPrototypeOf:Ft}=Object,A=globalThis,vt=A.trustedTypes,Gt=vt?vt.emptyScript:"",X=A.reactiveElementPolyfillSupport,H=(s,t)=>s,W={toAttribute(s,t){switch(t){case Boolean:s=s?Gt:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},it=(s,t)=>!Dt(s,t),gt={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:it};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),A.litPropertyMetadata??(A.litPropertyMetadata=new WeakMap);class N extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=gt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&zt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){const{get:i,set:o}=Bt(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return i==null?void 0:i.call(this)},set(n){const l=i==null?void 0:i.call(this);o.call(this,n),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??gt}static _$Ei(){if(this.hasOwnProperty(H("elementProperties")))return;const t=Ft(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(H("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(H("properties"))){const e=this.properties,r=[...Jt(e),...qt(e)];for(const i of r)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)e.unshift(bt(i))}else t!==void 0&&e.push(bt(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$ES)==null||e.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Lt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(e=>{var r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e){var o;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const n=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:W).toAttribute(e,r.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var o;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=r.getPropertyOptions(i),l=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:W;this._$Em=i,this[i]=l.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,r,i=!1,o){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??it)(i?o:this[t],e))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,n]of i)n.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.C(o,this[o],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(r=this._$ES)==null||r.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)==null||e.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EO(e,this[e]))),this._$ET()}updated(t){}firstUpdated(t){}}N.elementStyles=[],N.shadowRootOptions={mode:"open"},N[H("elementProperties")]=new Map,N[H("finalized")]=new Map,X==null||X({ReactiveElement:N}),(A.reactiveElementVersions??(A.reactiveElementVersions=[])).push("2.0.1");/**
     9 */const{is:Dt,defineProperty:zt,getOwnPropertyDescriptor:Bt,getOwnPropertyNames:Jt,getOwnPropertySymbols:qt,getPrototypeOf:Ft}=Object,A=globalThis,vt=A.trustedTypes,Gt=vt?vt.emptyScript:"",X=A.reactiveElementPolyfillSupport,H=(s,t)=>s,W={toAttribute(s,t){switch(t){case Boolean:s=s?Gt:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},it=(s,t)=>!Dt(s,t),ft={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:it};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),A.litPropertyMetadata??(A.litPropertyMetadata=new WeakMap);class U extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ft){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&zt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){const{get:i,set:o}=Bt(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return i==null?void 0:i.call(this)},set(n){const l=i==null?void 0:i.call(this);o.call(this,n),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ft}static _$Ei(){if(this.hasOwnProperty(H("elementProperties")))return;const t=Ft(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(H("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(H("properties"))){const e=this.properties,r=[...Jt(e),...qt(e)];for(const i of r)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)e.unshift(bt(i))}else t!==void 0&&e.push(bt(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Lt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var o;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const n=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:W).toAttribute(e,r.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var o;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=r.getPropertyOptions(i),l=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:W;this._$Em=i,this[i]=l.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,r){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??it)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,n]of i)n.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(r=this._$EO)==null||r.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(e)):this._$EU()}catch(i){throw t=!1,this._$EU(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}U.elementStyles=[],U.shadowRootOptions={mode:"open"},U[H("elementProperties")]=new Map,U[H("finalized")]=new Map,X==null||X({ReactiveElement:U}),(A.reactiveElementVersions??(A.reactiveElementVersions=[])).push("2.0.4");/**
    1010 * @license
    1111 * Copyright 2017 Google LLC
    1212 * SPDX-License-Identifier: BSD-3-Clause
    13  */const V=globalThis,Q=V.trustedTypes,ft=Q?Q.createPolicy("lit-html",{createHTML:s=>s}):void 0,Et="$lit$",_=`lit$${(Math.random()+"").slice(9)}$`,Ct="?"+_,Wt=`<${Ct}>`,O=document,L=()=>O.createComment(""),D=s=>s===null||typeof s!="object"&&typeof s!="function",Pt=Array.isArray,Qt=s=>Pt(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Y=`[ 
     13 */const V=globalThis,Q=V.trustedTypes,gt=Q?Q.createPolicy("lit-html",{createHTML:s=>s}):void 0,Et="$lit$",_=`lit$${(Math.random()+"").slice(9)}$`,Ct="?"+_,Wt=`<${Ct}>`,O=document,L=()=>O.createComment(""),D=s=>s===null||typeof s!="object"&&typeof s!="function",Pt=Array.isArray,Qt=s=>Pt(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Y=`[ 
    1414\f\r]`,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,mt=/-->/g,yt=/>/g,C=RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^     
    15 \f\r"'\`<>=]|("|')|))|$)`,"g"),$t=/'/g,_t=/"/g,Ot=/^(?:script|style|textarea|title)$/i,Kt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),w=Kt(1),T=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),wt=new WeakMap,P=O.createTreeWalker(O,129);function Tt(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return ft!==void 0?ft.createHTML(t):t}const Xt=(s,t)=>{const e=s.length-1,r=[];let i,o=t===2?"<svg>":"",n=M;for(let l=0;l<e;l++){const a=s[l];let d,u,c=-1,b=0;for(;b<a.length&&(n.lastIndex=b,u=n.exec(a),u!==null);)b=n.lastIndex,n===M?u[1]==="!--"?n=mt:u[1]!==void 0?n=yt:u[2]!==void 0?(Ot.test(u[2])&&(i=RegExp("</"+u[2],"g")),n=C):u[3]!==void 0&&(n=C):n===C?u[0]===">"?(n=i??M,c=-1):u[1]===void 0?c=-2:(c=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?C:u[3]==='"'?_t:$t):n===_t||n===$t?n=C:n===mt||n===yt?n=M:(n=C,i=void 0);const f=n===C&&s[l+1].startsWith("/>")?" ":"";o+=n===M?a+Wt:c>=0?(r.push(d),a.slice(0,c)+Et+a.slice(c)+_+f):a+_+(c===-2?l:f)}return[Tt(s,o+(s[e]||"<?>")+(t===2?"</svg>":"")),r]};class z{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let o=0,n=0;const l=t.length-1,a=this.parts,[d,u]=Xt(t,e);if(this.el=z.createElement(d,r),P.currentNode=this.el.content,e===2){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=P.nextNode())!==null&&a.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(const c of i.getAttributeNames())if(c.endsWith(Et)){const b=u[n++],f=i.getAttribute(c).split(_),S=/([.?@])?(.*)/.exec(b);a.push({type:1,index:o,name:S[2],strings:f,ctor:S[1]==="."?Zt:S[1]==="?"?te:S[1]==="@"?ee:K}),i.removeAttribute(c)}else c.startsWith(_)&&(a.push({type:6,index:o}),i.removeAttribute(c));if(Ot.test(i.tagName)){const c=i.textContent.split(_),b=c.length-1;if(b>0){i.textContent=Q?Q.emptyScript:"";for(let f=0;f<b;f++)i.append(c[f],L()),P.nextNode(),a.push({type:2,index:++o});i.append(c[b],L())}}}else if(i.nodeType===8)if(i.data===Ct)a.push({type:2,index:o});else{let c=-1;for(;(c=i.data.indexOf(_,c+1))!==-1;)a.push({type:7,index:o}),c+=_.length-1}o++}}static createElement(t,e){const r=O.createElement("template");return r.innerHTML=t,r}}function U(s,t,e=s,r){var n,l;if(t===T)return t;let i=r!==void 0?(n=e._$Co)==null?void 0:n[r]:e._$Cl;const o=D(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((l=i==null?void 0:i._$AO)==null||l.call(i,!1),o===void 0?i=void 0:(i=new o(s),i._$AT(s,e,r)),r!==void 0?(e._$Co??(e._$Co=[]))[r]=i:e._$Cl=i),i!==void 0&&(t=U(s,i._$AS(s,t.values),i,r)),t}class Yt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,i=((t==null?void 0:t.creationScope)??O).importNode(e,!0);P.currentNode=i;let o=P.nextNode(),n=0,l=0,a=r[0];for(;a!==void 0;){if(n===a.index){let d;a.type===2?d=new B(o,o.nextSibling,this,t):a.type===1?d=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(d=new re(o,this,t)),this._$AV.push(d),a=r[++l]}n!==(a==null?void 0:a.index)&&(o=P.nextNode(),n++)}return P.currentNode=O,i}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class B{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,r,i){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),D(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==T&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Qt(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==p&&D(this._$AH)?this._$AA.nextSibling.data=t:this.$(O.createTextNode(t)),this._$AH=t}g(t){var o;const{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=z.createElement(Tt(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(e);else{const n=new Yt(i,this),l=n.u(this.options);n.p(e),this.$(l),this._$AH=n}}_$AC(t){let e=wt.get(t.strings);return e===void 0&&wt.set(t.strings,e=new z(t)),e}T(t){Pt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const o of t)i===e.length?e.push(r=new B(this.k(L()),this.k(L()),this,this.options)):r=e[i],r._$AI(o),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class K{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,o){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=p}_$AI(t,e=this,r,i){const o=this.strings;let n=!1;if(o===void 0)t=U(this,t,e,0),n=!D(t)||t!==this._$AH&&t!==T,n&&(this._$AH=t);else{const l=t;let a,d;for(t=o[0],a=0;a<o.length-1;a++)d=U(this,l[r+a],e,a),d===T&&(d=this._$AH[a]),n||(n=!D(d)||d!==this._$AH[a]),d===p?t=p:t!==p&&(t+=(d??"")+o[a+1]),this._$AH[a]=d}n&&!i&&this.O(t)}O(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Zt extends K{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===p?void 0:t}}class te extends K{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class ee extends K{constructor(t,e,r,i,o){super(t,e,r,i,o),this.type=5}_$AI(t,e=this){if((t=U(this,t,e,0)??p)===T)return;const r=this._$AH,i=t===p&&r!==p||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==p&&(r===p||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class re{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const Z=V.litHtmlPolyfillSupport;Z==null||Z(z,B),(V.litHtmlVersions??(V.litHtmlVersions=[])).push("3.1.0");const se=(s,t,e)=>{const r=(e==null?void 0:e.renderBefore)??t;let i=r._$litPart$;if(i===void 0){const o=(e==null?void 0:e.renderBefore)??null;r._$litPart$=i=new B(t.insertBefore(L(),o),o,void 0,e??{})}return i._$AI(s),i};/**
     15\f\r"'\`<>=]|("|')|))|$)`,"g"),$t=/'/g,_t=/"/g,Ot=/^(?:script|style|textarea|title)$/i,Kt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),w=Kt(1),T=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),wt=new WeakMap,P=O.createTreeWalker(O,129);function Tt(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return gt!==void 0?gt.createHTML(t):t}const Xt=(s,t)=>{const e=s.length-1,r=[];let i,o=t===2?"<svg>":"",n=M;for(let l=0;l<e;l++){const a=s[l];let d,u,c=-1,b=0;for(;b<a.length&&(n.lastIndex=b,u=n.exec(a),u!==null);)b=n.lastIndex,n===M?u[1]==="!--"?n=mt:u[1]!==void 0?n=yt:u[2]!==void 0?(Ot.test(u[2])&&(i=RegExp("</"+u[2],"g")),n=C):u[3]!==void 0&&(n=C):n===C?u[0]===">"?(n=i??M,c=-1):u[1]===void 0?c=-2:(c=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?C:u[3]==='"'?_t:$t):n===_t||n===$t?n=C:n===mt||n===yt?n=M:(n=C,i=void 0);const g=n===C&&s[l+1].startsWith("/>")?" ":"";o+=n===M?a+Wt:c>=0?(r.push(d),a.slice(0,c)+Et+a.slice(c)+_+g):a+_+(c===-2?l:g)}return[Tt(s,o+(s[e]||"<?>")+(t===2?"</svg>":"")),r]};class z{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let o=0,n=0;const l=t.length-1,a=this.parts,[d,u]=Xt(t,e);if(this.el=z.createElement(d,r),P.currentNode=this.el.content,e===2){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=P.nextNode())!==null&&a.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(const c of i.getAttributeNames())if(c.endsWith(Et)){const b=u[n++],g=i.getAttribute(c).split(_),S=/([.?@])?(.*)/.exec(b);a.push({type:1,index:o,name:S[2],strings:g,ctor:S[1]==="."?Zt:S[1]==="?"?te:S[1]==="@"?ee:K}),i.removeAttribute(c)}else c.startsWith(_)&&(a.push({type:6,index:o}),i.removeAttribute(c));if(Ot.test(i.tagName)){const c=i.textContent.split(_),b=c.length-1;if(b>0){i.textContent=Q?Q.emptyScript:"";for(let g=0;g<b;g++)i.append(c[g],L()),P.nextNode(),a.push({type:2,index:++o});i.append(c[b],L())}}}else if(i.nodeType===8)if(i.data===Ct)a.push({type:2,index:o});else{let c=-1;for(;(c=i.data.indexOf(_,c+1))!==-1;)a.push({type:7,index:o}),c+=_.length-1}o++}}static createElement(t,e){const r=O.createElement("template");return r.innerHTML=t,r}}function k(s,t,e=s,r){var n,l;if(t===T)return t;let i=r!==void 0?(n=e._$Co)==null?void 0:n[r]:e._$Cl;const o=D(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((l=i==null?void 0:i._$AO)==null||l.call(i,!1),o===void 0?i=void 0:(i=new o(s),i._$AT(s,e,r)),r!==void 0?(e._$Co??(e._$Co=[]))[r]=i:e._$Cl=i),i!==void 0&&(t=k(s,i._$AS(s,t.values),i,r)),t}class Yt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,i=((t==null?void 0:t.creationScope)??O).importNode(e,!0);P.currentNode=i;let o=P.nextNode(),n=0,l=0,a=r[0];for(;a!==void 0;){if(n===a.index){let d;a.type===2?d=new B(o,o.nextSibling,this,t):a.type===1?d=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(d=new re(o,this,t)),this._$AV.push(d),a=r[++l]}n!==(a==null?void 0:a.index)&&(o=P.nextNode(),n++)}return P.currentNode=O,i}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class B{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,r,i){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=k(this,t,e),D(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==T&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Qt(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==p&&D(this._$AH)?this._$AA.nextSibling.data=t:this.T(O.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=z.createElement(Tt(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(e);else{const n=new Yt(i,this),l=n.u(this.options);n.p(e),this.T(l),this._$AH=n}}_$AC(t){let e=wt.get(t.strings);return e===void 0&&wt.set(t.strings,e=new z(t)),e}k(t){Pt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const o of t)i===e.length?e.push(r=new B(this.S(L()),this.S(L()),this,this.options)):r=e[i],r._$AI(o),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class K{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,o){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=p}_$AI(t,e=this,r,i){const o=this.strings;let n=!1;if(o===void 0)t=k(this,t,e,0),n=!D(t)||t!==this._$AH&&t!==T,n&&(this._$AH=t);else{const l=t;let a,d;for(t=o[0],a=0;a<o.length-1;a++)d=k(this,l[r+a],e,a),d===T&&(d=this._$AH[a]),n||(n=!D(d)||d!==this._$AH[a]),d===p?t=p:t!==p&&(t+=(d??"")+o[a+1]),this._$AH[a]=d}n&&!i&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Zt extends K{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}class te extends K{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class ee extends K{constructor(t,e,r,i,o){super(t,e,r,i,o),this.type=5}_$AI(t,e=this){if((t=k(this,t,e,0)??p)===T)return;const r=this._$AH,i=t===p&&r!==p||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==p&&(r===p||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class re{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){k(this,t)}}const Z=V.litHtmlPolyfillSupport;Z==null||Z(z,B),(V.litHtmlVersions??(V.litHtmlVersions=[])).push("3.1.2");const se=(s,t,e)=>{const r=(e==null?void 0:e.renderBefore)??t;let i=r._$litPart$;if(i===void 0){const o=(e==null?void 0:e.renderBefore)??null;r._$litPart$=i=new B(t.insertBefore(L(),o),o,void 0,e??{})}return i._$AI(s),i};/**
    1616 * @license
    1717 * Copyright 2017 Google LLC
    1818 * SPDX-License-Identifier: BSD-3-Clause
    19  */class R extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=se(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return T}}var xt;R._$litElement$=!0,R.finalized=!0,(xt=globalThis.litElementHydrateSupport)==null||xt.call(globalThis,{LitElement:R});const tt=globalThis.litElementPolyfillSupport;tt==null||tt({LitElement:R});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");/**
     19 */class N extends U{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=se(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return T}}var xt;N._$litElement$=!0,N.finalized=!0,(xt=globalThis.litElementHydrateSupport)==null||xt.call(globalThis,{LitElement:N});const tt=globalThis.litElementPolyfillSupport;tt==null||tt({LitElement:N});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");/**
    2020 * @license
    2121 * Copyright 2017 Google LLC
    2222 * SPDX-License-Identifier: BSD-3-Clause
    23  */const kt=s=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)};/**
     23 */const Rt=s=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)};/**
    2424 * @license
    2525 * Copyright 2017 Google LLC
    2626 * SPDX-License-Identifier: BSD-3-Clause
    27  */const ie={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:it},oe=(s=ie,t,e)=>{const{kind:r,metadata:i}=e;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(e.name,s),r==="accessor"){const{name:n}=e;return{set(l){const a=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,a,s)},init(l){return l!==void 0&&this.C(n,void 0,s),l}}}if(r==="setter"){const{name:n}=e;return function(l){const a=this[n];t.call(this,l),this.requestUpdate(n,a,s)}}throw Error("Unsupported decorator location: "+r)};function v(s){return(t,e)=>typeof e=="object"?oe(s,t,e):((r,i,o)=>{const n=i.hasOwnProperty(o);return i.constructor.createProperty(o,n?{...r,wrapped:!0}:r),n?Object.getOwnPropertyDescriptor(i,o):void 0})(s,t,e)}/**
     27 */const ie={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:it},oe=(s=ie,t,e)=>{const{kind:r,metadata:i}=e;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(e.name,s),r==="accessor"){const{name:n}=e;return{set(l){const a=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,a,s)},init(l){return l!==void 0&&this.P(n,void 0,s),l}}}if(r==="setter"){const{name:n}=e;return function(l){const a=this[n];t.call(this,l),this.requestUpdate(n,a,s)}}throw Error("Unsupported decorator location: "+r)};function v(s){return(t,e)=>typeof e=="object"?oe(s,t,e):((r,i,o)=>{const n=i.hasOwnProperty(o);return i.constructor.createProperty(o,n?{...r,wrapped:!0}:r),n?Object.getOwnPropertyDescriptor(i,o):void 0})(s,t,e)}/**
    2828 * @license
    2929 * Copyright 2017 Google LLC
     
    3333 * Copyright 2018 Google LLC
    3434 * SPDX-License-Identifier: BSD-3-Clause
    35  */const ne=s=>s??p,ae=":host{color:#000;display:block;box-sizing:border-box;width:100%;max-width:var(--wp--style--global--content-size, auto);margin-inline:auto;padding-right:var(--wp--style--root--padding-right, 0);padding-left:var(--wp--style--root--padding-left, 0);--gap-container: var(--climbpress-routes-gap-container, 8px);--gap-list: var(--climbpress-routes-gap-list, 8px);--input-padding: var(--climbpress-routes-input-padding, 8px)}.container{display:flex;flex-direction:column;gap:var(--gap-container)}slot[name=button]::slotted(*){margin-top:16px;width:100%}button{outline:none;padding:var(--climbpress-routes--item-padding);cursor:pointer;text-align:center;width:100%;font-weight:700;margin-top:16px;background-color:var(--climbpress-routes--color-primary);border:var(--climbpress-routes--item-border);border-color:var(--climbpress-routes--color-contrast);color:var(--climbpress-routes--color-contrast)}button:hover{background-color:var(--climbpress-routes--color-contrast);color:var(--climbpress-routes--color-base)}input,select{display:block;box-sizing:border-box;padding:var(--input-padding);margin-bottom:var(--climbpress-routes--item-padding);font-size:16px;font-weight:700;border:1px solid black;outline-color:var(--climbpress-routes--color-secondary, initial)}input{width:100%}.filters{display:flex;column-gap:var(--climbpress-routes--item-padding);flex-wrap:wrap;container-name:filters;container-type:inline-size}@container filters(max-width: 560 px){.filters select{width:100%}}.routes{display:flex;flex-direction:column;gap:var(--gap-list)}",Nt=(s,t)=>t.find(e=>e.id==s.gradingSystem),I=(s,t)=>{var o;const e=(o=Nt(s,t))==null?void 0:o.grades;if(!e)return null;let r=null,i=null;for(let n=0;n<e.length;n++){const l=e[n];if(r==null){r=n,i=l;continue}if(l.difficulty===s.difficulty){r=n,i=l;break}const a=Math.abs(l.difficulty-i.difficulty),d=Math.abs(l.difficulty-s.difficulty);a>d&&(r=n,i=l)}return r==null||i==null?null:{index:r,grade:i}},Rt=(s,t)=>{var r;const e=I(s,t);return((r=e==null?void 0:e.grade)==null?void 0:r.label)??String(s.difficulty)},Ut=(s,t,e)=>{var i;const r=e.find(o=>o.key==s);return r?((i=r==null?void 0:r.options.find(o=>o.key==t))==null?void 0:i.label)??null:null};/**
     35 */const ne=s=>s??p,ae=":host{color:#000;display:block;box-sizing:border-box;width:100%;max-width:var(--wp--style--global--content-size, auto);margin-inline:auto;padding-right:var(--wp--style--root--padding-right, 0);padding-left:var(--wp--style--root--padding-left, 0);--gap-container: var(--climbpress-routes-gap-container, 8px);--gap-list: var(--climbpress-routes-gap-list, 8px);--input-padding: var(--climbpress-routes-input-padding, 8px)}.container{display:flex;flex-direction:column;gap:var(--gap-container)}slot[name=button]::slotted(*){margin-top:16px;width:100%}button{outline:none;padding:var(--climbpress-routes--item-padding);cursor:pointer;text-align:center;width:100%;font-weight:700;margin-top:16px;background-color:var(--climbpress-routes--color-primary);border:var(--climbpress-routes--item-border);border-color:var(--climbpress-routes--color-contrast);color:var(--climbpress-routes--color-contrast)}button:hover{background-color:var(--climbpress-routes--color-contrast);color:var(--climbpress-routes--color-base)}input,select{display:block;box-sizing:border-box;padding:var(--input-padding);margin-bottom:var(--climbpress-routes--item-padding);font-size:16px;font-weight:700;border:1px solid black;outline-color:var(--climbpress-routes--color-secondary, initial)}input{width:100%}.filters{display:flex;column-gap:var(--climbpress-routes--item-padding);flex-wrap:wrap;container-name:filters;container-type:inline-size}@container filters(max-width: 560 px){.filters select{width:100%}}.routes{display:flex;flex-direction:column;gap:var(--gap-list)}",Ut=(s,t)=>t.find(e=>e.id==s.gradingSystem),I=(s,t)=>{var o;const e=(o=Ut(s,t))==null?void 0:o.grades;if(!e)return null;let r=null,i=null;for(let n=0;n<e.length;n++){const l=e[n];if(r==null){r=n,i=l;continue}if(l.difficulty===s.difficulty){r=n,i=l;break}const a=Math.abs(l.difficulty-i.difficulty),d=Math.abs(l.difficulty-s.difficulty);a>d&&(r=n,i=l)}return r==null||i==null?null:{index:r,grade:i}},Nt=(s,t)=>{var r;const e=I(s,t);return((r=e==null?void 0:e.grade)==null?void 0:r.label)??String(s.difficulty)},kt=(s,t,e)=>{var i;const r=e.find(o=>o.key==s);return r?((i=r==null?void 0:r.options.find(o=>o.key==t))==null?void 0:i.label)??null:null};/**
    3636 * @license
    3737 * Copyright 2017 Google LLC
     
    4141 * Copyright 2018 Google LLC
    4242 * SPDX-License-Identifier: BSD-3-Clause
    43  */const q=de(class extends ce{constructor(s){var t;if(super(s),s.type!==le.ATTRIBUTE||s.name!=="class"||((t=s.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){var r,i;if(this.it===void 0){this.it=new Set,s.strings!==void 0&&(this.st=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((r=this.st)!=null&&r.has(o))&&this.it.add(o);return this.render(t)}const e=s.element.classList;for(const o of this.it)o in t||(e.remove(o),this.it.delete(o));for(const o in t){const n=!!t[o];n===this.it.has(o)||(i=this.st)!=null&&i.has(o)||(n?(e.add(o),this.it.add(o)):(e.remove(o),this.it.delete(o)))}return T}}),ue=':host{--text-color: var(--climbpress-route-text-color, currentColor);--background-color: var(--climbpress-route-background-color, white);--padding: var(--climbpress-route-padding, 8px);--border-radius: var(--climbpress-route-border-radius, 0);--border-width: var(--climbpress-route-border-width, 1px);--border-style: var(--climbpress-route-border-style, solid);--border-color: var(--climbpress-route-border-color, currentColor);--border: var(--border-width) var(--border-style) var(--border-color);--button-text-color: var(--climbpress-route-button-text-color, white);--button-background-color: var(--climbpress-route-button-background-color, rgba(0,0,0,80%));--button-border-radius: var(--climbpress-route-button-border-radius, 0);--button-border-width: var(--climbpress-route-button-border-width, 1px);--button-border-style: var(--climbpress-route-button-border-style, solid);--button-border-color: var(--climbpress-route-button-border-color, currentColor);--button-border: var(--button-border-width) var(--button-border-style) var(--button-border-color);--button-text-color-hover: var(--climbpress-route-button-text-color-hover, white);--button-background-color-hover: var(--climbpress-route-button-background-color-hover, rgba(0,0,0,100%));--button-border-radius-hover: var(--climbpress-route-button-border-radius-hover, 0);--button-border-width-hover: var(--climbpress-route-button-border-width-hover, 1px);--button-border-style-hover: var(--climbpress-route-button-border-style-hover, solid);--button-border-color-hover: var(--climbpress-route-button-border-color-hover, currentColor);--button-border-hover: var(--button-border-width-hover) var(--button-border-style-hover) var(--button-border-color-hover);--button-text-color-active: var(--climbpress-route-button-text-color-active, rgba(0,0,0,100%));--button-background-color-active: var(--climbpress-route-button-background-color-active, white);--button-border-radius-active: var(--climbpress-route-button-border-radius-active, 0);--button-border-width-active: var(--climbpress-route-button-border-width-active, 1px);--button-border-style-active: var(--climbpress-route-button-border-style-active, solid);--button-border-color-active: var(--climbpress-route-button-border-color-active, currentColor);--button-border-active: var(--button-border-width-active) var(--button-border-style-active) var(--button-border-color-active);--button-text-color-disabled: var(--climbpress-route-button-text-color-disabled, darkgrey);--button-background-color-disabled: var(--climbpress-route-button-background-color-disabled, lightgrey);--button-border-radius-disabled: var(--climbpress-route-button-border-radius-disabled, 0);--button-border-width-disabled: var(--climbpress-route-button-border-width-disabled, 1px);--button-border-style-disabled: var(--climbpress-route-button-border-style-disabled, solid);--button-border-color-disabled: var(--climbpress-route-button-border-color-diesabled, lightgrey);--button-border-disabled: var(--button-border-width-disabled) var(--button-border-style-disabled) var(--button-border-color-disabled);--transition-duration: var(--climbpress-route-transition-duration, .22s);--transition-timing-function: var(--climbpress-route-transition-timing-function, ease-in-out);--transition: all var(--transition-duration) var(--transition-timing-function)}.route{display:grid;grid-template-areas:"details difficulty" "expanded difficulty";grid-template-columns:minmax(0,3fr) 1fr;align-items:center;justify-items:stretch;list-style:none;color:var(--text-color);background:var(--background-color);border-radius:var(--border-radius);border:var(--border);container-name:route;container-type:inline-size;transition:var(--transition);box-sizing:border-box;padding:var(--padding)}.details{grid-area:details;padding-block:var(--padding);padding-inline:var(--padding) 0}.name{font-weight:700;font-size:20px;transition:var(--transition)}.meta{font-size:14px;overflow-y:hidden;opacity:1;transition:var(--transition)}.meta>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.difficulty{display:grid;grid-template-rows:1fr;grid-area:difficulty}.value{position:relative;font-size:24px;line-height:1em;font-weight:700;text-align:center;transition:var(--transition)}.my-value{position:absolute;left:50%;transform:translate(-50%);top:20px;font-size:14px;text-wrap:nowrap}.difficulty .voting{display:grid;grid-template-rows:0fr;margin-top:0;transition:var(--transition)}.difficulty .community-voting{text-align:center;margin-top:8px}.difficulty .voting_wrapper{overflow-y:hidden}.voting button{cursor:pointer;padding:0;margin:0;width:40px;aspect-ratio:1;color:var(--button-text-color);background-color:var(--button-background-color);border:var(--button-border);border-radius:var(--button-border-radius)}.voting button:hover{color:var(--button-text-color-hover);background-color:var(--button-background-color-hover);border:var(--button-border-hover)}.voting button.active{color:var(--button-text-color-active);background-color:var(--button-background-color-active);border:var(--button-border-active)}.voting button[disabled]{color:var(--button-text-color-disabled);background-color:var(--button-background-color-disabled);border:var(--button-border-disabled);cursor:initial}button{font-size:1.4em}.btn-easier,.btn-harder{font-weight:bolder}.voting .label{font-size:.8em;text-align:center;opacity:60%}.controls{display:flex;gap:8px;justify-content:center;align-items:center}@container route(min-width: 500 px){.difficulty .value{font-size:36px}}.expanded-details{grid-area:expanded;transition:var(--transition)}dl{padding-block:0 var(--padding);padding-inline:var(--padding);margin-block:0;font-size:1rem}dt{font-weight:700}dd{padding:0;margin-inline:0;margin-block:0 8px}.route:not(.expanded){cursor:pointer}.route.expanded{grid-template-areas:"details details" "expanded difficulty" "controls controls"}.route.expanded .details{cursor:pointer}.expanded.route{border-color:var(--climbpress-routes--color-primary);grid-template-columns:minmax(0,3fr) 2fr}.route.expanded .my-value{display:none}.details .meta,.expanded-details{display:grid;transition:var(--transition)}.details .meta{grid-template-rows:1fr}.expanded-details{grid-template-rows:0fr}.details .meta>div,.expanded-details>div{overflow-y:hidden}.expanded .details .meta{grid-template-rows:0fr;opacity:0;min-height:0;height:0}.expanded .expanded-details{grid-template-rows:1fr}.expanded .expanded-details,.expanded .controls{opacity:1}.expanded .difficulty .value{font-size:72px}.expanded .difficulty .voting{grid-template-rows:1fr;margin-top:12px}',Mt="climbpressRouteVote",jt="climbpressRouteUnvote",he="climbpressRouteExpandToggle";var pe=Object.defineProperty,be=Object.getOwnPropertyDescriptor,x=(s,t,e,r)=>{for(var i=r>1?void 0:r?be(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&pe(t,e,i),i};let $=class extends R{constructor(){super(...arguments),this.i18n={},this.route=null,this.metaStructure=[],this.gradingSystems=[],this.expanded=!1,this.vote=null}render(){var dt,ct,ut,ht;const s=this.route;if(!s)return null;const t=Rt(s,this.gradingSystems),e=Object.keys(s.metas),r=e.filter(h=>{var y;return!(((y=this.metaCollapsed)==null?void 0:y.includes(h))??!1)}),i=(this.metaCollapsed??e).map(h=>{const y=s.metas[h]??"";return Ut(h,y,this.metaStructure)??y}).filter(h=>h!=""),o=q({expanded:this.expanded}),n=()=>{this.expanded||this.dispatchToggleExpand()},l=h=>{this.expanded&&(h.preventDefault(),h.stopPropagation(),h.stopImmediatePropagation(),this.dispatchToggleExpand())},a=Nt(s,this.gradingSystems),d=I(s,this.gradingSystems),u=this.vote;let c=null,b=null,f=null;const S=d?d.index-4:0,nt=d?d.index+4:0;if(d!=null&&a){u&&(c=I({gradingSystem:s.gradingSystem,difficulty:u.difficulty},this.gradingSystems)??null);const h=c||d,y=h.index+1,E=h.index-1;y<=nt&&(b=((dt=a.grades)==null?void 0:dt[y])??null),E>=S&&(f=((ct=a.grades)==null?void 0:ct[E])??null)}let k=null;s.communityVotesCount>4&&(console.debug("community",s),k=((ut=I({gradingSystem:s.gradingSystem,difficulty:s.communityAverageDifficulty},this.gradingSystems))==null?void 0:ut.grade)??null);const at=h=>y=>{if(y.preventDefault(),y.stopPropagation(),y.stopImmediatePropagation(),h<0||!d)return;const E=I({gradingSystem:s==null?void 0:s.gradingSystem,difficulty:h},this.gradingSystems);E==null||E.index<S||E.index>nt||this.dispatchChangeVote(E.grade.difficulty)},It=h=>{h.preventDefault(),h.stopPropagation(),h.stopImmediatePropagation(),s!=null&&(u===null?this.dispatchChangeVote(s.difficulty):this.dispatchChangeUnvote())},lt=new Intl.DateTimeFormat(void 0,{dateStyle:"short"}),J=[];return c&&J.push(c.grade.label),k&&J.push(`⌀ ${k.label}`),w`
     43 */const q=de(class extends ce{constructor(s){var t;if(super(s),s.type!==le.ATTRIBUTE||s.name!=="class"||((t=s.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){var r,i;if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((r=this.nt)!=null&&r.has(o))&&this.st.add(o);return this.render(t)}const e=s.element.classList;for(const o of this.st)o in t||(e.remove(o),this.st.delete(o));for(const o in t){const n=!!t[o];n===this.st.has(o)||(i=this.nt)!=null&&i.has(o)||(n?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return T}}),ue=':host{--text-color: var(--climbpress-route-text-color, currentColor);--background-color: var(--climbpress-route-background-color, white);--padding: var(--climbpress-route-padding, 8px);--border-radius: var(--climbpress-route-border-radius, 0);--border-width: var(--climbpress-route-border-width, 1px);--border-style: var(--climbpress-route-border-style, solid);--border-color: var(--climbpress-route-border-color, currentColor);--border: var(--border-width) var(--border-style) var(--border-color);--button-text-color: var(--climbpress-route-button-text-color, white);--button-background-color: var(--climbpress-route-button-background-color, rgba(0,0,0,80%));--button-border-radius: var(--climbpress-route-button-border-radius, 0);--button-border-width: var(--climbpress-route-button-border-width, 1px);--button-border-style: var(--climbpress-route-button-border-style, solid);--button-border-color: var(--climbpress-route-button-border-color, currentColor);--button-border: var(--button-border-width) var(--button-border-style) var(--button-border-color);--button-text-color-hover: var(--climbpress-route-button-text-color-hover, white);--button-background-color-hover: var(--climbpress-route-button-background-color-hover, rgba(0,0,0,100%));--button-border-radius-hover: var(--climbpress-route-button-border-radius-hover, 0);--button-border-width-hover: var(--climbpress-route-button-border-width-hover, 1px);--button-border-style-hover: var(--climbpress-route-button-border-style-hover, solid);--button-border-color-hover: var(--climbpress-route-button-border-color-hover, currentColor);--button-border-hover: var(--button-border-width-hover) var(--button-border-style-hover) var(--button-border-color-hover);--button-text-color-active: var(--climbpress-route-button-text-color-active, rgba(0,0,0,100%));--button-background-color-active: var(--climbpress-route-button-background-color-active, white);--button-border-radius-active: var(--climbpress-route-button-border-radius-active, 0);--button-border-width-active: var(--climbpress-route-button-border-width-active, 1px);--button-border-style-active: var(--climbpress-route-button-border-style-active, solid);--button-border-color-active: var(--climbpress-route-button-border-color-active, currentColor);--button-border-active: var(--button-border-width-active) var(--button-border-style-active) var(--button-border-color-active);--button-text-color-disabled: var(--climbpress-route-button-text-color-disabled, darkgrey);--button-background-color-disabled: var(--climbpress-route-button-background-color-disabled, lightgrey);--button-border-radius-disabled: var(--climbpress-route-button-border-radius-disabled, 0);--button-border-width-disabled: var(--climbpress-route-button-border-width-disabled, 1px);--button-border-style-disabled: var(--climbpress-route-button-border-style-disabled, solid);--button-border-color-disabled: var(--climbpress-route-button-border-color-diesabled, lightgrey);--button-border-disabled: var(--button-border-width-disabled) var(--button-border-style-disabled) var(--button-border-color-disabled);--transition-duration: var(--climbpress-route-transition-duration, .22s);--transition-timing-function: var(--climbpress-route-transition-timing-function, ease-in-out);--transition: all var(--transition-duration) var(--transition-timing-function)}.route{display:grid;grid-template-areas:"details difficulty" "expanded difficulty";grid-template-columns:minmax(0,3fr) 1fr;align-items:center;justify-items:stretch;list-style:none;color:var(--text-color);background:var(--background-color);border-radius:var(--border-radius);border:var(--border);container-name:route;container-type:inline-size;transition:var(--transition);box-sizing:border-box;padding:var(--padding)}.details{grid-area:details;padding-block:var(--padding);padding-inline:var(--padding) 0}.name{font-weight:700;font-size:20px;transition:var(--transition)}.meta{font-size:14px;overflow-y:hidden;opacity:1;transition:var(--transition)}.meta>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.difficulty{display:grid;grid-template-rows:1fr;grid-area:difficulty}.value{position:relative;font-size:24px;line-height:1em;font-weight:700;text-align:center;transition:var(--transition)}.my-value{position:absolute;left:50%;transform:translate(-50%);top:20px;font-size:14px;text-wrap:nowrap}.difficulty .voting{display:grid;grid-template-rows:0fr;margin-top:0;transition:var(--transition)}.difficulty .community-voting{text-align:center;margin-top:8px}.difficulty .voting_wrapper{overflow-y:hidden}.voting button{cursor:pointer;padding:0;margin:0;width:40px;aspect-ratio:1;color:var(--button-text-color);background-color:var(--button-background-color);border:var(--button-border);border-radius:var(--button-border-radius)}.voting button:hover{color:var(--button-text-color-hover);background-color:var(--button-background-color-hover);border:var(--button-border-hover)}.voting button.active{color:var(--button-text-color-active);background-color:var(--button-background-color-active);border:var(--button-border-active)}.voting button[disabled]{color:var(--button-text-color-disabled);background-color:var(--button-background-color-disabled);border:var(--button-border-disabled);cursor:initial}button{font-size:1.4em}.btn-easier,.btn-harder{font-weight:bolder}.voting .label{font-size:.8em;text-align:center;opacity:60%}.controls{display:flex;gap:8px;justify-content:center;align-items:center}@container route(min-width: 500 px){.difficulty .value{font-size:36px}}.expanded-details{grid-area:expanded;transition:var(--transition)}dl{padding-block:0 var(--padding);padding-inline:var(--padding);margin-block:0;font-size:1rem}dt{font-weight:700}dd{padding:0;margin-inline:0;margin-block:0 8px}.route:not(.expanded){cursor:pointer}.route.expanded{grid-template-areas:"details details" "expanded difficulty" "controls controls"}.route.expanded .details{cursor:pointer}.expanded.route{border-color:var(--climbpress-routes--color-primary);grid-template-columns:minmax(0,3fr) 2fr}.route.expanded .my-value{display:none}.details .meta,.expanded-details{display:grid;transition:var(--transition)}.details .meta{grid-template-rows:1fr}.expanded-details{grid-template-rows:0fr}.details .meta>div,.expanded-details>div{overflow-y:hidden}.expanded .details .meta{grid-template-rows:0fr;opacity:0;min-height:0;height:0}.expanded .expanded-details{grid-template-rows:1fr}.expanded .expanded-details,.expanded .controls{opacity:1}.expanded .difficulty .value{font-size:72px}.expanded .difficulty .voting{grid-template-rows:1fr;margin-top:12px}',Mt="climbpressRouteVote",jt="climbpressRouteUnvote",he="climbpressRouteExpandToggle";var pe=Object.defineProperty,be=Object.getOwnPropertyDescriptor,x=(s,t,e,r)=>{for(var i=r>1?void 0:r?be(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&pe(t,e,i),i};let $=class extends N{constructor(){super(...arguments),this.i18n={},this.route=null,this.metaStructure=[],this.gradingSystems=[],this.expanded=!1,this.vote=null}render(){var dt,ct,ut,ht;const s=this.route;if(!s)return null;const t=Nt(s,this.gradingSystems),e=Object.keys(s.metas),r=e.filter(h=>{var y;return!(((y=this.metaCollapsed)==null?void 0:y.includes(h))??!1)}),i=(this.metaCollapsed??e).map(h=>{const y=s.metas[h]??"";return kt(h,y,this.metaStructure)??y}).filter(h=>h!=""),o=q({expanded:this.expanded}),n=()=>{this.expanded||this.dispatchToggleExpand()},l=h=>{this.expanded&&(h.preventDefault(),h.stopPropagation(),h.stopImmediatePropagation(),this.dispatchToggleExpand())},a=Ut(s,this.gradingSystems),d=I(s,this.gradingSystems),u=this.vote;let c=null,b=null,g=null;const S=d?d.index-4:0,nt=d?d.index+4:0;if(d!=null&&a){u&&(c=I({gradingSystem:s.gradingSystem,difficulty:u.difficulty},this.gradingSystems)??null);const h=c||d,y=h.index+1,E=h.index-1;y<=nt&&(b=((dt=a.grades)==null?void 0:dt[y])??null),E>=S&&(g=((ct=a.grades)==null?void 0:ct[E])??null)}let R=null;s.communityVotesCount>4&&(console.debug("community",s),R=((ut=I({gradingSystem:s.gradingSystem,difficulty:s.communityAverageDifficulty},this.gradingSystems))==null?void 0:ut.grade)??null);const at=h=>y=>{if(y.preventDefault(),y.stopPropagation(),y.stopImmediatePropagation(),h<0||!d)return;const E=I({gradingSystem:s==null?void 0:s.gradingSystem,difficulty:h},this.gradingSystems);E==null||E.index<S||E.index>nt||this.dispatchChangeVote(E.grade.difficulty)},It=h=>{h.preventDefault(),h.stopPropagation(),h.stopImmediatePropagation(),s!=null&&(u===null?this.dispatchChangeVote(s.difficulty):this.dispatchChangeUnvote())},lt=new Intl.DateTimeFormat(void 0,{dateStyle:"short"}),J=[];return c&&J.push(c.grade.label),R&&J.push(`⌀ ${R.label}`),w`
    4444            <div class="route ${o}" @click=${n}>
    45                 <div class="details">
    46                     <div class="name" @click=${l}>${s.name}</div>
     45                <div class="details" @click=${l}>
     46                    <div class="name" >${s.name}</div>
    4747                    <div class="meta">
    4848                        <div>
     
    6363                            <div class="controls">
    6464                                <button
    65                                         ?disabled=${f==null}
    66                                         @click=${at((f==null?void 0:f.difficulty)??-1)}
     65                                        ?disabled=${g==null}
     66                                        @click=${at((g==null?void 0:g.difficulty)??-1)}
    6767                                        class=${q({"btn-easier":!0})}
    6868                                >
     
    8585                            <div class="community-voting">
    8686                                <div class="label">⌀ Bewertung</div>
    87                                 <div>${(k==null?void 0:k.label)??"-"}</div>
     87                                <div>${(R==null?void 0:R.label)??"-"}</div>
    8888                            </div>
    8989                           
     
    105105            <dt>${i}</dt>
    106106            <dd>${o}</dd>
    107         `}dispatchChangeVote(s){var e;const t=(e=this.route)==null?void 0:e.id;t&&this.dispatchEvent(new CustomEvent(Mt,{detail:{difficulty:s,route:t},bubbles:!0,composed:!0}))}dispatchChangeUnvote(){var t;const s=(t=this.route)==null?void 0:t.id;s&&this.dispatchEvent(new CustomEvent(jt,{detail:{route:s},bubbles:!0,composed:!0}))}dispatchToggleExpand(){var t;const s=(t=this.route)==null?void 0:t.id;s&&this.dispatchEvent(new CustomEvent(he,{detail:{route:s},bubbles:!0,composed:!0}))}};$.styles=st(ue);x([v({type:Object})],$.prototype,"i18n",2);x([v({type:Object})],$.prototype,"route",2);x([v({attribute:"meta-structure",type:Array})],$.prototype,"metaStructure",2);x([v({attribute:"meta-collapsed",type:Array})],$.prototype,"metaCollapsed",2);x([v({attribute:"grading-systems",type:Object})],$.prototype,"gradingSystems",2);x([v({attribute:"expanded",type:Boolean})],$.prototype,"expanded",2);x([v({type:Object})],$.prototype,"vote",2);$=x([kt("climbpress-route")],$);var ve=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,m=(s,t,e,r)=>{for(var i=r>1?void 0:r?ge(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&ve(t,e,i),i};let g=class extends R{constructor(){super(...arguments),this.i18n={},this.gradingSystems=[],this.routes=[],this.votes={},this.routeMetaStructure=[],this.count=10,this.hideSearch=!1,this.hideFilters=!1,this.showVoting=!1,this.searchQuery="",this.active=[],this.filterBy={},this.searchAbleProps=["name","metas","gradingSystem"]}getById(s){var e;let t=null;return(e=this.shadowRoot)==null||e.querySelectorAll("climbpress-route").forEach(r=>{r.route!=null&&r.route.id==s&&(t=r)}),t}render(){const s=this.getFilteredRoutes(),t=this.cutOffRoutes(s);return w`
     107        `}dispatchChangeVote(s){var e;const t=(e=this.route)==null?void 0:e.id;t&&this.dispatchEvent(new CustomEvent(Mt,{detail:{difficulty:s,route:t},bubbles:!0,composed:!0}))}dispatchChangeUnvote(){var t;const s=(t=this.route)==null?void 0:t.id;s&&this.dispatchEvent(new CustomEvent(jt,{detail:{route:s},bubbles:!0,composed:!0}))}dispatchToggleExpand(){var t;const s=(t=this.route)==null?void 0:t.id;s&&this.dispatchEvent(new CustomEvent(he,{detail:{route:s},bubbles:!0,composed:!0}))}};$.styles=st(ue);x([v({type:Object})],$.prototype,"i18n",2);x([v({type:Object})],$.prototype,"route",2);x([v({attribute:"meta-structure",type:Array})],$.prototype,"metaStructure",2);x([v({attribute:"meta-collapsed",type:Array})],$.prototype,"metaCollapsed",2);x([v({attribute:"grading-systems",type:Object})],$.prototype,"gradingSystems",2);x([v({attribute:"expanded",type:Boolean})],$.prototype,"expanded",2);x([v({type:Object})],$.prototype,"vote",2);$=x([Rt("climbpress-route")],$);var ve=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,m=(s,t,e,r)=>{for(var i=r>1?void 0:r?fe(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&ve(t,e,i),i};let f=class extends N{constructor(){super(...arguments),this.i18n={},this.gradingSystems=[],this.routes=[],this.votes={},this.routeMetaStructure=[],this.count=10,this.hideSearch=!1,this.hideFilters=!1,this.showVoting=!1,this.searchQuery="",this.active=[],this.filterBy={},this.searchAbleProps=["name","metas","gradingSystem"]}getById(s){var e;let t=null;return(e=this.shadowRoot)==null||e.querySelectorAll("climbpress-route").forEach(r=>{r.route!=null&&r.route.id==s&&(t=r)}),t}render(){const s=this.getFilteredRoutes(),t=this.cutOffRoutes(s);return w`
    108108            <div class="container">
    109109                ${this.renderSearch()}
     
    131131        `}renderFilters(){return""}renderSearch(){var t;if(this.hideSearch)return"";const s=((t=this.i18n)==null?void 0:t.searchPlaceholder)??"Search...";return w`
    132132            <slot name="input"><input placeholder=${s} name="search"/></slot>
    133         `}firstUpdated(s){super.firstUpdated(s),this.renderRoot.addEventListener("keyup",t=>{const e=t.target;e.name=="search"&&(this.searchQuery=e.value)}),this.renderRoot.addEventListener("change",t=>{const e=t.target;this.filterBy[e.name]=e.value,this.requestUpdate()})}cutOffRoutes(s){return this.count<1?s:s.slice(0,this.count)}getFilteredRoutes(){const s=this.searchQuery.toLowerCase();return this.routes.filter(t=>Rt(t,this.gradingSystems).includes(s)?!0:Object.keys(this.filterBy).find(i=>{const o=t[i];return this.filterBy[i]!=""&&t.hasOwnProperty(i)&&o!=this.filterBy[i]})?!1:s==""?!0:this.searchAbleProps.find(i=>{if(i=="metas"){const n=t[i];return Object.keys(n).find(l=>{const a=n[l],d=Ut(l,a,this.routeMetaStructure);return d?d.toLowerCase().includes(s.toLowerCase()):a.toLowerCase().includes(s.toLowerCase())})!=null}const o=t[i];return typeof o=="string"&&o.toLowerCase().includes(s.toLowerCase())})!=null)}handleClick(s){this.active.includes(s)?this.active=this.active.filter(t=>t!=s):this.active=[...this.active,s]}onClickAll(){this.count=0}};g.styles=st(ae);m([v({type:Object})],g.prototype,"i18n",2);m([v({attribute:"grading-systems",type:Object})],g.prototype,"gradingSystems",2);m([v({type:Array})],g.prototype,"routes",2);m([v({type:Object})],g.prototype,"votes",2);m([v({attribute:"route-meta-structure",type:Array})],g.prototype,"routeMetaStructure",2);m([v({attribute:"route-meta-collapsed",type:Array})],g.prototype,"routeMetaCollapsed",2);m([v({type:Number})],g.prototype,"count",2);m([v({attribute:"hide-search",type:Boolean})],g.prototype,"hideSearch",2);m([v({attribute:"hide-filters",type:Boolean})],g.prototype,"hideFilters",2);m([v({attribute:"show-voting",type:Boolean})],g.prototype,"showVoting",2);m([ot()],g.prototype,"searchQuery",2);m([ot()],g.prototype,"active",2);m([ot()],g.prototype,"filterBy",2);g=m([kt("climbpress-routes")],g);const et=s=>`climbpress-vote(route:${s})`,F=(s,t)=>{t==null?localStorage.removeItem(et(s)):localStorage.setItem(et(s),JSON.stringify(t))},j=s=>{try{const t=localStorage.getItem(et(s));return t?JSON.parse(t):null}catch{return null}};window.ClimbPressPublic.fetchRoutes==null&&(window.ClimbPressPublic={...window.ClimbPressPublic,async fetchRoutes(s="/wp-json/climbpress/v1/routes"){return fetch(s).then(t=>t.json())},async vote(s,t){return(await fetch("/wp-json/climbpress/v1/votes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({route_id:s,difficulty:t})}).then(r=>r.json())).voting_id},async changeVote(s,t){return(await fetch("/wp-json/climbpress/v1/votes",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({voting_id:s,difficulty:t})}).then(r=>r.json())).success},async unvote(s){return await fetch("/wp-json/climbpress/v1/votes",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:s})}).then(e=>e.json())}});window.ClimbPressPublic.fetchRoutes;const fe=window.ClimbPressPublic.vote,At=window.ClimbPressPublic.unvote,me=window.ClimbPressPublic.changeVote;Ht(()=>{document.querySelectorAll("climbpress-route").forEach(t=>{var e;t.route!=null&&(t.vote=((e=j(t.route.id))==null?void 0:e.vote)??null)}),document.querySelectorAll("climbpress-routes").forEach(t=>{const e={};t.routes.forEach(r=>{var o;const i=(o=j(r.id))==null?void 0:o.vote;i&&(e[r.id]=i)}),t.votes=e}),window.addEventListener(jt,async t=>{var r,i,o;const e=t.target;if(e.localName=="climbpress-routes"){const n=t.target,l=(r=j(t.detail.route))==null?void 0:r.voteId;if(!l||!await At(l))return;F(t.detail.route,null);const d={};Object.entries(n.votes).forEach(([u,c])=>{const b=parseInt(u);b!=t.detail.route&&c!=null&&(d[b]=c)}),n.votes=d}else if(e.localName=="climbpress-route"){const n=t.target;if(n.vote==null)return;const a=(i=n.route)==null?void 0:i.id,d=(o=j(a))==null?void 0:o.voteId;if(!d||!await At(d))return;F(a,null),n.vote=null}}),window.addEventListener(Mt,async t=>{const e=t.target;if(e.localName=="climbpress-routes"){const r=e,{route:i,difficulty:o}=t.detail;if(await s(o,i)===!1)return;r.votes={...r.votes,[i]:{difficulty:o}}}else if(e.localName=="climbpress-route"){const r=e,i=r.route;if(i==null)return;const o=t.detail.difficulty,n=await s(o,i.id);if(n===!1)return;r.vote=n}});async function s(t,e){const r=j(e);if(r==null){const i=await fe(e,t);if(!i)return!1;F(e,{voteId:i,vote:{difficulty:t}})}else{if(!await me(r.voteId,t))return!1;F(e,{voteId:r.voteId,vote:{difficulty:t}})}return{difficulty:t}}});
     133        `}firstUpdated(s){super.firstUpdated(s),this.renderRoot.addEventListener("keyup",t=>{const e=t.target;e.name=="search"&&(this.searchQuery=e.value)}),this.renderRoot.addEventListener("change",t=>{const e=t.target;this.filterBy[e.name]=e.value,this.requestUpdate()})}cutOffRoutes(s){return this.count<1?s:s.slice(0,this.count)}getFilteredRoutes(){const s=this.searchQuery.toLowerCase();return this.routes.filter(t=>Nt(t,this.gradingSystems).includes(s)?!0:Object.keys(this.filterBy).find(i=>{const o=t[i];return this.filterBy[i]!=""&&t.hasOwnProperty(i)&&o!=this.filterBy[i]})?!1:s==""?!0:this.searchAbleProps.find(i=>{if(i=="metas"){const n=t[i];return Object.keys(n).find(l=>{const a=n[l],d=kt(l,a,this.routeMetaStructure);return d?d.toLowerCase().includes(s.toLowerCase()):a.toLowerCase().includes(s.toLowerCase())})!=null}const o=t[i];return typeof o=="string"&&o.toLowerCase().includes(s.toLowerCase())})!=null)}handleClick(s){this.active.includes(s)?this.active=this.active.filter(t=>t!=s):this.active=[...this.active,s]}onClickAll(){this.count=0}};f.styles=st(ae);m([v({type:Object})],f.prototype,"i18n",2);m([v({attribute:"grading-systems",type:Object})],f.prototype,"gradingSystems",2);m([v({type:Array})],f.prototype,"routes",2);m([v({type:Object})],f.prototype,"votes",2);m([v({attribute:"route-meta-structure",type:Array})],f.prototype,"routeMetaStructure",2);m([v({attribute:"route-meta-collapsed",type:Array})],f.prototype,"routeMetaCollapsed",2);m([v({type:Number})],f.prototype,"count",2);m([v({attribute:"hide-search",type:Boolean})],f.prototype,"hideSearch",2);m([v({attribute:"hide-filters",type:Boolean})],f.prototype,"hideFilters",2);m([v({attribute:"show-voting",type:Boolean})],f.prototype,"showVoting",2);m([ot()],f.prototype,"searchQuery",2);m([ot()],f.prototype,"active",2);m([ot()],f.prototype,"filterBy",2);f=m([Rt("climbpress-routes")],f);const et=s=>`climbpress-vote(route:${s})`,F=(s,t)=>{t==null?localStorage.removeItem(et(s)):localStorage.setItem(et(s),JSON.stringify(t))},j=s=>{try{const t=localStorage.getItem(et(s));return t?JSON.parse(t):null}catch{return null}};window.ClimbPressPublic.fetchRoutes==null&&(window.ClimbPressPublic={...window.ClimbPressPublic,async fetchRoutes(s="/wp-json/climbpress/v1/routes"){return fetch(s).then(t=>t.json())},async vote(s,t){return(await fetch("/wp-json/climbpress/v1/votes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({route_id:s,difficulty:t})}).then(r=>r.json())).voting_id},async changeVote(s,t){return(await fetch("/wp-json/climbpress/v1/votes",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({voting_id:s,difficulty:t})}).then(r=>r.json())).success},async unvote(s){return await fetch("/wp-json/climbpress/v1/votes",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:s})}).then(e=>e.json())}});window.ClimbPressPublic.fetchRoutes;const ge=window.ClimbPressPublic.vote,At=window.ClimbPressPublic.unvote,me=window.ClimbPressPublic.changeVote;Ht(()=>{document.querySelectorAll("climbpress-route").forEach(t=>{var e;t.route!=null&&(t.vote=((e=j(t.route.id))==null?void 0:e.vote)??null)}),document.querySelectorAll("climbpress-routes").forEach(t=>{const e={};t.routes.forEach(r=>{var o;const i=(o=j(r.id))==null?void 0:o.vote;i&&(e[r.id]=i)}),t.votes=e}),window.addEventListener(jt,async t=>{var r,i,o;const e=t.target;if(e.localName=="climbpress-routes"){const n=t.target,l=(r=j(t.detail.route))==null?void 0:r.voteId;if(!l||!await At(l))return;F(t.detail.route,null);const d={};Object.entries(n.votes).forEach(([u,c])=>{const b=parseInt(u);b!=t.detail.route&&c!=null&&(d[b]=c)}),n.votes=d}else if(e.localName=="climbpress-route"){const n=t.target;if(n.vote==null)return;const a=(i=n.route)==null?void 0:i.id,d=(o=j(a))==null?void 0:o.voteId;if(!d||!await At(d))return;F(a,null),n.vote=null}}),window.addEventListener(Mt,async t=>{const e=t.target;if(e.localName=="climbpress-routes"){const r=e,{route:i,difficulty:o}=t.detail;if(await s(o,i)===!1)return;r.votes={...r.votes,[i]:{difficulty:o}}}else if(e.localName=="climbpress-route"){const r=e,i=r.route;if(i==null)return;const o=t.detail.difficulty,n=await s(o,i.id);if(n===!1)return;r.vote=n}});async function s(t,e){const r=j(e);if(r==null){const i=await ge(e,t);if(!i)return!1;F(e,{voteId:i,vote:{difficulty:t}})}else{if(!await me(r.voteId,t))return!1;F(e,{voteId:r.voteId,vote:{difficulty:t}})}return{difficulty:t}}});
    134134//# sourceMappingURL=routes.js.map
  • climbpress/tags/0.6.2/web-components/routes.js.map

    r3024800 r3045938  
    1 {"version":3,"file":"routes.js","sources":["../../node_modules/.pnpm/@wordpress+dom-ready@3.49.0/node_modules/@wordpress/dom-ready/build-module/index.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.1/node_modules/@lit/reactive-element/css-tag.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.1/node_modules/@lit/reactive-element/reactive-element.js","../../node_modules/.pnpm/lit-html@3.1.0/node_modules/lit-html/lit-html.js","../../node_modules/.pnpm/lit-element@4.0.1/node_modules/lit-element/lit-element.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.1/node_modules/@lit/reactive-element/decorators/custom-element.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.1/node_modules/@lit/reactive-element/decorators/property.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.1/node_modules/@lit/reactive-element/decorators/state.js","../../node_modules/.pnpm/lit-html@3.1.0/node_modules/lit-html/directives/if-defined.js","../../src/lib/grading-system.ts","../../src/lib/meta.ts","../../node_modules/.pnpm/lit-html@3.1.0/node_modules/lit-html/directive.js","../../node_modules/.pnpm/lit-html@3.1.0/node_modules/lit-html/directives/class-map.js","../../src/web-components/events.ts","../../src/web-components/route.ts","../../src/web-components/routes.ts","../../src/lib/cache.ts","../../src/public-api.ts","../../src/web-components.ts"],"sourcesContent":["/**\n * @typedef {() => void} Callback\n *\n * TODO: Remove this typedef and inline `() => void` type.\n *\n * This typedef is used so that a descriptive type is provided in our\n * automatically generated documentation.\n *\n * An in-line type `() => void` would be preferable, but the generated\n * documentation is `null` in that case.\n *\n * @see https://github.com/WordPress/gutenberg/issues/18045\n */\n\n/**\n * Specify a function to execute when the DOM is fully loaded.\n *\n * @param {Callback} callback A function to execute after the DOM is ready.\n *\n * @example\n * ```js\n * import domReady from '@wordpress/dom-ready';\n *\n * domReady( function() {\n * \t//do something after DOM loads.\n * } );\n * ```\n *\n * @return {void}\n */\nexport default function domReady(callback) {\n  if (typeof document === 'undefined') {\n    return;\n  }\n  if (document.readyState === 'complete' ||\n  // DOMContentLoaded + Images/Styles/etc loaded, so we call directly.\n  document.readyState === 'interactive' // DOMContentLoaded fires at this point, so we call directly.\n  ) {\n    return void callback();\n  }\n\n  // DOMContentLoaded has not fired yet, delay callback until then.\n  document.addEventListener('DOMContentLoaded', callback);\n}\n//# sourceMappingURL=index.js.map","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[o+1]),t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement(\"style\"),n=t.litNonce;void 0!==n&&o.setAttribute(\"nonce\",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{n as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as s}from\"./css-tag.js\";export{CSSResult,adoptStyles,css,getCompatibleStyle,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const{is:i,defineProperty:e,getOwnPropertyDescriptor:r,getOwnPropertyNames:h,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:\"\",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!i(t,s),y={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:f};Symbol.metadata??=Symbol(\"metadata\"),a.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e(this.prototype,t,r)}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(d(\"elementProperties\")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d(\"finalized\")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d(\"properties\"))){const t=this.properties,s=[...h(t),...o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(t(s))}else void 0!==s&&i.push(t(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:\"string\"==typeof i?i:\"string\"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$ES??=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$ES?.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return s(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$ES?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$ES?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EO(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null}}requestUpdate(t,s,i,e=!1,r){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f)(e?r:this[t],s))return;this.C(t,s,i)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t)!0!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.C(s,this[s],i)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$ES?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$ET()}catch(s){throw t=!1,this._$ET(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$ES?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:\"open\"},b[d(\"elementProperties\")]=new Map,b[d(\"finalized\")]=new Map,p?.({ReactiveElement:b}),(a.reactiveElementVersions??=[]).push(\"2.0.1\");export{b as ReactiveElement,u as defaultConverter,f as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,i=t.trustedTypes,s=i?i.createPolicy(\"lit-html\",{createHTML:t=>t}):void 0,e=\"$lit$\",h=`lit$${(Math.random()+\"\").slice(9)}$`,o=\"?\"+h,n=`<${o}>`,r=document,l=()=>r.createComment(\"\"),c=t=>null===t||\"object\"!=typeof t&&\"function\"!=typeof t,a=Array.isArray,u=t=>a(t)||\"function\"==typeof t?.[Symbol.iterator],d=\"[ \\t\\n\\f\\r]\",f=/<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\\\s\"'>=/]+)(${d}*=${d}*(?:[^ \\t\\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`,\"g\"),p=/'/g,g=/\"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),b=y(2),w=Symbol.for(\"lit-noChange\"),T=Symbol.for(\"lit-nothing\"),A=new WeakMap,E=r.createTreeWalker(r,129);function C(t,i){if(!Array.isArray(t)||!t.hasOwnProperty(\"raw\"))throw Error(\"invalid template strings array\");return void 0!==s?s.createHTML(i):i}const P=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?\"<svg>\":\"\",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?\"!--\"===u[1]?c=v:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp(\"</\"+u[2],\"g\")),c=m):void 0!==u[3]&&(c=m):c===m?\">\"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m:'\"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=void 0);const x=c===m&&t[i+1].startsWith(\"/>\")?\" \":\"\";l+=c===f?s+n:d>=0?(o.push(a),s.slice(0,d)+e+s.slice(d)+h+x):s+h+(-2===d?i:x)}return[C(t,l+(t[s]||\"<?>\")+(2===i?\"</svg>\":\"\")),o]};class V{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=P(t,s);if(this.el=V.createElement(f,n),E.currentNode=this.el.content,2===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=E.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:\".\"===e[1]?k:\"?\"===e[1]?H:\"@\"===e[1]?I:R}),r.removeAttribute(t)}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i?i.emptyScript:\"\";for(let i=0;i<s;i++)r.append(t[i],l()),E.nextNode(),d.push({type:2,index:++c});r.append(t[s],l())}}}else if(8===r.nodeType)if(r.data===o)d.push({type:2,index:c});else{let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1}c++}}static createElement(t,i){const s=r.createElement(\"template\");return s.innerHTML=t,s}}function N(t,i,s=t,e){if(i===w)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=N(t,h._$AS(t,i.values),h,e)),i}class S{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r).importNode(i,!0);E.currentNode=e;let h=E.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new M(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new L(h,this,t)),this._$AV.push(i),l=s[++n]}o!==l?.index&&(h=E.nextNode(),o++)}return E.currentNode=r,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class M{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=N(this,t,i),c(t)?t===T||null==t||\"\"===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==w&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):u(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==T&&c(this._$AH)?this._$AA.nextSibling.data=t:this.$(r.createTextNode(t)),this._$AH=t}g(t){const{values:i,_$litType$:s}=t,e=\"number\"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=V.createElement(C(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const t=new S(e,this),s=t.u(this.options);t.p(i),this.$(s),this._$AH=t}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new V(t)),i}T(t){a(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new M(this.k(l()),this.k(l()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class R{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||\"\"!==s[0]||\"\"!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=T}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=N(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==w,o&&(this._$AH=t);else{const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=N(this,e[s+n],i,n),r===w&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===T?t=T:t!==T&&(t+=(r??\"\")+h[n+1]),this._$AH[n]=r}o&&!e&&this.O(t)}O(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??\"\")}}class k extends R{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===T?void 0:t}}class H extends R{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==T)}}class I extends R{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5}_$AI(t,i=this){if((t=N(this,t,i,0)??T)===w)return;const s=this._$AH,e=t===T&&s!==T||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==T&&(s===T||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){\"function\"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class L{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){N(this,t)}}const z={j:e,P:h,A:o,C:1,M:P,L:S,R:u,V:N,D:M,I:R,H,N:I,U:k,B:L},Z=t.litHtmlPolyfillSupport;Z?.(V,M),(t.litHtmlVersions??=[]).push(\"3.1.0\");const j=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new M(i.insertBefore(l(),t),t,void 0,s??{})}return h._$AI(t),h};export{z as _$LH,x as html,w as noChange,T as nothing,j as render,b as svg};\n//# sourceMappingURL=lit-html.js.map\n","import{ReactiveElement as t}from\"@lit/reactive-element\";export*from\"@lit/reactive-element\";import{render as e,noChange as i}from\"lit-html\";export*from\"lit-html\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */class s extends t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=e(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return i}}s._$litElement$=!0,s[(\"finalized\",\"finalized\")]=!0,globalThis.litElementHydrateSupport?.({LitElement:s});const r=globalThis.litElementPolyfillSupport;r?.({LitElement:s});const o={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(globalThis.litElementVersions??=[]).push(\"4.0.1\");export{s as LitElement,o as _$LE};\n//# sourceMappingURL=lit-element.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)};export{t as customElement};\n//# sourceMappingURL=custom-element.js.map\n","import{defaultConverter as t,notEqual as e}from\"../reactive-element.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o={attribute:!0,type:String,converter:t,reflect:!1,hasChanged:e},r=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),s.set(r.name,t),\"accessor\"===n){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.C(o,void 0,t),e}}}if(\"setter\"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error(\"Unsupported decorator location: \"+n)};function n(t){return(e,o)=>\"object\"==typeof o?r(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}export{n as property,r as standardProperty};\n//# sourceMappingURL=property.js.map\n","import{property as t}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function r(r){return t({...r,state:!0,attribute:!1})}export{r as state};\n//# sourceMappingURL=state.js.map\n","import{nothing as t}from\"../lit-html.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o=o=>o??t;export{o as ifDefined};\n//# sourceMappingURL=if-defined.js.map\n","import {Grade, GradingSystem, Route} from \"../_types\";\n\nexport const findGradingSystem = (route: Pick<Route, \"gradingSystem\">, gradingSystems: GradingSystem[]) => {\n    return gradingSystems.find(s => s.id == route.gradingSystem)\n}\n\nexport const getClosestGrade = (route: Pick<Route, \"gradingSystem\" | \"difficulty\">, gradingSystems: GradingSystem[]) => {\n    const grades = findGradingSystem(route, gradingSystems)?.grades;\n    if(!grades) return null;\n\n    let closest: number | null = null;\n    let closestGrade: Grade | null = null\n    for (let index = 0; index < grades.length; index++) {\n        const grade = grades[index];\n        if (closest == null) {\n            closest = index;\n            closestGrade = grade\n            continue;\n        }\n        if (grade.difficulty === route.difficulty) {\n            closest = index;\n            closestGrade = grade;\n            break;\n        }\n        const distanceToClosest = Math.abs(grade.difficulty - closestGrade!.difficulty);\n        const distanceToDifficulty = Math.abs(grade.difficulty - route.difficulty);\n        if (distanceToClosest > distanceToDifficulty) {\n            closest = index;\n            closestGrade = grade;\n        }\n    }\n    return closest == null || closestGrade == null ? null : {\n        index: closest,\n        grade: closestGrade,\n    }\n}\n\nexport const getGradeDisplay = (route: Route, gradingSystems: GradingSystem[]) => {\n    const closest = getClosestGrade(route,gradingSystems);\n    return closest?.grade?.label ?? String(route.difficulty);\n}","import {RouteMeta} from \"../_types\";\n\nexport const getMetaLabel = (metaKey: string, metaValue: string | number, metaStructure: RouteMeta[]) => {\n    const _metaStructure = metaStructure.find(m => m.key == metaKey)\n    if (!_metaStructure) return null;\n    return _metaStructure?.options.find(o => o.key == metaValue)?.label ?? null;\n}","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}export{i as Directive,t as PartType,e as directive};\n//# sourceMappingURL=directive.js.map\n","import{noChange as t}from\"../lit-html.js\";import{directive as s,Directive as i,PartType as r}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const e=s(class extends i{constructor(t){if(super(t),t.type!==r.ATTRIBUTE||\"class\"!==t.name||t.strings?.length>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(t){return\" \"+Object.keys(t).filter((s=>t[s])).join(\" \")+\" \"}update(s,[i]){if(void 0===this.it){this.it=new Set,void 0!==s.strings&&(this.st=new Set(s.strings.join(\" \").split(/\\s/).filter((t=>\"\"!==t))));for(const t in i)i[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.it)t in i||(r.remove(t),this.it.delete(t));for(const t in i){const s=!!i[t];s===this.it.has(t)||this.st?.has(t)||(s?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return t}});export{e as classMap};\n//# sourceMappingURL=class-map.js.map\n","export type EventRouteVote = {\n    difficulty: number\n    route: number\n}\nexport const EVENT_ROUTE_VOTE = \"climbpressRouteVote\";\nexport type EventRouteUnvote = {\n    route: number\n}\nexport const EVENT_ROUTE_UNVOTE = \"climbpressRouteUnvote\";\nexport type EventRouteExpandToggle = {\n    route: number\n}\nexport const EVENT_ROUTE_EXPAND_TOGGLE = \"climbpressRouteExpandToggle\";","import {html, LitElement, unsafeCSS} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\n\n// @ts-ignore\nimport styles from './route.css?inline'\nimport type {Grade, Route, Vote} from \"../_types\";\nimport {GradingSystem, RouteMeta} from \"../_types\";\nimport {findGradingSystem, getClosestGrade, getGradeDisplay} from \"../lib/grading-system\";\nimport {getMetaLabel} from \"../lib/meta\";\nimport {\n    EVENT_ROUTE_EXPAND_TOGGLE,\n    EVENT_ROUTE_UNVOTE,\n    EVENT_ROUTE_VOTE,\n    EventRouteExpandToggle,\n    EventRouteUnvote,\n    EventRouteVote\n} from \"./events\";\n\nexport type i18n = {\n    date?: string\n    route_voting_label?: string\n}\n\n@customElement(\"climbpress-route\")\nexport default class ClimbPressRoute extends LitElement {\n    static styles = unsafeCSS(styles);\n\n    @property({type: Object})\n    public i18n: i18n = {}\n\n    @property({type: Object})\n    public route: Route | null = null\n\n    @property({attribute: \"meta-structure\", type: Array})\n    public metaStructure: RouteMeta[] = [];\n\n    @property({attribute: \"meta-collapsed\", type: Array})\n    public metaCollapsed?: string[]\n\n    @property({attribute: \"grading-systems\", type: Object})\n    public gradingSystems: GradingSystem[] = [];\n\n    @property({attribute: \"expanded\", type: Boolean})\n    public expanded: boolean = false\n\n    @property({type: Object})\n    public vote: Vote | null = null\n\n    protected render() {\n        const route = this.route;\n\n        if (!route) return null;\n\n        const grade = getGradeDisplay(route, this.gradingSystems);\n        const metaKeys = Object.keys(route.metas);\n        const metaKeysNotInCollapsedMetas = metaKeys.filter(key => {\n            return !(this.metaCollapsed?.includes(key) ?? false);\n        });\n\n        const collapsedMetaValues = (this.metaCollapsed ?? metaKeys).map(key => {\n            const value = route.metas[key] ?? \"\";\n            return getMetaLabel(key, value, this.metaStructure) ?? value;\n        }).filter(v => v != \"\");\n\n        const classes = classMap({\n            expanded: this.expanded,\n        });\n\n        const clickExpand = () => {\n            if (!this.expanded) this.dispatchToggleExpand()\n        }\n        const clickCollapse = (e: Event) => {\n            if (this.expanded) {\n                e.preventDefault()\n                e.stopPropagation()\n                e.stopImmediatePropagation()\n                this.dispatchToggleExpand()\n            }\n        }\n\n        const gradingSystem = findGradingSystem(route, this.gradingSystems);\n        const routeGrade = getClosestGrade(route, this.gradingSystems);\n\n        const vote = this.vote;\n        let votedGrade: { grade: Grade, index: number } | null = null;\n        let nextHarderGrade: Grade | null = null;\n        let nextEasierGrade: Grade | null = null;\n        const minIndex = routeGrade ? routeGrade.index - 4 : 0;\n        const maxIndex = routeGrade ? routeGrade.index + 4 : 0;\n\n        if (routeGrade != null && gradingSystem) {\n            if (vote) {\n                votedGrade = getClosestGrade({\n                    gradingSystem: route.gradingSystem,\n                    difficulty: vote.difficulty,\n                }, this.gradingSystems) ?? null;\n            }\n            const baseGrade = votedGrade ? votedGrade : routeGrade;\n            const nextHarderGradeIndex = baseGrade.index + 1;\n            const nextEasierGradeIndex = baseGrade.index -1;\n\n            if(nextHarderGradeIndex <= maxIndex){\n                nextHarderGrade = gradingSystem.grades?.[nextHarderGradeIndex] ?? null;\n            }\n            if(nextEasierGradeIndex >= minIndex){\n                nextEasierGrade = gradingSystem.grades?.[nextEasierGradeIndex] ?? null;\n            }\n        }\n\n        // TODO: move to box settings or global settings\n        let communityVotingGrade: null | Grade = null\n        if(route.communityVotesCount > 4){\n            console.debug(\"community\", route)\n            communityVotingGrade = getClosestGrade({\n                gradingSystem: route.gradingSystem,\n                difficulty: route.communityAverageDifficulty,\n            }, this.gradingSystems)?.grade ?? null;\n        }\n\n\n\n        const clickVote = (difficulty: number) => (e: Event) => {\n            e.preventDefault();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n\n            if (difficulty < 0 || !routeGrade) {\n                return;\n            }\n\n            const grade = getClosestGrade(\n                {\n                    gradingSystem: route?.gradingSystem,\n                    difficulty,\n                },\n                this.gradingSystems\n            );\n\n            // TODO: make it block configuration or global setting max and min vote difference\n\n            if (grade == null || grade.index < minIndex || grade.index > maxIndex) return;\n\n            this.dispatchChangeVote(grade.grade.difficulty)\n        }\n\n        const clickSameVote = (e: Event) => {\n            e.preventDefault();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            if (route == null) return;\n            if (vote === null) {\n                this.dispatchChangeVote(route.difficulty);\n            } else {\n                this.dispatchChangeUnvote();\n            }\n        }\n\n        const dateFormat = new Intl.DateTimeFormat(undefined,{\n            dateStyle: \"short\",\n        });\n\n        const communityValues: string[] = []\n\n        if(votedGrade){\n            communityValues.push(votedGrade.grade.label);\n        }\n        if(communityVotingGrade){\n            communityValues.push(`⌀ ${communityVotingGrade.label}`);\n        }\n\n        return html`\n            <div class=\"route ${classes}\" @click=${clickExpand}>\n                <div class=\"details\">\n                    <div class=\"name\" @click=${clickCollapse}>${route.name}</div>\n                    <div class=\"meta\">\n                        <div>\n                            ${dateFormat.format(Date.parse(route.created))} •\n                            ${collapsedMetaValues.join(\" • \")}\n                        </div>\n                    </div>\n                </div>\n                <div class=\"difficulty\">\n                    <div class=\"value\">\n                        ${grade}\n                        ${communityValues.length ?\n                                html`<span class=\"my-value\">${communityValues.join(\" / \")}</span>`\n                        :null}\n                    </div>\n                    \n                    <div class=\"voting\">\n                        <div class=\"voting_wrapper\">\n                            <div class=\"label\">${this.i18n.route_voting_label ?? \"Deine Bewertung\"}</div>\n                            <div class=\"controls\">\n                                <button\n                                        ?disabled=${nextEasierGrade == null}\n                                        @click=${clickVote(nextEasierGrade?.difficulty ?? -1)}\n                                        class=${classMap({\n                                            \"btn-easier\": true,\n                                            //active: votedGrade != null && currentVoteValue < route.difficulty\n                                        })}\n                                >\n                                    –\n                                </button>\n                                <button\n                                        @click=${clickSameVote}\n                                        class=${classMap({active: vote != null})}\n                                >\n                                    ${votedGrade ? votedGrade.grade.label : grade}\n                                </button>\n                                <button\n                                        ?disabled=${nextHarderGrade == null}\n                                        @click=${clickVote(nextHarderGrade?.difficulty ?? -1)}\n                                        class=${classMap({\n                                            \"btn-harder\": true,\n                                            //active: votedGrade != null && currentVoteValue > route.difficulty\n                                        })}\n                                >\n                                    +\n                                </button>\n                            </div>\n                            <div class=\"community-voting\">\n                                <div class=\"label\">⌀ Bewertung</div>\n                                <div>${communityVotingGrade?.label ?? \"-\" }</div>\n                            </div>\n                           \n                        </div>                        \n                    </div>\n                </div>\n                <div class=\"expanded-details\">\n                    <div>\n                        <dl>\n                            <dt>${this.i18n.date ?? \"Datum\"}</dt>\n                            <dd>${dateFormat.format(Date.parse(route.created))}</dd>\n                            ${this.metaCollapsed?.map(this.renderRouteMeta.bind(this, route))}\n                            ${metaKeysNotInCollapsedMetas.map(this.renderRouteMeta.bind(this, route))}\n                        </dl>\n                    </div>\n                </div>\n            </div>\n        `\n    }\n\n    private renderRouteMeta(route: Route, metaKey: string) {\n        const value = route.metas[metaKey] ?? \"\";\n        if (value == \"\") return '';\n        const structure = this.metaStructure.find(m => m.key == metaKey)\n        const label = structure?.label ?? metaKey;\n        const display = structure?.options?.find(o => o.key == value)?.label ?? value;\n        return html`\n            <dt>${label}</dt>\n            <dd>${display}</dd>\n        `\n    }\n\n    // ------------------------------------------------\n    // Events\n    // ------------------------------------------------\n    private dispatchChangeVote(value: number) {\n        const routeId = this.route?.id;\n        if (!routeId) return;\n        this.dispatchEvent(\n            new CustomEvent<EventRouteVote>(\n                EVENT_ROUTE_VOTE,\n                {\n                    detail: {\n                        difficulty: value,\n                        route: routeId,\n                    },\n                    bubbles: true,\n                    composed: true\n                },\n            )\n        )\n    }\n\n    private dispatchChangeUnvote() {\n        const routeId = this.route?.id;\n        if (!routeId) return;\n        this.dispatchEvent(\n            new CustomEvent<EventRouteUnvote>(\n                EVENT_ROUTE_UNVOTE,\n                {\n                    detail: {\n                        route: routeId,\n                    },\n                    bubbles: true,\n                    composed: true,\n                },\n            )\n        )\n    }\n\n    private dispatchToggleExpand() {\n        const routeId = this.route?.id;\n        if (!routeId) return;\n        this.dispatchEvent(\n            new CustomEvent<EventRouteExpandToggle>(\n                EVENT_ROUTE_EXPAND_TOGGLE,\n                {\n                    detail: {\n                        route: routeId,\n                    },\n                    bubbles: true,\n                    composed: true,\n                },\n            )\n        )\n    }\n}\n\ndeclare global {\n    interface HTMLElementTagNameMap {\n        'climbpress-route': ClimbPressRoute\n    }\n}\n","import {html, LitElement, nothing, PropertyValues, unsafeCSS} from 'lit';\nimport {customElement, property, state} from 'lit/decorators.js';\nimport {ifDefined} from 'lit/directives/if-defined.js';\nimport {GradingSystem, Route, RouteMeta, Vote} from \"../_types\";\n\nimport './theme.css';\n\n// @ts-ignore\nimport styles from './routes.css?inline'\nimport {getGradeDisplay} from \"../lib/grading-system\";\nimport {getMetaLabel} from \"../lib/meta\";\nimport './route'\nimport {EventRouteExpandToggle, EventRouteVote} from \"./events\";\nimport ClimbPressRoute from \"./route\";\n\n@customElement(\"climbpress-routes\")\nexport default class ClimbPressRoutes extends LitElement {\n    static styles = unsafeCSS(styles);\n\n    @property({type: Object})\n    public i18n: { [key: string]: string } = {}\n\n    @property({attribute: \"grading-systems\", type: Object})\n    public gradingSystems: GradingSystem[] = [];\n\n    @property({type: Array})\n    public routes: Route[] = [];\n\n    @property({type: Object})\n    public votes: {[route: number]: Vote|undefined} = {}\n\n    @property({attribute: \"route-meta-structure\", type: Array})\n    public routeMetaStructure: RouteMeta[] = [];\n\n    @property({attribute: \"route-meta-collapsed\", type: Array})\n    public routeMetaCollapsed?: string[]\n\n    @property({type: Number})\n    public count: number = 10;\n\n    @property({attribute: \"hide-search\", type: Boolean})\n    public hideSearch: boolean = false;\n\n    @property({attribute: \"hide-filters\", type: Boolean})\n    public hideFilters: boolean = false;\n\n    @property({attribute: \"show-voting\", type: Boolean})\n    public showVoting: boolean = false;\n\n    @state()\n    private searchQuery: string = \"\";\n\n    @state()\n    private active: number[] = []\n\n    @state()\n    private filterBy: { [key: string]: string } = {};\n\n    getById(route: number): null | ClimbPressRoute{\n        let needle: null|ClimbPressRoute = null;\n        this.shadowRoot?.querySelectorAll(\"climbpress-route\").forEach(element=> {\n            if(element.route != null && element.route.id == route){\n                needle = element;\n            }\n        })\n        return needle;\n    }\n\n    // ------------------------------------------------------------\n    // render\n    // ------------------------------------------------------------\n    protected render() {\n        const filtered = this.getFilteredRoutes();\n        const cutOffRoutes = this.cutOffRoutes(filtered);\n\n        return html`\n            <div class=\"container\">\n                ${this.renderSearch()}\n                ${this.renderFilters()}\n                <div class=\"routes\">\n                    ${cutOffRoutes.length > 0 ?\n                            cutOffRoutes.map(this.renderRoute.bind(this))\n                            :\n                            html`<slot name=\"not-found\"><p><i>No route found</i></p></slot>`\n                    }\n                </div>\n\n                ${cutOffRoutes.length < filtered.length ?\n                        html`\n                            <slot name=\"button\" @click=${this.onClickAll}>\n                                <button role=\"button\">All routes</button>\n                            </slot>`\n                        : nothing\n                }\n            </div>\n        `;\n    }\n\n    private renderRoute(route: Route) {\n        const isExpanded = this.active.includes(route.id);\n\n        const onToggle = (e: CustomEvent<EventRouteExpandToggle>) => {\n            if(this.active.includes(e.detail.route)){\n                this.active = this.active.filter(el => el != e.detail.route);\n            } else {\n                this.active = [...this.active, e.detail.route];\n            }\n        }\n\n        const onVote = (e: CustomEvent<EventRouteVote>)=> {\n            console.debug(e.detail);\n        }\n\n        return html`\n            <climbpress-route\n                    @climbpressRouteExpandToggle=${onToggle}\n                    @climbpressRouteVote=${onVote}\n                    route=${JSON.stringify(route)}\n                    meta-structure=${JSON.stringify(this.routeMetaStructure)}\n                    meta-collapsed=${JSON.stringify(this.routeMetaCollapsed)}\n                    grading-systems=${JSON.stringify(this.gradingSystems)}\n                    ?expanded=${isExpanded}\n                    vote=${ifDefined(this.votes[route.id] ? JSON.stringify(this.votes[route.id]) : undefined)}\n            ></climbpress-route>\n        `\n    }\n\n    private renderFilters() {\n        return '';\n        // if (this.hideFilters) return '';\n        //\n        // const systems = Array.from(\n        //     new Set(this.routes.map(r => r.gradingSystem).filter(s => s != \"\"))\n        // ).map(s => {\n        //     return getGradingSystems().find(system => s == system.id)\n        // }).filter(s => s != undefined);\n        // const walls = Array.from(new Set(this.routes.map(r => r.sector).filter(w => w != \"\")));\n        //\n        // const labelGradingSystem = this.labels?.filterAllGradingSystems ?? \"- All grading systems -\";\n        // const labelWall = this.labels?.filterAllWalls ?? \"- All walls -\"\n        //\n        // return html`\n        //     <div class=\"filters\">\n        //         <select name=\"gradingSystem\">\n        //             <option value=\"\">${labelGradingSystem}</option>\n        //             ${systems.map(system => {\n        //                 return html`\n        //                     <option value=${system.id}>${system.name}</option>\n        //                 `\n        //             })}\n        //         </select>\n        //         <select name=\"wall\">\n        //             <option value=\"\">${labelWall}</option>\n        //             ${walls.map(w => {\n        //                 return html`\n        //                     <option value=${w}>${w}</option>`\n        //             })}\n        //         </select>\n        //     </div>\n        // `\n    }\n\n    private renderSearch() {\n        if (this.hideSearch) return '';\n        const label = this.i18n?.searchPlaceholder ?? \"Search...\";\n        return html`\n            <slot name=\"input\"><input placeholder=${label} name=\"search\"/></slot>\n        `\n    }\n\n    // ------------------------------------------------------------\n    // lifecycle\n    // ------------------------------------------------------------\n    protected firstUpdated(_changedProperties: PropertyValues) {\n        super.firstUpdated(_changedProperties);\n\n        this.renderRoot.addEventListener(\"keyup\", (e) => {\n            const target = (e.target as HTMLInputElement)\n            if (target.name == \"search\") {\n                this.searchQuery = target.value;\n            }\n        })\n\n        this.renderRoot.addEventListener(\"change\", (e) => {\n            const target = (e.target as HTMLSelectElement);\n            this.filterBy[target.name] = target.value;\n            this.requestUpdate()\n        })\n    }\n\n    // ------------------------------------------------------------\n    // utils\n    // ------------------------------------------------------------\n    private searchAbleProps: Array<keyof Route> = [\"name\", \"metas\", \"gradingSystem\"];\n\n    private cutOffRoutes(routes: Route[]) {\n\n        if (this.count < 1) return routes;\n\n        return routes.slice(0, this.count);\n    }\n\n    private getFilteredRoutes() {\n        const searchValue = this.searchQuery.toLowerCase();\n        return this.routes.filter(route => {\n            const grade = getGradeDisplay(route, this.gradingSystems)\n            if (grade.includes(searchValue)) {\n                return true;\n            }\n            const doesNotMatch = Object.keys(this.filterBy).find((key) => {\n                const routeValue = route[key as keyof Route]\n                return this.filterBy[key] != \"\" && route.hasOwnProperty(key) && routeValue != this.filterBy[key];\n            });\n            if (doesNotMatch) return false;\n            if (searchValue == \"\") {\n                return true;\n            }\n            return this.searchAbleProps.find(prop => {\n                if (prop == \"metas\") {\n                    const value = route[prop];\n                    return Object.keys(value).find(metaKey => {\n                        const metaValue = value[metaKey];\n                        const label = getMetaLabel(metaKey, metaValue, this.routeMetaStructure);\n                        if (label) {\n                            return label.toLowerCase().includes(searchValue.toLowerCase());\n                        }\n                        return metaValue.toLowerCase().includes(searchValue.toLowerCase());\n                    }) != undefined;\n                }\n                const value = route[prop];\n                return typeof value === \"string\" && value.toLowerCase().includes(searchValue.toLowerCase())\n            }) != undefined;\n        });\n    }\n\n    // ------------------------------------------------------------\n    // event handling\n    // ------------------------------------------------------------\n    private handleClick(index: number) {\n        if (this.active.includes(index)) {\n            this.active = this.active.filter(i => i != index);\n        } else {\n            this.active = [\n                ...this.active,\n                index,\n            ];\n        }\n    }\n\n    private onClickAll() {\n        this.count = 0;\n    }\n}\n\ndeclare global {\n    interface HTMLElementTagNameMap {\n        'climbpress-routes': ClimbPressRoutes\n    }\n}\n","import {Route, Vote} from \"../_types\";\n\nexport const getRoutes = (): Route[] => {\n    try{\n        // TODO: zod parsing\n        return JSON.parse(localStorage.getItem(\"climbpress-routes\") ?? \"[]\");\n    } catch (e) {\n        console.error(e);\n    }\n    return [];\n}\n\nexport const setRoutes = (routes: Route[]) => localStorage.setItem(\"climbpress-routes\", JSON.stringify(routes));\n\ntype CachedVote = {\n    vote: Vote\n    voteId: string\n}\n\nconst getVoteKey = (routeId: number) => `climbpress-vote(route:${routeId})`;\nexport const setVoteCache = (routeId: number, vote: CachedVote|null) =>{\n    if(vote == null){\n        localStorage.removeItem(getVoteKey(routeId));\n    } else {\n        localStorage.setItem(getVoteKey(routeId), JSON.stringify(vote));\n    }\n}\n\nexport const getVoteCache = (routeId: number): CachedVote | null => {\n    try {\n        const cache = localStorage.getItem(getVoteKey(routeId));\n        return cache ?   JSON.parse(cache): null;\n    } catch (e) {\n        return null;\n    }\n}","import {GradingSystem, Route, RouteMeta} from \"./_types\";\n\ndeclare global {\n    interface Window {\n        ClimbPressPublic: {\n            RESTNamespace: string\n            gradingSystems: GradingSystem[]\n            metaStructure: RouteMeta[]\n            labels: { [key: string]: string }\n            fetchRoutes(url?: string): Promise<Route[]>\n            vote(route_id: number, difficulty: number): Promise<string|false>\n            changeVote(vote_id: string, difficulty: number): Promise<boolean>\n            unvote(vote_id: string): Promise<boolean>\n        }\n    }\n}\n\nif(window.ClimbPressPublic.fetchRoutes == undefined){\n    window.ClimbPressPublic = {\n        ...window.ClimbPressPublic,\n        async fetchRoutes (url = \"/wp-json/climbpress/v1/routes\") {\n            return fetch(url).then(res => res.json());\n        },\n        async vote(route_id, difficulty){\n            const result = await fetch(`/wp-json/climbpress/v1/votes`,{\n                method: \"POST\",\n                headers: {\n                    \"Content-Type\": \"application/json\",\n                },\n                body: JSON.stringify({\n                    route_id,\n                    difficulty,\n                })\n            }).then(res=> res.json()) as { voting_id: string|false};\n            return result.voting_id;\n        },\n        async changeVote(voting_id, difficulty){\n            const result = await fetch(`/wp-json/climbpress/v1/votes`,{\n                method: \"PATCH\",\n                headers: {\n                    \"Content-Type\": \"application/json\",\n                },\n                body: JSON.stringify({\n                    voting_id,\n                    difficulty,\n                })\n            }).then(res=> res.json()) as { success: boolean};\n            return result.success;\n        },\n        async unvote(vote_id){\n            const result = await fetch(`/wp-json/climbpress/v1/votes`,{\n                method: \"DELETE\",\n                headers: {\n                    \"Content-Type\": \"application/json\",\n                },\n                body: JSON.stringify({\n                    id: vote_id,\n                })\n            }).then(res=> res.json());\n            return result as boolean;\n        }\n\n    }\n}\n\nexport const fetchRoutes = window.ClimbPressPublic.fetchRoutes;\nexport const getGradingSystems = () => window.ClimbPressPublic.gradingSystems;\nexport const vote = window.ClimbPressPublic.vote;\nexport const unvote = window.ClimbPressPublic.unvote;\nexport const changeVote = window.ClimbPressPublic.changeVote;\nexport const getLabels = () => window.ClimbPressPublic.labels;\n","import domReady from \"@wordpress/dom-ready\";\nimport './web-components/routes'\nimport {EVENT_ROUTE_UNVOTE, EVENT_ROUTE_VOTE, EventRouteUnvote, EventRouteVote} from \"./web-components/events\";\nimport ClimbPressRoute from \"./web-components/route\";\nimport {getVoteCache, setVoteCache} from \"./lib/cache\";\nimport {changeVote, unvote, vote} from \"./public-api\";\n\nimport './web-components/theme.css';\nimport ClimbPressRoutes from \"./web-components/routes\";\nimport {Vote} from \"./_types\";\n\ndomReady(() => {\n\n    document.querySelectorAll(\"climbpress-route\").forEach((element) => {\n        if (element.route == null) return;\n        element.vote = getVoteCache(element.route.id)?.vote ?? null;\n    })\n    document.querySelectorAll(\"climbpress-routes\").forEach((element) => {\n        const votes: {[route:number]: Vote} = {}\n        element.routes.forEach(route => {\n            const vote = getVoteCache(route.id)?.vote;\n            if(vote){\n                votes[route.id] = vote;\n            }\n        });\n        element.votes = votes;\n    })\n\n    // @ts-ignore\n    window.addEventListener(EVENT_ROUTE_UNVOTE, async (event: CustomEvent<EventRouteUnvote>) => {\n        const element = (event.target as Element);\n        if (element.localName == \"climbpress-routes\") {\n            const element = (event.target as ClimbPressRoutes);\n            const voteId = getVoteCache(event.detail.route)?.voteId;\n\n            if (!voteId) return;\n\n            const success = await unvote(voteId);\n            if (!success) {\n                return;\n            }\n\n            setVoteCache(event.detail.route, null);\n            const votes: {[route:number]: Vote} = {};\n            Object.entries(element.votes).forEach(([route, vote]) => {\n                const routeId = parseInt(route);\n                if(routeId != event.detail.route && vote != undefined){\n                    votes[routeId] = vote;\n                }\n            });\n            element.votes = votes;\n\n        } else if(element.localName == \"climbpress-route\"){\n            const element = (event.target as ClimbPressRoute);\n            const currentVote = element.vote;\n            if (currentVote == null) return;\n\n            const routeId = element.route?.id!\n\n            const voteId = getVoteCache(routeId)?.voteId;\n            if (!voteId) return;\n\n\n            const success = await unvote(voteId);\n            if (!success) {\n                return;\n            }\n            setVoteCache(routeId, null);\n            element.vote = null;\n        }\n\n    })\n\n    // @ts-ignore\n    window.addEventListener(EVENT_ROUTE_VOTE, async (event: CustomEvent<EventRouteVote>) => {\n        const element = (event.target as Element);\n        if (element.localName == \"climbpress-routes\") {\n            const routesElement = element as ClimbPressRoutes;\n            const {route, difficulty} = event.detail;\n            const vote = await doVote(difficulty, route);\n            if(vote === false) return;\n\n            routesElement.votes = {\n                ...routesElement.votes,\n                [route]: {difficulty},\n            };\n        } else if (element.localName == \"climbpress-route\") {\n            const routeElement = element as ClimbPressRoute;\n            const route = routeElement.route;\n            if (route == null) return;\n\n            const difficulty = event.detail.difficulty;\n\n            const vote = await doVote(difficulty, route.id);\n            if(vote === false) return;\n            routeElement.vote = vote;\n        }\n    });\n\n    async function doVote(difficulty: number, routeId: number): Promise<Vote|false> {\n\n        const currentVoteCache = getVoteCache(routeId);\n\n        if (currentVoteCache == null) {\n            const voteId = await vote(routeId, difficulty);\n            if (!voteId) {\n                return false;\n            }\n            setVoteCache(routeId, {\n                voteId: voteId,\n                vote: {\n                    difficulty,\n                },\n            });\n        } else {\n            const success = await changeVote(currentVoteCache.voteId, difficulty);\n            if (!success) {\n                return false;\n            }\n            setVoteCache(routeId, {\n                voteId: currentVoteCache.voteId,\n                vote: {\n                    difficulty,\n                }\n            });\n        }\n        return {\n            difficulty,\n        }\n    }\n})"],"names":["domReady","callback","t","e","s","o","n$3","r","n","S","c","i","h","a","l","p","d","u","f","y","b","_a","v","_","m","g","$","x","w","T","A","E","C","P","V","k","H","I","R","N","_b","M","L","j","findGradingSystem","route","gradingSystems","getClosestGrade","grades","closest","closestGrade","index","grade","distanceToClosest","distanceToDifficulty","getGradeDisplay","getMetaLabel","metaKey","metaValue","metaStructure","_metaStructure","EVENT_ROUTE_VOTE","EVENT_ROUTE_UNVOTE","EVENT_ROUTE_EXPAND_TOGGLE","ClimbPressRoute","LitElement","metaKeys","metaKeysNotInCollapsedMetas","key","collapsedMetaValues","value","classes","classMap","clickExpand","clickCollapse","gradingSystem","routeGrade","vote","votedGrade","nextHarderGrade","nextEasierGrade","minIndex","maxIndex","baseGrade","nextHarderGradeIndex","nextEasierGradeIndex","communityVotingGrade","_c","clickVote","difficulty","clickSameVote","dateFormat","communityValues","html","_d","structure","label","display","routeId","unsafeCSS","styles","__decorateClass","property","customElement","ClimbPressRoutes","needle","element","filtered","cutOffRoutes","nothing","isExpanded","el","ifDefined","_changedProperties","target","routes","searchValue","routeValue","prop","state","getVoteKey","setVoteCache","getVoteCache","cache","url","res","route_id","voting_id","vote_id","unvote","changeVote","votes","event","voteId","routesElement","doVote","routeElement","currentVoteCache"],"mappings":"aA8Be,SAASA,GAASC,EAAU,CACzC,GAAI,SAAO,SAAa,KAGxB,IAAI,SAAS,aAAe,YAE5B,SAAS,aAAe,cAEtB,OAAO,KAAKA,EAAQ,EAItB,SAAS,iBAAiB,mBAAoBA,CAAQ,EACxD,CC3CA;AAAA;AAAA;AAAA;AAAA,GAKA,MAAMC,EAAE,WAAWC,GAAED,EAAE,aAAsBA,EAAE,WAAX,QAAqBA,EAAE,SAAS,eAAe,uBAAuB,SAAS,WAAW,YAAY,cAA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AI,CAAC4C,EACM,MAAA,GAEXZ,EAAavB,EAAS,CAClB,OAAAmC,EACA,KAAM,CACF,WAAA5C,CACJ,CAAA,CACH,CAAA,KACE,CAEH,GAAI,CADY,MAAMyC,GAAWO,EAAiB,OAAQhD,CAAU,EAEzD,MAAA,GAEXgC,EAAavB,EAAS,CAClB,OAAQuC,EAAiB,OACzB,KAAM,CACF,WAAAhD,CACJ,CAAA,CACH,CACL,CACO,MAAA,CACH,WAAAA,CAAA,CAER,CACJ,CAAC","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,11,12]}
     1{"version":3,"file":"routes.js","sources":["../../node_modules/.pnpm/@wordpress+dom-ready@3.52.0/node_modules/@wordpress/dom-ready/build-module/index.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js","../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/lit-html.js","../../node_modules/.pnpm/lit-element@4.0.4/node_modules/lit-element/lit-element.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/state.js","../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/if-defined.js","../../src/lib/grading-system.ts","../../src/lib/meta.ts","../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directive.js","../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/class-map.js","../../src/web-components/events.ts","../../src/web-components/route.ts","../../src/web-components/routes.ts","../../src/lib/cache.ts","../../src/public-api.ts","../../src/web-components.ts"],"sourcesContent":["/**\n * @typedef {() => void} Callback\n *\n * TODO: Remove this typedef and inline `() => void` type.\n *\n * This typedef is used so that a descriptive type is provided in our\n * automatically generated documentation.\n *\n * An in-line type `() => void` would be preferable, but the generated\n * documentation is `null` in that case.\n *\n * @see https://github.com/WordPress/gutenberg/issues/18045\n */\n\n/**\n * Specify a function to execute when the DOM is fully loaded.\n *\n * @param {Callback} callback A function to execute after the DOM is ready.\n *\n * @example\n * ```js\n * import domReady from '@wordpress/dom-ready';\n *\n * domReady( function() {\n * \t//do something after DOM loads.\n * } );\n * ```\n *\n * @return {void}\n */\nexport default function domReady(callback) {\n  if (typeof document === 'undefined') {\n    return;\n  }\n  if (document.readyState === 'complete' ||\n  // DOMContentLoaded + Images/Styles/etc loaded, so we call directly.\n  document.readyState === 'interactive' // DOMContentLoaded fires at this point, so we call directly.\n  ) {\n    return void callback();\n  }\n\n  // DOMContentLoaded has not fired yet, delay callback until then.\n  document.addEventListener('DOMContentLoaded', callback);\n}\n//# sourceMappingURL=index.js.map","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[o+1]),t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement(\"style\"),n=t.litNonce;void 0!==n&&o.setAttribute(\"nonce\",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{n as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as s}from\"./css-tag.js\";export{CSSResult,adoptStyles,css,getCompatibleStyle,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const{is:i,defineProperty:e,getOwnPropertyDescriptor:r,getOwnPropertyNames:h,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:\"\",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!i(t,s),y={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:f};Symbol.metadata??=Symbol(\"metadata\"),a.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e(this.prototype,t,r)}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(d(\"elementProperties\")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d(\"finalized\")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d(\"properties\"))){const t=this.properties,s=[...h(t),...o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(t(s))}else void 0!==s&&i.push(t(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:\"string\"==typeof i?i:\"string\"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return s(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f)(this[t],s))return;this.P(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t)!0!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:\"open\"},b[d(\"elementProperties\")]=new Map,b[d(\"finalized\")]=new Map,p?.({ReactiveElement:b}),(a.reactiveElementVersions??=[]).push(\"2.0.4\");export{b as ReactiveElement,u as defaultConverter,f as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,i=t.trustedTypes,s=i?i.createPolicy(\"lit-html\",{createHTML:t=>t}):void 0,e=\"$lit$\",h=`lit$${(Math.random()+\"\").slice(9)}$`,o=\"?\"+h,n=`<${o}>`,r=document,l=()=>r.createComment(\"\"),c=t=>null===t||\"object\"!=typeof t&&\"function\"!=typeof t,a=Array.isArray,u=t=>a(t)||\"function\"==typeof t?.[Symbol.iterator],d=\"[ \\t\\n\\f\\r]\",f=/<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\\\s\"'>=/]+)(${d}*=${d}*(?:[^ \\t\\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`,\"g\"),p=/'/g,g=/\"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),b=y(2),w=Symbol.for(\"lit-noChange\"),T=Symbol.for(\"lit-nothing\"),A=new WeakMap,E=r.createTreeWalker(r,129);function C(t,i){if(!Array.isArray(t)||!t.hasOwnProperty(\"raw\"))throw Error(\"invalid template strings array\");return void 0!==s?s.createHTML(i):i}const P=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?\"<svg>\":\"\",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?\"!--\"===u[1]?c=v:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp(\"</\"+u[2],\"g\")),c=m):void 0!==u[3]&&(c=m):c===m?\">\"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m:'\"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=void 0);const x=c===m&&t[i+1].startsWith(\"/>\")?\" \":\"\";l+=c===f?s+n:d>=0?(o.push(a),s.slice(0,d)+e+s.slice(d)+h+x):s+h+(-2===d?i:x)}return[C(t,l+(t[s]||\"<?>\")+(2===i?\"</svg>\":\"\")),o]};class V{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=P(t,s);if(this.el=V.createElement(f,n),E.currentNode=this.el.content,2===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=E.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:\".\"===e[1]?k:\"?\"===e[1]?H:\"@\"===e[1]?I:R}),r.removeAttribute(t)}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i?i.emptyScript:\"\";for(let i=0;i<s;i++)r.append(t[i],l()),E.nextNode(),d.push({type:2,index:++c});r.append(t[s],l())}}}else if(8===r.nodeType)if(r.data===o)d.push({type:2,index:c});else{let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1}c++}}static createElement(t,i){const s=r.createElement(\"template\");return s.innerHTML=t,s}}function N(t,i,s=t,e){if(i===w)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=N(t,h._$AS(t,i.values),h,e)),i}class S{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r).importNode(i,!0);E.currentNode=e;let h=E.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new M(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new L(h,this,t)),this._$AV.push(i),l=s[++n]}o!==l?.index&&(h=E.nextNode(),o++)}return E.currentNode=r,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class M{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=N(this,t,i),c(t)?t===T||null==t||\"\"===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==w&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==T&&c(this._$AH)?this._$AA.nextSibling.data=t:this.T(r.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e=\"number\"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=V.createElement(C(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const t=new S(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new V(t)),i}k(t){a(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new M(this.S(l()),this.S(l()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class R{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||\"\"!==s[0]||\"\"!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=T}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=N(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==w,o&&(this._$AH=t);else{const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=N(this,e[s+n],i,n),r===w&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===T?t=T:t!==T&&(t+=(r??\"\")+h[n+1]),this._$AH[n]=r}o&&!e&&this.j(t)}j(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??\"\")}}class k extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===T?void 0:t}}class H extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==T)}}class I extends R{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5}_$AI(t,i=this){if((t=N(this,t,i,0)??T)===w)return;const s=this._$AH,e=t===T&&s!==T||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==T&&(s===T||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){\"function\"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class L{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){N(this,t)}}const z={P:e,A:h,C:o,M:1,L:P,R:S,D:u,V:N,I:M,H:R,N:H,U:I,B:k,F:L},Z=t.litHtmlPolyfillSupport;Z?.(V,M),(t.litHtmlVersions??=[]).push(\"3.1.2\");const j=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new M(i.insertBefore(l(),t),t,void 0,s??{})}return h._$AI(t),h};export{z as _$LH,x as html,w as noChange,T as nothing,j as render,b as svg};\n//# sourceMappingURL=lit-html.js.map\n","import{ReactiveElement as t}from\"@lit/reactive-element\";export*from\"@lit/reactive-element\";import{render as e,noChange as i}from\"lit-html\";export*from\"lit-html\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */class s extends t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=e(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return i}}s._$litElement$=!0,s[(\"finalized\",\"finalized\")]=!0,globalThis.litElementHydrateSupport?.({LitElement:s});const r=globalThis.litElementPolyfillSupport;r?.({LitElement:s});const o={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(globalThis.litElementVersions??=[]).push(\"4.0.4\");export{s as LitElement,o as _$LE};\n//# sourceMappingURL=lit-element.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)};export{t as customElement};\n//# sourceMappingURL=custom-element.js.map\n","import{defaultConverter as t,notEqual as e}from\"../reactive-element.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o={attribute:!0,type:String,converter:t,reflect:!1,hasChanged:e},r=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),s.set(r.name,t),\"accessor\"===n){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.P(o,void 0,t),e}}}if(\"setter\"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error(\"Unsupported decorator location: \"+n)};function n(t){return(e,o)=>\"object\"==typeof o?r(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}export{n as property,r as standardProperty};\n//# sourceMappingURL=property.js.map\n","import{property as t}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function r(r){return t({...r,state:!0,attribute:!1})}export{r as state};\n//# sourceMappingURL=state.js.map\n","import{nothing as t}from\"../lit-html.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o=o=>o??t;export{o as ifDefined};\n//# sourceMappingURL=if-defined.js.map\n","import {Grade, GradingSystem, Route} from \"../_types\";\n\nexport const findGradingSystem = (route: Pick<Route, \"gradingSystem\">, gradingSystems: GradingSystem[]) => {\n    return gradingSystems.find(s => s.id == route.gradingSystem)\n}\n\nexport const getClosestGrade = (route: Pick<Route, \"gradingSystem\" | \"difficulty\">, gradingSystems: GradingSystem[]) => {\n    const grades = findGradingSystem(route, gradingSystems)?.grades;\n    if(!grades) return null;\n\n    let closest: number | null = null;\n    let closestGrade: Grade | null = null\n    for (let index = 0; index < grades.length; index++) {\n        const grade = grades[index];\n        if (closest == null) {\n            closest = index;\n            closestGrade = grade\n            continue;\n        }\n        if (grade.difficulty === route.difficulty) {\n            closest = index;\n            closestGrade = grade;\n            break;\n        }\n        const distanceToClosest = Math.abs(grade.difficulty - closestGrade!.difficulty);\n        const distanceToDifficulty = Math.abs(grade.difficulty - route.difficulty);\n        if (distanceToClosest > distanceToDifficulty) {\n            closest = index;\n            closestGrade = grade;\n        }\n    }\n    return closest == null || closestGrade == null ? null : {\n        index: closest,\n        grade: closestGrade,\n    }\n}\n\nexport const getGradeDisplay = (route: Route, gradingSystems: GradingSystem[]) => {\n    const closest = getClosestGrade(route,gradingSystems);\n    return closest?.grade?.label ?? String(route.difficulty);\n}","import {RouteMeta} from \"../_types\";\n\nexport const getMetaLabel = (metaKey: string, metaValue: string | number, metaStructure: RouteMeta[]) => {\n    const _metaStructure = metaStructure.find(m => m.key == metaKey)\n    if (!_metaStructure) return null;\n    return _metaStructure?.options.find(o => o.key == metaValue)?.label ?? null;\n}","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}export{i as Directive,t as PartType,e as directive};\n//# sourceMappingURL=directive.js.map\n","import{noChange as t}from\"../lit-html.js\";import{directive as s,Directive as i,PartType as r}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const e=s(class extends i{constructor(t){if(super(t),t.type!==r.ATTRIBUTE||\"class\"!==t.name||t.strings?.length>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(t){return\" \"+Object.keys(t).filter((s=>t[s])).join(\" \")+\" \"}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(\" \").split(/\\s/).filter((t=>\"\"!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)))}return t}});export{e as classMap};\n//# sourceMappingURL=class-map.js.map\n","export type EventRouteVote = {\n    difficulty: number\n    route: number\n}\nexport const EVENT_ROUTE_VOTE = \"climbpressRouteVote\";\nexport type EventRouteUnvote = {\n    route: number\n}\nexport const EVENT_ROUTE_UNVOTE = \"climbpressRouteUnvote\";\nexport type EventRouteExpandToggle = {\n    route: number\n}\nexport const EVENT_ROUTE_EXPAND_TOGGLE = \"climbpressRouteExpandToggle\";","import {html, LitElement, unsafeCSS} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\n\n// @ts-ignore\nimport styles from './route.css?inline'\nimport type {Grade, Route, Vote} from \"../_types\";\nimport {GradingSystem, RouteMeta} from \"../_types\";\nimport {findGradingSystem, getClosestGrade, getGradeDisplay} from \"../lib/grading-system\";\nimport {getMetaLabel} from \"../lib/meta\";\nimport {\n    EVENT_ROUTE_EXPAND_TOGGLE,\n    EVENT_ROUTE_UNVOTE,\n    EVENT_ROUTE_VOTE,\n    EventRouteExpandToggle,\n    EventRouteUnvote,\n    EventRouteVote\n} from \"./events\";\n\nexport type i18n = {\n    date?: string\n    route_voting_label?: string\n}\n\n@customElement(\"climbpress-route\")\nexport default class ClimbPressRoute extends LitElement {\n    static styles = unsafeCSS(styles);\n\n    @property({type: Object})\n    public i18n: i18n = {}\n\n    @property({type: Object})\n    public route: Route | null = null\n\n    @property({attribute: \"meta-structure\", type: Array})\n    public metaStructure: RouteMeta[] = [];\n\n    @property({attribute: \"meta-collapsed\", type: Array})\n    public metaCollapsed?: string[]\n\n    @property({attribute: \"grading-systems\", type: Object})\n    public gradingSystems: GradingSystem[] = [];\n\n    @property({attribute: \"expanded\", type: Boolean})\n    public expanded: boolean = false\n\n    @property({type: Object})\n    public vote: Vote | null = null\n\n    protected render() {\n        const route = this.route;\n\n        if (!route) return null;\n\n        const grade = getGradeDisplay(route, this.gradingSystems);\n        const metaKeys = Object.keys(route.metas);\n        const metaKeysNotInCollapsedMetas = metaKeys.filter(key => {\n            return !(this.metaCollapsed?.includes(key) ?? false);\n        });\n\n        const collapsedMetaValues = (this.metaCollapsed ?? metaKeys).map(key => {\n            const value = route.metas[key] ?? \"\";\n            return getMetaLabel(key, value, this.metaStructure) ?? value;\n        }).filter(v => v != \"\");\n\n        const classes = classMap({\n            expanded: this.expanded,\n        });\n\n        const clickExpand = () => {\n            if (!this.expanded) this.dispatchToggleExpand()\n        }\n        const clickCollapse = (e: Event) => {\n            if (this.expanded) {\n                e.preventDefault()\n                e.stopPropagation()\n                e.stopImmediatePropagation()\n                this.dispatchToggleExpand()\n            }\n        }\n\n        const gradingSystem = findGradingSystem(route, this.gradingSystems);\n        const routeGrade = getClosestGrade(route, this.gradingSystems);\n\n        const vote = this.vote;\n        let votedGrade: { grade: Grade, index: number } | null = null;\n        let nextHarderGrade: Grade | null = null;\n        let nextEasierGrade: Grade | null = null;\n        const minIndex = routeGrade ? routeGrade.index - 4 : 0;\n        const maxIndex = routeGrade ? routeGrade.index + 4 : 0;\n\n        if (routeGrade != null && gradingSystem) {\n            if (vote) {\n                votedGrade = getClosestGrade({\n                    gradingSystem: route.gradingSystem,\n                    difficulty: vote.difficulty,\n                }, this.gradingSystems) ?? null;\n            }\n            const baseGrade = votedGrade ? votedGrade : routeGrade;\n            const nextHarderGradeIndex = baseGrade.index + 1;\n            const nextEasierGradeIndex = baseGrade.index -1;\n\n            if(nextHarderGradeIndex <= maxIndex){\n                nextHarderGrade = gradingSystem.grades?.[nextHarderGradeIndex] ?? null;\n            }\n            if(nextEasierGradeIndex >= minIndex){\n                nextEasierGrade = gradingSystem.grades?.[nextEasierGradeIndex] ?? null;\n            }\n        }\n\n        // TODO: move to box settings or global settings\n        let communityVotingGrade: null | Grade = null\n        if(route.communityVotesCount > 4){\n            console.debug(\"community\", route)\n            communityVotingGrade = getClosestGrade({\n                gradingSystem: route.gradingSystem,\n                difficulty: route.communityAverageDifficulty,\n            }, this.gradingSystems)?.grade ?? null;\n        }\n        const clickVote = (difficulty: number) => (e: Event) => {\n            e.preventDefault();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n\n            if (difficulty < 0 || !routeGrade) {\n                return;\n            }\n\n            const grade = getClosestGrade(\n                {\n                    gradingSystem: route?.gradingSystem,\n                    difficulty,\n                },\n                this.gradingSystems\n            );\n\n            // TODO: make it block configuration or global setting max and min vote difference\n\n            if (grade == null || grade.index < minIndex || grade.index > maxIndex) return;\n\n            this.dispatchChangeVote(grade.grade.difficulty)\n        }\n\n        const clickSameVote = (e: Event) => {\n            e.preventDefault();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            if (route == null) return;\n            if (vote === null) {\n                this.dispatchChangeVote(route.difficulty);\n            } else {\n                this.dispatchChangeUnvote();\n            }\n        }\n\n        const dateFormat = new Intl.DateTimeFormat(undefined,{\n            dateStyle: \"short\",\n        });\n\n        const communityValues: string[] = []\n\n        if(votedGrade){\n            communityValues.push(votedGrade.grade.label);\n        }\n        if(communityVotingGrade){\n            communityValues.push(`⌀ ${communityVotingGrade.label}`);\n        }\n\n        return html`\n            <div class=\"route ${classes}\" @click=${clickExpand}>\n                <div class=\"details\" @click=${clickCollapse}>\n                    <div class=\"name\" >${route.name}</div>\n                    <div class=\"meta\">\n                        <div>\n                            ${dateFormat.format(Date.parse(route.created))} •\n                            ${collapsedMetaValues.join(\" • \")}\n                        </div>\n                    </div>\n                </div>\n                <div class=\"difficulty\">\n                    <div class=\"value\">\n                        ${grade}\n                        ${communityValues.length ?\n                                html`<span class=\"my-value\">${communityValues.join(\" / \")}</span>`\n                        :null}\n                    </div>\n                    \n                    <div class=\"voting\">\n                        <div class=\"voting_wrapper\">\n                            <div class=\"label\">${this.i18n.route_voting_label ?? \"Deine Bewertung\"}</div>\n                            <div class=\"controls\">\n                                <button\n                                        ?disabled=${nextEasierGrade == null}\n                                        @click=${clickVote(nextEasierGrade?.difficulty ?? -1)}\n                                        class=${classMap({\n                                            \"btn-easier\": true,\n                                            //active: votedGrade != null && currentVoteValue < route.difficulty\n                                        })}\n                                >\n                                    –\n                                </button>\n                                <button\n                                        @click=${clickSameVote}\n                                        class=${classMap({active: vote != null})}\n                                >\n                                    ${votedGrade ? votedGrade.grade.label : grade}\n                                </button>\n                                <button\n                                        ?disabled=${nextHarderGrade == null}\n                                        @click=${clickVote(nextHarderGrade?.difficulty ?? -1)}\n                                        class=${classMap({\n                                            \"btn-harder\": true,\n                                            //active: votedGrade != null && currentVoteValue > route.difficulty\n                                        })}\n                                >\n                                    +\n                                </button>\n                            </div>\n                            <div class=\"community-voting\">\n                                <div class=\"label\">⌀ Bewertung</div>\n                                <div>${communityVotingGrade?.label ?? \"-\" }</div>\n                            </div>\n                           \n                        </div>                        \n                    </div>\n                </div>\n                <div class=\"expanded-details\">\n                    <div>\n                        <dl>\n                            <dt>${this.i18n.date ?? \"Datum\"}</dt>\n                            <dd>${dateFormat.format(Date.parse(route.created))}</dd>\n                            ${this.metaCollapsed?.map(this.renderRouteMeta.bind(this, route))}\n                            ${metaKeysNotInCollapsedMetas.map(this.renderRouteMeta.bind(this, route))}\n                        </dl>\n                    </div>\n                </div>\n            </div>\n        `\n    }\n\n    private renderRouteMeta(route: Route, metaKey: string) {\n        const value = route.metas[metaKey] ?? \"\";\n        if (value == \"\") return '';\n        const structure = this.metaStructure.find(m => m.key == metaKey)\n        const label = structure?.label ?? metaKey;\n        const display = structure?.options?.find(o => o.key == value)?.label ?? value;\n        return html`\n            <dt>${label}</dt>\n            <dd>${display}</dd>\n        `\n    }\n\n    // ------------------------------------------------\n    // Events\n    // ------------------------------------------------\n    private dispatchChangeVote(value: number) {\n        const routeId = this.route?.id;\n        if (!routeId) return;\n        this.dispatchEvent(\n            new CustomEvent<EventRouteVote>(\n                EVENT_ROUTE_VOTE,\n                {\n                    detail: {\n                        difficulty: value,\n                        route: routeId,\n                    },\n                    bubbles: true,\n                    composed: true\n                },\n            )\n        )\n    }\n\n    private dispatchChangeUnvote() {\n        const routeId = this.route?.id;\n        if (!routeId) return;\n        this.dispatchEvent(\n            new CustomEvent<EventRouteUnvote>(\n                EVENT_ROUTE_UNVOTE,\n                {\n                    detail: {\n                        route: routeId,\n                    },\n                    bubbles: true,\n                    composed: true,\n                },\n            )\n        )\n    }\n\n    private dispatchToggleExpand() {\n        const routeId = this.route?.id;\n        if (!routeId) return;\n        this.dispatchEvent(\n            new CustomEvent<EventRouteExpandToggle>(\n                EVENT_ROUTE_EXPAND_TOGGLE,\n                {\n                    detail: {\n                        route: routeId,\n                    },\n                    bubbles: true,\n                    composed: true,\n                },\n            )\n        )\n    }\n}\n\ndeclare global {\n    interface HTMLElementTagNameMap {\n        'climbpress-route': ClimbPressRoute\n    }\n}\n","import {html, LitElement, nothing, PropertyValues, unsafeCSS} from 'lit';\nimport {customElement, property, state} from 'lit/decorators.js';\nimport {ifDefined} from 'lit/directives/if-defined.js';\nimport {GradingSystem, Route, RouteMeta, Vote} from \"../_types\";\n\nimport './theme.css';\n\n// @ts-ignore\nimport styles from './routes.css?inline'\nimport {getGradeDisplay} from \"../lib/grading-system\";\nimport {getMetaLabel} from \"../lib/meta\";\nimport './route'\nimport {EventRouteExpandToggle, EventRouteVote} from \"./events\";\nimport ClimbPressRoute from \"./route\";\n\n@customElement(\"climbpress-routes\")\nexport default class ClimbPressRoutes extends LitElement {\n    static styles = unsafeCSS(styles);\n\n    @property({type: Object})\n    public i18n: { [key: string]: string } = {}\n\n    @property({attribute: \"grading-systems\", type: Object})\n    public gradingSystems: GradingSystem[] = [];\n\n    @property({type: Array})\n    public routes: Route[] = [];\n\n    @property({type: Object})\n    public votes: {[route: number]: Vote|undefined} = {}\n\n    @property({attribute: \"route-meta-structure\", type: Array})\n    public routeMetaStructure: RouteMeta[] = [];\n\n    @property({attribute: \"route-meta-collapsed\", type: Array})\n    public routeMetaCollapsed?: string[]\n\n    @property({type: Number})\n    public count: number = 10;\n\n    @property({attribute: \"hide-search\", type: Boolean})\n    public hideSearch: boolean = false;\n\n    @property({attribute: \"hide-filters\", type: Boolean})\n    public hideFilters: boolean = false;\n\n    @property({attribute: \"show-voting\", type: Boolean})\n    public showVoting: boolean = false;\n\n    @state()\n    private searchQuery: string = \"\";\n\n    @state()\n    private active: number[] = []\n\n    @state()\n    private filterBy: { [key: string]: string } = {};\n\n    getById(route: number): null | ClimbPressRoute{\n        let needle: null|ClimbPressRoute = null;\n        this.shadowRoot?.querySelectorAll(\"climbpress-route\").forEach(element=> {\n            if(element.route != null && element.route.id == route){\n                needle = element;\n            }\n        })\n        return needle;\n    }\n\n    // ------------------------------------------------------------\n    // render\n    // ------------------------------------------------------------\n    protected render() {\n        const filtered = this.getFilteredRoutes();\n        const cutOffRoutes = this.cutOffRoutes(filtered);\n\n        return html`\n            <div class=\"container\">\n                ${this.renderSearch()}\n                ${this.renderFilters()}\n                <div class=\"routes\">\n                    ${cutOffRoutes.length > 0 ?\n                            cutOffRoutes.map(this.renderRoute.bind(this))\n                            :\n                            html`<slot name=\"not-found\"><p><i>No route found</i></p></slot>`\n                    }\n                </div>\n\n                ${cutOffRoutes.length < filtered.length ?\n                        html`\n                            <slot name=\"button\" @click=${this.onClickAll}>\n                                <button role=\"button\">All routes</button>\n                            </slot>`\n                        : nothing\n                }\n            </div>\n        `;\n    }\n\n    private renderRoute(route: Route) {\n        const isExpanded = this.active.includes(route.id);\n\n        const onToggle = (e: CustomEvent<EventRouteExpandToggle>) => {\n            if(this.active.includes(e.detail.route)){\n                this.active = this.active.filter(el => el != e.detail.route);\n            } else {\n                this.active = [...this.active, e.detail.route];\n            }\n        }\n\n        const onVote = (e: CustomEvent<EventRouteVote>)=> {\n            console.debug(e.detail);\n        }\n\n        return html`\n            <climbpress-route\n                    @climbpressRouteExpandToggle=${onToggle}\n                    @climbpressRouteVote=${onVote}\n                    route=${JSON.stringify(route)}\n                    meta-structure=${JSON.stringify(this.routeMetaStructure)}\n                    meta-collapsed=${JSON.stringify(this.routeMetaCollapsed)}\n                    grading-systems=${JSON.stringify(this.gradingSystems)}\n                    ?expanded=${isExpanded}\n                    vote=${ifDefined(this.votes[route.id] ? JSON.stringify(this.votes[route.id]) : undefined)}\n            ></climbpress-route>\n        `\n    }\n\n    private renderFilters() {\n        return '';\n        // if (this.hideFilters) return '';\n        //\n        // const systems = Array.from(\n        //     new Set(this.routes.map(r => r.gradingSystem).filter(s => s != \"\"))\n        // ).map(s => {\n        //     return getGradingSystems().find(system => s == system.id)\n        // }).filter(s => s != undefined);\n        // const walls = Array.from(new Set(this.routes.map(r => r.sector).filter(w => w != \"\")));\n        //\n        // const labelGradingSystem = this.labels?.filterAllGradingSystems ?? \"- All grading systems -\";\n        // const labelWall = this.labels?.filterAllWalls ?? \"- All walls -\"\n        //\n        // return html`\n        //     <div class=\"filters\">\n        //         <select name=\"gradingSystem\">\n        //             <option value=\"\">${labelGradingSystem}</option>\n        //             ${systems.map(system => {\n        //                 return html`\n        //                     <option value=${system.id}>${system.name}</option>\n        //                 `\n        //             })}\n        //         </select>\n        //         <select name=\"wall\">\n        //             <option value=\"\">${labelWall}</option>\n        //             ${walls.map(w => {\n        //                 return html`\n        //                     <option value=${w}>${w}</option>`\n        //             })}\n        //         </select>\n        //     </div>\n        // `\n    }\n\n    private renderSearch() {\n        if (this.hideSearch) return '';\n        const label = this.i18n?.searchPlaceholder ?? \"Search...\";\n        return html`\n            <slot name=\"input\"><input placeholder=${label} name=\"search\"/></slot>\n        `\n    }\n\n    // ------------------------------------------------------------\n    // lifecycle\n    // ------------------------------------------------------------\n    protected firstUpdated(_changedProperties: PropertyValues) {\n        super.firstUpdated(_changedProperties);\n\n        this.renderRoot.addEventListener(\"keyup\", (e) => {\n            const target = (e.target as HTMLInputElement)\n            if (target.name == \"search\") {\n                this.searchQuery = target.value;\n            }\n        })\n\n        this.renderRoot.addEventListener(\"change\", (e) => {\n            const target = (e.target as HTMLSelectElement);\n            this.filterBy[target.name] = target.value;\n            this.requestUpdate()\n        })\n    }\n\n    // ------------------------------------------------------------\n    // utils\n    // ------------------------------------------------------------\n    private searchAbleProps: Array<keyof Route> = [\"name\", \"metas\", \"gradingSystem\"];\n\n    private cutOffRoutes(routes: Route[]) {\n\n        if (this.count < 1) return routes;\n\n        return routes.slice(0, this.count);\n    }\n\n    private getFilteredRoutes() {\n        const searchValue = this.searchQuery.toLowerCase();\n        return this.routes.filter(route => {\n            const grade = getGradeDisplay(route, this.gradingSystems)\n            if (grade.includes(searchValue)) {\n                return true;\n            }\n            const doesNotMatch = Object.keys(this.filterBy).find((key) => {\n                const routeValue = route[key as keyof Route]\n                return this.filterBy[key] != \"\" && route.hasOwnProperty(key) && routeValue != this.filterBy[key];\n            });\n            if (doesNotMatch) return false;\n            if (searchValue == \"\") {\n                return true;\n            }\n            return this.searchAbleProps.find(prop => {\n                if (prop == \"metas\") {\n                    const value = route[prop];\n                    return Object.keys(value).find(metaKey => {\n                        const metaValue = value[metaKey];\n                        const label = getMetaLabel(metaKey, metaValue, this.routeMetaStructure);\n                        if (label) {\n                            return label.toLowerCase().includes(searchValue.toLowerCase());\n                        }\n                        return metaValue.toLowerCase().includes(searchValue.toLowerCase());\n                    }) != undefined;\n                }\n                const value = route[prop];\n                return typeof value === \"string\" && value.toLowerCase().includes(searchValue.toLowerCase())\n            }) != undefined;\n        });\n    }\n\n    // ------------------------------------------------------------\n    // event handling\n    // ------------------------------------------------------------\n    private handleClick(index: number) {\n        if (this.active.includes(index)) {\n            this.active = this.active.filter(i => i != index);\n        } else {\n            this.active = [\n                ...this.active,\n                index,\n            ];\n        }\n    }\n\n    private onClickAll() {\n        this.count = 0;\n    }\n}\n\ndeclare global {\n    interface HTMLElementTagNameMap {\n        'climbpress-routes': ClimbPressRoutes\n    }\n}\n","import {Route, Vote} from \"../_types\";\n\nexport const getRoutes = (): Route[] => {\n    try{\n        // TODO: zod parsing\n        return JSON.parse(localStorage.getItem(\"climbpress-routes\") ?? \"[]\");\n    } catch (e) {\n        console.error(e);\n    }\n    return [];\n}\n\nexport const setRoutes = (routes: Route[]) => localStorage.setItem(\"climbpress-routes\", JSON.stringify(routes));\n\ntype CachedVote = {\n    vote: Vote\n    voteId: string\n}\n\nconst getVoteKey = (routeId: number) => `climbpress-vote(route:${routeId})`;\nexport const setVoteCache = (routeId: number, vote: CachedVote|null) =>{\n    if(vote == null){\n        localStorage.removeItem(getVoteKey(routeId));\n    } else {\n        localStorage.setItem(getVoteKey(routeId), JSON.stringify(vote));\n    }\n}\n\nexport const getVoteCache = (routeId: number): CachedVote | null => {\n    try {\n        const cache = localStorage.getItem(getVoteKey(routeId));\n        return cache ?   JSON.parse(cache): null;\n    } catch (e) {\n        return null;\n    }\n}","import {GradingSystem, Route, RouteMeta} from \"./_types\";\n\ndeclare global {\n    interface Window {\n        ClimbPressPublic: {\n            RESTNamespace: string\n            gradingSystems: GradingSystem[]\n            metaStructure: RouteMeta[]\n            labels: { [key: string]: string }\n            fetchRoutes(url?: string): Promise<Route[]>\n            vote(route_id: number, difficulty: number): Promise<string|false>\n            changeVote(vote_id: string, difficulty: number): Promise<boolean>\n            unvote(vote_id: string): Promise<boolean>\n        }\n    }\n}\n\nif(window.ClimbPressPublic.fetchRoutes == undefined){\n    window.ClimbPressPublic = {\n        ...window.ClimbPressPublic,\n        async fetchRoutes (url = \"/wp-json/climbpress/v1/routes\") {\n            return fetch(url).then(res => res.json());\n        },\n        async vote(route_id, difficulty){\n            const result = await fetch(`/wp-json/climbpress/v1/votes`,{\n                method: \"POST\",\n                headers: {\n                    \"Content-Type\": \"application/json\",\n                },\n                body: JSON.stringify({\n                    route_id,\n                    difficulty,\n                })\n            }).then(res=> res.json()) as { voting_id: string|false};\n            return result.voting_id;\n        },\n        async changeVote(voting_id, difficulty){\n            const result = await fetch(`/wp-json/climbpress/v1/votes`,{\n                method: \"PATCH\",\n                headers: {\n                    \"Content-Type\": \"application/json\",\n                },\n                body: JSON.stringify({\n                    voting_id,\n                    difficulty,\n                })\n            }).then(res=> res.json()) as { success: boolean};\n            return result.success;\n        },\n        async unvote(vote_id){\n            const result = await fetch(`/wp-json/climbpress/v1/votes`,{\n                method: \"DELETE\",\n                headers: {\n                    \"Content-Type\": \"application/json\",\n                },\n                body: JSON.stringify({\n                    id: vote_id,\n                })\n            }).then(res=> res.json());\n            return result as boolean;\n        }\n\n    }\n}\n\nexport const fetchRoutes = window.ClimbPressPublic.fetchRoutes;\nexport const getGradingSystems = () => window.ClimbPressPublic.gradingSystems;\nexport const vote = window.ClimbPressPublic.vote;\nexport const unvote = window.ClimbPressPublic.unvote;\nexport const changeVote = window.ClimbPressPublic.changeVote;\nexport const getLabels = () => window.ClimbPressPublic.labels;\n","import domReady from \"@wordpress/dom-ready\";\nimport './web-components/routes'\nimport {EVENT_ROUTE_UNVOTE, EVENT_ROUTE_VOTE, EventRouteUnvote, EventRouteVote} from \"./web-components/events\";\nimport ClimbPressRoute from \"./web-components/route\";\nimport {getVoteCache, setVoteCache} from \"./lib/cache\";\nimport {changeVote, unvote, vote} from \"./public-api\";\n\nimport './web-components/theme.css';\nimport ClimbPressRoutes from \"./web-components/routes\";\nimport {Vote} from \"./_types\";\n\ndomReady(() => {\n\n    document.querySelectorAll(\"climbpress-route\").forEach((element) => {\n        if (element.route == null) return;\n        element.vote = getVoteCache(element.route.id)?.vote ?? null;\n    })\n    document.querySelectorAll(\"climbpress-routes\").forEach((element) => {\n        const votes: {[route:number]: Vote} = {}\n        element.routes.forEach(route => {\n            const vote = getVoteCache(route.id)?.vote;\n            if(vote){\n                votes[route.id] = vote;\n            }\n        });\n        element.votes = votes;\n    })\n\n    // @ts-ignore\n    window.addEventListener(EVENT_ROUTE_UNVOTE, async (event: CustomEvent<EventRouteUnvote>) => {\n        const element = (event.target as Element);\n        if (element.localName == \"climbpress-routes\") {\n            const element = (event.target as ClimbPressRoutes);\n            const voteId = getVoteCache(event.detail.route)?.voteId;\n\n            if (!voteId) return;\n\n            const success = await unvote(voteId);\n            if (!success) {\n                return;\n            }\n\n            setVoteCache(event.detail.route, null);\n            const votes: {[route:number]: Vote} = {};\n            Object.entries(element.votes).forEach(([route, vote]) => {\n                const routeId = parseInt(route);\n                if(routeId != event.detail.route && vote != undefined){\n                    votes[routeId] = vote;\n                }\n            });\n            element.votes = votes;\n\n        } else if(element.localName == \"climbpress-route\"){\n            const element = (event.target as ClimbPressRoute);\n            const currentVote = element.vote;\n            if (currentVote == null) return;\n\n            const routeId = element.route?.id!\n\n            const voteId = getVoteCache(routeId)?.voteId;\n            if (!voteId) return;\n\n\n            const success = await unvote(voteId);\n            if (!success) {\n                return;\n            }\n            setVoteCache(routeId, null);\n            element.vote = null;\n        }\n\n    })\n\n    // @ts-ignore\n    window.addEventListener(EVENT_ROUTE_VOTE, async (event: CustomEvent<EventRouteVote>) => {\n        const element = (event.target as Element);\n        if (element.localName == \"climbpress-routes\") {\n            const routesElement = element as ClimbPressRoutes;\n            const {route, difficulty} = event.detail;\n            const vote = await doVote(difficulty, route);\n            if(vote === false) return;\n\n            routesElement.votes = {\n                ...routesElement.votes,\n                [route]: {difficulty},\n            };\n        } else if (element.localName == \"climbpress-route\") {\n            const routeElement = element as ClimbPressRoute;\n            const route = routeElement.route;\n            if (route == null) return;\n\n            const difficulty = event.detail.difficulty;\n\n            const vote = await doVote(difficulty, route.id);\n            if(vote === false) return;\n            routeElement.vote = vote;\n        }\n    });\n\n    async function doVote(difficulty: number, routeId: number): Promise<Vote|false> {\n\n        const currentVoteCache = getVoteCache(routeId);\n\n        if (currentVoteCache == null) {\n            const voteId = await vote(routeId, difficulty);\n            if (!voteId) {\n                return false;\n            }\n            setVoteCache(routeId, {\n                voteId: voteId,\n                vote: {\n                    difficulty,\n                },\n            });\n        } else {\n            const success = await changeVote(currentVoteCache.voteId, difficulty);\n            if (!success) {\n                return false;\n            }\n            setVoteCache(routeId, {\n                voteId: currentVoteCache.voteId,\n                vote: {\n                    difficulty,\n                }\n            });\n        }\n        return {\n            difficulty,\n        }\n    }\n})"],"names":["domReady","callback","t","e","s","o","n$3","r","n","S","c","i","h","a","l","p","d","u","f","y","b","_a","v","_","m","g","$","x","w","T","A","E","C","P","V","k","H","I","R","N","_b","M","L","j","findGradingSystem","route","gradingSystems","getClosestGrade","grades","closest","closestGrade","index","grade","distanceToClosest","distanceToDifficulty","getGradeDisplay","getMetaLabel","metaKey","metaValue","metaStructure","_metaStructure","EVENT_ROUTE_VOTE","EVENT_ROUTE_UNVOTE","EVENT_ROUTE_EXPAND_TOGGLE","ClimbPressRoute","LitElement","metaKeys","metaKeysNotInCollapsedMetas","key","collapsedMetaValues","value","classes","classMap","clickExpand","clickCollapse","gradingSystem","routeGrade","vote","votedGrade","nextHarderGrade","nextEasierGrade","minIndex","maxIndex","baseGrade","nextHarderGradeIndex","nextEasierGradeIndex","communityVotingGrade","_c","clickVote","difficulty","clickSameVote","dateFormat","communityValues","html","_d","structure","label","display","routeId","unsafeCSS","styles","__decorateClass","property","customElement","ClimbPressRoutes","needle","element","filtered","cutOffRoutes","nothing","isExpanded","el","ifDefined","_changedProperties","target","routes","searchValue","routeValue","prop","state","getVoteKey","setVoteCache","getVoteCache","cache","url","res","route_id","voting_id","vote_id","unvote","changeVote","votes","event","voteId","routesElement","doVote","routeElement","currentVoteCache"],"mappings":"aA8Be,SAASA,GAASC,EAAU,CACzC,GAAI,SAAO,SAAa,KAGxB,IAAI,SAAS,aAAe,YAE5B,SAAS,aAAe,cAEtB,OAAO,KAAKA,EAAQ,EAItB,SAAS,iBAAiB,mBAAoBA,CAAQ,EACxD,CC3CA;AAAA;AAAA;AAAA;AAAA,GAKA,MAAMC,EAAE,WAAWC,GAAED,EAAE,aAAsBA,EAAE,WAAX,QAAqBA,EAAE,SAAS,eAAe,uBAAuB,SAAS,WAAW,YAAY,cAAc,UAAUE,GAAE,OAAQ,EAACC,GAAE,IAAI,QAAO,IAAAC,GAAC,KAAO,CAAC,YAAY,EAAE,EAAED,EAAE,CAAC,GAAG,KAAK,aAAa,GAAGA,IAAID,GAAE,MAAM,MAAM,mEAAmE,EAAE,KAAK,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,IAAI,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,MAAMA,EAAE,KAAK,EAAE,GAAGD,IAAY,IAAT,OAAW,CAAC,MAAMA,EAAWC,IAAT,QAAgBA,EAAE,SAAN,EAAaD,IAAI,EAAEE,GAAE,IAAID,CAAC,GAAY,IAAT,UAAc,KAAK,EAAE,EAAE,IAAI,eAAe,YAAY,KAAK,OAAO,EAAED,GAAGE,GAAE,IAAID,EAAE,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,OAAO,KAAK,OAAO,CAAC,EAAM,MAACG,GAAEL,GAAG,IAAIM,GAAY,OAAON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AA4C,GAAc2C,EAAM,OAElC,GADa,MAAMG,EAAO9C,EAAY5C,CAAK,IAC/B,GAAO,OAEnByF,EAAc,MAAQ,CAClB,GAAGA,EAAc,MACjB,CAACzF,CAAK,EAAG,CAAC,WAAA4C,CAAU,CAAA,CACxB,SACOiB,EAAQ,WAAa,mBAAoB,CAChD,MAAM8B,EAAe9B,EACf7D,EAAQ2F,EAAa,MAC3B,GAAI3F,GAAS,KAAM,OAEb,MAAA4C,EAAa2C,EAAM,OAAO,WAE1BvD,EAAO,MAAM0D,EAAO9C,EAAY5C,EAAM,EAAE,EAC9C,GAAGgC,IAAS,GAAO,OACnB2D,EAAa,KAAO3D,CACxB,CAAA,CACH,EAEc,eAAA0D,EAAO9C,EAAoBS,EAAsC,CAEtE,MAAAuC,EAAmBf,EAAaxB,CAAO,EAE7C,GAAIuC,GAAoB,KAAM,CAC1B,MAAMJ,EAAS,MAAMxD,GAAKqB,EAAST,CAAU,EAC7C,GAAI,CAAC4C,EACM,MAAA,GAEXZ,EAAavB,EAAS,CAClB,OAAAmC,EACA,KAAM,CACF,WAAA5C,CACJ,CAAA,CACH,CAAA,KACE,CAEH,GAAI,CADY,MAAMyC,GAAWO,EAAiB,OAAQhD,CAAU,EAEzD,MAAA,GAEXgC,EAAavB,EAAS,CAClB,OAAQuC,EAAiB,OACzB,KAAM,CACF,WAAAhD,CACJ,CAAA,CACH,CACL,CACO,MAAA,CACH,WAAAA,CAAA,CAER,CACJ,CAAC","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,11,12]}
  • climbpress/trunk/README.txt

    r3024800 r3045938  
    44Tags: climbing, management, database
    55Requires at least: 5.0
    6 Tested up to: 6.4.2
     6Tested up to: 6.4.3
    77Requires PHP: 8.0
    8 Stable tag: 0.6.1
     8Stable tag: 0.6.2
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    3737
    3838== Changelog ==
     39
     40= 0.6.2 =
     41* Check: WordPress 6.4.3 compatible
     42* Package updates
    3943
    4044= 0.6.1 =
  • climbpress/trunk/classes/Store/RoutesSource.php

    r3024800 r3045938  
    7575                ) as tmp
    7676            )
    77             ORDER BY id DESC
     77            ORDER BY created DESC
    7878             ";
    7979
  • climbpress/trunk/dist/grades.asset.php

    r3024800 r3045938  
    1 <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-dom-ready', 'wp-element'), 'version' => 'c6165c341f414af18fe7');
     1<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-dom-ready', 'wp-element'), 'version' => '14d6ae68693ea4e287e5');
  • climbpress/trunk/dist/grades.js

    r3024800 r3045938  
    1 !function(){"use strict";var e={535:function(e,t,r){var n=r(237),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=p(r);i&&i!==h&&e(t,i,n)}var s=c(r);f&&(s=s.concat(f(r)));for(var a=l(t),y=l(r),g=0;g<s.length;++g){var m=s[g];if(!(o[m]||n&&n[m]||y&&y[m]||a&&a[m])){var v=d(r,m);try{u(t,m,v)}catch(e){}}}}return t}},684:function(e,t){},198:function(e,t){var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case f:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case y:case l:return e;default:return t}}case i:return t}}}function k(e){return x(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=y,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||x(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===y},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===a||e===s||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===y||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===m)},t.typeOf=x},237:function(e,t,r){e.exports=r(198)},603:function(e,t,r){r.d(t,{Z:function(){return n}}),e=r.hmd(e);var n=function(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:e)},415:function(e,t,r){var n=r(196),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,s=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return a((function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,r,t]),s((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},322:function(e,t,r){e.exports=r(415)},196:function(e){e.exports=window.React}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n](o,o.exports,r),o.loaded=!0,o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e=r(196),t=r.n(e),n=window.wp.domReady,i=r.n(n),o=window.wp.element;function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function a(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}r(535);function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r(684);var f,d=(0,e.createContext)(),p=(function(e){}(f=d),function(e){}(f),function(e){var r=function(r){var n,i;function o(){for(var n,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return l(c(c(n=r.call.apply(r,[this].concat(o))||this)),"cachedTheme",void 0),l(c(c(n)),"lastOuterTheme",void 0),l(c(c(n)),"lastTheme",void 0),l(c(c(n)),"renderProvider",(function(r){var i=n.props.children;return t().createElement(e.Provider,{value:n.getTheme(r)},i)})),n}i=r,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var s=o.prototype;return s.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,"function"==typeof this.lastTheme){var t=this.props.theme;this.cachedTheme=t(e)}else{var r=this.props.theme;this.cachedTheme=e?u({},e,r):r}return this.cachedTheme},s.render=function(){return this.props.children?t().createElement(e.Consumer,null,this.renderProvider):null},o}(t().Component)}(f),"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),h="object"===("undefined"==typeof window?"undefined":p(window))&&"object"===("undefined"==typeof document?"undefined":p(document))&&9===document.nodeType;function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function g(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===y(t)?t:String(t)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function v(e,t,r){return t&&m(e.prototype,t),r&&m(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function w(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,b(e,t)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var k={}.constructor;function S(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(S);if(e.constructor!==k)return e;var t={};for(var r in e)t[r]=S(e[r]);return t}function R(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,i=S(t);return n.plugins.onCreateRule(e,i,r)||(e[0],null)}var P=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},O=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=P(e[r]," ");else t=P(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function C(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function A(e,t){for(var r="",n=0;n<t;n++)r+="  ";return r+e}function E(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var i=r.indent,o=void 0===i?0:i,s=t.fallbacks;!1===r.format&&(o=-1/0);var a=C(r),l=a.linebreak,u=a.space;if(e&&o++,s)if(Array.isArray(s))for(var c=0;c<s.length;c++){var f=s[c];for(var d in f){var p=f[d];null!=p&&(n&&(n+=l),n+=A(d+":"+u+O(p)+";",o))}}else for(var h in s){var y=s[h];null!=y&&(n&&(n+=l),n+=A(h+":"+u+O(y)+";",o))}for(var g in t){var m=t[g];null!=m&&"fallbacks"!==g&&(n&&(n+=l),n+=A(g+":"+u+O(m)+";",o))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),A(""+e+u+"{"+n,--o)+A("}",o)):n}var j=/([[\].#*$><+~=|^:(),"'`\s])/g,T="undefined"!=typeof CSS&&CSS.escape,M=function(e){return T?T(e):e.replace(j,"\\$1")},I=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,i=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var i=t;r&&!1===r.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,s=e in this.style;if(o&&!s&&!n)return this;var a=o&&s;if(a?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),_=function(e){function t(t,r,n){var i;i=e.call(this,t,r,n)||this;var o=n.selector,s=n.scoped,a=n.sheet,l=n.generateId;return o?i.selectorText=o:!1!==s&&(i.id=l(x(x(i)),a),i.selectorText="."+M(i.id)),i}w(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=O(r))}return e},r.toString=function(e){var t=this.options.sheet,r=t&&t.options.link?s({},e,{allowEmpty:!0}):e;return E(this.selectorText,this.style,r)},v(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;r&&t&&(t.setSelector(r,e)||t.replaceRule(r,this))}},get:function(){return this.selectorText}}]),t}(I),L={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new _(e,t,r)}},V={indent:1,children:!0},$=/@([\w-]+)/,N=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match($);for(var i in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new le(s({},r,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=V);var t=C(e).linebreak;if(null==e.indent&&(e.indent=V.indent),null==e.children&&(e.children=V.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),z=/@container|@media|@supports\s+/,D={onCreateRule:function(e,t,r){return z.test(e)?new N(e,t,r):null}},F={indent:1,children:!0},W=/@keyframes\s+([\w-]+)/,U=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(W);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var i=r.scoped,o=r.sheet,a=r.generateId;for(var l in this.id=!1===i?this.name:M(a(this,o)),this.rules=new le(s({},r,{parent:this})),t)this.rules.add(l,t[l],s({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=F);var t=C(e).linebreak;if(null==e.indent&&(e.indent=F.indent),null==e.children&&(e.children=F.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),q=/@keyframes\s+/,H=/\$([\w-]+)/g,G=function(e,t){return"string"==typeof e?e.replace(H,(function(e,r){return r in t?t[r]:e})):e},B=function(e,t,r){var n=e[t],i=G(n,r);i!==n&&(e[t]=i)},X={onCreateRule:function(e,t,r){return"string"==typeof e&&q.test(e)?new U(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&B(e,"animation-name",r.keyframes),"animation"in e&&B(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return G(e,n.keyframes);default:return e}}},J=function(e){function t(){return e.apply(this,arguments)||this}return w(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=t&&t.options.link?s({},e,{allowEmpty:!0}):e;return E(this.key,this.style,r)},t}(I),Y={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new J(e,t,r):null}},Z=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=C(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=E(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return E(this.at,this.style,e)},e}(),K=/@font-face/,Q={onCreateRule:function(e,t,r){return K.test(e)?new Z(e,t,r):null}},ee=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return E(this.key,this.style,e)},e}(),te={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new ee(e,t,r):null}},re=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),ne={"@charset":!0,"@import":!0,"@namespace":!0},ie={onCreateRule:function(e,t,r){return e in ne?new re(e,t,r):null}},oe=[L,D,X,Y,Q,te,ie],se={process:!0},ae={force:!0,process:!0},le=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,i=n.parent,o=n.sheet,a=n.jss,l=n.Renderer,u=n.generateId,c=n.scoped,f=s({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:l,generateId:u,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(f.selector="."+M(this.classes[d]));var p=R(d,t,f);if(!p)return null;this.register(p);var h=void 0===f.index?this.index.length:f.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,r){var n=this.get(e),i=this.index.indexOf(n);n&&this.remove(n);var o=r;return-1!==i&&(o=s({},r,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof _?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof U&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof _?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof U&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=se);var i=this.options,o=i.jss.plugins,s=i.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var a=t.style;if(o.onUpdate(r,t,s,n),n.process&&a&&a!==t.style){for(var l in o.onProcessStyle(t.style,t,s),t.style){var u=t.style[l];u!==a[l]&&t.prop(l,u,ae)}for(var c in a){var f=t.style[c],d=a[c];null==f&&f!==d&&t.prop(c,null,ae)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,i=C(e).linebreak,o=0;o<this.index.length;o++){var s=this.index[o].toString(e);(s||n)&&(t&&(t+=i),t+=s)}return t},e}(),ue=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=s({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new le(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var i=this.rules.add(e,t,r);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(n?n.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var i=this.rules.replace(e,t,r);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?n.renderable&&this.renderer.replaceRule(n.renderable,i):this.renderer.deleteRule(n)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var i=this.addRule(n,e[n],t);i&&r.push(i)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),ce=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var i=this.registry.onCreateRule[n](e,t,r);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,i=0;i<this.registry.onChangeValue.length;i++)n=this.registry.onChangeValue[i](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),fe=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=a(t,["attached"]),i=C(n).linebreak,o="",s=0;s<this.registry.length;s++){var l=this.registry[s];null!=r&&l.attached!==r||(o&&(o+=i),o+=l.toString(n))}return o},v(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),de=new fe,pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),he="2f1acc6c3a606b082e5eef5e54414ffb";null==pe[he]&&(pe[he]=0);var ye=pe[he]++,ge=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var i="",o="";return n&&(n.options.classNamePrefix&&(o=n.options.classNamePrefix),null!=n.options.jss.id&&(i=String(n.options.jss.id))),e.minify?""+(o||"c")+ye+i+t:o+r.key+"-"+ye+(i?"-"+i:"")+"-"+t}},me=function(e){var t;return function(){return t||(t=e()),t}},ve=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},be=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=O(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var i=n?n.indexOf("!important"):-1,o=i>-1?n.substr(0,i-1):n;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},we=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},xe=function(e,t){return e.selectorText=t,e.selectorText===t},ke=me((function(){return document.querySelector("head")}));var Se=me((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Re=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},Pe=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Oe=function(){function e(e){this.getPropertyValue=ve,this.setProperty=be,this.removeProperty=we,this.setSelector=xe,this.hasInsertedRules=!1,this.cssRules=[],e&&de.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var o=Se();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=function(e){var t=de.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var i=function(e){for(var t=ke(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var i=r,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else ke().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,i=r;if("conditional"===e.type||"keyframes"===e.type){var o=Pe(r,t);if(!1===(i=Re(r,n.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(n.rules,i),i}var s=e.toString();if(!s)return!1;var a=Pe(r,t),l=Re(r,s,a);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,a,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof ue&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ce=0,Ae=function(){function e(e){this.id=Ce++,this.version="10.10.0",this.plugins=new ce,this.options={id:{minify:!1},createGenerateId:ge,Renderer:h?Oe:null,plugins:[]},this.generateId=ge({minify:!1});for(var t=0;t<oe.length;t++)this.plugins.use(oe[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=s({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===de.index?0:de.index+1);var n=new ue(e,s({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),de.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=s({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var i=R(e,t,n);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.plugins.use(t)})),this},e}(),Ee=function(e){return new Ae(e)},je=function(){function e(){this.length=0,this.sheets=new WeakMap}var t=e.prototype;return t.get=function(e){var t=this.sheets.get(e);return t&&t.sheet},t.add=function(e,t){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:t,refs:0}))},t.manage=function(e){var t=this.sheets.get(e);if(t)return 0===t.refs&&t.sheet.attach(),t.refs++,t.sheet},t.unmanage=function(e){var t=this.sheets.get(e);t&&t.refs>0&&(t.refs--,0===t.refs&&t.sheet.detach())},v(e,[{key:"size",get:function(){return this.length}}]),e}(),Te="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Me(e){var t=null;for(var r in e){var n=e[r],i=typeof n;if("function"===i)t||(t={}),t[r]=n;else if("object"===i&&null!==n&&!Array.isArray(n)){var o=Me(n);o&&(t||(t={}),t[r]=o)}}return t}Ee();var Ie=Date.now(),_e="fnValues"+Ie,Le="fnStyle"+ ++Ie,Ve=r(603),$e=function(e){return e&&e[Ve.Z]&&e===e[Ve.Z]()},Ne=/;\n/,ze=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},r=e.split(Ne),n=0;n<r.length;n++){var i=(r[n]||"").trim();if(i){var o=i.indexOf(":");if(-1!==o){var s=i.substr(0,o).trim(),a=i.substr(o+1).trim();t[s]=a}}}return t}(e.style))},De="@global",Fe=function(){function e(e,t,r){for(var n in this.type="global",this.at=De,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new le(s({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),We=function(){function e(e,t,r){this.type="global",this.at=De,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,s({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ue=/\s*,\s*/g;function qe(e,t){for(var r=e.split(Ue),n="",i=0;i<r.length;i++)n+=t+" "+r[i].trim(),r[i+1]&&(n+=", ");return n}var He=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},Ge="extendCurrValue"+Date.now();function Be(e,t,r,n){return void 0===n&&(n={}),function(e,t,r,n){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var i=0;i<e.extend.length;i++){var o=e.extend[i];Be("string"==typeof o?s({},e,{extend:o}):e.extend[i],t,r,n)}else for(var a in e.extend)"extend"!==a?He(e.extend[a])?(a in n||(n[a]={}),Be(e.extend[a],t,r,n[a])):n[a]=e.extend[a]:Be(e.extend.extend,t,r,n);else{if(!r)return;var l=r.getRule(e.extend);if(!l)return;if(l===t)return;var u=l.options.parent;u&&Be(u.rules.raw[e.extend],t,r,n)}}(e,t,r,n),function(e,t,r,n){for(var i in e)"extend"!==i&&(He(n[i])&&He(e[i])?Be(e[i],t,r,n[i]):He(e[i])?n[i]=Be(e[i],t,r):n[i]=e[i])}(e,t,r,n),n}var Xe=function(){return{onProcessStyle:function(e,t,r){return"extend"in e?Be(e,t,r):e},onChangeValue:function(e,t,r){if("extend"!==t)return e;if(null==e||!1===e){for(var n in r[Ge])r.prop(n,null);return r[Ge]=null,null}if("object"==typeof e){for(var i in e)r.prop(i,e[i]);r[Ge]=e}return null}}},Je=/\s*,\s*/g,Ye=/&/g,Ze=/\$([\w-]+)/g,Ke=function(){function e(e,t){return function(r,n){var i=e.getRule(n)||t&&t.getRule(n);return i?i.selector:n}}function t(e,t){for(var r=t.split(Je),n=e.split(Je),i="",o=0;o<r.length;o++)for(var s=r[o],a=0;a<n.length;a++){var l=n[a];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Ye,s):s+" "+l}return i}function r(e,t,r){if(r)return s({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var i=s({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(n,i,o){if("style"!==i.type)return n;var a,l,u=i,c=u.options.parent;for(var f in n){var d=-1!==f.indexOf("&"),p="@"===f[0];if(d||p){if(a=r(u,c,a),d){var h=t(f,u.selector);l||(l=e(c,o)),h=h.replace(Ze,l);var y=u.key+"-"+f;"replaceRule"in c?c.replaceRule(y,n[f],s({},a,{selector:h})):c.addRule(y,n[f],s({},a,{selector:h}))}else p&&c.addRule(f,{},a).addRule(u.key,n[f],{selector:u.selector});delete n[f]}}return n}}};function Qe(e,t){if(!t)return!0;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(!Qe(e,t[r]))return!1;return!0}if(t.indexOf(" ")>-1)return Qe(e,t.split(" "));var n=e.options.parent;if("$"===t[0]){var i=n.getRule(t.substr(1));return!!i&&i!==e&&(n.classes[e.key]+=" "+n.classes[i.key],!0)}return n.classes[e.key]+=" "+t,!0}var et=function(){return{onProcessStyle:function(e,t){return"composes"in e?(Qe(t,e.composes),delete e.composes,e):e}}},tt=/[A-Z]/g,rt=/^ms-/,nt={};function it(e){return"-"+e.toLowerCase()}var ot=function(e){if(nt.hasOwnProperty(e))return nt[e];var t=e.replace(tt,it);return nt[e]=rt.test(t)?"-"+t:t};function st(e){var t={};for(var r in e)t[0===r.indexOf("--")?r:ot(r)]=e[r];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(st):t.fallbacks=st(e.fallbacks)),t}var at=Te&&CSS?CSS.px:"px",lt=Te&&CSS?CSS.ms:"ms",ut=Te&&CSS?CSS.percent:"%";function ct(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var i in e)n[i]=e[i],n[i.replace(t,r)]=e[i];return n}var ft=ct({"animation-delay":lt,"animation-duration":lt,"background-position":at,"background-position-x":at,"background-position-y":at,"background-size":at,border:at,"border-bottom":at,"border-bottom-left-radius":at,"border-bottom-right-radius":at,"border-bottom-width":at,"border-left":at,"border-left-width":at,"border-radius":at,"border-right":at,"border-right-width":at,"border-top":at,"border-top-left-radius":at,"border-top-right-radius":at,"border-top-width":at,"border-width":at,"border-block":at,"border-block-end":at,"border-block-end-width":at,"border-block-start":at,"border-block-start-width":at,"border-block-width":at,"border-inline":at,"border-inline-end":at,"border-inline-end-width":at,"border-inline-start":at,"border-inline-start-width":at,"border-inline-width":at,"border-start-start-radius":at,"border-start-end-radius":at,"border-end-start-radius":at,"border-end-end-radius":at,margin:at,"margin-bottom":at,"margin-left":at,"margin-right":at,"margin-top":at,"margin-block":at,"margin-block-end":at,"margin-block-start":at,"margin-inline":at,"margin-inline-end":at,"margin-inline-start":at,padding:at,"padding-bottom":at,"padding-left":at,"padding-right":at,"padding-top":at,"padding-block":at,"padding-block-end":at,"padding-block-start":at,"padding-inline":at,"padding-inline-end":at,"padding-inline-start":at,"mask-position-x":at,"mask-position-y":at,"mask-size":at,height:at,width:at,"min-height":at,"max-height":at,"min-width":at,"max-width":at,bottom:at,left:at,top:at,right:at,inset:at,"inset-block":at,"inset-block-end":at,"inset-block-start":at,"inset-inline":at,"inset-inline-end":at,"inset-inline-start":at,"box-shadow":at,"text-shadow":at,"column-gap":at,"column-rule":at,"column-rule-width":at,"column-width":at,"font-size":at,"font-size-delta":at,"letter-spacing":at,"text-decoration-thickness":at,"text-indent":at,"text-stroke":at,"text-stroke-width":at,"word-spacing":at,motion:at,"motion-offset":at,outline:at,"outline-offset":at,"outline-width":at,perspective:at,"perspective-origin-x":ut,"perspective-origin-y":ut,"transform-origin":ut,"transform-origin-x":ut,"transform-origin-y":ut,"transform-origin-z":ut,"transition-delay":lt,"transition-duration":lt,"vertical-align":at,"flex-basis":at,"shape-margin":at,size:at,gap:at,grid:at,"grid-gap":at,"row-gap":at,"grid-row-gap":at,"grid-column-gap":at,"grid-template-rows":at,"grid-template-columns":at,"grid-auto-rows":at,"grid-auto-columns":at,"box-shadow-x":at,"box-shadow-y":at,"box-shadow-blur":at,"box-shadow-spread":at,"font-line-height":at,"text-shadow-x":at,"text-shadow-y":at,"text-shadow-blur":at});function dt(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=dt(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=dt(i,t[i],r);else for(var o in t)t[o]=dt(e+"-"+o,t[o],r);else if("number"==typeof t&&!1===isNaN(t)){var s=r[e]||ft[e];return!s||0===t&&s===at?t.toString():"function"==typeof s?s(t).toString():""+t+s}return t}var pt=function(e){void 0===e&&(e={});var t=ct(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=dt(n,e[n],t);return e},onChangeValue:function(e,r){return dt(r,e,t)}}},ht={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},yt={position:!0,size:!0},gt={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},mt={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function vt(e,t,r,n){return null==r[t]?e:0===e.length?[]:Array.isArray(e[0])?vt(e[0],t,r,n):"object"==typeof e[0]?function(e,t,r){return e.map((function(e){return bt(e,t,r,!1,!0)}))}(e,t,n):[e]}function bt(e,t,r,n,i){if(!gt[t]&&!mt[t])return[];var o=[];if(mt[t]&&(e=function(e,t,r,n){for(var i in r){var o=r[i];if(void 0!==e[i]&&(n||!t.prop(o))){var s,a=wt((s={},s[o]=e[i],s),t)[o];n?t.style.fallbacks[o]=a:t.style[o]=a}delete e[i]}return e}(e,r,mt[t],n)),Object.keys(e).length)for(var s in gt[t])e[s]?Array.isArray(e[s])?o.push(null===yt[s]?e[s]:e[s].join(" ")):o.push(e[s]):null!=gt[t][s]&&o.push(gt[t][s]);return!o.length||i?o:[o]}function wt(e,t,r){for(var n in e){var i=e[n];if(Array.isArray(i)){if(!Array.isArray(i[0])){if("fallbacks"===n){for(var o=0;o<e.fallbacks.length;o++)e.fallbacks[o]=wt(e.fallbacks[o],t,!0);continue}e[n]=vt(i,n,ht,t),e[n].length||delete e[n]}}else if("object"==typeof i){if("fallbacks"===n){e.fallbacks=wt(e.fallbacks,t,!0);continue}e[n]=bt(i,n,t,r),e[n].length||delete e[n]}else""===e[n]&&delete e[n]}return e}function xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var kt="",St="",Rt="",Pt="",Ot=h&&"ontouchstart"in document.documentElement;if(h){var Ct={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},At=document.createElement("p").style;for(var Et in Ct)if(Et+"Transform"in At){kt=Et,St=Ct[Et];break}"Webkit"===kt&&"msHyphens"in At&&(kt="ms",St=Ct.ms,Pt="edge"),"Webkit"===kt&&"-apple-trailing-word"in At&&(Rt="apple")}var jt=kt,Tt=St,Mt=Rt,It=Pt,_t=Ot,Lt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===jt?"-webkit-"+e:Tt+e)}},Vt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===jt?Tt+"print-"+e:e)}},$t=/[-\s]+(.)?/g;function Nt(e,t){return t?t.toUpperCase():""}function zt(e){return e.replace($t,Nt)}function Dt(e){return zt("-"+e)}var Ft,Wt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===jt){var r="mask-image";if(zt(r)in t)return e;if(jt+Dt(r)in t)return Tt+e}return e}},Ut={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Mt||_t?e:Tt+e)}},qt={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:Tt+e)}},Ht={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:Tt+e)}},Gt={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===jt||"ms"===jt&&"edge"!==It?Tt+e:e)}},Bt={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===jt||"ms"===jt||"apple"===Mt?Tt+e:e)}},Xt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===jt?"WebkitColumn"+Dt(e)in t&&Tt+"column-"+e:"Moz"===jt&&"page"+Dt(e)in t&&"page-"+e)}},Jt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===jt)return e;var r=e.replace("-inline","");return jt+Dt(r)in t&&Tt+r}},Yt={supportedProperty:function(e,t){return zt(e)in t&&e}},Zt={supportedProperty:function(e,t){var r=Dt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:jt+r in t?Tt+e:"Webkit"!==jt&&"Webkit"+r in t&&"-webkit-"+e}},Kt={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===jt?""+Tt+e:e)}},Qt={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===jt?Tt+"scroll-chaining":e)}},er={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},tr={supportedProperty:function(e,t){var r=er[e];return!!r&&jt+Dt(r)in t&&Tt+r}},rr={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},nr=Object.keys(rr),ir=function(e){return Tt+e},or={supportedProperty:function(e,t,r){var n=r.multiple;if(nr.indexOf(e)>-1){var i=rr[e];if(!Array.isArray(i))return jt+Dt(i)in t&&Tt+i;if(!n)return!1;for(var o=0;o<i.length;o++)if(!(jt+Dt(i[0])in t))return!1;return i.map(ir)}return!1}},sr=[Lt,Vt,Wt,Ut,qt,Ht,Gt,Bt,Xt,Jt,Yt,Zt,Kt,Qt,tr,or],ar=sr.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),lr=sr.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,function(e){if(Array.isArray(e))return xt(e)}(r=t.noPrefill)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return xt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xt(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),e;var r}),[]),ur={};if(h){Ft=document.createElement("p");var cr=window.getComputedStyle(document.documentElement,"");for(var fr in cr)isNaN(fr)||(ur[cr[fr]]=cr[fr]);lr.forEach((function(e){return delete ur[e]}))}function dr(e,t){if(void 0===t&&(t={}),!Ft)return e;if(null!=ur[e])return ur[e];"transition"!==e&&"transform"!==e||(t[e]=e in Ft.style);for(var r=0;r<ar.length&&(ur[e]=ar[r](e,Ft.style,t),!ur[e]);r++);try{Ft.style[e]=""}catch(e){return!1}return ur[e]}var pr,hr={},yr={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},gr=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function mr(e,t,r){return"var"===t?"var":"all"===t?"all":"all"===r?", all":(t?dr(t):", "+dr(r))||t||r}function vr(e,t){var r=t;if(!pr||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=hr[n])return hr[n];try{pr.style[e]=r}catch(e){return hr[n]=!1,!1}if(yr[e])r=r.replace(gr,mr);else if(""===pr.style[e]&&("-ms-flex"===(r=Tt+r)&&(pr.style[e]="-ms-flexbox"),pr.style[e]=r,""===pr.style[e]))return hr[n]=!1,!1;return pr.style[e]="",hr[n]=r,hr[n]}h&&(pr=document.createElement("p"));var br=function(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var i=!1,o=dr(r);o&&o!==r&&(i=!0);var s=!1,a=vr(o,O(n));a&&a!==n&&(s=!0),(i||s)&&(i&&delete t[r],t[o||r]=a||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===jt?e:"@"+Tt+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return vr(t,O(e))||e}}},wr=function(e){return void 0===e&&(e={}),{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=R(e,{},r);return n[Le]=t,n},onProcessStyle:function(e,t){if(_e in t||Le in t)return e;var r={};for(var n in e){var i=e[n];"function"==typeof i&&(delete e[n],r[n]=i)}return t[_e]=r,e},onUpdate:function(e,t,r,n){var i=t,o=i[Le];o&&(i.style=o(e)||{});var s=i[_e];if(s)for(var a in s)i.prop(a,s[a](e),n)}},(r=e.observable,{onCreateRule:function(e,t,n){if(!$e(t))return null;var i=t,o=R(e,{},n);return i.subscribe((function(e){for(var t in e)o.prop(t,e[t],r)})),o},onProcessRule:function(e){if(!e||"style"===e.type){var t=e,n=t.style,i=function(e){var i=n[e];if(!$e(i))return"continue";delete n[e],i.subscribe({next:function(n){t.prop(e,n,r)}})};for(var o in n)i(o)}}}),{onProcessRule:ze},{onCreateRule:function(e,t,r){if(!e)return null;if(e===De)return new Fe(e,t,r);if("@"===e[0]&&"@global "===e.substr(0,8))return new We(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,i=n?n[De]:null;if(i){for(var o in i)t.addRule(o,i[o],s({},r,{selector:qe(o,e.selector)}));delete n[De]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var i in n)if("@"===i[0]&&i.substr(0,7)===De){var o=qe(i.substr(7),e.selector);t.addRule(o,n[i],s({},r,{selector:o})),delete n[i]}}(e,t))}},Xe(),Ke(),et(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=st(e[t]);return e}return st(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=ot(t);return t===n?e:(r.prop(n,e),null)}},pt(e.defaultUnit),{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var r=0;r<e.length;r++)e[r]=wt(e[r],t);return e}return wt(e,t)}},br(),(t=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n={},i=Object.keys(e).sort(t),o=0;o<i.length;o++)n[i[o]]=e[i[o]];return n}})]};var t,r},xr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kr=(function(e){var t={}}((function(e){return xr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ee(wr())),Sr=function(e){void 0===e&&(e=kr);var t,r=new Map,n=0,i=function(){return(!t||t.rules.index.length>1e4)&&(t=e.createStyleSheet().attach()),t};function o(){var e=arguments,t=JSON.stringify(e),o=r.get(t);if(o)return o.className;var s=[];for(var a in e){var l=e[a];if(Array.isArray(l))for(var u=0;u<l.length;u++)s.push(l[u]);else s.push(l)}for(var c={},f=[],d=0;d<s.length;d++){var p=s[d];if(p){var h=p;if("string"==typeof p){var y=r.get(p);y&&(y.labels.length&&f.push.apply(f,y.labels),h=y.style)}h.label&&-1===f.indexOf(h.label)&&f.push(h.label),Object.assign(c,h)}}delete c.label;var g=(0===f.length?"css":f.join("-"))+"-"+n++;i().addRule(g,c);var m=i().classes[g],v={style:c,labels:f,className:m};return r.set(t,v),r.set(m,v),m}return o.getSheet=i,o}(),Rr=Sr,Pr=Number.MIN_SAFE_INTEGER||-1e9,Or=(0,e.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!h}),Cr=new Map,Ar=function(e,t){var r=e.managers;if(r)return r[t]||(r[t]=new je),r[t];var n=Cr.get(t);return n||(n=new je,Cr.set(t,n)),n},Er=function(e){var t=e.sheet,r=e.context,n=e.index,i=e.theme;t&&(Ar(r,n).manage(i),r.registry&&r.registry.add(t))},jr=Ee(wr()),Tr=new WeakMap,Mr=function(e){return Tr.get(e)},Ir=function(e){if(!e.context.disableStylesGeneration){var t=Ar(e.context,e.index),r=t.get(e.theme);if(r)return r;var n=e.context.jss||jr,i=function(e){var t=e.styles;return"function"!=typeof t?t:t(e.theme)}(e),o=Me(i),a=n.createStyleSheet(i,function(e,t){var r;e.context.id&&null!=e.context.id.minify&&(r=e.context.id.minify);var n=e.context.classNamePrefix||"";e.name&&!r&&(n+=e.name.replace(/\s/g,"-")+"-");var i="";return e.name&&(i=e.name+", "),i+="function"==typeof e.styles?"Themed":"Unthemed",s({},e.sheetOptions,{index:e.index,meta:i,classNamePrefix:n,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}(e,null!==o));return function(e,t){Tr.set(e,t)}(a,{dynamicStyles:o,styles:i}),t.add(e.theme,a),a}},_r=function(e,t){var r=Mr(e);if(r){var n={};for(var i in r.dynamicStyles)for(var o=e.rules.index.length,s=e.addRule(i,r.dynamicStyles[i]),a=o;a<e.rules.index.length;a++){var l=e.rules.index[a];e.updateOne(l,t),n[s===l?i:l.key]=l}return n}};function Lr(r){return r?e.useEffect:t().useInsertionEffect||e.useLayoutEffect}var Vr={};Symbol("react-jss-styled"),function(e){void 0===e&&(e=Rr)}();const $r=function(t,r){void 0===r&&(r={});var n=r,i=n.index,o=void 0===i?Pr++:i,s=n.theming,l=n.name,u=a(n,["index","theming","name"]),c=s&&s.context||d,f={};return function(r){var n=(0,e.useRef)(!0),i=(0,e.useContext)(Or),s=function(r){return"function"==typeof t&&(r||(0,e.useContext)(c))||Vr}(r&&r.theme),a=(0,e.useMemo)((function(){var e=Ir({context:i,styles:t,name:l,theme:s,index:o,sheetOptions:u});return e&&i.isSSR&&Er({index:o,context:i,sheet:e,theme:s}),[e,e?_r(e,r):null]}),[i,s]),d=a[0],p=a[1];Lr(i.isSSR)((function(){d&&p&&!n.current&&function(e,t,r){for(var n in r)t.updateOne(r[n],e)}(r,d,p)}),[r]),Lr(i.isSSR)((function(){return d&&Er({index:o,context:i,sheet:d,theme:s}),function(){d&&(function(e){e.sheet&&Ar(e.context,e.index).unmanage(e.theme)}({index:o,context:i,sheet:d,theme:s}),p&&function(e,t){for(var r in t)e.deleteRule(t[r])}(d,p))}}),[d]);var h=(0,e.useMemo)((function(){return d&&p?function(e,t){if(!t)return e.classes;var r=Mr(e);if(!r)return e.classes;var n={};for(var i in r.styles)n[i]=e.classes[i],i in t&&(n[i]+=" "+e.classes[t[i].key]);return n}(d,p):f}),[d,p]);return(0,e.useDebugValue)(h),(0,e.useDebugValue)(s===Vr?"No theme":s),(0,e.useEffect)((function(){n.current=!1})),h}}({component:{}});var Nr=r(322);const zr=()=>{},Dr=zr(),Fr=Object,Wr=e=>e===Dr,Ur=e=>"function"==typeof e,qr=(e,t)=>({...e,...t}),Hr=new WeakMap;let Gr=0;const Br=e=>{const t=typeof e,r=e&&e.constructor,n=r==Date;let i,o;if(Fr(e)!==e||n||r==RegExp)i=n?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(i=Hr.get(e),i)return i;if(i=++Gr+"~",Hr.set(e,i),r==Array){for(i="@",o=0;o<e.length;o++)i+=Br(e[o])+",";Hr.set(e,i)}if(r==Fr){i="#";const t=Fr.keys(e).sort();for(;!Wr(o=t.pop());)Wr(e[o])||(i+=o+":"+Br(e[o])+",");Hr.set(e,i)}}return i},Xr=new WeakMap,Jr={},Yr={},Zr="undefined",Kr=typeof window!=Zr,Qr=typeof document!=Zr,en=(e,t)=>{const r=Xr.get(e);return[()=>!Wr(t)&&e.get(t)||Jr,n=>{if(!Wr(t)){const i=e.get(t);t in Yr||(Yr[t]=i),r[5](t,qr(i,n),i||Jr)}},r[6],()=>!Wr(t)&&t in Yr?Yr[t]:!Wr(t)&&e.get(t)||Jr]};let tn=!0;const[rn,nn]=Kr&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[zr,zr],on={isOnline:()=>tn,isVisible:()=>{const e=Qr&&document.visibilityState;return Wr(e)||"hidden"!==e}},sn={initFocus:e=>(Qr&&document.addEventListener("visibilitychange",e),rn("focus",e),()=>{Qr&&document.removeEventListener("visibilitychange",e),nn("focus",e)}),initReconnect:e=>{const t=()=>{tn=!0,e()},r=()=>{tn=!1};return rn("online",t),rn("offline",r),()=>{nn("online",t),nn("offline",r)}}},an=!e.useId,ln=!Kr||"Deno"in window,un=ln?e.useEffect:e.useLayoutEffect,cn="undefined"!=typeof navigator&&navigator.connection,fn=!ln&&cn&&(["slow-2g","2g"].includes(cn.effectiveType)||cn.saveData),dn=e=>{if(Ur(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Br(e):"",t]};let pn=0;const hn=()=>++pn;async function yn(...e){const[t,r,n,i]=e,o=qr({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{});let s=o.populateCache;const a=o.rollbackOnError;let l=o.optimisticData;const u=!1!==o.revalidate,c=o.throwOnError;if(Ur(r)){const e=r,n=[],i=t.keys();for(const r of i)!/^\$(inf|sub)\$/.test(r)&&e(t.get(r)._k)&&n.push(r);return Promise.all(n.map(f))}return f(r);async function f(r){const[i]=dn(r);if(!i)return;const[o,f]=en(t,i),[d,p,h,y]=Xr.get(t),g=()=>{const e=d[i];return u&&(delete h[i],delete y[i],e&&e[0])?e[0](2).then((()=>o().data)):o().data};if(e.length<3)return g();let m,v=n;const b=hn();p[i]=[b,0];const w=!Wr(l),x=o(),k=x.data,S=x._c,R=Wr(S)?k:S;if(w&&(l=Ur(l)?l(R,k):l,f({data:l,_c:R})),Ur(v))try{v=v(R)}catch(e){m=e}if(v&&Ur(v.then)){if(v=await v.catch((e=>{m=e})),b!==p[i][0]){if(m)throw m;return v}m&&w&&(e=>"function"==typeof a?a(e):!1!==a)(m)&&(s=!0,f({data:R,_c:Dr}))}if(s&&!m)if(Ur(s)){const e=s(v,R);f({data:e,error:Dr,_c:Dr})}else f({data:v,error:Dr,_c:Dr});if(p[i][1]=hn(),Promise.resolve(g()).then((()=>{f({_c:Dr})})),!m)return v;if(c)throw m}}const gn=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},mn=(e,t)=>{if(!Xr.has(e)){const r=qr(sn,t),n={},i=yn.bind(Dr,e);let o=zr;const s={},a=(e,t)=>{const r=s[e]||[];return s[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},l=(t,r,n)=>{e.set(t,r);const i=s[t];if(i)for(const e of i)e(r,n)},u=()=>{if(!Xr.has(e)&&(Xr.set(e,[n,{},{},{},i,l,a]),!ln)){const t=r.initFocus(setTimeout.bind(Dr,gn.bind(Dr,n,0))),i=r.initReconnect(setTimeout.bind(Dr,gn.bind(Dr,n,1)));o=()=>{t&&t(),i&&i(),Xr.delete(e)}}};return u(),[e,i,u,o]}return[e,Xr.get(e)[4]]},[vn,bn]=mn(new Map),wn=qr({onLoadingSlow:zr,onSuccess:zr,onError:zr,onErrorRetry:(e,__,t,r,n)=>{const i=t.errorRetryCount,o=n.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*t.errorRetryInterval;!Wr(i)&&o>i||setTimeout(r,s,n)},onDiscarded:zr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:fn?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:fn?5e3:3e3,compare:(e,t)=>Br(e)==Br(t),isPaused:()=>!1,cache:vn,mutate:bn,fallback:{}},on),xn=(e,t)=>{const r=qr(e,t);if(t){const{use:n,fallback:i}=e,{use:o,fallback:s}=t;n&&o&&(r.use=n.concat(o)),i&&s&&(r.fallback=qr(i,s))}return r},kn=(0,e.createContext)({}),Sn=Kr&&window.__SWR_DEVTOOLS_USE__,Rn=Sn?window.__SWR_DEVTOOLS_USE__:[],Pn=Rn.concat((e=>(t,r,n)=>{const i=r&&((...e)=>{const[n]=dn(t),[,,,i]=Xr.get(vn);if(n.startsWith("$inf$"))return r(...e);const o=i[n];return Wr(o)?r(...e):(delete i[n],o)});return e(t,i,n)}));Sn&&(window.__SWR_DEVTOOLS_REACT__=e);const On=e.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),Cn={dedupe:!0},An=(Fr.defineProperty((t=>{const{value:r}=t,n=(0,e.useContext)(kn),i=Ur(r),o=(0,e.useMemo)((()=>i?r(n):r),[i,n,r]),s=(0,e.useMemo)((()=>i?o:xn(n,o)),[i,n,o]),a=o&&o.provider,l=(0,e.useRef)(Dr);a&&!l.current&&(l.current=mn(a(s.cache||vn),o));const u=l.current;return u&&(s.cache=u[0],s.mutate=u[1]),un((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),(0,e.createElement)(kn.Provider,qr(t,{value:s}))}),"defaultValue",{value:wn}),En=(t,r,n)=>{const{cache:i,compare:o,suspense:s,fallbackData:a,revalidateOnMount:l,revalidateIfStale:u,refreshInterval:c,refreshWhenHidden:f,refreshWhenOffline:d,keepPreviousData:p}=n,[h,y,g,m]=Xr.get(i),[v,b]=dn(t),w=(0,e.useRef)(!1),x=(0,e.useRef)(!1),k=(0,e.useRef)(v),S=(0,e.useRef)(r),R=(0,e.useRef)(n),P=()=>R.current,O=()=>P().isVisible()&&P().isOnline(),[C,A,E,j]=en(i,v),T=(0,e.useRef)({}).current,M=Wr(a)?n.fallback[v]:a,I=(e,t)=>{for(const r in T){const n=r;if("data"===n){if(!o(e[n],t[n])){if(!Wr(e[n]))return!1;if(!o(W,t[n]))return!1}}else if(t[n]!==e[n])return!1}return!0},_=(0,e.useMemo)((()=>{const e=!!v&&!!r&&(Wr(l)?!P().isPaused()&&!s&&(!!Wr(u)||u):l),t=t=>{const r=qr(t);return delete r._k,e?{isValidating:!0,isLoading:!0,...r}:r},n=C(),i=j(),o=t(n),a=n===i?o:t(i);let c=o;return[()=>{const e=t(C());return I(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>a]}),[i,v]),L=(0,Nr.useSyncExternalStore)((0,e.useCallback)((e=>E(v,((t,r)=>{I(r,t)||e()}))),[i,v]),_[0],_[1]),V=!w.current,$=h[v]&&h[v].length>0,N=L.data,z=Wr(N)?M:N,D=L.error,F=(0,e.useRef)(z),W=p?Wr(N)?F.current:N:z,U=!($&&!Wr(D))&&(V&&!Wr(l)?l:!P().isPaused()&&(s?!Wr(z)&&u:Wr(z)||u)),q=!!(v&&r&&V&&U),H=Wr(L.isValidating)?q:L.isValidating,G=Wr(L.isLoading)?q:L.isLoading,B=(0,e.useCallback)((async e=>{const t=S.current;if(!v||!t||x.current||P().isPaused())return!1;let r,i,s=!0;const a=e||{},l=!g[v]||!a.dedupe,u=()=>an?!x.current&&v===k.current&&w.current:v===k.current,c={isValidating:!1,isLoading:!1},f=()=>{A(c)},d=()=>{const e=g[v];e&&e[1]===i&&delete g[v]},p={isValidating:!0};Wr(C().data)&&(p.isLoading=!0);try{if(l&&(A(p),n.loadingTimeout&&Wr(C().data)&&setTimeout((()=>{s&&u()&&P().onLoadingSlow(v,n)}),n.loadingTimeout),g[v]=[t(b),hn()]),[r,i]=g[v],r=await r,l&&setTimeout(d,n.dedupingInterval),!g[v]||g[v][1]!==i)return l&&u()&&P().onDiscarded(v),!1;c.error=Dr;const e=y[v];if(!Wr(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return f(),l&&u()&&P().onDiscarded(v),!1;const a=C().data;c.data=o(a,r)?a:r,l&&u()&&P().onSuccess(r,v,n)}catch(e){d();const t=P(),{shouldRetryOnError:r}=t;t.isPaused()||(c.error=e,l&&u()&&(t.onError(e,v,t),(!0===r||Ur(r)&&r(e))&&O()&&t.onErrorRetry(e,v,t,(e=>{const t=h[v];t&&t[0]&&t[0](3,e)}),{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return s=!1,f(),!0}),[v,i]),X=(0,e.useCallback)(((...e)=>yn(i,k.current,...e)),[]);if(un((()=>{S.current=r,R.current=n,Wr(N)||(F.current=N)})),un((()=>{if(!v)return;const e=B.bind(Dr,Cn);let t=0;const r=((e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}})(v,h,((r,n={})=>{if(0==r){const r=Date.now();P().revalidateOnFocus&&r>t&&O()&&(t=r+P().focusThrottleInterval,e())}else if(1==r)P().revalidateOnReconnect&&O()&&e();else{if(2==r)return B();if(3==r)return B(n)}}));return x.current=!1,k.current=v,w.current=!0,A({_k:b}),U&&(Wr(z)||ln?e():(n=e,Kr&&typeof window.requestAnimationFrame!=Zr?window.requestAnimationFrame(n):setTimeout(n,1))),()=>{x.current=!0,r()};var n}),[v]),un((()=>{let e;function t(){const t=Ur(c)?c(C().data):c;t&&-1!==e&&(e=setTimeout(r,t))}function r(){C().error||!f&&!P().isVisible()||!d&&!P().isOnline()?t():B(Cn).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[c,f,d,v]),(0,e.useDebugValue)(W),s&&Wr(z)&&v){if(!an&&ln)throw new Error("Fallback data is required when using suspense in SSR.");S.current=r,R.current=n,x.current=!1;const e=m[v];if(!Wr(e)){const t=X(e);On(t)}if(!Wr(D))throw D;{const e=B(Cn);Wr(W)||(e.status="fulfilled",e.value=!0),On(e)}}return{mutate:X,get data(){return T.data=!0,W},get error(){return T.error=!0,D},get isValidating(){return T.isValidating=!0,H},get isLoading(){return T.isLoading=!0,G}}},function(...t){const r=qr(wn,(0,e.useContext)(kn)),[n,i,o]=(e=>Ur(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(t),s=xn(r,o);let a=En;const{use:l}=s,u=(l||[]).concat(Pn);for(let e=u.length;e--;)a=u[e](a);return a(n,i||s.fetcher||null,s)});var En,jn=window.wp.apiFetch,Tn=r.n(jn);var Mn=()=>{const t=$r(),{value:r}=(()=>{const{data:e,mutate:t}=An(window.ClimbPress.RESTNamespace+"/grading-systems",(e=>Tn()({path:e})));return{value:null!=e?e:[],add:r=>{t([{id:r,name:r,grades:[]},...e])}}})(),n=r.map((e=>{let t=0;return e.grades.forEach((e=>{t=Math.max(t,e.difficulty)})),t})),i=Math.max(...n),o={};for(let e=0;e<i;e++)r.forEach((t=>{const r=t.grades.find((t=>t.difficulty==e));r&&(o[e]||(o[e]={}),o[e][t.id]=r.label)}));return(0,e.createElement)("div",{className:t.component},(0,e.createElement)("table",{className:"wp-list-table widefat fixed striped posts"},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(s="Range of values",null!==(a=window.ClimbPress.i18n[s])&&void 0!==a?a:`? ${s} ?`)),r.map((t=>(0,e.createElement)("th",{key:t.id},t.name))))),(0,e.createElement)("tbody",null,Object.keys(o).map((t=>{const n=o[t];return(0,e.createElement)("tr",{key:t},(0,e.createElement)("td",null,t),r.map((t=>{var r;return(0,e.createElement)("td",{key:t.id},null!==(r=n?.[t.id])&&void 0!==r?r:"")})))})))));var s,a};i()((()=>{(0,o.render)((0,e.createElement)(Mn,null),document.getElementById(window.ClimbPress.rootId))}))}()}();
     1!function(){"use strict";var e={535:function(e,t,r){var n=r(237),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=p(r);i&&i!==h&&e(t,i,n)}var s=c(r);f&&(s=s.concat(f(r)));for(var a=l(t),y=l(r),g=0;g<s.length;++g){var m=s[g];if(!(o[m]||n&&n[m]||y&&y[m]||a&&a[m])){var v=d(r,m);try{u(t,m,v)}catch(e){}}}}return t}},684:function(e,t){},198:function(e,t){var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case f:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case y:case l:return e;default:return t}}case i:return t}}}function k(e){return x(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=d,t.Fragment=o,t.Lazy=g,t.Memo=y,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||x(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===y},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===a||e===s||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===y||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===m)},t.typeOf=x},237:function(e,t,r){e.exports=r(198)},603:function(e,t,r){r.d(t,{Z:function(){return n}}),e=r.hmd(e);var n=function(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:e)},415:function(e,t,r){var n=r(196),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,s=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return a((function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,r,t]),s((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},322:function(e,t,r){e.exports=r(415)},196:function(e){e.exports=window.React}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n](o,o.exports,r),o.loaded=!0,o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e=r(196),t=r.n(e),n=window.wp.domReady,i=r.n(n),o=window.wp.element;function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function a(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}r(535);function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r(684);var f,d=(0,e.createContext)(),p=(function(e){}(f=d),function(e){}(f),function(e){var r=function(r){var n,i;function o(){for(var n,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return l(c(c(n=r.call.apply(r,[this].concat(o))||this)),"cachedTheme",void 0),l(c(c(n)),"lastOuterTheme",void 0),l(c(c(n)),"lastTheme",void 0),l(c(c(n)),"renderProvider",(function(r){var i=n.props.children;return t().createElement(e.Provider,{value:n.getTheme(r)},i)})),n}i=r,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var s=o.prototype;return s.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,"function"==typeof this.lastTheme){var t=this.props.theme;this.cachedTheme=t(e)}else{var r=this.props.theme;this.cachedTheme=e?u({},e,r):r}return this.cachedTheme},s.render=function(){return this.props.children?t().createElement(e.Consumer,null,this.renderProvider):null},o}(t().Component)}(f),"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),h="object"===("undefined"==typeof window?"undefined":p(window))&&"object"===("undefined"==typeof document?"undefined":p(document))&&9===document.nodeType;function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function g(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===y(t)?t:String(t)}function m(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function v(e,t,r){return t&&m(e.prototype,t),r&&m(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function w(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,b(e,t)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var k={}.constructor;function S(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(S);if(e.constructor!==k)return e;var t={};for(var r in e)t[r]=S(e[r]);return t}function R(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,i=S(t);return n.plugins.onCreateRule(e,i,r)||(e[0],null)}var P=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},O=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=P(e[r]," ");else t=P(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function C(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function A(e,t){for(var r="",n=0;n<t;n++)r+="  ";return r+e}function E(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var i=r.indent,o=void 0===i?0:i,s=t.fallbacks;!1===r.format&&(o=-1/0);var a=C(r),l=a.linebreak,u=a.space;if(e&&o++,s)if(Array.isArray(s))for(var c=0;c<s.length;c++){var f=s[c];for(var d in f){var p=f[d];null!=p&&(n&&(n+=l),n+=A(d+":"+u+O(p)+";",o))}}else for(var h in s){var y=s[h];null!=y&&(n&&(n+=l),n+=A(h+":"+u+O(y)+";",o))}for(var g in t){var m=t[g];null!=m&&"fallbacks"!==g&&(n&&(n+=l),n+=A(g+":"+u+O(m)+";",o))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),A(""+e+u+"{"+n,--o)+A("}",o)):n}var j=/([[\].#*$><+~=|^:(),"'`\s])/g,T="undefined"!=typeof CSS&&CSS.escape,M=function(e){return T?T(e):e.replace(j,"\\$1")},I=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,i=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var i=t;r&&!1===r.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,s=e in this.style;if(o&&!s&&!n)return this;var a=o&&s;if(a?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),_=function(e){function t(t,r,n){var i;i=e.call(this,t,r,n)||this;var o=n.selector,s=n.scoped,a=n.sheet,l=n.generateId;return o?i.selectorText=o:!1!==s&&(i.id=l(x(x(i)),a),i.selectorText="."+M(i.id)),i}w(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=O(r))}return e},r.toString=function(e){var t=this.options.sheet,r=t&&t.options.link?s({},e,{allowEmpty:!0}):e;return E(this.selectorText,this.style,r)},v(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;r&&t&&(t.setSelector(r,e)||t.replaceRule(r,this))}},get:function(){return this.selectorText}}]),t}(I),L={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new _(e,t,r)}},V={indent:1,children:!0},$=/@([\w-]+)/,N=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match($);for(var i in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new le(s({},r,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=V);var t=C(e).linebreak;if(null==e.indent&&(e.indent=V.indent),null==e.children&&(e.children=V.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),z=/@container|@media|@supports\s+/,D={onCreateRule:function(e,t,r){return z.test(e)?new N(e,t,r):null}},F={indent:1,children:!0},W=/@keyframes\s+([\w-]+)/,U=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(W);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var i=r.scoped,o=r.sheet,a=r.generateId;for(var l in this.id=!1===i?this.name:M(a(this,o)),this.rules=new le(s({},r,{parent:this})),t)this.rules.add(l,t[l],s({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=F);var t=C(e).linebreak;if(null==e.indent&&(e.indent=F.indent),null==e.children&&(e.children=F.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),q=/@keyframes\s+/,H=/\$([\w-]+)/g,G=function(e,t){return"string"==typeof e?e.replace(H,(function(e,r){return r in t?t[r]:e})):e},B=function(e,t,r){var n=e[t],i=G(n,r);i!==n&&(e[t]=i)},X={onCreateRule:function(e,t,r){return"string"==typeof e&&q.test(e)?new U(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&B(e,"animation-name",r.keyframes),"animation"in e&&B(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return G(e,n.keyframes);default:return e}}},J=function(e){function t(){return e.apply(this,arguments)||this}return w(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=t&&t.options.link?s({},e,{allowEmpty:!0}):e;return E(this.key,this.style,r)},t}(I),Y={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new J(e,t,r):null}},Z=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=C(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=E(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return E(this.at,this.style,e)},e}(),K=/@font-face/,Q={onCreateRule:function(e,t,r){return K.test(e)?new Z(e,t,r):null}},ee=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return E(this.key,this.style,e)},e}(),te={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new ee(e,t,r):null}},re=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),ne={"@charset":!0,"@import":!0,"@namespace":!0},ie={onCreateRule:function(e,t,r){return e in ne?new re(e,t,r):null}},oe=[L,D,X,Y,Q,te,ie],se={process:!0},ae={force:!0,process:!0},le=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,i=n.parent,o=n.sheet,a=n.jss,l=n.Renderer,u=n.generateId,c=n.scoped,f=s({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:l,generateId:u,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(f.selector="."+M(this.classes[d]));var p=R(d,t,f);if(!p)return null;this.register(p);var h=void 0===f.index?this.index.length:f.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,r){var n=this.get(e),i=this.index.indexOf(n);n&&this.remove(n);var o=r;return-1!==i&&(o=s({},r,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof _?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof U&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof _?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof U&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=se);var i=this.options,o=i.jss.plugins,s=i.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var a=t.style;if(o.onUpdate(r,t,s,n),n.process&&a&&a!==t.style){for(var l in o.onProcessStyle(t.style,t,s),t.style){var u=t.style[l];u!==a[l]&&t.prop(l,u,ae)}for(var c in a){var f=t.style[c],d=a[c];null==f&&f!==d&&t.prop(c,null,ae)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,i=C(e).linebreak,o=0;o<this.index.length;o++){var s=this.index[o].toString(e);(s||n)&&(t&&(t+=i),t+=s)}return t},e}(),ue=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=s({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new le(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var i=this.rules.add(e,t,r);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(n?n.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var i=this.rules.replace(e,t,r);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?n.renderable&&this.renderer.replaceRule(n.renderable,i):this.renderer.deleteRule(n)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var i=this.addRule(n,e[n],t);i&&r.push(i)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),ce=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var i=this.registry.onCreateRule[n](e,t,r);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,i=0;i<this.registry.onChangeValue.length;i++)n=this.registry.onChangeValue[i](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),fe=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=a(t,["attached"]),i=C(n).linebreak,o="",s=0;s<this.registry.length;s++){var l=this.registry[s];null!=r&&l.attached!==r||(o&&(o+=i),o+=l.toString(n))}return o},v(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),de=new fe,pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),he="2f1acc6c3a606b082e5eef5e54414ffb";null==pe[he]&&(pe[he]=0);var ye=pe[he]++,ge=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var i="",o="";return n&&(n.options.classNamePrefix&&(o=n.options.classNamePrefix),null!=n.options.jss.id&&(i=String(n.options.jss.id))),e.minify?""+(o||"c")+ye+i+t:o+r.key+"-"+ye+(i?"-"+i:"")+"-"+t}},me=function(e){var t;return function(){return t||(t=e()),t}},ve=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},be=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=O(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var i=n?n.indexOf("!important"):-1,o=i>-1?n.substr(0,i-1):n;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},we=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},xe=function(e,t){return e.selectorText=t,e.selectorText===t},ke=me((function(){return document.querySelector("head")}));var Se=me((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Re=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},Pe=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Oe=function(){function e(e){this.getPropertyValue=ve,this.setProperty=be,this.removeProperty=we,this.setSelector=xe,this.hasInsertedRules=!1,this.cssRules=[],e&&de.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var o=Se();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=function(e){var t=de.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var i=function(e){for(var t=ke(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var i=r,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else ke().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,i=r;if("conditional"===e.type||"keyframes"===e.type){var o=Pe(r,t);if(!1===(i=Re(r,n.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(n.rules,i),i}var s=e.toString();if(!s)return!1;var a=Pe(r,t),l=Re(r,s,a);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,a,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof ue&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ce=0,Ae=function(){function e(e){this.id=Ce++,this.version="10.10.0",this.plugins=new ce,this.options={id:{minify:!1},createGenerateId:ge,Renderer:h?Oe:null,plugins:[]},this.generateId=ge({minify:!1});for(var t=0;t<oe.length;t++)this.plugins.use(oe[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=s({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===de.index?0:de.index+1);var n=new ue(e,s({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),de.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=s({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var i=R(e,t,n);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.plugins.use(t)})),this},e}(),Ee=function(e){return new Ae(e)},je=function(){function e(){this.length=0,this.sheets=new WeakMap}var t=e.prototype;return t.get=function(e){var t=this.sheets.get(e);return t&&t.sheet},t.add=function(e,t){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:t,refs:0}))},t.manage=function(e){var t=this.sheets.get(e);if(t)return 0===t.refs&&t.sheet.attach(),t.refs++,t.sheet},t.unmanage=function(e){var t=this.sheets.get(e);t&&t.refs>0&&(t.refs--,0===t.refs&&t.sheet.detach())},v(e,[{key:"size",get:function(){return this.length}}]),e}(),Te="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Me(e){var t=null;for(var r in e){var n=e[r],i=typeof n;if("function"===i)t||(t={}),t[r]=n;else if("object"===i&&null!==n&&!Array.isArray(n)){var o=Me(n);o&&(t||(t={}),t[r]=o)}}return t}Ee();var Ie=Date.now(),_e="fnValues"+Ie,Le="fnStyle"+ ++Ie,Ve=r(603),$e=function(e){return e&&e[Ve.Z]&&e===e[Ve.Z]()},Ne=/;\n/,ze=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},r=e.split(Ne),n=0;n<r.length;n++){var i=(r[n]||"").trim();if(i){var o=i.indexOf(":");if(-1!==o){var s=i.substr(0,o).trim(),a=i.substr(o+1).trim();t[s]=a}}}return t}(e.style))},De="@global",Fe=function(){function e(e,t,r){for(var n in this.type="global",this.at=De,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new le(s({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),We=function(){function e(e,t,r){this.type="global",this.at=De,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,s({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ue=/\s*,\s*/g;function qe(e,t){for(var r=e.split(Ue),n="",i=0;i<r.length;i++)n+=t+" "+r[i].trim(),r[i+1]&&(n+=", ");return n}var He=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},Ge="extendCurrValue"+Date.now();function Be(e,t,r,n){return void 0===n&&(n={}),function(e,t,r,n){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var i=0;i<e.extend.length;i++){var o=e.extend[i];Be("string"==typeof o?s({},e,{extend:o}):e.extend[i],t,r,n)}else for(var a in e.extend)"extend"!==a?He(e.extend[a])?(a in n||(n[a]={}),Be(e.extend[a],t,r,n[a])):n[a]=e.extend[a]:Be(e.extend.extend,t,r,n);else{if(!r)return;var l=r.getRule(e.extend);if(!l)return;if(l===t)return;var u=l.options.parent;u&&Be(u.rules.raw[e.extend],t,r,n)}}(e,t,r,n),function(e,t,r,n){for(var i in e)"extend"!==i&&(He(n[i])&&He(e[i])?Be(e[i],t,r,n[i]):He(e[i])?n[i]=Be(e[i],t,r):n[i]=e[i])}(e,t,r,n),n}var Xe=function(){return{onProcessStyle:function(e,t,r){return"extend"in e?Be(e,t,r):e},onChangeValue:function(e,t,r){if("extend"!==t)return e;if(null==e||!1===e){for(var n in r[Ge])r.prop(n,null);return r[Ge]=null,null}if("object"==typeof e){for(var i in e)r.prop(i,e[i]);r[Ge]=e}return null}}},Je=/\s*,\s*/g,Ye=/&/g,Ze=/\$([\w-]+)/g,Ke=function(){function e(e,t){return function(r,n){var i=e.getRule(n)||t&&t.getRule(n);return i?i.selector:n}}function t(e,t){for(var r=t.split(Je),n=e.split(Je),i="",o=0;o<r.length;o++)for(var s=r[o],a=0;a<n.length;a++){var l=n[a];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Ye,s):s+" "+l}return i}function r(e,t,r){if(r)return s({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var i=s({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(n,i,o){if("style"!==i.type)return n;var a,l,u=i,c=u.options.parent;for(var f in n){var d=-1!==f.indexOf("&"),p="@"===f[0];if(d||p){if(a=r(u,c,a),d){var h=t(f,u.selector);l||(l=e(c,o)),h=h.replace(Ze,l);var y=u.key+"-"+f;"replaceRule"in c?c.replaceRule(y,n[f],s({},a,{selector:h})):c.addRule(y,n[f],s({},a,{selector:h}))}else p&&c.addRule(f,{},a).addRule(u.key,n[f],{selector:u.selector});delete n[f]}}return n}}};function Qe(e,t){if(!t)return!0;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(!Qe(e,t[r]))return!1;return!0}if(t.indexOf(" ")>-1)return Qe(e,t.split(" "));var n=e.options.parent;if("$"===t[0]){var i=n.getRule(t.substr(1));return!!i&&i!==e&&(n.classes[e.key]+=" "+n.classes[i.key],!0)}return n.classes[e.key]+=" "+t,!0}var et=function(){return{onProcessStyle:function(e,t){return"composes"in e?(Qe(t,e.composes),delete e.composes,e):e}}},tt=/[A-Z]/g,rt=/^ms-/,nt={};function it(e){return"-"+e.toLowerCase()}var ot=function(e){if(nt.hasOwnProperty(e))return nt[e];var t=e.replace(tt,it);return nt[e]=rt.test(t)?"-"+t:t};function st(e){var t={};for(var r in e)t[0===r.indexOf("--")?r:ot(r)]=e[r];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(st):t.fallbacks=st(e.fallbacks)),t}var at=Te&&CSS?CSS.px:"px",lt=Te&&CSS?CSS.ms:"ms",ut=Te&&CSS?CSS.percent:"%";function ct(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var i in e)n[i]=e[i],n[i.replace(t,r)]=e[i];return n}var ft=ct({"animation-delay":lt,"animation-duration":lt,"background-position":at,"background-position-x":at,"background-position-y":at,"background-size":at,border:at,"border-bottom":at,"border-bottom-left-radius":at,"border-bottom-right-radius":at,"border-bottom-width":at,"border-left":at,"border-left-width":at,"border-radius":at,"border-right":at,"border-right-width":at,"border-top":at,"border-top-left-radius":at,"border-top-right-radius":at,"border-top-width":at,"border-width":at,"border-block":at,"border-block-end":at,"border-block-end-width":at,"border-block-start":at,"border-block-start-width":at,"border-block-width":at,"border-inline":at,"border-inline-end":at,"border-inline-end-width":at,"border-inline-start":at,"border-inline-start-width":at,"border-inline-width":at,"border-start-start-radius":at,"border-start-end-radius":at,"border-end-start-radius":at,"border-end-end-radius":at,margin:at,"margin-bottom":at,"margin-left":at,"margin-right":at,"margin-top":at,"margin-block":at,"margin-block-end":at,"margin-block-start":at,"margin-inline":at,"margin-inline-end":at,"margin-inline-start":at,padding:at,"padding-bottom":at,"padding-left":at,"padding-right":at,"padding-top":at,"padding-block":at,"padding-block-end":at,"padding-block-start":at,"padding-inline":at,"padding-inline-end":at,"padding-inline-start":at,"mask-position-x":at,"mask-position-y":at,"mask-size":at,height:at,width:at,"min-height":at,"max-height":at,"min-width":at,"max-width":at,bottom:at,left:at,top:at,right:at,inset:at,"inset-block":at,"inset-block-end":at,"inset-block-start":at,"inset-inline":at,"inset-inline-end":at,"inset-inline-start":at,"box-shadow":at,"text-shadow":at,"column-gap":at,"column-rule":at,"column-rule-width":at,"column-width":at,"font-size":at,"font-size-delta":at,"letter-spacing":at,"text-decoration-thickness":at,"text-indent":at,"text-stroke":at,"text-stroke-width":at,"word-spacing":at,motion:at,"motion-offset":at,outline:at,"outline-offset":at,"outline-width":at,perspective:at,"perspective-origin-x":ut,"perspective-origin-y":ut,"transform-origin":ut,"transform-origin-x":ut,"transform-origin-y":ut,"transform-origin-z":ut,"transition-delay":lt,"transition-duration":lt,"vertical-align":at,"flex-basis":at,"shape-margin":at,size:at,gap:at,grid:at,"grid-gap":at,"row-gap":at,"grid-row-gap":at,"grid-column-gap":at,"grid-template-rows":at,"grid-template-columns":at,"grid-auto-rows":at,"grid-auto-columns":at,"box-shadow-x":at,"box-shadow-y":at,"box-shadow-blur":at,"box-shadow-spread":at,"font-line-height":at,"text-shadow-x":at,"text-shadow-y":at,"text-shadow-blur":at});function dt(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=dt(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=dt(i,t[i],r);else for(var o in t)t[o]=dt(e+"-"+o,t[o],r);else if("number"==typeof t&&!1===isNaN(t)){var s=r[e]||ft[e];return!s||0===t&&s===at?t.toString():"function"==typeof s?s(t).toString():""+t+s}return t}var pt=function(e){void 0===e&&(e={});var t=ct(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=dt(n,e[n],t);return e},onChangeValue:function(e,r){return dt(r,e,t)}}},ht={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},yt={position:!0,size:!0},gt={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},mt={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function vt(e,t,r,n){return null==r[t]?e:0===e.length?[]:Array.isArray(e[0])?vt(e[0],t,r,n):"object"==typeof e[0]?function(e,t,r){return e.map((function(e){return bt(e,t,r,!1,!0)}))}(e,t,n):[e]}function bt(e,t,r,n,i){if(!gt[t]&&!mt[t])return[];var o=[];if(mt[t]&&(e=function(e,t,r,n){for(var i in r){var o=r[i];if(void 0!==e[i]&&(n||!t.prop(o))){var s,a=wt((s={},s[o]=e[i],s),t)[o];n?t.style.fallbacks[o]=a:t.style[o]=a}delete e[i]}return e}(e,r,mt[t],n)),Object.keys(e).length)for(var s in gt[t])e[s]?Array.isArray(e[s])?o.push(null===yt[s]?e[s]:e[s].join(" ")):o.push(e[s]):null!=gt[t][s]&&o.push(gt[t][s]);return!o.length||i?o:[o]}function wt(e,t,r){for(var n in e){var i=e[n];if(Array.isArray(i)){if(!Array.isArray(i[0])){if("fallbacks"===n){for(var o=0;o<e.fallbacks.length;o++)e.fallbacks[o]=wt(e.fallbacks[o],t,!0);continue}e[n]=vt(i,n,ht,t),e[n].length||delete e[n]}}else if("object"==typeof i){if("fallbacks"===n){e.fallbacks=wt(e.fallbacks,t,!0);continue}e[n]=bt(i,n,t,r),e[n].length||delete e[n]}else""===e[n]&&delete e[n]}return e}function xt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var kt="",St="",Rt="",Pt="",Ot=h&&"ontouchstart"in document.documentElement;if(h){var Ct={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},At=document.createElement("p").style;for(var Et in Ct)if(Et+"Transform"in At){kt=Et,St=Ct[Et];break}"Webkit"===kt&&"msHyphens"in At&&(kt="ms",St=Ct.ms,Pt="edge"),"Webkit"===kt&&"-apple-trailing-word"in At&&(Rt="apple")}var jt=kt,Tt=St,Mt=Rt,It=Pt,_t=Ot,Lt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===jt?"-webkit-"+e:Tt+e)}},Vt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===jt?Tt+"print-"+e:e)}},$t=/[-\s]+(.)?/g;function Nt(e,t){return t?t.toUpperCase():""}function zt(e){return e.replace($t,Nt)}function Dt(e){return zt("-"+e)}var Ft,Wt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===jt){var r="mask-image";if(zt(r)in t)return e;if(jt+Dt(r)in t)return Tt+e}return e}},Ut={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Mt||_t?e:Tt+e)}},qt={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:Tt+e)}},Ht={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:Tt+e)}},Gt={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===jt||"ms"===jt&&"edge"!==It?Tt+e:e)}},Bt={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===jt||"ms"===jt||"apple"===Mt?Tt+e:e)}},Xt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===jt?"WebkitColumn"+Dt(e)in t&&Tt+"column-"+e:"Moz"===jt&&"page"+Dt(e)in t&&"page-"+e)}},Jt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===jt)return e;var r=e.replace("-inline","");return jt+Dt(r)in t&&Tt+r}},Yt={supportedProperty:function(e,t){return zt(e)in t&&e}},Zt={supportedProperty:function(e,t){var r=Dt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:jt+r in t?Tt+e:"Webkit"!==jt&&"Webkit"+r in t&&"-webkit-"+e}},Kt={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===jt?""+Tt+e:e)}},Qt={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===jt?Tt+"scroll-chaining":e)}},er={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},tr={supportedProperty:function(e,t){var r=er[e];return!!r&&jt+Dt(r)in t&&Tt+r}},rr={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},nr=Object.keys(rr),ir=function(e){return Tt+e},or={supportedProperty:function(e,t,r){var n=r.multiple;if(nr.indexOf(e)>-1){var i=rr[e];if(!Array.isArray(i))return jt+Dt(i)in t&&Tt+i;if(!n)return!1;for(var o=0;o<i.length;o++)if(!(jt+Dt(i[0])in t))return!1;return i.map(ir)}return!1}},sr=[Lt,Vt,Wt,Ut,qt,Ht,Gt,Bt,Xt,Jt,Yt,Zt,Kt,Qt,tr,or],ar=sr.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),lr=sr.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,function(e){if(Array.isArray(e))return xt(e)}(r=t.noPrefill)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return xt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xt(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),e;var r}),[]),ur={};if(h){Ft=document.createElement("p");var cr=window.getComputedStyle(document.documentElement,"");for(var fr in cr)isNaN(fr)||(ur[cr[fr]]=cr[fr]);lr.forEach((function(e){return delete ur[e]}))}function dr(e,t){if(void 0===t&&(t={}),!Ft)return e;if(null!=ur[e])return ur[e];"transition"!==e&&"transform"!==e||(t[e]=e in Ft.style);for(var r=0;r<ar.length&&(ur[e]=ar[r](e,Ft.style,t),!ur[e]);r++);try{Ft.style[e]=""}catch(e){return!1}return ur[e]}var pr,hr={},yr={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},gr=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function mr(e,t,r){return"var"===t?"var":"all"===t?"all":"all"===r?", all":(t?dr(t):", "+dr(r))||t||r}function vr(e,t){var r=t;if(!pr||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=hr[n])return hr[n];try{pr.style[e]=r}catch(e){return hr[n]=!1,!1}if(yr[e])r=r.replace(gr,mr);else if(""===pr.style[e]&&("-ms-flex"===(r=Tt+r)&&(pr.style[e]="-ms-flexbox"),pr.style[e]=r,""===pr.style[e]))return hr[n]=!1,!1;return pr.style[e]="",hr[n]=r,hr[n]}h&&(pr=document.createElement("p"));var br=function(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var i=!1,o=dr(r);o&&o!==r&&(i=!0);var s=!1,a=vr(o,O(n));a&&a!==n&&(s=!0),(i||s)&&(i&&delete t[r],t[o||r]=a||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===jt?e:"@"+Tt+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return vr(t,O(e))||e}}},wr=function(e){return void 0===e&&(e={}),{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=R(e,{},r);return n[Le]=t,n},onProcessStyle:function(e,t){if(_e in t||Le in t)return e;var r={};for(var n in e){var i=e[n];"function"==typeof i&&(delete e[n],r[n]=i)}return t[_e]=r,e},onUpdate:function(e,t,r,n){var i=t,o=i[Le];o&&(i.style=o(e)||{});var s=i[_e];if(s)for(var a in s)i.prop(a,s[a](e),n)}},(r=e.observable,{onCreateRule:function(e,t,n){if(!$e(t))return null;var i=t,o=R(e,{},n);return i.subscribe((function(e){for(var t in e)o.prop(t,e[t],r)})),o},onProcessRule:function(e){if(!e||"style"===e.type){var t=e,n=t.style,i=function(e){var i=n[e];if(!$e(i))return"continue";delete n[e],i.subscribe({next:function(n){t.prop(e,n,r)}})};for(var o in n)i(o)}}}),{onProcessRule:ze},{onCreateRule:function(e,t,r){if(!e)return null;if(e===De)return new Fe(e,t,r);if("@"===e[0]&&"@global "===e.substr(0,8))return new We(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,i=n?n[De]:null;if(i){for(var o in i)t.addRule(o,i[o],s({},r,{selector:qe(o,e.selector)}));delete n[De]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var i in n)if("@"===i[0]&&i.substr(0,7)===De){var o=qe(i.substr(7),e.selector);t.addRule(o,n[i],s({},r,{selector:o})),delete n[i]}}(e,t))}},Xe(),Ke(),et(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=st(e[t]);return e}return st(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=ot(t);return t===n?e:(r.prop(n,e),null)}},pt(e.defaultUnit),{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var r=0;r<e.length;r++)e[r]=wt(e[r],t);return e}return wt(e,t)}},br(),(t=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n={},i=Object.keys(e).sort(t),o=0;o<i.length;o++)n[i[o]]=e[i[o]];return n}})]};var t,r},xr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kr=(function(e){var t={}}((function(e){return xr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Ee(wr())),Sr=function(e){void 0===e&&(e=kr);var t,r=new Map,n=0,i=function(){return(!t||t.rules.index.length>1e4)&&(t=e.createStyleSheet().attach()),t};function o(){var e=arguments,t=JSON.stringify(e),o=r.get(t);if(o)return o.className;var s=[];for(var a in e){var l=e[a];if(Array.isArray(l))for(var u=0;u<l.length;u++)s.push(l[u]);else s.push(l)}for(var c={},f=[],d=0;d<s.length;d++){var p=s[d];if(p){var h=p;if("string"==typeof p){var y=r.get(p);y&&(y.labels.length&&f.push.apply(f,y.labels),h=y.style)}h.label&&-1===f.indexOf(h.label)&&f.push(h.label),Object.assign(c,h)}}delete c.label;var g=(0===f.length?"css":f.join("-"))+"-"+n++;i().addRule(g,c);var m=i().classes[g],v={style:c,labels:f,className:m};return r.set(t,v),r.set(m,v),m}return o.getSheet=i,o}(),Rr=Sr,Pr=Number.MIN_SAFE_INTEGER||-1e9,Or=(0,e.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!h}),Cr=new Map,Ar=function(e,t){var r=e.managers;if(r)return r[t]||(r[t]=new je),r[t];var n=Cr.get(t);return n||(n=new je,Cr.set(t,n)),n},Er=function(e){var t=e.sheet,r=e.context,n=e.index,i=e.theme;t&&(Ar(r,n).manage(i),r.registry&&r.registry.add(t))},jr=Ee(wr()),Tr=new WeakMap,Mr=function(e){return Tr.get(e)},Ir=function(e){if(!e.context.disableStylesGeneration){var t=Ar(e.context,e.index),r=t.get(e.theme);if(r)return r;var n=e.context.jss||jr,i=function(e){var t=e.styles;return"function"!=typeof t?t:t(e.theme)}(e),o=Me(i),a=n.createStyleSheet(i,function(e,t){var r;e.context.id&&null!=e.context.id.minify&&(r=e.context.id.minify);var n=e.context.classNamePrefix||"";e.name&&!r&&(n+=e.name.replace(/\s/g,"-")+"-");var i="";return e.name&&(i=e.name+", "),i+="function"==typeof e.styles?"Themed":"Unthemed",s({},e.sheetOptions,{index:e.index,meta:i,classNamePrefix:n,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}(e,null!==o));return function(e,t){Tr.set(e,t)}(a,{dynamicStyles:o,styles:i}),t.add(e.theme,a),a}},_r=function(e,t){var r=Mr(e);if(r){var n={};for(var i in r.dynamicStyles)for(var o=e.rules.index.length,s=e.addRule(i,r.dynamicStyles[i]),a=o;a<e.rules.index.length;a++){var l=e.rules.index[a];e.updateOne(l,t),n[s===l?i:l.key]=l}return n}};function Lr(r){return r?e.useEffect:t().useInsertionEffect||e.useLayoutEffect}var Vr={};Symbol("react-jss-styled"),function(e){void 0===e&&(e=Rr)}();const $r=function(t,r){void 0===r&&(r={});var n=r,i=n.index,o=void 0===i?Pr++:i,s=n.theming,l=n.name,u=a(n,["index","theming","name"]),c=s&&s.context||d,f={};return function(r){var n=(0,e.useRef)(!0),i=(0,e.useContext)(Or),s=function(r){return"function"==typeof t&&(r||(0,e.useContext)(c))||Vr}(r&&r.theme),a=(0,e.useMemo)((function(){var e=Ir({context:i,styles:t,name:l,theme:s,index:o,sheetOptions:u});return e&&i.isSSR&&Er({index:o,context:i,sheet:e,theme:s}),[e,e?_r(e,r):null]}),[i,s]),d=a[0],p=a[1];Lr(i.isSSR)((function(){d&&p&&!n.current&&function(e,t,r){for(var n in r)t.updateOne(r[n],e)}(r,d,p)}),[r]),Lr(i.isSSR)((function(){return d&&Er({index:o,context:i,sheet:d,theme:s}),function(){d&&(function(e){e.sheet&&Ar(e.context,e.index).unmanage(e.theme)}({index:o,context:i,sheet:d,theme:s}),p&&function(e,t){for(var r in t)e.deleteRule(t[r])}(d,p))}}),[d]);var h=(0,e.useMemo)((function(){return d&&p?function(e,t){if(!t)return e.classes;var r=Mr(e);if(!r)return e.classes;var n={};for(var i in r.styles)n[i]=e.classes[i],i in t&&(n[i]+=" "+e.classes[t[i].key]);return n}(d,p):f}),[d,p]);return(0,e.useDebugValue)(h),(0,e.useDebugValue)(s===Vr?"No theme":s),(0,e.useEffect)((function(){n.current=!1})),h}}({component:{}});var Nr=r(322);const zr=()=>{},Dr=zr(),Fr=Object,Wr=e=>e===Dr,Ur=e=>"function"==typeof e,qr=(e,t)=>({...e,...t}),Hr=new WeakMap;let Gr=0;const Br=e=>{const t=typeof e,r=e&&e.constructor,n=r==Date;let i,o;if(Fr(e)!==e||n||r==RegExp)i=n?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(i=Hr.get(e),i)return i;if(i=++Gr+"~",Hr.set(e,i),r==Array){for(i="@",o=0;o<e.length;o++)i+=Br(e[o])+",";Hr.set(e,i)}if(r==Fr){i="#";const t=Fr.keys(e).sort();for(;!Wr(o=t.pop());)Wr(e[o])||(i+=o+":"+Br(e[o])+",");Hr.set(e,i)}}return i},Xr=new WeakMap,Jr={},Yr={},Zr="undefined",Kr=typeof window!=Zr,Qr=typeof document!=Zr,en=(e,t)=>{const r=Xr.get(e);return[()=>!Wr(t)&&e.get(t)||Jr,n=>{if(!Wr(t)){const i=e.get(t);t in Yr||(Yr[t]=i),r[5](t,qr(i,n),i||Jr)}},r[6],()=>!Wr(t)&&t in Yr?Yr[t]:!Wr(t)&&e.get(t)||Jr]};let tn=!0;const[rn,nn]=Kr&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[zr,zr],on={isOnline:()=>tn,isVisible:()=>{const e=Qr&&document.visibilityState;return Wr(e)||"hidden"!==e}},sn={initFocus:e=>(Qr&&document.addEventListener("visibilitychange",e),rn("focus",e),()=>{Qr&&document.removeEventListener("visibilitychange",e),nn("focus",e)}),initReconnect:e=>{const t=()=>{tn=!0,e()},r=()=>{tn=!1};return rn("online",t),rn("offline",r),()=>{nn("online",t),nn("offline",r)}}},an=!e.useId,ln=!Kr||"Deno"in window,un=ln?e.useEffect:e.useLayoutEffect,cn="undefined"!=typeof navigator&&navigator.connection,fn=!ln&&cn&&(["slow-2g","2g"].includes(cn.effectiveType)||cn.saveData),dn=e=>{if(Ur(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Br(e):"",t]};let pn=0;const hn=()=>++pn;async function yn(...e){const[t,r,n,i]=e,o=qr({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{});let s=o.populateCache;const a=o.rollbackOnError;let l=o.optimisticData;const u=o.throwOnError;if(Ur(r)){const e=r,n=[],i=t.keys();for(const r of i)!/^\$(inf|sub)\$/.test(r)&&e(t.get(r)._k)&&n.push(r);return Promise.all(n.map(c))}return c(r);async function c(r){const[i]=dn(r);if(!i)return;const[c,f]=en(t,i),[d,p,h,y]=Xr.get(t),g=()=>{const e=d[i];return(Ur(o.revalidate)?o.revalidate(c().data,r):!1!==o.revalidate)&&(delete h[i],delete y[i],e&&e[0])?e[0](2).then((()=>c().data)):c().data};if(e.length<3)return g();let m,v=n;const b=hn();p[i]=[b,0];const w=!Wr(l),x=c(),k=x.data,S=x._c,R=Wr(S)?k:S;if(w&&(l=Ur(l)?l(R,k):l,f({data:l,_c:R})),Ur(v))try{v=v(R)}catch(e){m=e}if(v&&Ur(v.then)){if(v=await v.catch((e=>{m=e})),b!==p[i][0]){if(m)throw m;return v}m&&w&&(e=>"function"==typeof a?a(e):!1!==a)(m)&&(s=!0,f({data:R,_c:Dr}))}if(s&&!m)if(Ur(s)){const e=s(v,R);f({data:e,error:Dr,_c:Dr})}else f({data:v,error:Dr,_c:Dr});if(p[i][1]=hn(),Promise.resolve(g()).then((()=>{f({_c:Dr})})),!m)return v;if(u)throw m}}const gn=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},mn=(e,t)=>{if(!Xr.has(e)){const r=qr(sn,t),n={},i=yn.bind(Dr,e);let o=zr;const s={},a=(e,t)=>{const r=s[e]||[];return s[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},l=(t,r,n)=>{e.set(t,r);const i=s[t];if(i)for(const e of i)e(r,n)},u=()=>{if(!Xr.has(e)&&(Xr.set(e,[n,{},{},{},i,l,a]),!ln)){const t=r.initFocus(setTimeout.bind(Dr,gn.bind(Dr,n,0))),i=r.initReconnect(setTimeout.bind(Dr,gn.bind(Dr,n,1)));o=()=>{t&&t(),i&&i(),Xr.delete(e)}}};return u(),[e,i,u,o]}return[e,Xr.get(e)[4]]},[vn,bn]=mn(new Map),wn=qr({onLoadingSlow:zr,onSuccess:zr,onError:zr,onErrorRetry:(e,__,t,r,n)=>{const i=t.errorRetryCount,o=n.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*t.errorRetryInterval;!Wr(i)&&o>i||setTimeout(r,s,n)},onDiscarded:zr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:fn?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:fn?5e3:3e3,compare:(e,t)=>Br(e)==Br(t),isPaused:()=>!1,cache:vn,mutate:bn,fallback:{}},on),xn=(e,t)=>{const r=qr(e,t);if(t){const{use:n,fallback:i}=e,{use:o,fallback:s}=t;n&&o&&(r.use=n.concat(o)),i&&s&&(r.fallback=qr(i,s))}return r},kn=(0,e.createContext)({}),Sn=Kr&&window.__SWR_DEVTOOLS_USE__,Rn=Sn?window.__SWR_DEVTOOLS_USE__:[],Pn=Rn.concat((e=>(t,r,n)=>{const i=r&&((...e)=>{const[n]=dn(t),[,,,i]=Xr.get(vn);if(n.startsWith("$inf$"))return r(...e);const o=i[n];return Wr(o)?r(...e):(delete i[n],o)});return e(t,i,n)}));Sn&&(window.__SWR_DEVTOOLS_REACT__=e);const On=e.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),Cn={dedupe:!0},An=(Fr.defineProperty((t=>{const{value:r}=t,n=(0,e.useContext)(kn),i=Ur(r),o=(0,e.useMemo)((()=>i?r(n):r),[i,n,r]),s=(0,e.useMemo)((()=>i?o:xn(n,o)),[i,n,o]),a=o&&o.provider,l=(0,e.useRef)(Dr);a&&!l.current&&(l.current=mn(a(s.cache||vn),o));const u=l.current;return u&&(s.cache=u[0],s.mutate=u[1]),un((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),(0,e.createElement)(kn.Provider,qr(t,{value:s}))}),"defaultValue",{value:wn}),En=(t,r,n)=>{const{cache:i,compare:o,suspense:s,fallbackData:a,revalidateOnMount:l,revalidateIfStale:u,refreshInterval:c,refreshWhenHidden:f,refreshWhenOffline:d,keepPreviousData:p}=n,[h,y,g,m]=Xr.get(i),[v,b]=dn(t),w=(0,e.useRef)(!1),x=(0,e.useRef)(!1),k=(0,e.useRef)(v),S=(0,e.useRef)(r),R=(0,e.useRef)(n),P=()=>R.current,O=()=>P().isVisible()&&P().isOnline(),[C,A,E,j]=en(i,v),T=(0,e.useRef)({}).current,M=Wr(a)?n.fallback[v]:a,I=(e,t)=>{for(const r in T){const n=r;if("data"===n){if(!o(e[n],t[n])){if(!Wr(e[n]))return!1;if(!o(W,t[n]))return!1}}else if(t[n]!==e[n])return!1}return!0},_=(0,e.useMemo)((()=>{const e=!!v&&!!r&&(Wr(l)?!P().isPaused()&&!s&&(!!Wr(u)||u):l),t=t=>{const r=qr(t);return delete r._k,e?{isValidating:!0,isLoading:!0,...r}:r},n=C(),i=j(),o=t(n),a=n===i?o:t(i);let c=o;return[()=>{const e=t(C());return I(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>a]}),[i,v]),L=(0,Nr.useSyncExternalStore)((0,e.useCallback)((e=>E(v,((t,r)=>{I(r,t)||e()}))),[i,v]),_[0],_[1]),V=!w.current,$=h[v]&&h[v].length>0,N=L.data,z=Wr(N)?M:N,D=L.error,F=(0,e.useRef)(z),W=p?Wr(N)?F.current:N:z,U=!($&&!Wr(D))&&(V&&!Wr(l)?l:!P().isPaused()&&(s?!Wr(z)&&u:Wr(z)||u)),q=!!(v&&r&&V&&U),H=Wr(L.isValidating)?q:L.isValidating,G=Wr(L.isLoading)?q:L.isLoading,B=(0,e.useCallback)((async e=>{const t=S.current;if(!v||!t||x.current||P().isPaused())return!1;let r,i,s=!0;const a=e||{},l=!g[v]||!a.dedupe,u=()=>an?!x.current&&v===k.current&&w.current:v===k.current,c={isValidating:!1,isLoading:!1},f=()=>{A(c)},d=()=>{const e=g[v];e&&e[1]===i&&delete g[v]},p={isValidating:!0};Wr(C().data)&&(p.isLoading=!0);try{if(l&&(A(p),n.loadingTimeout&&Wr(C().data)&&setTimeout((()=>{s&&u()&&P().onLoadingSlow(v,n)}),n.loadingTimeout),g[v]=[t(b),hn()]),[r,i]=g[v],r=await r,l&&setTimeout(d,n.dedupingInterval),!g[v]||g[v][1]!==i)return l&&u()&&P().onDiscarded(v),!1;c.error=Dr;const e=y[v];if(!Wr(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return f(),l&&u()&&P().onDiscarded(v),!1;const a=C().data;c.data=o(a,r)?a:r,l&&u()&&P().onSuccess(r,v,n)}catch(e){d();const t=P(),{shouldRetryOnError:r}=t;t.isPaused()||(c.error=e,l&&u()&&(t.onError(e,v,t),(!0===r||Ur(r)&&r(e))&&(P().revalidateOnFocus&&P().revalidateOnReconnect&&!O()||t.onErrorRetry(e,v,t,(e=>{const t=h[v];t&&t[0]&&t[0](3,e)}),{retryCount:(a.retryCount||0)+1,dedupe:!0}))))}return s=!1,f(),!0}),[v,i]),X=(0,e.useCallback)(((...e)=>yn(i,k.current,...e)),[]);if(un((()=>{S.current=r,R.current=n,Wr(N)||(F.current=N)})),un((()=>{if(!v)return;const e=B.bind(Dr,Cn);let t=0;const r=((e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}})(v,h,((r,n={})=>{if(0==r){const r=Date.now();P().revalidateOnFocus&&r>t&&O()&&(t=r+P().focusThrottleInterval,e())}else if(1==r)P().revalidateOnReconnect&&O()&&e();else{if(2==r)return B();if(3==r)return B(n)}}));return x.current=!1,k.current=v,w.current=!0,A({_k:b}),U&&(Wr(z)||ln?e():(n=e,Kr&&typeof window.requestAnimationFrame!=Zr?window.requestAnimationFrame(n):setTimeout(n,1))),()=>{x.current=!0,r()};var n}),[v]),un((()=>{let e;function t(){const t=Ur(c)?c(C().data):c;t&&-1!==e&&(e=setTimeout(r,t))}function r(){C().error||!f&&!P().isVisible()||!d&&!P().isOnline()?t():B(Cn).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[c,f,d,v]),(0,e.useDebugValue)(W),s&&Wr(z)&&v){if(!an&&ln)throw new Error("Fallback data is required when using suspense in SSR.");S.current=r,R.current=n,x.current=!1;const e=m[v];if(!Wr(e)){const t=X(e);On(t)}if(!Wr(D))throw D;{const e=B(Cn);Wr(W)||(e.status="fulfilled",e.value=!0),On(e)}}return{mutate:X,get data(){return T.data=!0,W},get error(){return T.error=!0,D},get isValidating(){return T.isValidating=!0,H},get isLoading(){return T.isLoading=!0,G}}},function(...t){const r=qr(wn,(0,e.useContext)(kn)),[n,i,o]=(e=>Ur(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(t),s=xn(r,o);let a=En;const{use:l}=s,u=(l||[]).concat(Pn);for(let e=u.length;e--;)a=u[e](a);return a(n,i||s.fetcher||null,s)});var En,jn=window.wp.apiFetch,Tn=r.n(jn);var Mn=()=>{const t=$r(),{value:r}=(()=>{const{data:e,mutate:t}=An(window.ClimbPress.RESTNamespace+"/grading-systems",(e=>Tn()({path:e})));return{value:null!=e?e:[],add:r=>{t([{id:r,name:r,grades:[]},...e])}}})(),n=r.map((e=>{let t=0;return e.grades.forEach((e=>{t=Math.max(t,e.difficulty)})),t})),i=Math.max(...n),o={};for(let e=0;e<i;e++)r.forEach((t=>{const r=t.grades.find((t=>t.difficulty==e));r&&(o[e]||(o[e]={}),o[e][t.id]=r.label)}));return(0,e.createElement)("div",{className:t.component},(0,e.createElement)("table",{className:"wp-list-table widefat fixed striped posts"},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,(0,e.createElement)("th",null,(s="Range of values",null!==(a=window.ClimbPress.i18n[s])&&void 0!==a?a:`? ${s} ?`)),r.map((t=>(0,e.createElement)("th",{key:t.id},t.name))))),(0,e.createElement)("tbody",null,Object.keys(o).map((t=>{const n=o[t];return(0,e.createElement)("tr",{key:t},(0,e.createElement)("td",null,t),r.map((t=>{var r;return(0,e.createElement)("td",{key:t.id},null!==(r=n?.[t.id])&&void 0!==r?r:"")})))})))));var s,a};i()((()=>{(0,o.render)((0,e.createElement)(Mn,null),document.getElementById(window.ClimbPress.rootId))}))}()}();
  • climbpress/trunk/dist/routes.asset.php

    r3024800 r3045938  
    1 <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-dom-ready', 'wp-element'), 'version' => 'bb17490b4d88065943a4');
     1<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-dom-ready', 'wp-element'), 'version' => '611d32c7b94aac3fc7d4');
  • climbpress/trunk/dist/routes.js

    r3024800 r3045938  
    1 !function(){var e={376:function(e){"use strict";var t={single_source_shortest_paths:function(e,n,r){var o={},i={};i[n]=0;var s,a,l,u,c,d,f,h=t.PriorityQueue.make();for(h.push(n,0);!h.empty();)for(l in a=(s=h.pop()).value,u=s.cost,c=e[a]||{})c.hasOwnProperty(l)&&(d=u+c[l],f=i[l],(void 0===i[l]||f>d)&&(i[l]=d,h.push(l,d),o[l]=a));if(void 0!==r&&void 0===i[r]){var p=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(p)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var o=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,o={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=e.sorter||r.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},654:function(e){"use strict";e.exports=function(e){for(var t=[],n=e.length,r=0;r<n;r++){var o=e.charCodeAt(r);if(o>=55296&&o<=56319&&n>r+1){var i=e.charCodeAt(r+1);i>=56320&&i<=57343&&(o=1024*(o-55296)+i-56320+65536,r+=1)}o<128?t.push(o):o<2048?(t.push(o>>6|192),t.push(63&o|128)):o<55296||o>=57344&&o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(63&o|128)):o>=65536&&o<=1114111?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(63&o|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},535:function(e,t,n){"use strict";var r=n(237),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var s=c(n);d&&(s=s.concat(d(n)));for(var a=l(t),m=l(n),g=0;g<s.length;++g){var y=s[g];if(!(i[y]||r&&r[y]||m&&m[y]||a&&a[y])){var v=f(n,y);try{u(t,y,v)}catch(e){}}}}return t}},119:function(e,t,n){const r=n(363),o=n(638),i=n(141),s=n(857);function a(e,t,n,i,s){const a=[].slice.call(arguments,1),l=a.length,u="function"==typeof a[l-1];if(!u&&!r())throw new Error("Callback required as last argument");if(!u){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=t,t=i=void 0):2!==l||t.getContext||(i=n,n=t,t=void 0),new Promise((function(r,s){try{const s=o.create(n,i);r(e(s,t,i))}catch(e){s(e)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(s=n,n=t,t=i=void 0):3===l&&(t.getContext&&void 0===s?(s=i,i=void 0):(s=i,i=n,n=t,t=void 0));try{const r=o.create(n,i);s(null,e(r,t,i))}catch(e){s(e)}}t.create=o.create,t.toCanvas=a.bind(null,i.render),t.toDataURL=a.bind(null,i.renderToDataURL),t.toString=a.bind(null,(function(e,t,n){return s.render(e,n)}))},363:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},539:function(e,t,n){const r=n(137).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=r(e),o=145===n?26:2*Math.ceil((n-13)/(2*t-2)),i=[n-7];for(let e=1;e<t-1;e++)i[e]=i[e-1]-o;return i.push(6),i.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),o=r.length;for(let e=0;e<o;e++)for(let t=0;t<o;t++)0===e&&0===t||0===e&&t===o-1||e===o-1&&0===t||n.push([r[e],r[t]]);return n}},215:function(e,t,n){const r=n(965),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(e){this.mode=r.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*o.indexOf(this.data[t]);n+=o.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=i},520:function(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},844:function(e){function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){const o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},145:function(e,t,n){const r=n(654),o=n(965);function i(e){this.mode=o.BYTE,"string"==typeof e&&(e=r(e)),this.data=new Uint8Array(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=i},944:function(e,t,n){const r=n(873),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}}},873:function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},577:function(e,t,n){const r=n(137).getSymbolSize;t.getPositions=function(e){const t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},853:function(e,t,n){const r=n(137),o=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let i=n<<10;for(;r.getBCHDigit(i)-o>=0;)i^=1335<<r.getBCHDigit(i)-o;return 21522^(n<<10|i)}},670:function(e,t){const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285);for(let e=255;e<512;e++)n[e]=n[e-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},515:function(e,t,n){const r=n(965),o=n(137);function i(e){this.mode=r.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=o.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=i},662:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function n(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let n=0,r=0,o=0,i=null,s=null;for(let a=0;a<t;a++){r=o=0,i=s=null;for(let l=0;l<t;l++){let t=e.get(a,l);t===i?r++:(r>=5&&(n+=r-5+3),i=t,r=1),t=e.get(l,a),t===s?o++:(o>=5&&(n+=o-5+3),s=t,o=1)}r>=5&&(n+=r-5+3),o>=5&&(n+=o-5+3)}return n},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let r=0;r<t-1;r++)for(let o=0;o<t-1;o++){const t=e.get(r,o)+e.get(r,o+1)+e.get(r+1,o)+e.get(r+1,o+1);4!==t&&0!==t||n++}return 3*n},t.getPenaltyN3=function(e){const t=e.size;let n=0,r=0,o=0;for(let i=0;i<t;i++){r=o=0;for(let s=0;s<t;s++)r=r<<1&2047|e.get(i,s),s>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(s,i),s>=10&&(1488===o||93===o)&&n++}return 40*n},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return 10*Math.abs(Math.ceil(100*t/n/5)-10)},t.applyMask=function(e,t){const r=t.size;for(let o=0;o<r;o++)for(let i=0;i<r;i++)t.isReserved(i,o)||t.xor(i,o,n(e,i,o))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let o=0,i=1/0;for(let s=0;s<r;s++){n(s),t.applyMask(s,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(s,e),r<i&&(i=r,o=s)}return o}},965:function(e,t,n){const r=n(499),o=n(795);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},958:function(e,t,n){const r=n(965);function o(e){this.mode=r.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const o=this.data.length-t;o>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*o+1))},e.exports=o},94:function(e,t,n){const r=n(670);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let o=0;o<e.length;o++)for(let i=0;i<t.length;i++)n[o+i]^=r.mul(e[o],t[i]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let o=0;o<t.length;o++)n[o]^=r.mul(t[o],e);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let o=0;o<e;o++)n=t.mul(n,new Uint8Array([1,r.exp(o)]));return n}},638:function(e,t,n){const r=n(137),o=n(873),i=n(520),s=n(844),a=n(539),l=n(577),u=n(662),c=n(944),d=n(460),f=n(941),h=n(853),p=n(965),m=n(660);function g(e,t,n){const r=e.size,o=h.getEncodedBits(t,n);let i,s;for(i=0;i<15;i++)s=1==(o>>i&1),i<6?e.set(i,8,s,!0):i<8?e.set(i+1,8,s,!0):e.set(r-15+i,8,s,!0),i<8?e.set(8,r-i-1,s,!0):i<9?e.set(8,15-i-1+1,s,!0):e.set(8,15-i-1,s,!0);e.set(r-8,8,1,!0)}function y(e,t,n,o){let h;if(Array.isArray(e))h=m.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let r=t;if(!r){const t=m.rawSplit(e);r=f.getBestVersionForData(t,n)}h=m.fromString(e,r||40)}}const y=f.getBestVersionForData(h,n);if(!y)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<y)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+y+".\n")}else t=y;const v=function(e,t,n){const o=new i;n.forEach((function(t){o.put(t.mode.bit,4),o.put(t.getLength(),p.getCharCountIndicator(t.mode,e)),t.write(o)}));const s=8*(r.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,t));for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);const a=(s-o.getLengthInBits())/8;for(let e=0;e<a;e++)o.put(e%2?17:236,8);return function(e,t,n){const o=r.getSymbolTotalCodewords(t),i=o-c.getTotalCodewordsCount(t,n),s=c.getBlocksCount(t,n),a=s-o%s,l=Math.floor(o/s),u=Math.floor(i/s),f=u+1,h=l-u,p=new d(h);let m=0;const g=new Array(s),y=new Array(s);let v=0;const b=new Uint8Array(e.buffer);for(let e=0;e<s;e++){const t=e<a?u:f;g[e]=b.slice(m,m+t),y[e]=p.encode(g[e]),m+=t,v=Math.max(v,t)}const w=new Uint8Array(o);let x,k,E=0;for(x=0;x<v;x++)for(k=0;k<s;k++)x<g[k].length&&(w[E++]=g[k][x]);for(x=0;x<h;x++)for(k=0;k<s;k++)w[E++]=y[k][x];return w}(o,e,t)}(t,n,h),b=r.getSymbolSize(t),w=new s(b);return function(e,t){const n=e.size,r=l.getPositions(t);for(let t=0;t<r.length;t++){const o=r[t][0],i=r[t][1];for(let t=-1;t<=7;t++)if(!(o+t<=-1||n<=o+t))for(let r=-1;r<=7;r++)i+r<=-1||n<=i+r||(t>=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(o+t,i+r,!0,!0):e.set(o+t,i+r,!1,!0))}}(w,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(w),function(e,t){const n=a.getPositions(t);for(let t=0;t<n.length;t++){const r=n[t][0],o=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)-2===t||2===t||-2===n||2===n||0===t&&0===n?e.set(r+t,o+n,!0,!0):e.set(r+t,o+n,!1,!0)}}(w,t),g(w,n,0),t>=7&&function(e,t){const n=e.size,r=f.getEncodedBits(t);let o,i,s;for(let t=0;t<18;t++)o=Math.floor(t/3),i=t%3+n-8-3,s=1==(r>>t&1),e.set(o,i,s,!0),e.set(i,o,s,!0)}(w,t),function(e,t){const n=e.size;let r=-1,o=n-1,i=7,s=0;for(let a=n-1;a>0;a-=2)for(6===a&&a--;;){for(let n=0;n<2;n++)if(!e.isReserved(o,a-n)){let r=!1;s<t.length&&(r=1==(t[s]>>>i&1)),e.set(o,a-n,r),i--,-1===i&&(s++,i=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}(w,v),isNaN(o)&&(o=u.getBestMask(w,g.bind(null,w,n))),u.applyMask(o,w),g(w,n,o),{modules:w,version:t,errorCorrectionLevel:n,maskPattern:o,segments:h}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");let n,i,s=o.M;return void 0!==t&&(s=o.from(t.errorCorrectionLevel,o.M),n=f.from(t.version),i=u.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),y(e,n,s,i)}},460:function(e,t,n){const r=n(94);function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),o=this.degree-n.length;if(o>0){const e=new Uint8Array(this.degree);return e.set(n,o),e}return n},e.exports=o},795:function(e,t){const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const i=new RegExp("^"+r+"$"),s=new RegExp("^"+n+"$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return s.test(e)},t.testAlphanumeric=function(e){return a.test(e)}},660:function(e,t,n){const r=n(965),o=n(958),i=n(215),s=n(145),a=n(515),l=n(795),u=n(137),c=n(376);function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,n){const r=[];let o;for(;null!==(o=e.exec(n));)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function h(e){const t=f(l.NUMERIC,r.NUMERIC,e),n=f(l.ALPHANUMERIC,r.ALPHANUMERIC,e);let o,i;return u.isKanjiModeEnabled()?(o=f(l.BYTE,r.BYTE,e),i=f(l.KANJI,r.KANJI,e)):(o=f(l.BYTE_KANJI,r.BYTE,e),i=[]),t.concat(n,o,i).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function p(e,t){switch(t){case r.NUMERIC:return o.getBitsLength(e);case r.ALPHANUMERIC:return i.getBitsLength(e);case r.KANJI:return a.getBitsLength(e);case r.BYTE:return s.getBitsLength(e)}}function m(e,t){let n;const l=r.getBestModeForData(e);if(n=r.from(t,l),n!==r.BYTE&&n.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(l));switch(n!==r.KANJI||u.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new o(e);case r.ALPHANUMERIC:return new i(e);case r.KANJI:return new a(e);case r.BYTE:return new s(e)}}t.fromArray=function(e){return e.reduce((function(e,t){return"string"==typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e}),[])},t.fromString=function(e,n){const o=function(e){const t=[];for(let n=0;n<e.length;n++){const o=e[n];switch(o.mode){case r.NUMERIC:t.push([o,{data:o.data,mode:r.ALPHANUMERIC,length:o.length},{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.ALPHANUMERIC:t.push([o,{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.KANJI:t.push([o,{data:o.data,mode:r.BYTE,length:d(o.data)}]);break;case r.BYTE:t.push([{data:o.data,mode:r.BYTE,length:d(o.data)}])}}return t}(h(e,u.isKanjiModeEnabled())),i=function(e,t){const n={},o={start:{}};let i=["start"];for(let s=0;s<e.length;s++){const a=e[s],l=[];for(let e=0;e<a.length;e++){const u=a[e],c=""+s+e;l.push(c),n[c]={node:u,lastCount:0},o[c]={};for(let e=0;e<i.length;e++){const s=i[e];n[s]&&n[s].node.mode===u.mode?(o[s][c]=p(n[s].lastCount+u.length,u.mode)-p(n[s].lastCount,u.mode),n[s].lastCount+=u.length):(n[s]&&(n[s].lastCount=u.length),o[s][c]=p(u.length,u.mode)+4+r.getCharCountIndicator(u.mode,t))}}i=l}for(let e=0;e<i.length;e++)o[i[e]].end=0;return{map:o,table:n}}(o,n),s=c.find_path(i.map,"start","end"),a=[];for(let e=1;e<s.length-1;e++)a.push(i.table[s[e]].node);return t.fromArray(a.reduce((function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[]))},t.rawSplit=function(e){return t.fromArray(h(e,u.isKanjiModeEnabled()))}},137:function(e,t){let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},499:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},941:function(e,t,n){const r=n(137),o=n(944),i=n(873),s=n(965),a=n(499),l=r.getBCHDigit(7973);function u(e,t){return s.getCharCountIndicator(e,t)+4}function c(e,t){let n=0;return e.forEach((function(e){const r=u(e.mode,t);n+=r+e.getBitsLength()})),n}t.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!a.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=s.BYTE);const i=8*(r.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t));if(n===s.MIXED)return i;const l=i-u(n,e);switch(n){case s.NUMERIC:return Math.floor(l/10*3);case s.ALPHANUMERIC:return Math.floor(l/11*2);case s.KANJI:return Math.floor(l/13);case s.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let r;const o=i.from(n,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(c(e,r)<=t.getCapacity(r,n,s.MIXED))return r}(e,o);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(r.mode,r.getLength(),o)},t.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<<r.getBCHDigit(t)-l;return e<<12|t}},141:function(e,t,n){const r=n(369);t.render=function(e,t,n){let o=n,i=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=r.getOptions(o);const s=r.getImageWidth(e.modules.size,o),a=i.getContext("2d"),l=a.createImageData(s,s);return r.qrToImageData(l.data,e,o),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(a,i,s),a.putImageData(l,0,0),i},t.renderToDataURL=function(e,n,r){let o=r;void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={});const i=t.render(e,n,o),s=o.type||"image/png",a=o.rendererOpts||{};return i.toDataURL(s,a.quality)}},857:function(e,t,n){const r=n(369);function o(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function i(e,t,n){let r=e+t;return void 0!==n&&(r+=" "+n),r}t.render=function(e,t,n){const s=r.getOptions(t),a=e.modules.size,l=e.modules.data,u=a+2*s.margin,c=s.color.light.a?"<path "+o(s.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",d="<path "+o(s.color.dark,"stroke")+' d="'+function(e,t,n){let r="",o=0,s=!1,a=0;for(let l=0;l<e.length;l++){const u=Math.floor(l%t),c=Math.floor(l/t);u||s||(s=!0),e[l]?(a++,l>0&&u>0&&e[l-1]||(r+=s?i("M",u+n,.5+c+n):i("m",o,0),o=0,s=!1),u+1<t&&e[l+1]||(r+=i("h",a),a=0)):o++}return r}(l,a,s.margin)+'"/>',f='viewBox="0 0 '+u+" "+u+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+f+' shape-rendering="crispEdges">'+c+d+"</svg>\n";return"function"==typeof n&&n(null,h),h}},369:function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:r,scale:r?4:o,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const o=n.modules.size,i=n.modules.data,s=t.getScale(o,r),a=Math.floor((o+2*r.margin)*s),l=r.margin*s,u=[r.color.light,r.color.dark];for(let t=0;t<a;t++)for(let n=0;n<a;n++){let c=4*(t*a+n),d=r.color.light;t>=l&&n>=l&&t<a-l&&n<a-l&&(d=u[i[Math.floor((t-l)/s)*o+Math.floor((n-l)/s)]?1:0]),e[c++]=d.r,e[c++]=d.g,e[c++]=d.b,e[c]=d.a}}},684:function(e,t){},198:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case a:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function k(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return k(e)||x(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},237:function(e,t,n){"use strict";e.exports=n(198)},603:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),e=n.hmd(e);var r=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e)},415:function(e,t,n){"use strict";var r=n(196),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return a((function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,n,t]),s((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},322:function(e,t,n){"use strict";e.exports=n(415)},196:function(e){"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=n(196),t=n.n(e),r=window.wp.domReady,o=n.n(r),i=window.wp.element;const s=e=>{var t;return null!==(t=window.ClimbPress.i18n[e])&&void 0!==t?t:`? ${e} ?`},a=()=>window.ClimbPress.RESTNamespace,l=()=>window.ClimbPress.gradingSystems,u=e=>{var t;return null!==(t=l().find((t=>t.id==e)))&&void 0!==t?t:null};var c=window.wp.apiFetch,d=n.n(c),f=n(322);const h=()=>{},p=h(),m=Object,g=e=>e===p,y=e=>"function"==typeof e,v=(e,t)=>({...e,...t}),b=new WeakMap;let w=0;const x=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(m(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=b.get(e),o)return o;if(o=++w+"~",b.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=x(e[i])+",";b.set(e,o)}if(n==m){o="#";const t=m.keys(e).sort();for(;!g(i=t.pop());)g(e[i])||(o+=i+":"+x(e[i])+",");b.set(e,o)}}return o},k=new WeakMap,E={},S={},C="undefined",R=typeof window!=C,P=typeof document!=C,A=(e,t)=>{const n=k.get(e);return[()=>!g(t)&&e.get(t)||E,r=>{if(!g(t)){const o=e.get(t);t in S||(S[t]=o),n[5](t,v(o,r),o||E)}},n[6],()=>!g(t)&&t in S?S[t]:!g(t)&&e.get(t)||E]};let T=!0;const[M,I]=R&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[h,h],N={isOnline:()=>T,isVisible:()=>{const e=P&&document.visibilityState;return g(e)||"hidden"!==e}},O={initFocus:e=>(P&&document.addEventListener("visibilitychange",e),M("focus",e),()=>{P&&document.removeEventListener("visibilitychange",e),I("focus",e)}),initReconnect:e=>{const t=()=>{T=!0,e()},n=()=>{T=!1};return M("online",t),M("offline",n),()=>{I("online",t),I("offline",n)}}},L=!e.useId,B=!R||"Deno"in window,j=B?e.useEffect:e.useLayoutEffect,D="undefined"!=typeof navigator&&navigator.connection,z=!B&&D&&(["slow-2g","2g"].includes(D.effectiveType)||D.saveData),U=e=>{if(y(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?x(e):"",t]};let F=0;const _=()=>++F;async function V(...e){const[t,n,r,o]=e,i=v({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let s=i.populateCache;const a=i.rollbackOnError;let l=i.optimisticData;const u=!1!==i.revalidate,c=i.throwOnError;if(y(n)){const e=n,r=[],o=t.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(d))}return d(n);async function d(n){const[o]=U(n);if(!o)return;const[i,d]=A(t,o),[f,h,m,v]=k.get(t),b=()=>{const e=f[o];return u&&(delete m[o],delete v[o],e&&e[0])?e[0](2).then((()=>i().data)):i().data};if(e.length<3)return b();let w,x=r;const E=_();h[o]=[E,0];const S=!g(l),C=i(),R=C.data,P=C._c,T=g(P)?R:P;if(S&&(l=y(l)?l(T,R):l,d({data:l,_c:T})),y(x))try{x=x(T)}catch(e){w=e}if(x&&y(x.then)){if(x=await x.catch((e=>{w=e})),E!==h[o][0]){if(w)throw w;return x}w&&S&&(e=>"function"==typeof a?a(e):!1!==a)(w)&&(s=!0,d({data:T,_c:p}))}if(s&&!w)if(y(s)){const e=s(x,T);d({data:e,error:p,_c:p})}else d({data:x,error:p,_c:p});if(h[o][1]=_(),Promise.resolve(b()).then((()=>{d({_c:p})})),!w)return x;if(c)throw w}}const H=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},$=(e,t)=>{if(!k.has(e)){const n=v(O,t),r={},o=V.bind(p,e);let i=h;const s={},a=(e,t)=>{const n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,r)=>{e.set(t,n);const o=s[t];if(o)for(const e of o)e(n,r)},u=()=>{if(!k.has(e)&&(k.set(e,[r,{},{},{},o,l,a]),!B)){const t=n.initFocus(setTimeout.bind(p,H.bind(p,r,0))),o=n.initReconnect(setTimeout.bind(p,H.bind(p,r,1)));i=()=>{t&&t(),o&&o(),k.delete(e)}}};return u(),[e,o,u,i]}return[e,k.get(e)[4]]},[q,W]=$(new Map),J=v({onLoadingSlow:h,onSuccess:h,onError:h,onErrorRetry:(e,__,t,n,r)=>{const o=t.errorRetryCount,i=r.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*t.errorRetryInterval;!g(o)&&i>o||setTimeout(n,s,r)},onDiscarded:h,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:z?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:z?5e3:3e3,compare:(e,t)=>x(e)==x(t),isPaused:()=>!1,cache:q,mutate:W,fallback:{}},N),Y=(e,t)=>{const n=v(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:s}=t;r&&i&&(n.use=r.concat(i)),o&&s&&(n.fallback=v(o,s))}return n},Z=(0,e.createContext)({}),K=R&&window.__SWR_DEVTOOLS_USE__,G=K?window.__SWR_DEVTOOLS_USE__:[],Q=G.concat((e=>(t,n,r)=>{const o=n&&((...e)=>{const[r]=U(t),[,,,o]=k.get(q);if(r.startsWith("$inf$"))return n(...e);const i=o[r];return g(i)?n(...e):(delete o[r],i)});return e(t,o,r)}));K&&(window.__SWR_DEVTOOLS_REACT__=e);const X=e.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),ee={dedupe:!0},te=(m.defineProperty((t=>{const{value:n}=t,r=(0,e.useContext)(Z),o=y(n),i=(0,e.useMemo)((()=>o?n(r):n),[o,r,n]),s=(0,e.useMemo)((()=>o?i:Y(r,i)),[o,r,i]),a=i&&i.provider,l=(0,e.useRef)(p);a&&!l.current&&(l.current=$(a(s.cache||q),i));const u=l.current;return u&&(s.cache=u[0],s.mutate=u[1]),j((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),(0,e.createElement)(Z.Provider,v(t,{value:s}))}),"defaultValue",{value:J}),ne=(t,n,r)=>{const{cache:o,compare:i,suspense:s,fallbackData:a,revalidateOnMount:l,revalidateIfStale:u,refreshInterval:c,refreshWhenHidden:d,refreshWhenOffline:h,keepPreviousData:m}=r,[b,w,x,E]=k.get(o),[S,P]=U(t),T=(0,e.useRef)(!1),M=(0,e.useRef)(!1),I=(0,e.useRef)(S),N=(0,e.useRef)(n),O=(0,e.useRef)(r),D=()=>O.current,z=()=>D().isVisible()&&D().isOnline(),[F,H,$,q]=A(o,S),W=(0,e.useRef)({}).current,J=g(a)?r.fallback[S]:a,Y=(e,t)=>{for(const n in W){const r=n;if("data"===r){if(!i(e[r],t[r])){if(!g(e[r]))return!1;if(!i(ie,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},Z=(0,e.useMemo)((()=>{const e=!!S&&!!n&&(g(l)?!D().isPaused()&&!s&&(!!g(u)||u):l),t=t=>{const n=v(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=F(),o=q(),i=t(r),a=r===o?i:t(o);let c=i;return[()=>{const e=t(F());return Y(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>a]}),[o,S]),K=(0,f.useSyncExternalStore)((0,e.useCallback)((e=>$(S,((t,n)=>{Y(n,t)||e()}))),[o,S]),Z[0],Z[1]),G=!T.current,Q=b[S]&&b[S].length>0,te=K.data,ne=g(te)?J:te,re=K.error,oe=(0,e.useRef)(ne),ie=m?g(te)?oe.current:te:ne,se=!(Q&&!g(re))&&(G&&!g(l)?l:!D().isPaused()&&(s?!g(ne)&&u:g(ne)||u)),ae=!!(S&&n&&G&&se),le=g(K.isValidating)?ae:K.isValidating,ue=g(K.isLoading)?ae:K.isLoading,ce=(0,e.useCallback)((async e=>{const t=N.current;if(!S||!t||M.current||D().isPaused())return!1;let n,o,s=!0;const a=e||{},l=!x[S]||!a.dedupe,u=()=>L?!M.current&&S===I.current&&T.current:S===I.current,c={isValidating:!1,isLoading:!1},d=()=>{H(c)},f=()=>{const e=x[S];e&&e[1]===o&&delete x[S]},h={isValidating:!0};g(F().data)&&(h.isLoading=!0);try{if(l&&(H(h),r.loadingTimeout&&g(F().data)&&setTimeout((()=>{s&&u()&&D().onLoadingSlow(S,r)}),r.loadingTimeout),x[S]=[t(P),_()]),[n,o]=x[S],n=await n,l&&setTimeout(f,r.dedupingInterval),!x[S]||x[S][1]!==o)return l&&u()&&D().onDiscarded(S),!1;c.error=p;const e=w[S];if(!g(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return d(),l&&u()&&D().onDiscarded(S),!1;const a=F().data;c.data=i(a,n)?a:n,l&&u()&&D().onSuccess(n,S,r)}catch(e){f();const t=D(),{shouldRetryOnError:n}=t;t.isPaused()||(c.error=e,l&&u()&&(t.onError(e,S,t),(!0===n||y(n)&&n(e))&&z()&&t.onErrorRetry(e,S,t,(e=>{const t=b[S];t&&t[0]&&t[0](3,e)}),{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return s=!1,d(),!0}),[S,o]),de=(0,e.useCallback)(((...e)=>V(o,I.current,...e)),[]);if(j((()=>{N.current=n,O.current=r,g(te)||(oe.current=te)})),j((()=>{if(!S)return;const e=ce.bind(p,ee);let t=0;const n=((e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(S,b,((n,r={})=>{if(0==n){const n=Date.now();D().revalidateOnFocus&&n>t&&z()&&(t=n+D().focusThrottleInterval,e())}else if(1==n)D().revalidateOnReconnect&&z()&&e();else{if(2==n)return ce();if(3==n)return ce(r)}}));return M.current=!1,I.current=S,T.current=!0,H({_k:P}),se&&(g(ne)||B?e():(r=e,R&&typeof window.requestAnimationFrame!=C?window.requestAnimationFrame(r):setTimeout(r,1))),()=>{M.current=!0,n()};var r}),[S]),j((()=>{let e;function t(){const t=y(c)?c(F().data):c;t&&-1!==e&&(e=setTimeout(n,t))}function n(){F().error||!d&&!D().isVisible()||!h&&!D().isOnline()?t():ce(ee).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[c,d,h,S]),(0,e.useDebugValue)(ie),s&&g(ne)&&S){if(!L&&B)throw new Error("Fallback data is required when using suspense in SSR.");N.current=n,O.current=r,M.current=!1;const e=E[S];if(!g(e)){const t=de(e);X(t)}if(!g(re))throw re;{const e=ce(ee);g(ie)||(e.status="fulfilled",e.value=!0),X(e)}}return{mutate:de,get data(){return W.data=!0,ie},get error(){return W.error=!0,re},get isValidating(){return W.isValidating=!0,le},get isLoading(){return W.isLoading=!0,ue}}},function(...t){const n=v(J,(0,e.useContext)(Z)),[r,o,i]=(e=>y(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(t),s=Y(n,i);let a=ne;const{use:l}=s,u=(l||[]).concat(Q);for(let e=u.length;e--;)a=u[e](a);return a(r,o||s.fetcher||null,s)});var ne;function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},re.apply(this,arguments)}function oe(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n(535);function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(){return se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},se.apply(this,arguments)}function ae(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(684);var le,ue=(0,e.createContext)(),ce=(function(e){}(le=ue),function(e){}(le),function(e){var n=function(n){var r,o;function i(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return ie(ae(ae(r=n.call.apply(n,[this].concat(i))||this)),"cachedTheme",void 0),ie(ae(ae(r)),"lastOuterTheme",void 0),ie(ae(ae(r)),"lastTheme",void 0),ie(ae(ae(r)),"renderProvider",(function(n){var o=r.props.children;return t().createElement(e.Provider,{value:r.getTheme(n)},o)})),r}o=n,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var s=i.prototype;return s.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,"function"==typeof this.lastTheme){var t=this.props.theme;this.cachedTheme=t(e)}else{var n=this.props.theme;this.cachedTheme=e?se({},e,n):n}return this.cachedTheme},s.render=function(){return this.props.children?t().createElement(e.Consumer,null,this.renderProvider):null},i}(t().Component)}(le),"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),de="object"===("undefined"==typeof window?"undefined":ce(window))&&"object"===("undefined"==typeof document?"undefined":ce(document))&&9===document.nodeType;function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function he(e){var t=function(e,t){if("object"!==fe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==fe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===fe(t)?t:String(t)}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,he(r.key),r)}}function me(e,t,n){return t&&pe(e.prototype,t),n&&pe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ge(e,t){return ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ge(e,t)}function ye(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ge(e,t)}function ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var be={}.constructor;function we(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(we);if(e.constructor!==be)return e;var t={};for(var n in e)t[n]=we(e[n]);return t}function xe(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=we(t);return r.plugins.onCreateRule(e,o,n)||(e[0],null)}var ke=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Ee=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=ke(e[n]," ");else t=ke(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Se(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Ce(e,t){for(var n="",r=0;r<t;r++)n+="  ";return n+e}function Re(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,s=t.fallbacks;!1===n.format&&(i=-1/0);var a=Se(n),l=a.linebreak,u=a.space;if(e&&i++,s)if(Array.isArray(s))for(var c=0;c<s.length;c++){var d=s[c];for(var f in d){var h=d[f];null!=h&&(r&&(r+=l),r+=Ce(f+":"+u+Ee(h)+";",i))}}else for(var p in s){var m=s[p];null!=m&&(r&&(r+=l),r+=Ce(p+":"+u+Ee(m)+";",i))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=Ce(g+":"+u+Ee(y)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Ce(""+e+u+"{"+r,--i)+Ce("}",i)):r}var Pe=/([[\].#*$><+~=|^:(),"'`\s])/g,Ae="undefined"!=typeof CSS&&CSS.escape,Te=function(e){return Ae?Ae(e):e.replace(Pe,"\\$1")},Me=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,s=e in this.style;if(i&&!s&&!r)return this;var a=i&&s;if(a?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Ie=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,s=r.scoped,a=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==s&&(o.id=l(ve(ve(o)),a),o.selectorText="."+Te(o.id)),o}ye(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Ee(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?re({},e,{allowEmpty:!0}):e;return Re(this.selectorText,this.style,n)},me(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(Me),Ne={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Ie(e,t,n)}},Oe={indent:1,children:!0},Le=/@([\w-]+)/,Be=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Le);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new it(re({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Oe);var t=Se(e).linebreak;if(null==e.indent&&(e.indent=Oe.indent),null==e.children&&(e.children=Oe.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),je=/@container|@media|@supports\s+/,De={onCreateRule:function(e,t,n){return je.test(e)?new Be(e,t,n):null}},ze={indent:1,children:!0},Ue=/@keyframes\s+([\w-]+)/,Fe=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Ue);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,s=n.generateId;for(var a in this.id=!1===o?this.name:Te(s(this,i)),this.rules=new it(re({},n,{parent:this})),t)this.rules.add(a,t[a],re({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=ze);var t=Se(e).linebreak;if(null==e.indent&&(e.indent=ze.indent),null==e.children&&(e.children=ze.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),_e=/@keyframes\s+/,Ve=/\$([\w-]+)/g,He=function(e,t){return"string"==typeof e?e.replace(Ve,(function(e,n){return n in t?t[n]:e})):e},$e=function(e,t,n){var r=e[t],o=He(r,n);o!==r&&(e[t]=o)},qe={onCreateRule:function(e,t,n){return"string"==typeof e&&_e.test(e)?new Fe(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&$e(e,"animation-name",n.keyframes),"animation"in e&&$e(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return He(e,r.keyframes);default:return e}}},We=function(e){function t(){return e.apply(this,arguments)||this}return ye(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?re({},e,{allowEmpty:!0}):e;return Re(this.key,this.style,n)},t}(Me),Je={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new We(e,t,n):null}},Ye=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=Se(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Re(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Re(this.at,this.style,e)},e}(),Ze=/@font-face/,Ke={onCreateRule:function(e,t,n){return Ze.test(e)?new Ye(e,t,n):null}},Ge=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Re(this.key,this.style,e)},e}(),Qe={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Ge(e,t,n):null}},Xe=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),et={"@charset":!0,"@import":!0,"@namespace":!0},tt={onCreateRule:function(e,t,n){return e in et?new Xe(e,t,n):null}},nt=[Ne,De,qe,Je,Ke,Qe,tt],rt={process:!0},ot={force:!0,process:!0},it=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,s=r.jss,a=r.Renderer,l=r.generateId,u=r.scoped,c=re({classes:this.classes,parent:o,sheet:i,jss:s,Renderer:a,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+Te(this.classes[d]));var f=xe(d,t,c);if(!f)return null;this.register(f);var h=void 0===c.index?this.index.length:c.index;return this.index.splice(h,0,f),f},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=re({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Ie?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Fe&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Ie?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Fe&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=rt);var o=this.options,i=o.jss.plugins,s=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var a=t.style;if(i.onUpdate(n,t,s,r),r.process&&a&&a!==t.style){for(var l in i.onProcessStyle(t.style,t,s),t.style){var u=t.style[l];u!==a[l]&&t.prop(l,u,ot)}for(var c in a){var d=t.style[c],f=a[c];null==d&&d!==f&&t.prop(c,null,ot)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=Se(e).linebreak,i=0;i<this.index.length;i++){var s=this.index[i].toString(e);(s||r)&&(t&&(t+=o),t+=s)}return t},e}(),st=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=re({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new it(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),at=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),lt=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=oe(t,["attached"]),o=Se(r).linebreak,i="",s=0;s<this.registry.length;s++){var a=this.registry[s];null!=n&&a.attached!==n||(i&&(i+=o),i+=a.toString(r))}return i},me(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ut=new lt,ct="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),dt="2f1acc6c3a606b082e5eef5e54414ffb";null==ct[dt]&&(ct[dt]=0);var ft=ct[dt]++,ht=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+ft+o+t:i+n.key+"-"+ft+(o?"-"+o:"")+"-"+t}},pt=function(e){var t;return function(){return t||(t=e()),t}},mt=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},gt=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Ee(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},yt=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},vt=function(e,t){return e.selectorText=t,e.selectorText===t},bt=pt((function(){return document.querySelector("head")}));var wt=pt((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),xt=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},kt=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Et=function(){function e(e){this.getPropertyValue=mt,this.setProperty=gt,this.removeProperty=yt,this.setSelector=vt,this.hasInsertedRules=!1,this.cssRules=[],e&&ut.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=wt();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=ut.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=bt(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else bt().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=kt(n,t);if(!1===(o=xt(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var s=e.toString();if(!s)return!1;var a=kt(n,t),l=xt(n,s,a);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,a,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof st&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),St=0,Ct=function(){function e(e){this.id=St++,this.version="10.10.0",this.plugins=new at,this.options={id:{minify:!1},createGenerateId:ht,Renderer:de?Et:null,plugins:[]},this.generateId=ht({minify:!1});for(var t=0;t<nt.length;t++)this.plugins.use(nt[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=re({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===ut.index?0:ut.index+1);var r=new st(e,re({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),ut.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=re({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=xe(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Rt=function(e){return new Ct(e)},Pt=function(){function e(){this.length=0,this.sheets=new WeakMap}var t=e.prototype;return t.get=function(e){var t=this.sheets.get(e);return t&&t.sheet},t.add=function(e,t){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:t,refs:0}))},t.manage=function(e){var t=this.sheets.get(e);if(t)return 0===t.refs&&t.sheet.attach(),t.refs++,t.sheet},t.unmanage=function(e){var t=this.sheets.get(e);t&&t.refs>0&&(t.refs--,0===t.refs&&t.sheet.detach())},me(e,[{key:"size",get:function(){return this.length}}]),e}(),At="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Tt(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Tt(r);i&&(t||(t={}),t[n]=i)}}return t}Rt();var Mt=Date.now(),It="fnValues"+Mt,Nt="fnStyle"+ ++Mt,Ot=n(603),Lt=function(e){return e&&e[Ot.Z]&&e===e[Ot.Z]()},Bt=/;\n/,jt=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},n=e.split(Bt),r=0;r<n.length;r++){var o=(n[r]||"").trim();if(o){var i=o.indexOf(":");if(-1!==i){var s=o.substr(0,i).trim(),a=o.substr(i+1).trim();t[s]=a}}}return t}(e.style))},Dt="@global",zt=function(){function e(e,t,n){for(var r in this.type="global",this.at=Dt,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new it(re({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Ut=function(){function e(e,t,n){this.type="global",this.at=Dt,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,re({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ft=/\s*,\s*/g;function _t(e,t){for(var n=e.split(Ft),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var Vt=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},Ht="extendCurrValue"+Date.now();function $t(e,t,n,r){return void 0===r&&(r={}),function(e,t,n,r){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var o=0;o<e.extend.length;o++){var i=e.extend[o];$t("string"==typeof i?re({},e,{extend:i}):e.extend[o],t,n,r)}else for(var s in e.extend)"extend"!==s?Vt(e.extend[s])?(s in r||(r[s]={}),$t(e.extend[s],t,n,r[s])):r[s]=e.extend[s]:$t(e.extend.extend,t,n,r);else{if(!n)return;var a=n.getRule(e.extend);if(!a)return;if(a===t)return;var l=a.options.parent;l&&$t(l.rules.raw[e.extend],t,n,r)}}(e,t,n,r),function(e,t,n,r){for(var o in e)"extend"!==o&&(Vt(r[o])&&Vt(e[o])?$t(e[o],t,n,r[o]):Vt(e[o])?r[o]=$t(e[o],t,n):r[o]=e[o])}(e,t,n,r),r}var qt=function(){return{onProcessStyle:function(e,t,n){return"extend"in e?$t(e,t,n):e},onChangeValue:function(e,t,n){if("extend"!==t)return e;if(null==e||!1===e){for(var r in n[Ht])n.prop(r,null);return n[Ht]=null,null}if("object"==typeof e){for(var o in e)n.prop(o,e[o]);n[Ht]=e}return null}}},Wt=/\s*,\s*/g,Jt=/&/g,Yt=/\$([\w-]+)/g,Zt=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(Wt),r=e.split(Wt),o="",i=0;i<n.length;i++)for(var s=n[i],a=0;a<r.length;a++){var l=r[a];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Jt,s):s+" "+l}return o}function n(e,t,n){if(n)return re({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=re({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var s,a,l=o,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),f="@"===c[0];if(d||f){if(s=n(l,u,s),d){var h=t(c,l.selector);a||(a=e(u,i)),h=h.replace(Yt,a);var p=l.key+"-"+c;"replaceRule"in u?u.replaceRule(p,r[c],re({},s,{selector:h})):u.addRule(p,r[c],re({},s,{selector:h}))}else f&&u.addRule(c,{},s).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}};function Kt(e,t){if(!t)return!0;if(Array.isArray(t)){for(var n=0;n<t.length;n++)if(!Kt(e,t[n]))return!1;return!0}if(t.indexOf(" ")>-1)return Kt(e,t.split(" "));var r=e.options.parent;if("$"===t[0]){var o=r.getRule(t.substr(1));return!!o&&o!==e&&(r.classes[e.key]+=" "+r.classes[o.key],!0)}return r.classes[e.key]+=" "+t,!0}var Gt=function(){return{onProcessStyle:function(e,t){return"composes"in e?(Kt(t,e.composes),delete e.composes,e):e}}},Qt=/[A-Z]/g,Xt=/^ms-/,en={};function tn(e){return"-"+e.toLowerCase()}var nn=function(e){if(en.hasOwnProperty(e))return en[e];var t=e.replace(Qt,tn);return en[e]=Xt.test(t)?"-"+t:t};function rn(e){var t={};for(var n in e)t[0===n.indexOf("--")?n:nn(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(rn):t.fallbacks=rn(e.fallbacks)),t}var on=At&&CSS?CSS.px:"px",sn=At&&CSS?CSS.ms:"ms",an=At&&CSS?CSS.percent:"%";function ln(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var un=ln({"animation-delay":sn,"animation-duration":sn,"background-position":on,"background-position-x":on,"background-position-y":on,"background-size":on,border:on,"border-bottom":on,"border-bottom-left-radius":on,"border-bottom-right-radius":on,"border-bottom-width":on,"border-left":on,"border-left-width":on,"border-radius":on,"border-right":on,"border-right-width":on,"border-top":on,"border-top-left-radius":on,"border-top-right-radius":on,"border-top-width":on,"border-width":on,"border-block":on,"border-block-end":on,"border-block-end-width":on,"border-block-start":on,"border-block-start-width":on,"border-block-width":on,"border-inline":on,"border-inline-end":on,"border-inline-end-width":on,"border-inline-start":on,"border-inline-start-width":on,"border-inline-width":on,"border-start-start-radius":on,"border-start-end-radius":on,"border-end-start-radius":on,"border-end-end-radius":on,margin:on,"margin-bottom":on,"margin-left":on,"margin-right":on,"margin-top":on,"margin-block":on,"margin-block-end":on,"margin-block-start":on,"margin-inline":on,"margin-inline-end":on,"margin-inline-start":on,padding:on,"padding-bottom":on,"padding-left":on,"padding-right":on,"padding-top":on,"padding-block":on,"padding-block-end":on,"padding-block-start":on,"padding-inline":on,"padding-inline-end":on,"padding-inline-start":on,"mask-position-x":on,"mask-position-y":on,"mask-size":on,height:on,width:on,"min-height":on,"max-height":on,"min-width":on,"max-width":on,bottom:on,left:on,top:on,right:on,inset:on,"inset-block":on,"inset-block-end":on,"inset-block-start":on,"inset-inline":on,"inset-inline-end":on,"inset-inline-start":on,"box-shadow":on,"text-shadow":on,"column-gap":on,"column-rule":on,"column-rule-width":on,"column-width":on,"font-size":on,"font-size-delta":on,"letter-spacing":on,"text-decoration-thickness":on,"text-indent":on,"text-stroke":on,"text-stroke-width":on,"word-spacing":on,motion:on,"motion-offset":on,outline:on,"outline-offset":on,"outline-width":on,perspective:on,"perspective-origin-x":an,"perspective-origin-y":an,"transform-origin":an,"transform-origin-x":an,"transform-origin-y":an,"transform-origin-z":an,"transition-delay":sn,"transition-duration":sn,"vertical-align":on,"flex-basis":on,"shape-margin":on,size:on,gap:on,grid:on,"grid-gap":on,"row-gap":on,"grid-row-gap":on,"grid-column-gap":on,"grid-template-rows":on,"grid-template-columns":on,"grid-auto-rows":on,"grid-auto-columns":on,"box-shadow-x":on,"box-shadow-y":on,"box-shadow-blur":on,"box-shadow-spread":on,"font-line-height":on,"text-shadow-x":on,"text-shadow-y":on,"text-shadow-blur":on});function cn(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=cn(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=cn(o,t[o],n);else for(var i in t)t[i]=cn(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var s=n[e]||un[e];return!s||0===t&&s===on?t.toString():"function"==typeof s?s(t).toString():""+t+s}return t}var dn=function(e){void 0===e&&(e={});var t=ln(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=cn(r,e[r],t);return e},onChangeValue:function(e,n){return cn(n,e,t)}}},fn={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},hn={position:!0,size:!0},pn={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},mn={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function gn(e,t,n,r){return null==n[t]?e:0===e.length?[]:Array.isArray(e[0])?gn(e[0],t,n,r):"object"==typeof e[0]?function(e,t,n){return e.map((function(e){return yn(e,t,n,!1,!0)}))}(e,t,r):[e]}function yn(e,t,n,r,o){if(!pn[t]&&!mn[t])return[];var i=[];if(mn[t]&&(e=function(e,t,n,r){for(var o in n){var i=n[o];if(void 0!==e[o]&&(r||!t.prop(i))){var s,a=vn((s={},s[i]=e[o],s),t)[i];r?t.style.fallbacks[i]=a:t.style[i]=a}delete e[o]}return e}(e,n,mn[t],r)),Object.keys(e).length)for(var s in pn[t])e[s]?Array.isArray(e[s])?i.push(null===hn[s]?e[s]:e[s].join(" ")):i.push(e[s]):null!=pn[t][s]&&i.push(pn[t][s]);return!i.length||o?i:[i]}function vn(e,t,n){for(var r in e){var o=e[r];if(Array.isArray(o)){if(!Array.isArray(o[0])){if("fallbacks"===r){for(var i=0;i<e.fallbacks.length;i++)e.fallbacks[i]=vn(e.fallbacks[i],t,!0);continue}e[r]=gn(o,r,fn,t),e[r].length||delete e[r]}}else if("object"==typeof o){if("fallbacks"===r){e.fallbacks=vn(e.fallbacks,t,!0);continue}e[r]=yn(o,r,t,n),e[r].length||delete e[r]}else""===e[r]&&delete e[r]}return e}function bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wn="",xn="",kn="",En="",Sn=de&&"ontouchstart"in document.documentElement;if(de){var Cn={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Rn=document.createElement("p").style;for(var Pn in Cn)if(Pn+"Transform"in Rn){wn=Pn,xn=Cn[Pn];break}"Webkit"===wn&&"msHyphens"in Rn&&(wn="ms",xn=Cn.ms,En="edge"),"Webkit"===wn&&"-apple-trailing-word"in Rn&&(kn="apple")}var An=wn,Tn=xn,Mn=kn,In=En,Nn=Sn,On={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===An?"-webkit-"+e:Tn+e)}},Ln={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===An?Tn+"print-"+e:e)}},Bn=/[-\s]+(.)?/g;function jn(e,t){return t?t.toUpperCase():""}function Dn(e){return e.replace(Bn,jn)}function zn(e){return Dn("-"+e)}var Un,Fn={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===An){var n="mask-image";if(Dn(n)in t)return e;if(An+zn(n)in t)return Tn+e}return e}},Vn={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Mn||Nn?e:Tn+e)}},Hn={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Tn+e)}},$n={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Tn+e)}},qn={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===An||"ms"===An&&"edge"!==In?Tn+e:e)}},Wn={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===An||"ms"===An||"apple"===Mn?Tn+e:e)}},Jn={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===An?"WebkitColumn"+zn(e)in t&&Tn+"column-"+e:"Moz"===An&&"page"+zn(e)in t&&"page-"+e)}},Yn={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===An)return e;var n=e.replace("-inline","");return An+zn(n)in t&&Tn+n}},Zn={supportedProperty:function(e,t){return Dn(e)in t&&e}},Kn={supportedProperty:function(e,t){var n=zn(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:An+n in t?Tn+e:"Webkit"!==An&&"Webkit"+n in t&&"-webkit-"+e}},Gn={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===An?""+Tn+e:e)}},Qn={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===An?Tn+"scroll-chaining":e)}},Xn={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},er={supportedProperty:function(e,t){var n=Xn[e];return!!n&&An+zn(n)in t&&Tn+n}},tr={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},nr=Object.keys(tr),rr=function(e){return Tn+e},or={supportedProperty:function(e,t,n){var r=n.multiple;if(nr.indexOf(e)>-1){var o=tr[e];if(!Array.isArray(o))return An+zn(o)in t&&Tn+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(An+zn(o[0])in t))return!1;return o.map(rr)}return!1}},ir=[On,Ln,Fn,Vn,Hn,$n,qn,Wn,Jn,Yn,Zn,Kn,Gn,Qn,er,or],sr=ir.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),ar=ir.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,function(e){if(Array.isArray(e))return bn(e)}(n=t.noPrefill)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bn(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),e;var n}),[]),lr={};if(de){Un=document.createElement("p");var ur=window.getComputedStyle(document.documentElement,"");for(var cr in ur)isNaN(cr)||(lr[ur[cr]]=ur[cr]);ar.forEach((function(e){return delete lr[e]}))}function dr(e,t){if(void 0===t&&(t={}),!Un)return e;if(null!=lr[e])return lr[e];"transition"!==e&&"transform"!==e||(t[e]=e in Un.style);for(var n=0;n<sr.length&&(lr[e]=sr[n](e,Un.style,t),!lr[e]);n++);try{Un.style[e]=""}catch(e){return!1}return lr[e]}var fr,hr={},pr={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},mr=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function gr(e,t,n){return"var"===t?"var":"all"===t?"all":"all"===n?", all":(t?dr(t):", "+dr(n))||t||n}function yr(e,t){var n=t;if(!fr||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=hr[r])return hr[r];try{fr.style[e]=n}catch(e){return hr[r]=!1,!1}if(pr[e])n=n.replace(mr,gr);else if(""===fr.style[e]&&("-ms-flex"===(n=Tn+n)&&(fr.style[e]="-ms-flexbox"),fr.style[e]=n,""===fr.style[e]))return hr[r]=!1,!1;return fr.style[e]="",hr[r]=n,hr[r]}de&&(fr=document.createElement("p"));var vr=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=dr(n);i&&i!==n&&(o=!0);var s=!1,a=yr(i,Ee(r));a&&a!==r&&(s=!0),(o||s)&&(o&&delete t[n],t[i||n]=a||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===An?e:"@"+Tn+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return yr(t,Ee(e))||e}}},br=function(e){return void 0===e&&(e={}),{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=xe(e,{},n);return r[Nt]=t,r},onProcessStyle:function(e,t){if(It in t||Nt in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[It]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Nt];i&&(o.style=i(e)||{});var s=o[It];if(s)for(var a in s)o.prop(a,s[a](e),r)}},(n=e.observable,{onCreateRule:function(e,t,r){if(!Lt(t))return null;var o=t,i=xe(e,{},r);return o.subscribe((function(e){for(var t in e)i.prop(t,e[t],n)})),i},onProcessRule:function(e){if(!e||"style"===e.type){var t=e,r=t.style,o=function(e){var o=r[e];if(!Lt(o))return"continue";delete r[e],o.subscribe({next:function(r){t.prop(e,r,n)}})};for(var i in r)o(i)}}}),{onProcessRule:jt},{onCreateRule:function(e,t,n){if(!e)return null;if(e===Dt)return new zt(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,8))return new Ut(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Dt]:null;if(o){for(var i in o)t.addRule(i,o[i],re({},n,{selector:_t(i,e.selector)}));delete r[Dt]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===Dt){var i=_t(o.substr(7),e.selector);t.addRule(i,r[o],re({},n,{selector:i})),delete r[o]}}(e,t))}},qt(),Zt(),Gt(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=rn(e[t]);return e}return rn(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=nn(t);return t===r?e:(n.prop(r,e),null)}},dn(e.defaultUnit),{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var n=0;n<e.length;n++)e[n]=vn(e[n],t);return e}return vn(e,t)}},vr(),(t=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r={},o=Object.keys(e).sort(t),i=0;i<o.length;i++)r[o[i]]=e[o[i]];return r}})]};var t,n},wr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,xr=(function(e){var t={}}((function(e){return wr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Rt(br())),kr=function(e){void 0===e&&(e=xr);var t,n=new Map,r=0,o=function(){return(!t||t.rules.index.length>1e4)&&(t=e.createStyleSheet().attach()),t};function i(){var e=arguments,t=JSON.stringify(e),i=n.get(t);if(i)return i.className;var s=[];for(var a in e){var l=e[a];if(Array.isArray(l))for(var u=0;u<l.length;u++)s.push(l[u]);else s.push(l)}for(var c={},d=[],f=0;f<s.length;f++){var h=s[f];if(h){var p=h;if("string"==typeof h){var m=n.get(h);m&&(m.labels.length&&d.push.apply(d,m.labels),p=m.style)}p.label&&-1===d.indexOf(p.label)&&d.push(p.label),Object.assign(c,p)}}delete c.label;var g=(0===d.length?"css":d.join("-"))+"-"+r++;o().addRule(g,c);var y=o().classes[g],v={style:c,labels:d,className:y};return n.set(t,v),n.set(y,v),y}return i.getSheet=o,i}(),Er=kr,Sr=Number.MIN_SAFE_INTEGER||-1e9,Cr=(0,e.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!de}),Rr=new Map,Pr=function(e,t){var n=e.managers;if(n)return n[t]||(n[t]=new Pt),n[t];var r=Rr.get(t);return r||(r=new Pt,Rr.set(t,r)),r},Ar=function(e){var t=e.sheet,n=e.context,r=e.index,o=e.theme;t&&(Pr(n,r).manage(o),n.registry&&n.registry.add(t))},Tr=Rt(br()),Mr=new WeakMap,Ir=function(e){return Mr.get(e)},Nr=function(e){if(!e.context.disableStylesGeneration){var t=Pr(e.context,e.index),n=t.get(e.theme);if(n)return n;var r=e.context.jss||Tr,o=function(e){var t=e.styles;return"function"!=typeof t?t:t(e.theme)}(e),i=Tt(o),s=r.createStyleSheet(o,function(e,t){var n;e.context.id&&null!=e.context.id.minify&&(n=e.context.id.minify);var r=e.context.classNamePrefix||"";e.name&&!n&&(r+=e.name.replace(/\s/g,"-")+"-");var o="";return e.name&&(o=e.name+", "),o+="function"==typeof e.styles?"Themed":"Unthemed",re({},e.sheetOptions,{index:e.index,meta:o,classNamePrefix:r,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}(e,null!==i));return function(e,t){Mr.set(e,t)}(s,{dynamicStyles:i,styles:o}),t.add(e.theme,s),s}},Or=function(e,t){var n=Ir(e);if(n){var r={};for(var o in n.dynamicStyles)for(var i=e.rules.index.length,s=e.addRule(o,n.dynamicStyles[o]),a=i;a<e.rules.index.length;a++){var l=e.rules.index[a];e.updateOne(l,t),r[s===l?o:l.key]=l}return r}};function Lr(n){return n?e.useEffect:t().useInsertionEffect||e.useLayoutEffect}var Br={},jr=function(t,n){void 0===n&&(n={});var r=n,o=r.index,i=void 0===o?Sr++:o,s=r.theming,a=r.name,l=oe(r,["index","theming","name"]),u=s&&s.context||ue,c={};return function(n){var r=(0,e.useRef)(!0),o=(0,e.useContext)(Cr),s=function(n){return"function"==typeof t&&(n||(0,e.useContext)(u))||Br}(n&&n.theme),d=(0,e.useMemo)((function(){var e=Nr({context:o,styles:t,name:a,theme:s,index:i,sheetOptions:l});return e&&o.isSSR&&Ar({index:i,context:o,sheet:e,theme:s}),[e,e?Or(e,n):null]}),[o,s]),f=d[0],h=d[1];Lr(o.isSSR)((function(){f&&h&&!r.current&&function(e,t,n){for(var r in n)t.updateOne(n[r],e)}(n,f,h)}),[n]),Lr(o.isSSR)((function(){return f&&Ar({index:i,context:o,sheet:f,theme:s}),function(){f&&(function(e){e.sheet&&Pr(e.context,e.index).unmanage(e.theme)}({index:i,context:o,sheet:f,theme:s}),h&&function(e,t){for(var n in t)e.deleteRule(t[n])}(f,h))}}),[f]);var p=(0,e.useMemo)((function(){return f&&h?function(e,t){if(!t)return e.classes;var n=Ir(e);if(!n)return e.classes;var r={};for(var o in n.styles)r[o]=e.classes[o],o in t&&(r[o]+=" "+e.classes[t[o].key]);return r}(f,h):c}),[f,h]);return(0,e.useDebugValue)(p),(0,e.useDebugValue)(s===Br?"No theme":s),(0,e.useEffect)((function(){r.current=!1})),p}};Symbol("react-jss-styled"),function(e){void 0===e&&(e=Er)}();const Dr=jr({component:{},columnsControl:{padding:10,background:"white",width:180,border:"1px solid black"},controls:{display:"flex",gap:10},yearSelectControl:{padding:10,cursor:"pointer"},table:{width:"100%"}}),zr="climbpress-route-table-columns",Ur=(e,t)=>e.find((e=>e.id==t)),Fr=(e,t)=>{let n=-1,r=-1;return t.grades.forEach(((t,o)=>{const i=Math.abs(t.difficulty-e);(r<0||r>i)&&(r=i,n=o)})),t.grades[n]},_r={neutral50:"#FAFAFA",neutral100:"#F5F5F5",neutral200:"#EEEEEE",neutral300:"#E0E0E0",neutral400:"#BDBDBD",neutral500:"#9E9E9E",neutral600:"#757575",neutral700:"#616161",neutral800:"#424242",neutral900:"#212121"},Vr={primary:"#455a64",onPrimary:_r.neutral50,primaryDark:"#1c313a",onPrimaryDark:_r.neutral50,primaryLight:"#718792",onPrimaryLight:_r.neutral900,secondary:"#d7ccc8",onSecondary:_r.neutral900,secondaryDark:"#a69b97",onSecondaryDark:_r.neutral900,secondaryLight:"#fffffb",onSecondaryLight:_r.neutral900,neutral:_r,delete:"#D32F2F",deleteDark:"#C62828",deleteLight:"#FFEBEE",onDelete:_r.neutral50,onDeleteDark:_r.neutral50,onDeleteLight:_r.neutral900},Hr=jr({table:{borderCollapse:"collapse",marginBlock:25,fontSize:"1em",fontFamily:"sans-serif",boxShadow:"0 0 20px rgba(0, 0, 0, 0.15)","& th":{backgroundColor:Vr.neutral.neutral200,color:Vr.onSecondary,textAlign:"left",borderBottom:"2px solid "+Vr.neutral.neutral300,whiteSpace:"nowrap"},"& td":{backgroundColor:"white"},"& th, & td":{paddingBlock:12,paddingInline:15},"& tbody tr:hover td":{backgroundColor:Vr.neutral.neutral100},tfooter:{borderBottom:"2px solid black"}},icon:{width:16,display:"block"},dropdown:{color:"black",background:"white",boxShadow:"0 0 20px rgba(0, 0, 0, 0.15)",listStyle:"none",padding:0,margin:0},dropdownButton:{cursor:"pointer"},dropdownItem:{cursor:"pointer",paddingBlock:12,paddingInline:18,whiteSpace:"nowrap","&:hover":{backgroundColor:"#F5F5F5"}},controls:{display:"flex",flexDirection:"column",gap:"4px"},difficulty:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:4},chart:{width:20}}),$r=jr({component:{},wrapper:{position:"relative"},content:{position:"absolute",bottom:0,top:-10}});var qr=({show:t,children:n,content:r})=>{const o=$r(),i=(0,e.useRef)();return(0,e.createElement)("div",{className:o.component,ref:i},n,(0,e.createElement)("div",{className:o.wrapper},(0,e.createElement)("div",{className:o.content},t&&r)))};const Wr=jr({component:{cursor:"pointer",marginRight:20,userSelect:"none"},active:{marginRight:0},icon:{width:16,marginLeft:4,display:"inline-block"}}),Jr=jr({component:{}}),Yr=()=>(0,e.createElement)("path",{d:"M160-160v-320h160v320H160Zm240 0v-640h160v640H400Zm240 0v-440h160v440H640Z"}),Zr=()=>(0,e.createElement)("path",{d:"M490.3 40.4C512.2 62.27 512.2 97.73 490.3 119.6L460.3 149.7L362.3 51.72L392.4 21.66C414.3-.2135 449.7-.2135 471.6 21.66L490.3 40.4zM172.4 241.7L339.7 74.34L437.7 172.3L270.3 339.6C264.2 345.8 256.7 350.4 248.4 353.2L159.6 382.8C150.1 385.6 141.5 383.4 135 376.1C128.6 370.5 126.4 361 129.2 352.4L158.8 263.6C161.6 255.3 166.2 247.8 172.4 241.7V241.7zM192 63.1C209.7 63.1 224 78.33 224 95.1C224 113.7 209.7 127.1 192 127.1H96C78.33 127.1 64 142.3 64 159.1V416C64 433.7 78.33 448 96 448H352C369.7 448 384 433.7 384 416V319.1C384 302.3 398.3 287.1 416 287.1C433.7 287.1 448 302.3 448 319.1V416C448 469 405 512 352 512H96C42.98 512 0 469 0 416V159.1C0 106.1 42.98 63.1 96 63.1H192z"}),Kr=()=>(0,e.createElement)("path",{fill:"currentColor",d:"M320 224H416c17.67 0 32-14.33 32-32s-14.33-32-32-32h-95.1c-17.67 0-32 14.33-32 32S302.3 224 320 224zM320 352H480c17.67 0 32-14.33 32-32s-14.33-32-32-32h-159.1c-17.67 0-32 14.33-32 32S302.3 352 320 352zM320 96h32c17.67 0 31.1-14.33 31.1-32s-14.33-32-31.1-32h-32c-17.67 0-32 14.33-32 32S302.3 96 320 96zM544 416h-223.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H544c17.67 0 32-14.33 32-32S561.7 416 544 416zM192.4 330.7L160 366.1V64.03C160 46.33 145.7 32 128 32S96 46.33 96 64.03v302L63.6 330.7c-6.312-6.883-14.94-10.38-23.61-10.38c-7.719 0-15.47 2.781-21.61 8.414c-13.03 11.95-13.9 32.22-1.969 45.27l87.1 96.09c12.12 13.26 35.06 13.26 47.19 0l87.1-96.09c11.94-13.05 11.06-33.31-1.969-45.27C224.6 316.8 204.4 317.7 192.4 330.7z"}),Gr=()=>(0,e.createElement)("path",{fill:"currentColor",d:"M416 288h-95.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H416c17.67 0 32-14.33 32-32S433.7 288 416 288zM544 32h-223.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H544c17.67 0 32-14.33 32-32S561.7 32 544 32zM352 416h-32c-17.67 0-32 14.33-32 32s14.33 32 32 32h32c17.67 0 31.1-14.33 31.1-32S369.7 416 352 416zM480 160h-159.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H480c17.67 0 32-14.33 32-32S497.7 160 480 160zM192.4 330.7L160 366.1V64.03C160 46.33 145.7 32 128 32S96 46.33 96 64.03v302L63.6 330.7c-6.312-6.883-14.94-10.38-23.61-10.38c-7.719 0-15.47 2.781-21.61 8.414c-13.03 11.95-13.9 32.22-1.969 45.27l87.1 96.09c12.12 13.26 35.06 13.26 47.19 0l87.1-96.09c11.94-13.05 11.06-33.31-1.969-45.27C224.6 316.8 204.4 317.7 192.4 330.7z"}),Qr=()=>(0,e.createElement)("path",{fill:"currentColor",d:"M120-520v-320h320v320H120Zm80-80h160v-160H200v160Zm-80 480v-320h320v320H120Zm80-80h160v-160H200v160Zm320-320v-320h320v320H520Zm80-80h160v-160H600v160Zm160 480v-80h80v80h-80ZM520-360v-80h80v80h-80Zm80 80v-80h80v80h-80Zm-80 80v-80h80v80h-80Zm80 80v-80h80v80h-80Zm80-80v-80h80v80h-80Zm0-160v-80h80v80h-80Zm80 80v-80h80v80h-80Z"});var Xr=({icon:t,className:n=""})=>{const r=Jr();return(0,e.createElement)("div",{className:[r.component,n].join(" ")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"qr"!=t&&"chart"!=t?"0 0 576 512":"0 -960 960 960"},"asc"==t&&(0,e.createElement)(Kr,null),"desc"==t&&(0,e.createElement)(Gr,null),"edit"==t&&(0,e.createElement)(Zr,null),"qr"==t&&(0,e.createElement)(Qr,null),"chart"==t&&(0,e.createElement)(Yr,null)))},eo=({direction:t,onClick:n,children:r})=>{const o=Wr(),i=[o.component];return""!=t&&i.push(o.active),(0,e.createElement)("div",{className:i.join(" "),onClick:n},r,"asc"==t&&(0,e.createElement)(Xr,{icon:"asc",className:o.icon}),"desc"==t&&(0,e.createElement)(Xr,{icon:"desc",className:o.icon}))};const to=jr({component:{appearance:"button",backfaceVisibility:"hidden",backgroundColor:"var(--background-color)",borderRadius:4,borderWidth:0,boxSizing:"border-box",color:"var(--text-color)",cursor:"pointer",height:44,outline:"none",padding:"0 25px",textAlign:"center",transition:"all .2s,box-shadow .08s ease-in",userSelect:"none",fontWeight:700,"&:hover":{backgroundColor:"var(--background-color-hover)",color:"var(--text-color-hover)"},"&:disabled":{cursor:"disabled"},"&:focus":{boxShadow:"rgba(50, 50, 93, .1) 0 0 0 1px inset, rgba(50, 50, 93, .2) 0 6px 15px 0, rgba(0, 0, 0, .1) 0 2px 2px 0, rgba(50, 151, 211, .3) 0 0 0 4px"}},primary:{"--text-color":Vr.onPrimary,"--text-color-hover":Vr.onPrimaryDark,"--background-color":Vr.primary,"--background-color-hover":Vr.primaryDark},secondary:{"--text-color":Vr.onSecondary,"--text-color-hover":Vr.onSecondaryDark,"--background-color":Vr.secondary,"--background-color-hover":Vr.secondaryDark},outline:{"--text-color":Vr.neutral.neutral900,"--text-color-hover":Vr.onSecondaryDark,"--background-color":Vr.neutral.neutral50,"--background-color-hover":Vr.neutral.neutral50,border:"3px solid "+Vr.neutral.neutral300,"&:hover":{borderColor:Vr.neutral.neutral400}},delete:{"--text-color":Vr.onDeleteLight,"--text-color-hover":Vr.onDeleteDark,"--background-color":Vr.deleteLight,"--background-color-hover":Vr.deleteDark,border:"3px solid "+Vr.delete,"&:hover":{borderColor:Vr.deleteDark}},dense:{padding:"0 10px",height:24,borderRadius:4}});var no=({variant:t="primary",size:n="normal",className:r="",children:o,onClick:i})=>{const s=to();return(0,e.createElement)("button",{className:`${s.component} ${s[t]} ${s[n]} ${r}`,onClick:i},o)};const ro=({route:t,system:n,columns:r,metaStructure:o,onEditClick:i,onClickDifficulty:s,onQRClick:a})=>{const l=Hr();return(0,e.createElement)("tr",null,r.map((r=>{if("status"==r)return(0,e.createElement)("td",null,oo[t.status]);if("difficulty"==r)return(0,e.createElement)("td",null,(0,e.createElement)(no,{variant:"outline",size:"dense",onClick:s,className:l.difficulty},Fr(t.difficulty,n).label));if("gradingSystem"==r)return(0,e.createElement)("td",null,n.name);if("created"==r)return(0,e.createElement)("td",null,new Date(Date.parse(t.created)).toLocaleDateString());if(t.metas[r]){var i;const n=t.metas[r],s=o.find((e=>e.key==r))?.options,a=s?.find((e=>e.key==n)),l=null!==(i=a?.label)&&void 0!==i?i:n;return(0,e.createElement)("td",{key:r},l)}return(0,e.createElement)("td",{key:r},t[r])})),(0,e.createElement)("td",{className:l.controls},(0,e.createElement)(no,{variant:"outline",size:"dense",onClick:i},(0,e.createElement)(Xr,{icon:"edit",className:l.icon})),(0,e.createElement)(no,{variant:"outline",size:"dense",onClick:a},(0,e.createElement)(Xr,{icon:"qr",className:l.icon}))))},oo={any:"⚪️","screwed-on":"🟢","screwed-off":"🔴"};var io=({className:t="",columns:n={},children:r,onChange:o,state:i})=>{const a=Hr(),[l,u]=(0,e.useState)(!1);return(0,e.createElement)("table",{className:`${a.table} ${t}`},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,Object.keys(n).map((t=>{if("status"==t)return(0,e.createElement)("th",{key:t},(0,e.createElement)(qr,{show:l,content:(0,e.createElement)("ul",{className:a.dropdown},(0,e.createElement)("li",{className:a.dropdownItem,onClick:()=>{u(!1),o({...i,status:"any"})}},oo.any," ",s("All")),(0,e.createElement)("li",{className:a.dropdownItem,onClick:()=>{u(!1),o({...i,status:"screwed-on"})}},oo["screwed-on"]," ",s("Screwed on")),(0,e.createElement)("li",{className:a.dropdownItem,onClick:()=>{u(!1),o({...i,status:"screwed-off"})}},oo["screwed-off"]," ",s("Screwed off")))},(0,e.createElement)("div",{className:a.dropdownButton,onClick:()=>u((e=>!e))},oo[i.status])));const r=n[t];return(0,e.createElement)("th",{key:t},(0,e.createElement)(eo,{direction:i.orderBy==t?i.orderDirection:"",onClick:(c=t,()=>{i.orderBy!=c?o({...i,orderBy:c,orderDirection:"asc"}):"asc"==i.orderDirection?o({...i,orderDirection:"desc"}):o({...i,orderBy:"",orderDirection:""})})},r));var c})),(0,e.createElement)("th",null))),(0,e.createElement)("tbody",null,r))};const so=jr({component:{},item:{display:"block","& + &":{marginTop:5}}}),ao={status:s("Status"),name:s("Route name"),created:s("Date"),difficulty:s("Grade"),gradingSystem:s("Grading-System")};var lo=({columns:t,state:n,onChange:r})=>{const o=so();return(0,e.createElement)("div",{className:o.component},Object.keys(t).map((i=>{const s=t[i];return(0,e.createElement)("label",{key:i,className:o.item},(0,e.createElement)("input",{type:"checkbox",onChange:(a=i,()=>{const e=n.includes(a)?n.filter((e=>e!=a)):[...n,a];r(e)}),checked:n.includes(i)})," ",s);var a})))};const uo=jr({component:{},formContent:{width:"100%",minWidth:360,"@media (min-width: 600px)":{minWidth:560,display:"grid",gap:10,gridTemplateColumns:"repeat(2, 1fr)"},"@media (min-width: 900px)":{minWidth:800,display:"grid",gap:10,gridTemplateColumns:"repeat(3, 1fr)"}},field:{marginBlock:10},controls:{marginTop:26,display:"flex",justifyContent:"end",gap:10}});function co({label:t,value:n,type:r="text",onChange:o}){return(0,e.createElement)("label",{className:"cp-input-control"},t,(0,e.createElement)("br",null),(0,e.createElement)("input",{className:"cp-input-control--input",type:r,value:n,onChange:e=>o(e.target.value)}))}function fo({label:t,value:n,options:r,onChange:o}){return(0,e.createElement)("label",{className:"cp-select-control"},t,(0,e.createElement)("br",null),(0,e.createElement)("select",{value:n,onChange:e=>o(e.target.value)},r.map((t=>(0,e.createElement)("option",{key:t.value,value:t.value},t.label)))))}const ho=jr({component:{"@media (min-width: 400px)":{display:"grid",gap:10,gridTemplateColumns:"repeat(2, 1fr)"}}});var po=({selectedSystemId:t,difficulty:n,systems:r,onChangeSystem:o,onChangeDifficulty:i})=>{const a=ho(),l=r.find((e=>e.id==t));(0,e.useEffect)((()=>{l||o(r[0].id)}),[t]);const u=Fr(n,l);return(0,e.createElement)("div",{className:a.component},(0,e.createElement)(fo,{label:s("Grade"),value:u.difficulty+"",options:r.find((e=>e.id==t))?.grades?.map((e=>({value:e.difficulty+"",label:e.label}))),onChange:e=>i(parseInt(e))}),(0,e.createElement)(fo,{label:s("Grading-System"),value:t,options:r.map((e=>({value:e.id,label:e.name}))),onChange:o}))},mo=({route:t,systems:n,metaStructure:r,onChange:o,onCancel:i,onDelete:a})=>{var l;const u=uo(),[c,d]=(0,e.useState)(t),f=null!==(l=Ur(n,c.gradingSystem))&&void 0!==l?l:n[0],h=(0,e.useMemo)((()=>Fr(c.difficulty,f)),[c.difficulty,f.id]);(0,e.useEffect)((()=>{d(t)}),[t.id]),(0,e.useEffect)((()=>{""==c.created&&d({...c,created:(new Date).toISOString().split("T")[0]})}),[c.created]);const p=e=>t=>{d((n=>({...n,[e]:t})))},m=e=>t=>{d((n=>({...n,metas:{...n.metas,[e]:t}})))};return(0,e.createElement)("div",{className:u.component},"function"==typeof a&&(0,e.createElement)("div",null,(0,e.createElement)(no,{variant:"outline",onClick:()=>{d((e=>({...e,status:"screwed-on"==e.status?"screwed-off":"screwed-on"})))}},"screwed-on"==c.status?"🟢 "+s("Screwed on"):"⚪️ "+s("Screwed off"))),(0,e.createElement)("div",{className:u.field},(0,e.createElement)(co,{label:s("Route name"),value:c.name,onChange:p("name")})),(0,e.createElement)("div",{className:u.field},(0,e.createElement)(po,{selectedSystemId:c.gradingSystem,difficulty:h.difficulty,systems:n,onChangeSystem:p("gradingSystem"),onChangeDifficulty:p("difficulty")})),(0,e.createElement)("div",{className:u.formContent},(0,e.createElement)("div",{className:u.field},(0,e.createElement)(co,{label:s("Date"),value:c.created,onChange:p("created"),type:"date"})),r.map((t=>{var n,r;return(0,e.createElement)("div",{key:t.key,className:u.field},t.options.length>0?(0,e.createElement)(fo,{label:t.label,value:null!==(n=c.metas?.[t.key])&&void 0!==n?n:"",options:[{value:"",label:""},...t.options.map((e=>({value:e.key,label:e.label})))],onChange:m(t.key)}):(0,e.createElement)(co,{key:t.key,label:t.label,value:null!==(r=c.metas?.[t.key])&&void 0!==r?r:"",onChange:m(t.key)}))}))),(0,e.createElement)("div",{className:u.controls},"function"==typeof a&&(0,e.createElement)(no,{onClick:()=>a(),variant:"delete"},s("Delete")),(0,e.createElement)(no,{variant:"outline",onClick:i},s("Cancel")),(0,e.createElement)(no,{onClick:()=>o(c)},s("Save"))))};function go({onClick:t,children:n}){const r=(0,i.useRef)();return(0,e.useEffect)((()=>{const e=e=>{r.current&&!r.current.contains(e.target)&&t()};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[r]),(0,e.createElement)("div",{ref:r},n)}var yo=n(119);function vo(){var e=function(e){var n=e.text,r=e.options,o=e.logo,i=t().useRef(null);return t().useEffect((function(){var e,t,s,a,l,u,c,d,f;if(i&&i.current&&(yo.toCanvas(i.current,n,r,(function(e){if(e)throw e})),o)){var h=i.current.getContext("2d");if(h){var p=new Image;p.src=o.src;var m=(null===(e=null==o?void 0:o.options)||void 0===e?void 0:e.width)||30;if((null===(t=null==o?void 0:o.options)||void 0===t?void 0:t.hasOwnProperty("x"))&&(null===(s=null==o?void 0:o.options)||void 0===s?void 0:s.hasOwnProperty("y"))){var g=(null===(a=null==o?void 0:o.options)||void 0===a?void 0:a.x)||0,y=(null===(l=null==o?void 0:o.options)||void 0===l?void 0:l.y)||0;p.onload=function(){h.drawImage(p,g,y,m,m)}}if(!(null===(u=null==o?void 0:o.options)||void 0===u?void 0:u.hasOwnProperty("x"))||!(null===(c=null==o?void 0:o.options)||void 0===c?void 0:c.hasOwnProperty("y"))||void 0===(null===(d=null==o?void 0:o.options)||void 0===d?void 0:d.x)||void 0===(null===(f=null==o?void 0:o.options)||void 0===f?void 0:f.y)){var v=null==r?void 0:r.margin;v=v?8*v:0===v?0:32;var b=(((null==r?void 0:r.width)||116+v)-m)/2;p.onload=function(){h.drawImage(p,b,b,m,m)}}}}}),[i,n,r,o]),t().createElement("canvas",{ref:i})};return t().useMemo((function(){return e}),[])}const bo=jr({component:{display:"flex",flexDirection:"column",fontSize:"0.8em",gap:4,paddingRight:20,"& .item":{position:"relative",width:300,display:"grid",gridTemplateColumns:"40px 1fr",gap:2},"& .label":{fontWeight:"bold",padding:2,borderRadius:4,border:"1px solid #2271b1",textAlign:"center"},"& .is-setter-grade .label":{background:"#2271b1",color:"white"}},bar:{position:"relative",background:"#2271b1",height:"100%",borderRadius:4,"& span":{position:"absolute",top:3,right:-26}},isSetterGrade:{"& .label":{background:"red"}},setterBar:{background:"red",width:"100%"}});function wo({gradingSystem:t,setterGrade:n,votings:r}){const o=bo(),i=[...t.grades].reverse(),s=r.reduce(((e,t)=>e+t.votes),0);return(0,e.createElement)("div",{className:o.component},i.map((t=>{var i;const a=r.find((({difficulty:e})=>e==t.difficulty)),l=t.difficulty==n.difficulty,u=s>0?(null!==(i=a?.votes)&&void 0!==i?i:0)/s:0,c=Math.floor(100*u);return(0,e.createElement)("div",{key:t.difficulty,className:"item "+(l?"is-setter-grade":"")},(0,e.createElement)("div",{className:"label"},t.label),(0,e.createElement)("div",{className:o.bar,style:{width:100*u+"%"}},(0,e.createElement)("span",null,c,"%")))})))}function xo({route:t}){const[n,r]=(e=>{const{data:t=[],isLoading:n}=te(`${a()}/routes/${e}/votes`,(e=>d()({path:e})));return[t,n]})(t.id),o=l(),i=Ur(o,t.gradingSystem);if(!i)return;const s=Fr(t.difficulty,i),u=n.reduce(((e,t)=>e+t.votes),0);return(0,e.createElement)("div",null,(0,e.createElement)("h3",{style:{marginTop:0}},t.name),(0,e.createElement)("p",null,"Bewertungena aus der Community: ",u),(0,e.createElement)(wo,{gradingSystem:i,setterGrade:s,votings:n}))}var ko=()=>{var n,r;const o=Dr(),{Image:c}={Image:(_=function(e){var n=e.text,r=e.options,o=t().useRef(null);return t().useEffect((function(){o&&o.current&&yo.toDataURL(n,r,(function(e,t){if(e)throw e;o.current instanceof HTMLImageElement&&(o.current.src=t)}))}),[n,r,o]),t().createElement("img",{ref:o})},t().useMemo((function(){return _}),[])),Canvas:vo(),SVG:(V=function(e){var n=e.text,r=e.options,o=t().useRef(null);return t().useEffect((function(){yo.toString(n,r,(function(e,t){if(e)throw e;o.current instanceof HTMLDivElement&&(o.current.innerHTML=t)}))}),[n,r]),t().createElement("div",{ref:o})},t().useMemo((function(){return V}),[]))},f=l(),h=window.ClimbPress.routeMetaStructure,p=u(window.ClimbPress.defaultGradingSystemId),m=window.ClimbPress.availableYears,g=(0,i.useRef)(-1),y=(0,i.useRef)(null),[v,b]=(0,i.useState)(null),[w,x]=(0,i.useState)(!1),[k,E]=(0,i.useState)(!1),[S,C]=(()=>{const[t,n]=(0,i.useState)(JSON.parse(localStorage.getItem(zr))||[]);return(0,e.useEffect)((()=>{localStorage.setItem(zr,JSON.stringify(t))}),[t]),[t,n]})(),[R,P]=(0,i.useState)(""),[A,T]=(0,i.useState)({status:"screwed-on",orderBy:"",orderDirection:""}),{routes:M,update:I,add:N,remove:O}=((e="any",t="")=>{const{data:n,mutate:r}=te(a()+"/routes?status="+e+"&year="+t,(e=>d()({path:e})));return{routes:null!=n?n:[],update:e=>{d()({path:a()+"/routes/"+e.id,method:"PATCH",data:{name:e.name,status:e.status,difficulty:e.difficulty,grading_system:e.gradingSystem,created:e.created,metas:e.metas}}).finally((()=>{r(n.map((t=>({...t.id==e.id?e:t}))))}))},add:e=>{d()({path:a()+"/routes",method:"POST",data:{name:e.name,status:e.status,difficulty:e.difficulty,grading_system:e.gradingSystem,created:e.created,metas:e.metas}}).then((e=>{r([e,...n])}))},remove:e=>{d()({path:a()+"/routes/"+e,method:"DELETE"}).then((()=>{r(n.filter((t=>t.id!=e)))}))}}})(A.status,R),L=M.find((e=>e.id==v?.routeId)),B=()=>y.current.showModal(),j=()=>y.current.close(),D=(0,i.useMemo)((()=>{const e={...ao};return h.forEach((t=>{e[t.key]=t.label})),e}),[h,ao]),z=(0,i.useMemo)((()=>Object.keys(D).filter((e=>!S.includes(e)))),[S,D]),U=(0,i.useMemo)((()=>{const e={};return Object.keys(D).forEach((t=>{S.includes(t)||(e[t]=D[t])})),e}),[S,D]),F=(e,t="")=>{const n=new URL(window.location.origin);return""!=t&&(n.pathname="route/"+t),n.searchParams.set(window.ClimbPress.votingPageParam,e+""),n.toString()};var _,V;return(0,e.createElement)("div",{className:o.component},(0,e.createElement)("div",{className:o.controls},(0,e.createElement)(no,{onClick:()=>{b({type:"edit",routeId:0}),B()}},s("New Route")),(0,e.createElement)(qr,{show:w,content:(0,e.createElement)(go,{onClick:()=>{x(!1)}},(0,e.createElement)("div",{className:o.columnsControl},(0,e.createElement)(lo,{columns:D,state:z,onChange:e=>{const t=Object.keys(D).filter((t=>!e.includes(t)));C(t)}})))},(0,e.createElement)(no,{onClick:()=>x((e=>!e)),variant:"outline"},s("Columns"))),(0,e.createElement)(qr,{show:k,content:(0,e.createElement)(go,{onClick:()=>E(!1)},(0,e.createElement)("div",{className:o.columnsControl},(0,e.createElement)("div",{className:o.yearSelectControl,onClick:()=>{P("")}},(0,e.createElement)("input",{type:"radio",checked:""==R})," ",s("All routes")),m.map((t=>(0,e.createElement)("div",{key:t,className:o.yearSelectControl,onClick:()=>{P(t)}},(0,e.createElement)("input",{type:"radio",checked:R==t})," ",t)))))},(0,e.createElement)(no,{onClick:()=>E((e=>!e)),variant:"outline"},""==R?s("All years"):R)),(0,e.createElement)(no,{onClick:()=>{return window.open((e=R,window.ClimbPress.exportUrl+(""!=e?"&year="+e:"")));var e},variant:"outline"},s("Export"))),(0,e.createElement)("dialog",{ref:y},"edit"==v?.type?L?(0,e.createElement)(mo,{route:L,systems:f,metaStructure:h,onChange:e=>{j(),I(e)},onCancel:j,onDelete:()=>{const e=s('Permanently delete "%s"?').replace("%s",L.name);confirm(e)&&(O(L.id),b({type:"edit",routeId:0}),y.current.close())}}):(0,e.createElement)(mo,{route:{id:g.current,name:"",status:"screwed-on",created:"",difficulty:null!==(n=p?.grades?.[0]?.difficulty)&&void 0!==n?n:0,gradingSystem:null!==(r=p?.id)&&void 0!==r?r:"",metas:{}},systems:f,metaStructure:h,onChange:e=>{j(),N(e),g.current--},onCancel:j}):null,"qr"==v?.type?(0,e.createElement)(go,{onClick:()=>{b(null),j()}},(0,e.createElement)(c,{text:F(v.routeId),options:{type:"image/jpeg",quality:.6,errorCorrectionLevel:"H",margin:4,scale:4,width:300}}),(0,e.createElement)("p",null,(0,e.createElement)("a",{href:F(v.routeId)},F(v.routeId)))):null,"difficulty"==v?.type&&L?(0,e.createElement)(go,{onClick:()=>{}},(0,e.createElement)(xo,{route:L})):null),(0,e.createElement)(io,{state:A,onChange:T,className:o.table,columns:U},((e,t="",n="desc")=>""===t?e:[...e].sort(((e,r)=>{const o="desc"==n?r:e,i="desc"==n?e:r;return"name"==t?o.name.localeCompare(i.name):"difficulty"==t?o.difficulty-i.difficulty:"gradingSystem"==t?o.gradingSystem.localeCompare(i.gradingSystem,"de",{sensitivity:"base"}):"created"==t?o.created.localeCompare(i.created,"de",{sensitivity:"base"}):o.metas[t]?.localeCompare(i.metas[t],"de",{sensitivity:"base"})})))(M,A.orderBy,A.orderDirection).map((t=>(0,e.createElement)(ro,{key:t.id,route:t,system:Ur(f,t.gradingSystem),columns:Object.keys(U),metaStructure:h,onClickDifficulty:()=>{b({type:"difficulty",routeId:t.id}),B()},onEditClick:()=>{b({type:"edit",routeId:t.id}),B()},onQRClick:()=>{b({type:"qr",routeId:t.id}),B()}})))))};o()((()=>{(0,i.render)((0,e.createElement)(ko,null),document.getElementById(window.ClimbPress.rootId))}))}()}();
     1!function(){var e={376:function(e){"use strict";var t={single_source_shortest_paths:function(e,n,r){var o={},i={};i[n]=0;var s,a,l,u,c,d,f,h=t.PriorityQueue.make();for(h.push(n,0);!h.empty();)for(l in a=(s=h.pop()).value,u=s.cost,c=e[a]||{})c.hasOwnProperty(l)&&(d=u+c[l],f=i[l],(void 0===i[l]||f>d)&&(i[l]=d,h.push(l,d),o[l]=a));if(void 0!==r&&void 0===i[r]){var p=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(p)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var o=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,o={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=e.sorter||r.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},654:function(e){"use strict";e.exports=function(e){for(var t=[],n=e.length,r=0;r<n;r++){var o=e.charCodeAt(r);if(o>=55296&&o<=56319&&n>r+1){var i=e.charCodeAt(r+1);i>=56320&&i<=57343&&(o=1024*(o-55296)+i-56320+65536,r+=1)}o<128?t.push(o):o<2048?(t.push(o>>6|192),t.push(63&o|128)):o<55296||o>=57344&&o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(63&o|128)):o>=65536&&o<=1114111?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(63&o|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},535:function(e,t,n){"use strict";var r=n(237),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var s=c(n);d&&(s=s.concat(d(n)));for(var a=l(t),m=l(n),g=0;g<s.length;++g){var y=s[g];if(!(i[y]||r&&r[y]||m&&m[y]||a&&a[y])){var v=f(n,y);try{u(t,y,v)}catch(e){}}}}return t}},119:function(e,t,n){const r=n(363),o=n(638),i=n(141),s=n(857);function a(e,t,n,i,s){const a=[].slice.call(arguments,1),l=a.length,u="function"==typeof a[l-1];if(!u&&!r())throw new Error("Callback required as last argument");if(!u){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=t,t=i=void 0):2!==l||t.getContext||(i=n,n=t,t=void 0),new Promise((function(r,s){try{const s=o.create(n,i);r(e(s,t,i))}catch(e){s(e)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(s=n,n=t,t=i=void 0):3===l&&(t.getContext&&void 0===s?(s=i,i=void 0):(s=i,i=n,n=t,t=void 0));try{const r=o.create(n,i);s(null,e(r,t,i))}catch(e){s(e)}}t.create=o.create,t.toCanvas=a.bind(null,i.render),t.toDataURL=a.bind(null,i.renderToDataURL),t.toString=a.bind(null,(function(e,t,n){return s.render(e,n)}))},363:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},539:function(e,t,n){const r=n(137).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=r(e),o=145===n?26:2*Math.ceil((n-13)/(2*t-2)),i=[n-7];for(let e=1;e<t-1;e++)i[e]=i[e-1]-o;return i.push(6),i.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),o=r.length;for(let e=0;e<o;e++)for(let t=0;t<o;t++)0===e&&0===t||0===e&&t===o-1||e===o-1&&0===t||n.push([r[e],r[t]]);return n}},215:function(e,t,n){const r=n(965),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(e){this.mode=r.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*o.indexOf(this.data[t]);n+=o.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=i},520:function(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},844:function(e){function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){const o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},145:function(e,t,n){const r=n(654),o=n(965);function i(e){this.mode=o.BYTE,"string"==typeof e&&(e=r(e)),this.data=new Uint8Array(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=i},944:function(e,t,n){const r=n(873),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}}},873:function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},577:function(e,t,n){const r=n(137).getSymbolSize;t.getPositions=function(e){const t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},853:function(e,t,n){const r=n(137),o=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let i=n<<10;for(;r.getBCHDigit(i)-o>=0;)i^=1335<<r.getBCHDigit(i)-o;return 21522^(n<<10|i)}},670:function(e,t){const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285);for(let e=255;e<512;e++)n[e]=n[e-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},515:function(e,t,n){const r=n(965),o=n(137);function i(e){this.mode=r.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=o.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=i},662:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function n(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let n=0,r=0,o=0,i=null,s=null;for(let a=0;a<t;a++){r=o=0,i=s=null;for(let l=0;l<t;l++){let t=e.get(a,l);t===i?r++:(r>=5&&(n+=r-5+3),i=t,r=1),t=e.get(l,a),t===s?o++:(o>=5&&(n+=o-5+3),s=t,o=1)}r>=5&&(n+=r-5+3),o>=5&&(n+=o-5+3)}return n},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let r=0;r<t-1;r++)for(let o=0;o<t-1;o++){const t=e.get(r,o)+e.get(r,o+1)+e.get(r+1,o)+e.get(r+1,o+1);4!==t&&0!==t||n++}return 3*n},t.getPenaltyN3=function(e){const t=e.size;let n=0,r=0,o=0;for(let i=0;i<t;i++){r=o=0;for(let s=0;s<t;s++)r=r<<1&2047|e.get(i,s),s>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(s,i),s>=10&&(1488===o||93===o)&&n++}return 40*n},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return 10*Math.abs(Math.ceil(100*t/n/5)-10)},t.applyMask=function(e,t){const r=t.size;for(let o=0;o<r;o++)for(let i=0;i<r;i++)t.isReserved(i,o)||t.xor(i,o,n(e,i,o))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let o=0,i=1/0;for(let s=0;s<r;s++){n(s),t.applyMask(s,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(s,e),r<i&&(i=r,o=s)}return o}},965:function(e,t,n){const r=n(499),o=n(795);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},958:function(e,t,n){const r=n(965);function o(e){this.mode=r.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const o=this.data.length-t;o>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*o+1))},e.exports=o},94:function(e,t,n){const r=n(670);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let o=0;o<e.length;o++)for(let i=0;i<t.length;i++)n[o+i]^=r.mul(e[o],t[i]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let o=0;o<t.length;o++)n[o]^=r.mul(t[o],e);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let o=0;o<e;o++)n=t.mul(n,new Uint8Array([1,r.exp(o)]));return n}},638:function(e,t,n){const r=n(137),o=n(873),i=n(520),s=n(844),a=n(539),l=n(577),u=n(662),c=n(944),d=n(460),f=n(941),h=n(853),p=n(965),m=n(660);function g(e,t,n){const r=e.size,o=h.getEncodedBits(t,n);let i,s;for(i=0;i<15;i++)s=1==(o>>i&1),i<6?e.set(i,8,s,!0):i<8?e.set(i+1,8,s,!0):e.set(r-15+i,8,s,!0),i<8?e.set(8,r-i-1,s,!0):i<9?e.set(8,15-i-1+1,s,!0):e.set(8,15-i-1,s,!0);e.set(r-8,8,1,!0)}function y(e,t,n,o){let h;if(Array.isArray(e))h=m.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let r=t;if(!r){const t=m.rawSplit(e);r=f.getBestVersionForData(t,n)}h=m.fromString(e,r||40)}}const y=f.getBestVersionForData(h,n);if(!y)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<y)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+y+".\n")}else t=y;const v=function(e,t,n){const o=new i;n.forEach((function(t){o.put(t.mode.bit,4),o.put(t.getLength(),p.getCharCountIndicator(t.mode,e)),t.write(o)}));const s=8*(r.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,t));for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);const a=(s-o.getLengthInBits())/8;for(let e=0;e<a;e++)o.put(e%2?17:236,8);return function(e,t,n){const o=r.getSymbolTotalCodewords(t),i=o-c.getTotalCodewordsCount(t,n),s=c.getBlocksCount(t,n),a=s-o%s,l=Math.floor(o/s),u=Math.floor(i/s),f=u+1,h=l-u,p=new d(h);let m=0;const g=new Array(s),y=new Array(s);let v=0;const b=new Uint8Array(e.buffer);for(let e=0;e<s;e++){const t=e<a?u:f;g[e]=b.slice(m,m+t),y[e]=p.encode(g[e]),m+=t,v=Math.max(v,t)}const w=new Uint8Array(o);let x,k,E=0;for(x=0;x<v;x++)for(k=0;k<s;k++)x<g[k].length&&(w[E++]=g[k][x]);for(x=0;x<h;x++)for(k=0;k<s;k++)w[E++]=y[k][x];return w}(o,e,t)}(t,n,h),b=r.getSymbolSize(t),w=new s(b);return function(e,t){const n=e.size,r=l.getPositions(t);for(let t=0;t<r.length;t++){const o=r[t][0],i=r[t][1];for(let t=-1;t<=7;t++)if(!(o+t<=-1||n<=o+t))for(let r=-1;r<=7;r++)i+r<=-1||n<=i+r||(t>=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(o+t,i+r,!0,!0):e.set(o+t,i+r,!1,!0))}}(w,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(w),function(e,t){const n=a.getPositions(t);for(let t=0;t<n.length;t++){const r=n[t][0],o=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)-2===t||2===t||-2===n||2===n||0===t&&0===n?e.set(r+t,o+n,!0,!0):e.set(r+t,o+n,!1,!0)}}(w,t),g(w,n,0),t>=7&&function(e,t){const n=e.size,r=f.getEncodedBits(t);let o,i,s;for(let t=0;t<18;t++)o=Math.floor(t/3),i=t%3+n-8-3,s=1==(r>>t&1),e.set(o,i,s,!0),e.set(i,o,s,!0)}(w,t),function(e,t){const n=e.size;let r=-1,o=n-1,i=7,s=0;for(let a=n-1;a>0;a-=2)for(6===a&&a--;;){for(let n=0;n<2;n++)if(!e.isReserved(o,a-n)){let r=!1;s<t.length&&(r=1==(t[s]>>>i&1)),e.set(o,a-n,r),i--,-1===i&&(s++,i=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}(w,v),isNaN(o)&&(o=u.getBestMask(w,g.bind(null,w,n))),u.applyMask(o,w),g(w,n,o),{modules:w,version:t,errorCorrectionLevel:n,maskPattern:o,segments:h}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");let n,i,s=o.M;return void 0!==t&&(s=o.from(t.errorCorrectionLevel,o.M),n=f.from(t.version),i=u.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),y(e,n,s,i)}},460:function(e,t,n){const r=n(94);function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),o=this.degree-n.length;if(o>0){const e=new Uint8Array(this.degree);return e.set(n,o),e}return n},e.exports=o},795:function(e,t){const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const i=new RegExp("^"+r+"$"),s=new RegExp("^"+n+"$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return s.test(e)},t.testAlphanumeric=function(e){return a.test(e)}},660:function(e,t,n){const r=n(965),o=n(958),i=n(215),s=n(145),a=n(515),l=n(795),u=n(137),c=n(376);function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,n){const r=[];let o;for(;null!==(o=e.exec(n));)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function h(e){const t=f(l.NUMERIC,r.NUMERIC,e),n=f(l.ALPHANUMERIC,r.ALPHANUMERIC,e);let o,i;return u.isKanjiModeEnabled()?(o=f(l.BYTE,r.BYTE,e),i=f(l.KANJI,r.KANJI,e)):(o=f(l.BYTE_KANJI,r.BYTE,e),i=[]),t.concat(n,o,i).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function p(e,t){switch(t){case r.NUMERIC:return o.getBitsLength(e);case r.ALPHANUMERIC:return i.getBitsLength(e);case r.KANJI:return a.getBitsLength(e);case r.BYTE:return s.getBitsLength(e)}}function m(e,t){let n;const l=r.getBestModeForData(e);if(n=r.from(t,l),n!==r.BYTE&&n.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(l));switch(n!==r.KANJI||u.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new o(e);case r.ALPHANUMERIC:return new i(e);case r.KANJI:return new a(e);case r.BYTE:return new s(e)}}t.fromArray=function(e){return e.reduce((function(e,t){return"string"==typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e}),[])},t.fromString=function(e,n){const o=function(e){const t=[];for(let n=0;n<e.length;n++){const o=e[n];switch(o.mode){case r.NUMERIC:t.push([o,{data:o.data,mode:r.ALPHANUMERIC,length:o.length},{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.ALPHANUMERIC:t.push([o,{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.KANJI:t.push([o,{data:o.data,mode:r.BYTE,length:d(o.data)}]);break;case r.BYTE:t.push([{data:o.data,mode:r.BYTE,length:d(o.data)}])}}return t}(h(e,u.isKanjiModeEnabled())),i=function(e,t){const n={},o={start:{}};let i=["start"];for(let s=0;s<e.length;s++){const a=e[s],l=[];for(let e=0;e<a.length;e++){const u=a[e],c=""+s+e;l.push(c),n[c]={node:u,lastCount:0},o[c]={};for(let e=0;e<i.length;e++){const s=i[e];n[s]&&n[s].node.mode===u.mode?(o[s][c]=p(n[s].lastCount+u.length,u.mode)-p(n[s].lastCount,u.mode),n[s].lastCount+=u.length):(n[s]&&(n[s].lastCount=u.length),o[s][c]=p(u.length,u.mode)+4+r.getCharCountIndicator(u.mode,t))}}i=l}for(let e=0;e<i.length;e++)o[i[e]].end=0;return{map:o,table:n}}(o,n),s=c.find_path(i.map,"start","end"),a=[];for(let e=1;e<s.length-1;e++)a.push(i.table[s[e]].node);return t.fromArray(a.reduce((function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[]))},t.rawSplit=function(e){return t.fromArray(h(e,u.isKanjiModeEnabled()))}},137:function(e,t){let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},499:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},941:function(e,t,n){const r=n(137),o=n(944),i=n(873),s=n(965),a=n(499),l=r.getBCHDigit(7973);function u(e,t){return s.getCharCountIndicator(e,t)+4}function c(e,t){let n=0;return e.forEach((function(e){const r=u(e.mode,t);n+=r+e.getBitsLength()})),n}t.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!a.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=s.BYTE);const i=8*(r.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t));if(n===s.MIXED)return i;const l=i-u(n,e);switch(n){case s.NUMERIC:return Math.floor(l/10*3);case s.ALPHANUMERIC:return Math.floor(l/11*2);case s.KANJI:return Math.floor(l/13);case s.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let r;const o=i.from(n,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(c(e,r)<=t.getCapacity(r,n,s.MIXED))return r}(e,o);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(r.mode,r.getLength(),o)},t.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<<r.getBCHDigit(t)-l;return e<<12|t}},141:function(e,t,n){const r=n(369);t.render=function(e,t,n){let o=n,i=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=r.getOptions(o);const s=r.getImageWidth(e.modules.size,o),a=i.getContext("2d"),l=a.createImageData(s,s);return r.qrToImageData(l.data,e,o),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(a,i,s),a.putImageData(l,0,0),i},t.renderToDataURL=function(e,n,r){let o=r;void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={});const i=t.render(e,n,o),s=o.type||"image/png",a=o.rendererOpts||{};return i.toDataURL(s,a.quality)}},857:function(e,t,n){const r=n(369);function o(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function i(e,t,n){let r=e+t;return void 0!==n&&(r+=" "+n),r}t.render=function(e,t,n){const s=r.getOptions(t),a=e.modules.size,l=e.modules.data,u=a+2*s.margin,c=s.color.light.a?"<path "+o(s.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",d="<path "+o(s.color.dark,"stroke")+' d="'+function(e,t,n){let r="",o=0,s=!1,a=0;for(let l=0;l<e.length;l++){const u=Math.floor(l%t),c=Math.floor(l/t);u||s||(s=!0),e[l]?(a++,l>0&&u>0&&e[l-1]||(r+=s?i("M",u+n,.5+c+n):i("m",o,0),o=0,s=!1),u+1<t&&e[l+1]||(r+=i("h",a),a=0)):o++}return r}(l,a,s.margin)+'"/>',f='viewBox="0 0 '+u+" "+u+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+f+' shape-rendering="crispEdges">'+c+d+"</svg>\n";return"function"==typeof n&&n(null,h),h}},369:function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:r,scale:r?4:o,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const o=n.modules.size,i=n.modules.data,s=t.getScale(o,r),a=Math.floor((o+2*r.margin)*s),l=r.margin*s,u=[r.color.light,r.color.dark];for(let t=0;t<a;t++)for(let n=0;n<a;n++){let c=4*(t*a+n),d=r.color.light;t>=l&&n>=l&&t<a-l&&n<a-l&&(d=u[i[Math.floor((t-l)/s)*o+Math.floor((n-l)/s)]?1:0]),e[c++]=d.r,e[c++]=d.g,e[c++]=d.b,e[c]=d.a}}},684:function(e,t){},198:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case a:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function k(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return k(e)||x(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},237:function(e,t,n){"use strict";e.exports=n(198)},603:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),e=n.hmd(e);var r=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e)},415:function(e,t,n){"use strict";var r=n(196),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return a((function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,n,t]),s((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},322:function(e,t,n){"use strict";e.exports=n(415)},196:function(e){"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=n(196),t=n.n(e),r=window.wp.domReady,o=n.n(r),i=window.wp.element;const s=e=>{var t;return null!==(t=window.ClimbPress.i18n[e])&&void 0!==t?t:`? ${e} ?`},a=()=>window.ClimbPress.RESTNamespace,l=()=>window.ClimbPress.gradingSystems,u=e=>{var t;return null!==(t=l().find((t=>t.id==e)))&&void 0!==t?t:null};var c=window.wp.apiFetch,d=n.n(c),f=n(322);const h=()=>{},p=h(),m=Object,g=e=>e===p,y=e=>"function"==typeof e,v=(e,t)=>({...e,...t}),b=new WeakMap;let w=0;const x=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(m(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=b.get(e),o)return o;if(o=++w+"~",b.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=x(e[i])+",";b.set(e,o)}if(n==m){o="#";const t=m.keys(e).sort();for(;!g(i=t.pop());)g(e[i])||(o+=i+":"+x(e[i])+",");b.set(e,o)}}return o},k=new WeakMap,E={},S={},C="undefined",R=typeof window!=C,P=typeof document!=C,A=(e,t)=>{const n=k.get(e);return[()=>!g(t)&&e.get(t)||E,r=>{if(!g(t)){const o=e.get(t);t in S||(S[t]=o),n[5](t,v(o,r),o||E)}},n[6],()=>!g(t)&&t in S?S[t]:!g(t)&&e.get(t)||E]};let T=!0;const[M,I]=R&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[h,h],N={isOnline:()=>T,isVisible:()=>{const e=P&&document.visibilityState;return g(e)||"hidden"!==e}},O={initFocus:e=>(P&&document.addEventListener("visibilitychange",e),M("focus",e),()=>{P&&document.removeEventListener("visibilitychange",e),I("focus",e)}),initReconnect:e=>{const t=()=>{T=!0,e()},n=()=>{T=!1};return M("online",t),M("offline",n),()=>{I("online",t),I("offline",n)}}},L=!e.useId,B=!R||"Deno"in window,j=B?e.useEffect:e.useLayoutEffect,D="undefined"!=typeof navigator&&navigator.connection,z=!B&&D&&(["slow-2g","2g"].includes(D.effectiveType)||D.saveData),U=e=>{if(y(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?x(e):"",t]};let F=0;const _=()=>++F;async function V(...e){const[t,n,r,o]=e,i=v({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let s=i.populateCache;const a=i.rollbackOnError;let l=i.optimisticData;const u=i.throwOnError;if(y(n)){const e=n,r=[],o=t.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(c))}return c(n);async function c(n){const[o]=U(n);if(!o)return;const[c,d]=A(t,o),[f,h,m,v]=k.get(t),b=()=>{const e=f[o];return(y(i.revalidate)?i.revalidate(c().data,n):!1!==i.revalidate)&&(delete m[o],delete v[o],e&&e[0])?e[0](2).then((()=>c().data)):c().data};if(e.length<3)return b();let w,x=r;const E=_();h[o]=[E,0];const S=!g(l),C=c(),R=C.data,P=C._c,T=g(P)?R:P;if(S&&(l=y(l)?l(T,R):l,d({data:l,_c:T})),y(x))try{x=x(T)}catch(e){w=e}if(x&&y(x.then)){if(x=await x.catch((e=>{w=e})),E!==h[o][0]){if(w)throw w;return x}w&&S&&(e=>"function"==typeof a?a(e):!1!==a)(w)&&(s=!0,d({data:T,_c:p}))}if(s&&!w)if(y(s)){const e=s(x,T);d({data:e,error:p,_c:p})}else d({data:x,error:p,_c:p});if(h[o][1]=_(),Promise.resolve(b()).then((()=>{d({_c:p})})),!w)return x;if(u)throw w}}const H=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},$=(e,t)=>{if(!k.has(e)){const n=v(O,t),r={},o=V.bind(p,e);let i=h;const s={},a=(e,t)=>{const n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,r)=>{e.set(t,n);const o=s[t];if(o)for(const e of o)e(n,r)},u=()=>{if(!k.has(e)&&(k.set(e,[r,{},{},{},o,l,a]),!B)){const t=n.initFocus(setTimeout.bind(p,H.bind(p,r,0))),o=n.initReconnect(setTimeout.bind(p,H.bind(p,r,1)));i=()=>{t&&t(),o&&o(),k.delete(e)}}};return u(),[e,o,u,i]}return[e,k.get(e)[4]]},[q,W]=$(new Map),J=v({onLoadingSlow:h,onSuccess:h,onError:h,onErrorRetry:(e,__,t,n,r)=>{const o=t.errorRetryCount,i=r.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*t.errorRetryInterval;!g(o)&&i>o||setTimeout(n,s,r)},onDiscarded:h,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:z?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:z?5e3:3e3,compare:(e,t)=>x(e)==x(t),isPaused:()=>!1,cache:q,mutate:W,fallback:{}},N),Y=(e,t)=>{const n=v(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:s}=t;r&&i&&(n.use=r.concat(i)),o&&s&&(n.fallback=v(o,s))}return n},Z=(0,e.createContext)({}),K=R&&window.__SWR_DEVTOOLS_USE__,G=K?window.__SWR_DEVTOOLS_USE__:[],Q=G.concat((e=>(t,n,r)=>{const o=n&&((...e)=>{const[r]=U(t),[,,,o]=k.get(q);if(r.startsWith("$inf$"))return n(...e);const i=o[r];return g(i)?n(...e):(delete o[r],i)});return e(t,o,r)}));K&&(window.__SWR_DEVTOOLS_REACT__=e);const X=e.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),ee={dedupe:!0},te=(m.defineProperty((t=>{const{value:n}=t,r=(0,e.useContext)(Z),o=y(n),i=(0,e.useMemo)((()=>o?n(r):n),[o,r,n]),s=(0,e.useMemo)((()=>o?i:Y(r,i)),[o,r,i]),a=i&&i.provider,l=(0,e.useRef)(p);a&&!l.current&&(l.current=$(a(s.cache||q),i));const u=l.current;return u&&(s.cache=u[0],s.mutate=u[1]),j((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),(0,e.createElement)(Z.Provider,v(t,{value:s}))}),"defaultValue",{value:J}),ne=(t,n,r)=>{const{cache:o,compare:i,suspense:s,fallbackData:a,revalidateOnMount:l,revalidateIfStale:u,refreshInterval:c,refreshWhenHidden:d,refreshWhenOffline:h,keepPreviousData:m}=r,[b,w,x,E]=k.get(o),[S,P]=U(t),T=(0,e.useRef)(!1),M=(0,e.useRef)(!1),I=(0,e.useRef)(S),N=(0,e.useRef)(n),O=(0,e.useRef)(r),D=()=>O.current,z=()=>D().isVisible()&&D().isOnline(),[F,H,$,q]=A(o,S),W=(0,e.useRef)({}).current,J=g(a)?r.fallback[S]:a,Y=(e,t)=>{for(const n in W){const r=n;if("data"===r){if(!i(e[r],t[r])){if(!g(e[r]))return!1;if(!i(ie,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},Z=(0,e.useMemo)((()=>{const e=!!S&&!!n&&(g(l)?!D().isPaused()&&!s&&(!!g(u)||u):l),t=t=>{const n=v(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=F(),o=q(),i=t(r),a=r===o?i:t(o);let c=i;return[()=>{const e=t(F());return Y(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>a]}),[o,S]),K=(0,f.useSyncExternalStore)((0,e.useCallback)((e=>$(S,((t,n)=>{Y(n,t)||e()}))),[o,S]),Z[0],Z[1]),G=!T.current,Q=b[S]&&b[S].length>0,te=K.data,ne=g(te)?J:te,re=K.error,oe=(0,e.useRef)(ne),ie=m?g(te)?oe.current:te:ne,se=!(Q&&!g(re))&&(G&&!g(l)?l:!D().isPaused()&&(s?!g(ne)&&u:g(ne)||u)),ae=!!(S&&n&&G&&se),le=g(K.isValidating)?ae:K.isValidating,ue=g(K.isLoading)?ae:K.isLoading,ce=(0,e.useCallback)((async e=>{const t=N.current;if(!S||!t||M.current||D().isPaused())return!1;let n,o,s=!0;const a=e||{},l=!x[S]||!a.dedupe,u=()=>L?!M.current&&S===I.current&&T.current:S===I.current,c={isValidating:!1,isLoading:!1},d=()=>{H(c)},f=()=>{const e=x[S];e&&e[1]===o&&delete x[S]},h={isValidating:!0};g(F().data)&&(h.isLoading=!0);try{if(l&&(H(h),r.loadingTimeout&&g(F().data)&&setTimeout((()=>{s&&u()&&D().onLoadingSlow(S,r)}),r.loadingTimeout),x[S]=[t(P),_()]),[n,o]=x[S],n=await n,l&&setTimeout(f,r.dedupingInterval),!x[S]||x[S][1]!==o)return l&&u()&&D().onDiscarded(S),!1;c.error=p;const e=w[S];if(!g(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return d(),l&&u()&&D().onDiscarded(S),!1;const a=F().data;c.data=i(a,n)?a:n,l&&u()&&D().onSuccess(n,S,r)}catch(e){f();const t=D(),{shouldRetryOnError:n}=t;t.isPaused()||(c.error=e,l&&u()&&(t.onError(e,S,t),(!0===n||y(n)&&n(e))&&(D().revalidateOnFocus&&D().revalidateOnReconnect&&!z()||t.onErrorRetry(e,S,t,(e=>{const t=b[S];t&&t[0]&&t[0](3,e)}),{retryCount:(a.retryCount||0)+1,dedupe:!0}))))}return s=!1,d(),!0}),[S,o]),de=(0,e.useCallback)(((...e)=>V(o,I.current,...e)),[]);if(j((()=>{N.current=n,O.current=r,g(te)||(oe.current=te)})),j((()=>{if(!S)return;const e=ce.bind(p,ee);let t=0;const n=((e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(S,b,((n,r={})=>{if(0==n){const n=Date.now();D().revalidateOnFocus&&n>t&&z()&&(t=n+D().focusThrottleInterval,e())}else if(1==n)D().revalidateOnReconnect&&z()&&e();else{if(2==n)return ce();if(3==n)return ce(r)}}));return M.current=!1,I.current=S,T.current=!0,H({_k:P}),se&&(g(ne)||B?e():(r=e,R&&typeof window.requestAnimationFrame!=C?window.requestAnimationFrame(r):setTimeout(r,1))),()=>{M.current=!0,n()};var r}),[S]),j((()=>{let e;function t(){const t=y(c)?c(F().data):c;t&&-1!==e&&(e=setTimeout(n,t))}function n(){F().error||!d&&!D().isVisible()||!h&&!D().isOnline()?t():ce(ee).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[c,d,h,S]),(0,e.useDebugValue)(ie),s&&g(ne)&&S){if(!L&&B)throw new Error("Fallback data is required when using suspense in SSR.");N.current=n,O.current=r,M.current=!1;const e=E[S];if(!g(e)){const t=de(e);X(t)}if(!g(re))throw re;{const e=ce(ee);g(ie)||(e.status="fulfilled",e.value=!0),X(e)}}return{mutate:de,get data(){return W.data=!0,ie},get error(){return W.error=!0,re},get isValidating(){return W.isValidating=!0,le},get isLoading(){return W.isLoading=!0,ue}}},function(...t){const n=v(J,(0,e.useContext)(Z)),[r,o,i]=(e=>y(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(t),s=Y(n,i);let a=ne;const{use:l}=s,u=(l||[]).concat(Q);for(let e=u.length;e--;)a=u[e](a);return a(r,o||s.fetcher||null,s)});var ne;function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},re.apply(this,arguments)}function oe(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n(535);function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(){return se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},se.apply(this,arguments)}function ae(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n(684);var le,ue=(0,e.createContext)(),ce=(function(e){}(le=ue),function(e){}(le),function(e){var n=function(n){var r,o;function i(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return ie(ae(ae(r=n.call.apply(n,[this].concat(i))||this)),"cachedTheme",void 0),ie(ae(ae(r)),"lastOuterTheme",void 0),ie(ae(ae(r)),"lastTheme",void 0),ie(ae(ae(r)),"renderProvider",(function(n){var o=r.props.children;return t().createElement(e.Provider,{value:r.getTheme(n)},o)})),r}o=n,(r=i).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var s=i.prototype;return s.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,"function"==typeof this.lastTheme){var t=this.props.theme;this.cachedTheme=t(e)}else{var n=this.props.theme;this.cachedTheme=e?se({},e,n):n}return this.cachedTheme},s.render=function(){return this.props.children?t().createElement(e.Consumer,null,this.renderProvider):null},i}(t().Component)}(le),"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),de="object"===("undefined"==typeof window?"undefined":ce(window))&&"object"===("undefined"==typeof document?"undefined":ce(document))&&9===document.nodeType;function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function he(e){var t=function(e,t){if("object"!==fe(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==fe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===fe(t)?t:String(t)}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,he(r.key),r)}}function me(e,t,n){return t&&pe(e.prototype,t),n&&pe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ge(e,t){return ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ge(e,t)}function ye(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ge(e,t)}function ve(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var be={}.constructor;function we(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(we);if(e.constructor!==be)return e;var t={};for(var n in e)t[n]=we(e[n]);return t}function xe(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=we(t);return r.plugins.onCreateRule(e,o,n)||(e[0],null)}var ke=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Ee=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=ke(e[n]," ");else t=ke(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Se(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Ce(e,t){for(var n="",r=0;r<t;r++)n+="  ";return n+e}function Re(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,s=t.fallbacks;!1===n.format&&(i=-1/0);var a=Se(n),l=a.linebreak,u=a.space;if(e&&i++,s)if(Array.isArray(s))for(var c=0;c<s.length;c++){var d=s[c];for(var f in d){var h=d[f];null!=h&&(r&&(r+=l),r+=Ce(f+":"+u+Ee(h)+";",i))}}else for(var p in s){var m=s[p];null!=m&&(r&&(r+=l),r+=Ce(p+":"+u+Ee(m)+";",i))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=Ce(g+":"+u+Ee(y)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Ce(""+e+u+"{"+r,--i)+Ce("}",i)):r}var Pe=/([[\].#*$><+~=|^:(),"'`\s])/g,Ae="undefined"!=typeof CSS&&CSS.escape,Te=function(e){return Ae?Ae(e):e.replace(Pe,"\\$1")},Me=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,s=e in this.style;if(i&&!s&&!r)return this;var a=i&&s;if(a?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Ie=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,s=r.scoped,a=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==s&&(o.id=l(ve(ve(o)),a),o.selectorText="."+Te(o.id)),o}ye(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Ee(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?re({},e,{allowEmpty:!0}):e;return Re(this.selectorText,this.style,n)},me(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(Me),Ne={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Ie(e,t,n)}},Oe={indent:1,children:!0},Le=/@([\w-]+)/,Be=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Le);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new it(re({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Oe);var t=Se(e).linebreak;if(null==e.indent&&(e.indent=Oe.indent),null==e.children&&(e.children=Oe.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),je=/@container|@media|@supports\s+/,De={onCreateRule:function(e,t,n){return je.test(e)?new Be(e,t,n):null}},ze={indent:1,children:!0},Ue=/@keyframes\s+([\w-]+)/,Fe=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Ue);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,s=n.generateId;for(var a in this.id=!1===o?this.name:Te(s(this,i)),this.rules=new it(re({},n,{parent:this})),t)this.rules.add(a,t[a],re({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=ze);var t=Se(e).linebreak;if(null==e.indent&&(e.indent=ze.indent),null==e.children&&(e.children=ze.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),_e=/@keyframes\s+/,Ve=/\$([\w-]+)/g,He=function(e,t){return"string"==typeof e?e.replace(Ve,(function(e,n){return n in t?t[n]:e})):e},$e=function(e,t,n){var r=e[t],o=He(r,n);o!==r&&(e[t]=o)},qe={onCreateRule:function(e,t,n){return"string"==typeof e&&_e.test(e)?new Fe(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&$e(e,"animation-name",n.keyframes),"animation"in e&&$e(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return He(e,r.keyframes);default:return e}}},We=function(e){function t(){return e.apply(this,arguments)||this}return ye(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?re({},e,{allowEmpty:!0}):e;return Re(this.key,this.style,n)},t}(Me),Je={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new We(e,t,n):null}},Ye=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=Se(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Re(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Re(this.at,this.style,e)},e}(),Ze=/@font-face/,Ke={onCreateRule:function(e,t,n){return Ze.test(e)?new Ye(e,t,n):null}},Ge=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Re(this.key,this.style,e)},e}(),Qe={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Ge(e,t,n):null}},Xe=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),et={"@charset":!0,"@import":!0,"@namespace":!0},tt={onCreateRule:function(e,t,n){return e in et?new Xe(e,t,n):null}},nt=[Ne,De,qe,Je,Ke,Qe,tt],rt={process:!0},ot={force:!0,process:!0},it=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,s=r.jss,a=r.Renderer,l=r.generateId,u=r.scoped,c=re({classes:this.classes,parent:o,sheet:i,jss:s,Renderer:a,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+Te(this.classes[d]));var f=xe(d,t,c);if(!f)return null;this.register(f);var h=void 0===c.index?this.index.length:c.index;return this.index.splice(h,0,f),f},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=re({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Ie?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Fe&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Ie?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Fe&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=rt);var o=this.options,i=o.jss.plugins,s=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var a=t.style;if(i.onUpdate(n,t,s,r),r.process&&a&&a!==t.style){for(var l in i.onProcessStyle(t.style,t,s),t.style){var u=t.style[l];u!==a[l]&&t.prop(l,u,ot)}for(var c in a){var d=t.style[c],f=a[c];null==d&&d!==f&&t.prop(c,null,ot)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=Se(e).linebreak,i=0;i<this.index.length;i++){var s=this.index[i].toString(e);(s||r)&&(t&&(t+=o),t+=s)}return t},e}(),st=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=re({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new it(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),at=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),lt=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=oe(t,["attached"]),o=Se(r).linebreak,i="",s=0;s<this.registry.length;s++){var a=this.registry[s];null!=n&&a.attached!==n||(i&&(i+=o),i+=a.toString(r))}return i},me(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ut=new lt,ct="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),dt="2f1acc6c3a606b082e5eef5e54414ffb";null==ct[dt]&&(ct[dt]=0);var ft=ct[dt]++,ht=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+ft+o+t:i+n.key+"-"+ft+(o?"-"+o:"")+"-"+t}},pt=function(e){var t;return function(){return t||(t=e()),t}},mt=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},gt=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Ee(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},yt=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},vt=function(e,t){return e.selectorText=t,e.selectorText===t},bt=pt((function(){return document.querySelector("head")}));var wt=pt((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),xt=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},kt=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Et=function(){function e(e){this.getPropertyValue=mt,this.setProperty=gt,this.removeProperty=yt,this.setSelector=vt,this.hasInsertedRules=!1,this.cssRules=[],e&&ut.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=wt();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=ut.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=bt(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else bt().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=kt(n,t);if(!1===(o=xt(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var s=e.toString();if(!s)return!1;var a=kt(n,t),l=xt(n,s,a);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,a,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof st&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),St=0,Ct=function(){function e(e){this.id=St++,this.version="10.10.0",this.plugins=new at,this.options={id:{minify:!1},createGenerateId:ht,Renderer:de?Et:null,plugins:[]},this.generateId=ht({minify:!1});for(var t=0;t<nt.length;t++)this.plugins.use(nt[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=re({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===ut.index?0:ut.index+1);var r=new st(e,re({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),ut.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=re({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=xe(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Rt=function(e){return new Ct(e)},Pt=function(){function e(){this.length=0,this.sheets=new WeakMap}var t=e.prototype;return t.get=function(e){var t=this.sheets.get(e);return t&&t.sheet},t.add=function(e,t){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:t,refs:0}))},t.manage=function(e){var t=this.sheets.get(e);if(t)return 0===t.refs&&t.sheet.attach(),t.refs++,t.sheet},t.unmanage=function(e){var t=this.sheets.get(e);t&&t.refs>0&&(t.refs--,0===t.refs&&t.sheet.detach())},me(e,[{key:"size",get:function(){return this.length}}]),e}(),At="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Tt(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Tt(r);i&&(t||(t={}),t[n]=i)}}return t}Rt();var Mt=Date.now(),It="fnValues"+Mt,Nt="fnStyle"+ ++Mt,Ot=n(603),Lt=function(e){return e&&e[Ot.Z]&&e===e[Ot.Z]()},Bt=/;\n/,jt=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},n=e.split(Bt),r=0;r<n.length;r++){var o=(n[r]||"").trim();if(o){var i=o.indexOf(":");if(-1!==i){var s=o.substr(0,i).trim(),a=o.substr(i+1).trim();t[s]=a}}}return t}(e.style))},Dt="@global",zt=function(){function e(e,t,n){for(var r in this.type="global",this.at=Dt,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new it(re({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Ut=function(){function e(e,t,n){this.type="global",this.at=Dt,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,re({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ft=/\s*,\s*/g;function _t(e,t){for(var n=e.split(Ft),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var Vt=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},Ht="extendCurrValue"+Date.now();function $t(e,t,n,r){return void 0===r&&(r={}),function(e,t,n,r){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var o=0;o<e.extend.length;o++){var i=e.extend[o];$t("string"==typeof i?re({},e,{extend:i}):e.extend[o],t,n,r)}else for(var s in e.extend)"extend"!==s?Vt(e.extend[s])?(s in r||(r[s]={}),$t(e.extend[s],t,n,r[s])):r[s]=e.extend[s]:$t(e.extend.extend,t,n,r);else{if(!n)return;var a=n.getRule(e.extend);if(!a)return;if(a===t)return;var l=a.options.parent;l&&$t(l.rules.raw[e.extend],t,n,r)}}(e,t,n,r),function(e,t,n,r){for(var o in e)"extend"!==o&&(Vt(r[o])&&Vt(e[o])?$t(e[o],t,n,r[o]):Vt(e[o])?r[o]=$t(e[o],t,n):r[o]=e[o])}(e,t,n,r),r}var qt=function(){return{onProcessStyle:function(e,t,n){return"extend"in e?$t(e,t,n):e},onChangeValue:function(e,t,n){if("extend"!==t)return e;if(null==e||!1===e){for(var r in n[Ht])n.prop(r,null);return n[Ht]=null,null}if("object"==typeof e){for(var o in e)n.prop(o,e[o]);n[Ht]=e}return null}}},Wt=/\s*,\s*/g,Jt=/&/g,Yt=/\$([\w-]+)/g,Zt=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(Wt),r=e.split(Wt),o="",i=0;i<n.length;i++)for(var s=n[i],a=0;a<r.length;a++){var l=r[a];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Jt,s):s+" "+l}return o}function n(e,t,n){if(n)return re({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=re({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var s,a,l=o,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),f="@"===c[0];if(d||f){if(s=n(l,u,s),d){var h=t(c,l.selector);a||(a=e(u,i)),h=h.replace(Yt,a);var p=l.key+"-"+c;"replaceRule"in u?u.replaceRule(p,r[c],re({},s,{selector:h})):u.addRule(p,r[c],re({},s,{selector:h}))}else f&&u.addRule(c,{},s).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}};function Kt(e,t){if(!t)return!0;if(Array.isArray(t)){for(var n=0;n<t.length;n++)if(!Kt(e,t[n]))return!1;return!0}if(t.indexOf(" ")>-1)return Kt(e,t.split(" "));var r=e.options.parent;if("$"===t[0]){var o=r.getRule(t.substr(1));return!!o&&o!==e&&(r.classes[e.key]+=" "+r.classes[o.key],!0)}return r.classes[e.key]+=" "+t,!0}var Gt=function(){return{onProcessStyle:function(e,t){return"composes"in e?(Kt(t,e.composes),delete e.composes,e):e}}},Qt=/[A-Z]/g,Xt=/^ms-/,en={};function tn(e){return"-"+e.toLowerCase()}var nn=function(e){if(en.hasOwnProperty(e))return en[e];var t=e.replace(Qt,tn);return en[e]=Xt.test(t)?"-"+t:t};function rn(e){var t={};for(var n in e)t[0===n.indexOf("--")?n:nn(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(rn):t.fallbacks=rn(e.fallbacks)),t}var on=At&&CSS?CSS.px:"px",sn=At&&CSS?CSS.ms:"ms",an=At&&CSS?CSS.percent:"%";function ln(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var un=ln({"animation-delay":sn,"animation-duration":sn,"background-position":on,"background-position-x":on,"background-position-y":on,"background-size":on,border:on,"border-bottom":on,"border-bottom-left-radius":on,"border-bottom-right-radius":on,"border-bottom-width":on,"border-left":on,"border-left-width":on,"border-radius":on,"border-right":on,"border-right-width":on,"border-top":on,"border-top-left-radius":on,"border-top-right-radius":on,"border-top-width":on,"border-width":on,"border-block":on,"border-block-end":on,"border-block-end-width":on,"border-block-start":on,"border-block-start-width":on,"border-block-width":on,"border-inline":on,"border-inline-end":on,"border-inline-end-width":on,"border-inline-start":on,"border-inline-start-width":on,"border-inline-width":on,"border-start-start-radius":on,"border-start-end-radius":on,"border-end-start-radius":on,"border-end-end-radius":on,margin:on,"margin-bottom":on,"margin-left":on,"margin-right":on,"margin-top":on,"margin-block":on,"margin-block-end":on,"margin-block-start":on,"margin-inline":on,"margin-inline-end":on,"margin-inline-start":on,padding:on,"padding-bottom":on,"padding-left":on,"padding-right":on,"padding-top":on,"padding-block":on,"padding-block-end":on,"padding-block-start":on,"padding-inline":on,"padding-inline-end":on,"padding-inline-start":on,"mask-position-x":on,"mask-position-y":on,"mask-size":on,height:on,width:on,"min-height":on,"max-height":on,"min-width":on,"max-width":on,bottom:on,left:on,top:on,right:on,inset:on,"inset-block":on,"inset-block-end":on,"inset-block-start":on,"inset-inline":on,"inset-inline-end":on,"inset-inline-start":on,"box-shadow":on,"text-shadow":on,"column-gap":on,"column-rule":on,"column-rule-width":on,"column-width":on,"font-size":on,"font-size-delta":on,"letter-spacing":on,"text-decoration-thickness":on,"text-indent":on,"text-stroke":on,"text-stroke-width":on,"word-spacing":on,motion:on,"motion-offset":on,outline:on,"outline-offset":on,"outline-width":on,perspective:on,"perspective-origin-x":an,"perspective-origin-y":an,"transform-origin":an,"transform-origin-x":an,"transform-origin-y":an,"transform-origin-z":an,"transition-delay":sn,"transition-duration":sn,"vertical-align":on,"flex-basis":on,"shape-margin":on,size:on,gap:on,grid:on,"grid-gap":on,"row-gap":on,"grid-row-gap":on,"grid-column-gap":on,"grid-template-rows":on,"grid-template-columns":on,"grid-auto-rows":on,"grid-auto-columns":on,"box-shadow-x":on,"box-shadow-y":on,"box-shadow-blur":on,"box-shadow-spread":on,"font-line-height":on,"text-shadow-x":on,"text-shadow-y":on,"text-shadow-blur":on});function cn(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=cn(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=cn(o,t[o],n);else for(var i in t)t[i]=cn(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var s=n[e]||un[e];return!s||0===t&&s===on?t.toString():"function"==typeof s?s(t).toString():""+t+s}return t}var dn=function(e){void 0===e&&(e={});var t=ln(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=cn(r,e[r],t);return e},onChangeValue:function(e,n){return cn(n,e,t)}}},fn={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},hn={position:!0,size:!0},pn={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},mn={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function gn(e,t,n,r){return null==n[t]?e:0===e.length?[]:Array.isArray(e[0])?gn(e[0],t,n,r):"object"==typeof e[0]?function(e,t,n){return e.map((function(e){return yn(e,t,n,!1,!0)}))}(e,t,r):[e]}function yn(e,t,n,r,o){if(!pn[t]&&!mn[t])return[];var i=[];if(mn[t]&&(e=function(e,t,n,r){for(var o in n){var i=n[o];if(void 0!==e[o]&&(r||!t.prop(i))){var s,a=vn((s={},s[i]=e[o],s),t)[i];r?t.style.fallbacks[i]=a:t.style[i]=a}delete e[o]}return e}(e,n,mn[t],r)),Object.keys(e).length)for(var s in pn[t])e[s]?Array.isArray(e[s])?i.push(null===hn[s]?e[s]:e[s].join(" ")):i.push(e[s]):null!=pn[t][s]&&i.push(pn[t][s]);return!i.length||o?i:[i]}function vn(e,t,n){for(var r in e){var o=e[r];if(Array.isArray(o)){if(!Array.isArray(o[0])){if("fallbacks"===r){for(var i=0;i<e.fallbacks.length;i++)e.fallbacks[i]=vn(e.fallbacks[i],t,!0);continue}e[r]=gn(o,r,fn,t),e[r].length||delete e[r]}}else if("object"==typeof o){if("fallbacks"===r){e.fallbacks=vn(e.fallbacks,t,!0);continue}e[r]=yn(o,r,t,n),e[r].length||delete e[r]}else""===e[r]&&delete e[r]}return e}function bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wn="",xn="",kn="",En="",Sn=de&&"ontouchstart"in document.documentElement;if(de){var Cn={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Rn=document.createElement("p").style;for(var Pn in Cn)if(Pn+"Transform"in Rn){wn=Pn,xn=Cn[Pn];break}"Webkit"===wn&&"msHyphens"in Rn&&(wn="ms",xn=Cn.ms,En="edge"),"Webkit"===wn&&"-apple-trailing-word"in Rn&&(kn="apple")}var An=wn,Tn=xn,Mn=kn,In=En,Nn=Sn,On={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===An?"-webkit-"+e:Tn+e)}},Ln={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===An?Tn+"print-"+e:e)}},Bn=/[-\s]+(.)?/g;function jn(e,t){return t?t.toUpperCase():""}function Dn(e){return e.replace(Bn,jn)}function zn(e){return Dn("-"+e)}var Un,Fn={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===An){var n="mask-image";if(Dn(n)in t)return e;if(An+zn(n)in t)return Tn+e}return e}},Vn={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Mn||Nn?e:Tn+e)}},Hn={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Tn+e)}},$n={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Tn+e)}},qn={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===An||"ms"===An&&"edge"!==In?Tn+e:e)}},Wn={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===An||"ms"===An||"apple"===Mn?Tn+e:e)}},Jn={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===An?"WebkitColumn"+zn(e)in t&&Tn+"column-"+e:"Moz"===An&&"page"+zn(e)in t&&"page-"+e)}},Yn={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===An)return e;var n=e.replace("-inline","");return An+zn(n)in t&&Tn+n}},Zn={supportedProperty:function(e,t){return Dn(e)in t&&e}},Kn={supportedProperty:function(e,t){var n=zn(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:An+n in t?Tn+e:"Webkit"!==An&&"Webkit"+n in t&&"-webkit-"+e}},Gn={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===An?""+Tn+e:e)}},Qn={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===An?Tn+"scroll-chaining":e)}},Xn={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},er={supportedProperty:function(e,t){var n=Xn[e];return!!n&&An+zn(n)in t&&Tn+n}},tr={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},nr=Object.keys(tr),rr=function(e){return Tn+e},or={supportedProperty:function(e,t,n){var r=n.multiple;if(nr.indexOf(e)>-1){var o=tr[e];if(!Array.isArray(o))return An+zn(o)in t&&Tn+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(An+zn(o[0])in t))return!1;return o.map(rr)}return!1}},ir=[On,Ln,Fn,Vn,Hn,$n,qn,Wn,Jn,Yn,Zn,Kn,Gn,Qn,er,or],sr=ir.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),ar=ir.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,function(e){if(Array.isArray(e))return bn(e)}(n=t.noPrefill)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bn(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),e;var n}),[]),lr={};if(de){Un=document.createElement("p");var ur=window.getComputedStyle(document.documentElement,"");for(var cr in ur)isNaN(cr)||(lr[ur[cr]]=ur[cr]);ar.forEach((function(e){return delete lr[e]}))}function dr(e,t){if(void 0===t&&(t={}),!Un)return e;if(null!=lr[e])return lr[e];"transition"!==e&&"transform"!==e||(t[e]=e in Un.style);for(var n=0;n<sr.length&&(lr[e]=sr[n](e,Un.style,t),!lr[e]);n++);try{Un.style[e]=""}catch(e){return!1}return lr[e]}var fr,hr={},pr={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},mr=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function gr(e,t,n){return"var"===t?"var":"all"===t?"all":"all"===n?", all":(t?dr(t):", "+dr(n))||t||n}function yr(e,t){var n=t;if(!fr||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=hr[r])return hr[r];try{fr.style[e]=n}catch(e){return hr[r]=!1,!1}if(pr[e])n=n.replace(mr,gr);else if(""===fr.style[e]&&("-ms-flex"===(n=Tn+n)&&(fr.style[e]="-ms-flexbox"),fr.style[e]=n,""===fr.style[e]))return hr[r]=!1,!1;return fr.style[e]="",hr[r]=n,hr[r]}de&&(fr=document.createElement("p"));var vr=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=dr(n);i&&i!==n&&(o=!0);var s=!1,a=yr(i,Ee(r));a&&a!==r&&(s=!0),(o||s)&&(o&&delete t[n],t[i||n]=a||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===An?e:"@"+Tn+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return yr(t,Ee(e))||e}}},br=function(e){return void 0===e&&(e={}),{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=xe(e,{},n);return r[Nt]=t,r},onProcessStyle:function(e,t){if(It in t||Nt in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[It]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Nt];i&&(o.style=i(e)||{});var s=o[It];if(s)for(var a in s)o.prop(a,s[a](e),r)}},(n=e.observable,{onCreateRule:function(e,t,r){if(!Lt(t))return null;var o=t,i=xe(e,{},r);return o.subscribe((function(e){for(var t in e)i.prop(t,e[t],n)})),i},onProcessRule:function(e){if(!e||"style"===e.type){var t=e,r=t.style,o=function(e){var o=r[e];if(!Lt(o))return"continue";delete r[e],o.subscribe({next:function(r){t.prop(e,r,n)}})};for(var i in r)o(i)}}}),{onProcessRule:jt},{onCreateRule:function(e,t,n){if(!e)return null;if(e===Dt)return new zt(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,8))return new Ut(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Dt]:null;if(o){for(var i in o)t.addRule(i,o[i],re({},n,{selector:_t(i,e.selector)}));delete r[Dt]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===Dt){var i=_t(o.substr(7),e.selector);t.addRule(i,r[o],re({},n,{selector:i})),delete r[o]}}(e,t))}},qt(),Zt(),Gt(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=rn(e[t]);return e}return rn(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=nn(t);return t===r?e:(n.prop(r,e),null)}},dn(e.defaultUnit),{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var n=0;n<e.length;n++)e[n]=vn(e[n],t);return e}return vn(e,t)}},vr(),(t=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r={},o=Object.keys(e).sort(t),i=0;i<o.length;i++)r[o[i]]=e[o[i]];return r}})]};var t,n},wr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,xr=(function(e){var t={}}((function(e){return wr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Rt(br())),kr=function(e){void 0===e&&(e=xr);var t,n=new Map,r=0,o=function(){return(!t||t.rules.index.length>1e4)&&(t=e.createStyleSheet().attach()),t};function i(){var e=arguments,t=JSON.stringify(e),i=n.get(t);if(i)return i.className;var s=[];for(var a in e){var l=e[a];if(Array.isArray(l))for(var u=0;u<l.length;u++)s.push(l[u]);else s.push(l)}for(var c={},d=[],f=0;f<s.length;f++){var h=s[f];if(h){var p=h;if("string"==typeof h){var m=n.get(h);m&&(m.labels.length&&d.push.apply(d,m.labels),p=m.style)}p.label&&-1===d.indexOf(p.label)&&d.push(p.label),Object.assign(c,p)}}delete c.label;var g=(0===d.length?"css":d.join("-"))+"-"+r++;o().addRule(g,c);var y=o().classes[g],v={style:c,labels:d,className:y};return n.set(t,v),n.set(y,v),y}return i.getSheet=o,i}(),Er=kr,Sr=Number.MIN_SAFE_INTEGER||-1e9,Cr=(0,e.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!de}),Rr=new Map,Pr=function(e,t){var n=e.managers;if(n)return n[t]||(n[t]=new Pt),n[t];var r=Rr.get(t);return r||(r=new Pt,Rr.set(t,r)),r},Ar=function(e){var t=e.sheet,n=e.context,r=e.index,o=e.theme;t&&(Pr(n,r).manage(o),n.registry&&n.registry.add(t))},Tr=Rt(br()),Mr=new WeakMap,Ir=function(e){return Mr.get(e)},Nr=function(e){if(!e.context.disableStylesGeneration){var t=Pr(e.context,e.index),n=t.get(e.theme);if(n)return n;var r=e.context.jss||Tr,o=function(e){var t=e.styles;return"function"!=typeof t?t:t(e.theme)}(e),i=Tt(o),s=r.createStyleSheet(o,function(e,t){var n;e.context.id&&null!=e.context.id.minify&&(n=e.context.id.minify);var r=e.context.classNamePrefix||"";e.name&&!n&&(r+=e.name.replace(/\s/g,"-")+"-");var o="";return e.name&&(o=e.name+", "),o+="function"==typeof e.styles?"Themed":"Unthemed",re({},e.sheetOptions,{index:e.index,meta:o,classNamePrefix:r,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}(e,null!==i));return function(e,t){Mr.set(e,t)}(s,{dynamicStyles:i,styles:o}),t.add(e.theme,s),s}},Or=function(e,t){var n=Ir(e);if(n){var r={};for(var o in n.dynamicStyles)for(var i=e.rules.index.length,s=e.addRule(o,n.dynamicStyles[o]),a=i;a<e.rules.index.length;a++){var l=e.rules.index[a];e.updateOne(l,t),r[s===l?o:l.key]=l}return r}};function Lr(n){return n?e.useEffect:t().useInsertionEffect||e.useLayoutEffect}var Br={},jr=function(t,n){void 0===n&&(n={});var r=n,o=r.index,i=void 0===o?Sr++:o,s=r.theming,a=r.name,l=oe(r,["index","theming","name"]),u=s&&s.context||ue,c={};return function(n){var r=(0,e.useRef)(!0),o=(0,e.useContext)(Cr),s=function(n){return"function"==typeof t&&(n||(0,e.useContext)(u))||Br}(n&&n.theme),d=(0,e.useMemo)((function(){var e=Nr({context:o,styles:t,name:a,theme:s,index:i,sheetOptions:l});return e&&o.isSSR&&Ar({index:i,context:o,sheet:e,theme:s}),[e,e?Or(e,n):null]}),[o,s]),f=d[0],h=d[1];Lr(o.isSSR)((function(){f&&h&&!r.current&&function(e,t,n){for(var r in n)t.updateOne(n[r],e)}(n,f,h)}),[n]),Lr(o.isSSR)((function(){return f&&Ar({index:i,context:o,sheet:f,theme:s}),function(){f&&(function(e){e.sheet&&Pr(e.context,e.index).unmanage(e.theme)}({index:i,context:o,sheet:f,theme:s}),h&&function(e,t){for(var n in t)e.deleteRule(t[n])}(f,h))}}),[f]);var p=(0,e.useMemo)((function(){return f&&h?function(e,t){if(!t)return e.classes;var n=Ir(e);if(!n)return e.classes;var r={};for(var o in n.styles)r[o]=e.classes[o],o in t&&(r[o]+=" "+e.classes[t[o].key]);return r}(f,h):c}),[f,h]);return(0,e.useDebugValue)(p),(0,e.useDebugValue)(s===Br?"No theme":s),(0,e.useEffect)((function(){r.current=!1})),p}};Symbol("react-jss-styled"),function(e){void 0===e&&(e=Er)}();const Dr=jr({component:{},columnsControl:{padding:10,background:"white",width:180,border:"1px solid black"},controls:{display:"flex",gap:10},yearSelectControl:{padding:10,cursor:"pointer"},table:{width:"100%"}}),zr="climbpress-route-table-columns",Ur=(e,t)=>e.find((e=>e.id==t)),Fr=(e,t)=>{let n=-1,r=-1;return t.grades.forEach(((t,o)=>{const i=Math.abs(t.difficulty-e);(r<0||r>i)&&(r=i,n=o)})),t.grades[n]},_r={neutral50:"#FAFAFA",neutral100:"#F5F5F5",neutral200:"#EEEEEE",neutral300:"#E0E0E0",neutral400:"#BDBDBD",neutral500:"#9E9E9E",neutral600:"#757575",neutral700:"#616161",neutral800:"#424242",neutral900:"#212121"},Vr={primary:"#455a64",onPrimary:_r.neutral50,primaryDark:"#1c313a",onPrimaryDark:_r.neutral50,primaryLight:"#718792",onPrimaryLight:_r.neutral900,secondary:"#d7ccc8",onSecondary:_r.neutral900,secondaryDark:"#a69b97",onSecondaryDark:_r.neutral900,secondaryLight:"#fffffb",onSecondaryLight:_r.neutral900,neutral:_r,delete:"#D32F2F",deleteDark:"#C62828",deleteLight:"#FFEBEE",onDelete:_r.neutral50,onDeleteDark:_r.neutral50,onDeleteLight:_r.neutral900},Hr=jr({table:{borderCollapse:"collapse",marginBlock:25,fontSize:"1em",fontFamily:"sans-serif",boxShadow:"0 0 20px rgba(0, 0, 0, 0.15)","& th":{backgroundColor:Vr.neutral.neutral200,color:Vr.onSecondary,textAlign:"left",borderBottom:"2px solid "+Vr.neutral.neutral300,whiteSpace:"nowrap"},"& td":{backgroundColor:"white"},"& th, & td":{paddingBlock:12,paddingInline:15},"& tbody tr:hover td":{backgroundColor:Vr.neutral.neutral100},tfooter:{borderBottom:"2px solid black"}},icon:{width:16,display:"block"},dropdown:{color:"black",background:"white",boxShadow:"0 0 20px rgba(0, 0, 0, 0.15)",listStyle:"none",padding:0,margin:0},dropdownButton:{cursor:"pointer"},dropdownItem:{cursor:"pointer",paddingBlock:12,paddingInline:18,whiteSpace:"nowrap","&:hover":{backgroundColor:"#F5F5F5"}},controls:{display:"flex",flexDirection:"column",gap:"4px"},difficulty:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:4},chart:{width:20}}),$r=jr({component:{},wrapper:{position:"relative"},content:{position:"absolute",bottom:0,top:-10}});var qr=({show:t,children:n,content:r})=>{const o=$r(),i=(0,e.useRef)();return(0,e.createElement)("div",{className:o.component,ref:i},n,(0,e.createElement)("div",{className:o.wrapper},(0,e.createElement)("div",{className:o.content},t&&r)))};const Wr=jr({component:{cursor:"pointer",marginRight:20,userSelect:"none"},active:{marginRight:0},icon:{width:16,marginLeft:4,display:"inline-block"}}),Jr=jr({component:{}}),Yr=()=>(0,e.createElement)("path",{d:"M160-160v-320h160v320H160Zm240 0v-640h160v640H400Zm240 0v-440h160v440H640Z"}),Zr=()=>(0,e.createElement)("path",{d:"M490.3 40.4C512.2 62.27 512.2 97.73 490.3 119.6L460.3 149.7L362.3 51.72L392.4 21.66C414.3-.2135 449.7-.2135 471.6 21.66L490.3 40.4zM172.4 241.7L339.7 74.34L437.7 172.3L270.3 339.6C264.2 345.8 256.7 350.4 248.4 353.2L159.6 382.8C150.1 385.6 141.5 383.4 135 376.1C128.6 370.5 126.4 361 129.2 352.4L158.8 263.6C161.6 255.3 166.2 247.8 172.4 241.7V241.7zM192 63.1C209.7 63.1 224 78.33 224 95.1C224 113.7 209.7 127.1 192 127.1H96C78.33 127.1 64 142.3 64 159.1V416C64 433.7 78.33 448 96 448H352C369.7 448 384 433.7 384 416V319.1C384 302.3 398.3 287.1 416 287.1C433.7 287.1 448 302.3 448 319.1V416C448 469 405 512 352 512H96C42.98 512 0 469 0 416V159.1C0 106.1 42.98 63.1 96 63.1H192z"}),Kr=()=>(0,e.createElement)("path",{fill:"currentColor",d:"M320 224H416c17.67 0 32-14.33 32-32s-14.33-32-32-32h-95.1c-17.67 0-32 14.33-32 32S302.3 224 320 224zM320 352H480c17.67 0 32-14.33 32-32s-14.33-32-32-32h-159.1c-17.67 0-32 14.33-32 32S302.3 352 320 352zM320 96h32c17.67 0 31.1-14.33 31.1-32s-14.33-32-31.1-32h-32c-17.67 0-32 14.33-32 32S302.3 96 320 96zM544 416h-223.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H544c17.67 0 32-14.33 32-32S561.7 416 544 416zM192.4 330.7L160 366.1V64.03C160 46.33 145.7 32 128 32S96 46.33 96 64.03v302L63.6 330.7c-6.312-6.883-14.94-10.38-23.61-10.38c-7.719 0-15.47 2.781-21.61 8.414c-13.03 11.95-13.9 32.22-1.969 45.27l87.1 96.09c12.12 13.26 35.06 13.26 47.19 0l87.1-96.09c11.94-13.05 11.06-33.31-1.969-45.27C224.6 316.8 204.4 317.7 192.4 330.7z"}),Gr=()=>(0,e.createElement)("path",{fill:"currentColor",d:"M416 288h-95.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H416c17.67 0 32-14.33 32-32S433.7 288 416 288zM544 32h-223.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H544c17.67 0 32-14.33 32-32S561.7 32 544 32zM352 416h-32c-17.67 0-32 14.33-32 32s14.33 32 32 32h32c17.67 0 31.1-14.33 31.1-32S369.7 416 352 416zM480 160h-159.1c-17.67 0-32 14.33-32 32s14.33 32 32 32H480c17.67 0 32-14.33 32-32S497.7 160 480 160zM192.4 330.7L160 366.1V64.03C160 46.33 145.7 32 128 32S96 46.33 96 64.03v302L63.6 330.7c-6.312-6.883-14.94-10.38-23.61-10.38c-7.719 0-15.47 2.781-21.61 8.414c-13.03 11.95-13.9 32.22-1.969 45.27l87.1 96.09c12.12 13.26 35.06 13.26 47.19 0l87.1-96.09c11.94-13.05 11.06-33.31-1.969-45.27C224.6 316.8 204.4 317.7 192.4 330.7z"}),Qr=()=>(0,e.createElement)("path",{fill:"currentColor",d:"M120-520v-320h320v320H120Zm80-80h160v-160H200v160Zm-80 480v-320h320v320H120Zm80-80h160v-160H200v160Zm320-320v-320h320v320H520Zm80-80h160v-160H600v160Zm160 480v-80h80v80h-80ZM520-360v-80h80v80h-80Zm80 80v-80h80v80h-80Zm-80 80v-80h80v80h-80Zm80 80v-80h80v80h-80Zm80-80v-80h80v80h-80Zm0-160v-80h80v80h-80Zm80 80v-80h80v80h-80Z"});var Xr=({icon:t,className:n=""})=>{const r=Jr();return(0,e.createElement)("div",{className:[r.component,n].join(" ")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"qr"!=t&&"chart"!=t?"0 0 576 512":"0 -960 960 960"},"asc"==t&&(0,e.createElement)(Kr,null),"desc"==t&&(0,e.createElement)(Gr,null),"edit"==t&&(0,e.createElement)(Zr,null),"qr"==t&&(0,e.createElement)(Qr,null),"chart"==t&&(0,e.createElement)(Yr,null)))},eo=({direction:t,onClick:n,children:r})=>{const o=Wr(),i=[o.component];return""!=t&&i.push(o.active),(0,e.createElement)("div",{className:i.join(" "),onClick:n},r,"asc"==t&&(0,e.createElement)(Xr,{icon:"asc",className:o.icon}),"desc"==t&&(0,e.createElement)(Xr,{icon:"desc",className:o.icon}))};const to=jr({component:{appearance:"button",backfaceVisibility:"hidden",backgroundColor:"var(--background-color)",borderRadius:4,borderWidth:0,boxSizing:"border-box",color:"var(--text-color)",cursor:"pointer",height:44,outline:"none",padding:"0 25px",textAlign:"center",transition:"all .2s,box-shadow .08s ease-in",userSelect:"none",fontWeight:700,"&:hover":{backgroundColor:"var(--background-color-hover)",color:"var(--text-color-hover)"},"&:disabled":{cursor:"disabled"},"&:focus":{boxShadow:"rgba(50, 50, 93, .1) 0 0 0 1px inset, rgba(50, 50, 93, .2) 0 6px 15px 0, rgba(0, 0, 0, .1) 0 2px 2px 0, rgba(50, 151, 211, .3) 0 0 0 4px"}},primary:{"--text-color":Vr.onPrimary,"--text-color-hover":Vr.onPrimaryDark,"--background-color":Vr.primary,"--background-color-hover":Vr.primaryDark},secondary:{"--text-color":Vr.onSecondary,"--text-color-hover":Vr.onSecondaryDark,"--background-color":Vr.secondary,"--background-color-hover":Vr.secondaryDark},outline:{"--text-color":Vr.neutral.neutral900,"--text-color-hover":Vr.onSecondaryDark,"--background-color":Vr.neutral.neutral50,"--background-color-hover":Vr.neutral.neutral50,border:"3px solid "+Vr.neutral.neutral300,"&:hover":{borderColor:Vr.neutral.neutral400}},delete:{"--text-color":Vr.onDeleteLight,"--text-color-hover":Vr.onDeleteDark,"--background-color":Vr.deleteLight,"--background-color-hover":Vr.deleteDark,border:"3px solid "+Vr.delete,"&:hover":{borderColor:Vr.deleteDark}},dense:{padding:"0 10px",height:24,borderRadius:4}});var no=({variant:t="primary",size:n="normal",className:r="",children:o,onClick:i})=>{const s=to();return(0,e.createElement)("button",{className:`${s.component} ${s[t]} ${s[n]} ${r}`,onClick:i},o)};const ro=({route:t,system:n,columns:r,metaStructure:o,onEditClick:i,onClickDifficulty:s,onQRClick:a})=>{const l=Hr();return(0,e.createElement)("tr",null,r.map((r=>{if("status"==r)return(0,e.createElement)("td",null,oo[t.status]);if("difficulty"==r)return(0,e.createElement)("td",null,(0,e.createElement)(no,{variant:"outline",size:"dense",onClick:s,className:l.difficulty},Fr(t.difficulty,n).label));if("gradingSystem"==r)return(0,e.createElement)("td",null,n.name);if("created"==r)return(0,e.createElement)("td",null,new Date(Date.parse(t.created)).toLocaleDateString());if(t.metas[r]){var i;const n=t.metas[r],s=o.find((e=>e.key==r))?.options,a=s?.find((e=>e.key==n)),l=null!==(i=a?.label)&&void 0!==i?i:n;return(0,e.createElement)("td",{key:r},l)}return(0,e.createElement)("td",{key:r},t[r])})),(0,e.createElement)("td",{className:l.controls},(0,e.createElement)(no,{variant:"outline",size:"dense",onClick:i},(0,e.createElement)(Xr,{icon:"edit",className:l.icon})),(0,e.createElement)(no,{variant:"outline",size:"dense",onClick:a},(0,e.createElement)(Xr,{icon:"qr",className:l.icon}))))},oo={any:"⚪️","screwed-on":"🟢","screwed-off":"🔴"};var io=({className:t="",columns:n={},children:r,onChange:o,state:i})=>{const a=Hr(),[l,u]=(0,e.useState)(!1);return(0,e.createElement)("table",{className:`${a.table} ${t}`},(0,e.createElement)("thead",null,(0,e.createElement)("tr",null,Object.keys(n).map((t=>{if("status"==t)return(0,e.createElement)("th",{key:t},(0,e.createElement)(qr,{show:l,content:(0,e.createElement)("ul",{className:a.dropdown},(0,e.createElement)("li",{className:a.dropdownItem,onClick:()=>{u(!1),o({...i,status:"any"})}},oo.any," ",s("All")),(0,e.createElement)("li",{className:a.dropdownItem,onClick:()=>{u(!1),o({...i,status:"screwed-on"})}},oo["screwed-on"]," ",s("Screwed on")),(0,e.createElement)("li",{className:a.dropdownItem,onClick:()=>{u(!1),o({...i,status:"screwed-off"})}},oo["screwed-off"]," ",s("Screwed off")))},(0,e.createElement)("div",{className:a.dropdownButton,onClick:()=>u((e=>!e))},oo[i.status])));const r=n[t];return(0,e.createElement)("th",{key:t},(0,e.createElement)(eo,{direction:i.orderBy==t?i.orderDirection:"",onClick:(c=t,()=>{i.orderBy!=c?o({...i,orderBy:c,orderDirection:"asc"}):"asc"==i.orderDirection?o({...i,orderDirection:"desc"}):o({...i,orderBy:"",orderDirection:""})})},r));var c})),(0,e.createElement)("th",null))),(0,e.createElement)("tbody",null,r))};const so=jr({component:{},item:{display:"block","& + &":{marginTop:5}}}),ao={status:s("Status"),name:s("Route name"),created:s("Date"),difficulty:s("Grade"),gradingSystem:s("Grading-System")};var lo=({columns:t,state:n,onChange:r})=>{const o=so();return(0,e.createElement)("div",{className:o.component},Object.keys(t).map((i=>{const s=t[i];return(0,e.createElement)("label",{key:i,className:o.item},(0,e.createElement)("input",{type:"checkbox",onChange:(a=i,()=>{const e=n.includes(a)?n.filter((e=>e!=a)):[...n,a];r(e)}),checked:n.includes(i)})," ",s);var a})))};const uo=jr({component:{},formContent:{width:"100%",minWidth:360,"@media (min-width: 600px)":{minWidth:560,display:"grid",gap:10,gridTemplateColumns:"repeat(2, 1fr)"},"@media (min-width: 900px)":{minWidth:800,display:"grid",gap:10,gridTemplateColumns:"repeat(3, 1fr)"}},field:{marginBlock:10},controls:{marginTop:26,display:"flex",justifyContent:"end",gap:10}});function co({label:t,value:n,type:r="text",onChange:o}){return(0,e.createElement)("label",{className:"cp-input-control"},t,(0,e.createElement)("br",null),(0,e.createElement)("input",{className:"cp-input-control--input",type:r,value:n,onChange:e=>o(e.target.value)}))}function fo({label:t,value:n,options:r,onChange:o}){return(0,e.createElement)("label",{className:"cp-select-control"},t,(0,e.createElement)("br",null),(0,e.createElement)("select",{value:n,onChange:e=>o(e.target.value)},r.map((t=>(0,e.createElement)("option",{key:t.value,value:t.value},t.label)))))}const ho=jr({component:{"@media (min-width: 400px)":{display:"grid",gap:10,gridTemplateColumns:"repeat(2, 1fr)"}}});var po=({selectedSystemId:t,difficulty:n,systems:r,onChangeSystem:o,onChangeDifficulty:i})=>{const a=ho(),l=r.find((e=>e.id==t));(0,e.useEffect)((()=>{l||o(r[0].id)}),[t]);const u=Fr(n,l);return(0,e.createElement)("div",{className:a.component},(0,e.createElement)(fo,{label:s("Grade"),value:u.difficulty+"",options:r.find((e=>e.id==t))?.grades?.map((e=>({value:e.difficulty+"",label:e.label}))),onChange:e=>i(parseInt(e))}),(0,e.createElement)(fo,{label:s("Grading-System"),value:t,options:r.map((e=>({value:e.id,label:e.name}))),onChange:o}))},mo=({route:t,systems:n,metaStructure:r,onChange:o,onCancel:i,onDelete:a})=>{var l;const u=uo(),[c,d]=(0,e.useState)(t),f=null!==(l=Ur(n,c.gradingSystem))&&void 0!==l?l:n[0],h=(0,e.useMemo)((()=>Fr(c.difficulty,f)),[c.difficulty,f.id]);(0,e.useEffect)((()=>{d(t)}),[t.id]),(0,e.useEffect)((()=>{""==c.created&&d({...c,created:(new Date).toISOString().split("T")[0]})}),[c.created]);const p=e=>t=>{d((n=>({...n,[e]:t})))},m=e=>t=>{d((n=>({...n,metas:{...n.metas,[e]:t}})))};return(0,e.createElement)("div",{className:u.component},"function"==typeof a&&(0,e.createElement)("div",null,(0,e.createElement)(no,{variant:"outline",onClick:()=>{d((e=>({...e,status:"screwed-on"==e.status?"screwed-off":"screwed-on"})))}},"screwed-on"==c.status?"🟢 "+s("Screwed on"):"⚪️ "+s("Screwed off"))),(0,e.createElement)("div",{className:u.field},(0,e.createElement)(co,{label:s("Route name"),value:c.name,onChange:p("name")})),(0,e.createElement)("div",{className:u.field},(0,e.createElement)(po,{selectedSystemId:c.gradingSystem,difficulty:h.difficulty,systems:n,onChangeSystem:p("gradingSystem"),onChangeDifficulty:p("difficulty")})),(0,e.createElement)("div",{className:u.formContent},(0,e.createElement)("div",{className:u.field},(0,e.createElement)(co,{label:s("Date"),value:c.created,onChange:p("created"),type:"date"})),r.map((t=>{var n,r;return(0,e.createElement)("div",{key:t.key,className:u.field},t.options.length>0?(0,e.createElement)(fo,{label:t.label,value:null!==(n=c.metas?.[t.key])&&void 0!==n?n:"",options:[{value:"",label:""},...t.options.map((e=>({value:e.key,label:e.label})))],onChange:m(t.key)}):(0,e.createElement)(co,{key:t.key,label:t.label,value:null!==(r=c.metas?.[t.key])&&void 0!==r?r:"",onChange:m(t.key)}))}))),(0,e.createElement)("div",{className:u.controls},"function"==typeof a&&(0,e.createElement)(no,{onClick:()=>a(),variant:"delete"},s("Delete")),(0,e.createElement)(no,{variant:"outline",onClick:i},s("Cancel")),(0,e.createElement)(no,{onClick:()=>o(c)},s("Save"))))};function go({onClick:t,children:n}){const r=(0,i.useRef)();return(0,e.useEffect)((()=>{const e=e=>{r.current&&!r.current.contains(e.target)&&t()};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[r]),(0,e.createElement)("div",{ref:r},n)}var yo=n(119);function vo(){var e=function(e){var n=e.text,r=e.options,o=e.logo,i=t().useRef(null);return t().useEffect((function(){var e,t,s,a,l,u,c,d,f;if(i&&i.current&&(yo.toCanvas(i.current,n,r,(function(e){if(e)throw e})),o)){var h=i.current.getContext("2d");if(h){var p=new Image;p.src=o.src;var m=(null===(e=null==o?void 0:o.options)||void 0===e?void 0:e.width)||30;if((null===(t=null==o?void 0:o.options)||void 0===t?void 0:t.hasOwnProperty("x"))&&(null===(s=null==o?void 0:o.options)||void 0===s?void 0:s.hasOwnProperty("y"))){var g=(null===(a=null==o?void 0:o.options)||void 0===a?void 0:a.x)||0,y=(null===(l=null==o?void 0:o.options)||void 0===l?void 0:l.y)||0;p.onload=function(){h.drawImage(p,g,y,m,m)}}if(!(null===(u=null==o?void 0:o.options)||void 0===u?void 0:u.hasOwnProperty("x"))||!(null===(c=null==o?void 0:o.options)||void 0===c?void 0:c.hasOwnProperty("y"))||void 0===(null===(d=null==o?void 0:o.options)||void 0===d?void 0:d.x)||void 0===(null===(f=null==o?void 0:o.options)||void 0===f?void 0:f.y)){var v=null==r?void 0:r.margin;v=v?8*v:0===v?0:32;var b=(((null==r?void 0:r.width)||116+v)-m)/2;p.onload=function(){h.drawImage(p,b,b,m,m)}}}}}),[i,n,r,o]),t().createElement("canvas",{ref:i})};return t().useMemo((function(){return e}),[])}const bo=jr({component:{display:"flex",flexDirection:"column",fontSize:"0.8em",gap:4,paddingRight:20,"& .item":{position:"relative",width:300,display:"grid",gridTemplateColumns:"40px 1fr",gap:2},"& .label":{fontWeight:"bold",padding:2,borderRadius:4,border:"1px solid #2271b1",textAlign:"center"},"& .is-setter-grade .label":{background:"#2271b1",color:"white"}},bar:{position:"relative",background:"#2271b1",height:"100%",borderRadius:4,"& span":{position:"absolute",top:3,right:-26}},isSetterGrade:{"& .label":{background:"red"}},setterBar:{background:"red",width:"100%"}});function wo({gradingSystem:t,setterGrade:n,votings:r}){const o=bo(),i=[...t.grades].reverse(),s=r.reduce(((e,t)=>e+t.votes),0);return(0,e.createElement)("div",{className:o.component},i.map((t=>{var i;const a=r.find((({difficulty:e})=>e==t.difficulty)),l=t.difficulty==n.difficulty,u=s>0?(null!==(i=a?.votes)&&void 0!==i?i:0)/s:0,c=Math.floor(100*u);return(0,e.createElement)("div",{key:t.difficulty,className:"item "+(l?"is-setter-grade":"")},(0,e.createElement)("div",{className:"label"},t.label),(0,e.createElement)("div",{className:o.bar,style:{width:100*u+"%"}},(0,e.createElement)("span",null,c,"%")))})))}function xo({route:t}){const[n,r]=(e=>{const{data:t=[],isLoading:n}=te(`${a()}/routes/${e}/votes`,(e=>d()({path:e})));return[t,n]})(t.id),o=l(),i=Ur(o,t.gradingSystem);if(!i)return;const s=Fr(t.difficulty,i),u=n.reduce(((e,t)=>e+t.votes),0);return(0,e.createElement)("div",null,(0,e.createElement)("h3",{style:{marginTop:0}},t.name),(0,e.createElement)("p",null,"Bewertungena aus der Community: ",u),(0,e.createElement)(wo,{gradingSystem:i,setterGrade:s,votings:n}))}var ko=()=>{var n,r;const o=Dr(),{Image:c}={Image:(_=function(e){var n=e.text,r=e.options,o=t().useRef(null);return t().useEffect((function(){o&&o.current&&yo.toDataURL(n,r,(function(e,t){if(e)throw e;o.current instanceof HTMLImageElement&&(o.current.src=t)}))}),[n,r,o]),t().createElement("img",{ref:o})},t().useMemo((function(){return _}),[])),Canvas:vo(),SVG:(V=function(e){var n=e.text,r=e.options,o=t().useRef(null);return t().useEffect((function(){yo.toString(n,r,(function(e,t){if(e)throw e;o.current instanceof HTMLDivElement&&(o.current.innerHTML=t)}))}),[n,r]),t().createElement("div",{ref:o})},t().useMemo((function(){return V}),[]))},f=l(),h=window.ClimbPress.routeMetaStructure,p=u(window.ClimbPress.defaultGradingSystemId),m=window.ClimbPress.availableYears,g=(0,i.useRef)(-1),y=(0,i.useRef)(null),[v,b]=(0,i.useState)(null),[w,x]=(0,i.useState)(!1),[k,E]=(0,i.useState)(!1),[S,C]=(()=>{const[t,n]=(0,i.useState)(JSON.parse(localStorage.getItem(zr))||[]);return(0,e.useEffect)((()=>{localStorage.setItem(zr,JSON.stringify(t))}),[t]),[t,n]})(),[R,P]=(0,i.useState)(""),[A,T]=(0,i.useState)({status:"screwed-on",orderBy:"",orderDirection:""}),{routes:M,update:I,add:N,remove:O}=((e="any",t="")=>{const{data:n,mutate:r}=te(a()+"/routes?status="+e+"&year="+t,(e=>d()({path:e})));return{routes:null!=n?n:[],update:e=>{d()({path:a()+"/routes/"+e.id,method:"PATCH",data:{name:e.name,status:e.status,difficulty:e.difficulty,grading_system:e.gradingSystem,created:e.created,metas:e.metas}}).finally((()=>{r(n.map((t=>({...t.id==e.id?e:t}))))}))},add:e=>{d()({path:a()+"/routes",method:"POST",data:{name:e.name,status:e.status,difficulty:e.difficulty,grading_system:e.gradingSystem,created:e.created,metas:e.metas}}).then((e=>{r([e,...n])}))},remove:e=>{d()({path:a()+"/routes/"+e,method:"DELETE"}).then((()=>{r(n.filter((t=>t.id!=e)))}))}}})(A.status,R),L=M.find((e=>e.id==v?.routeId)),B=()=>y.current.showModal(),j=()=>y.current.close(),D=(0,i.useMemo)((()=>{const e={...ao};return h.forEach((t=>{e[t.key]=t.label})),e}),[h,ao]),z=(0,i.useMemo)((()=>Object.keys(D).filter((e=>!S.includes(e)))),[S,D]),U=(0,i.useMemo)((()=>{const e={};return Object.keys(D).forEach((t=>{S.includes(t)||(e[t]=D[t])})),e}),[S,D]),F=(e,t="")=>{const n=new URL(window.location.origin);return""!=t&&(n.pathname="route/"+t),n.searchParams.set(window.ClimbPress.votingPageParam,e+""),n.toString()};var _,V;return(0,e.createElement)("div",{className:o.component},(0,e.createElement)("div",{className:o.controls},(0,e.createElement)(no,{onClick:()=>{b({type:"edit",routeId:0}),B()}},s("New Route")),(0,e.createElement)(qr,{show:w,content:(0,e.createElement)(go,{onClick:()=>{x(!1)}},(0,e.createElement)("div",{className:o.columnsControl},(0,e.createElement)(lo,{columns:D,state:z,onChange:e=>{const t=Object.keys(D).filter((t=>!e.includes(t)));C(t)}})))},(0,e.createElement)(no,{onClick:()=>x((e=>!e)),variant:"outline"},s("Columns"))),(0,e.createElement)(qr,{show:k,content:(0,e.createElement)(go,{onClick:()=>E(!1)},(0,e.createElement)("div",{className:o.columnsControl},(0,e.createElement)("div",{className:o.yearSelectControl,onClick:()=>{P("")}},(0,e.createElement)("input",{type:"radio",checked:""==R})," ",s("All routes")),m.map((t=>(0,e.createElement)("div",{key:t,className:o.yearSelectControl,onClick:()=>{P(t)}},(0,e.createElement)("input",{type:"radio",checked:R==t})," ",t)))))},(0,e.createElement)(no,{onClick:()=>E((e=>!e)),variant:"outline"},""==R?s("All years"):R)),(0,e.createElement)(no,{onClick:()=>{return window.open((e=R,window.ClimbPress.exportUrl+(""!=e?"&year="+e:"")));var e},variant:"outline"},s("Export"))),(0,e.createElement)("dialog",{ref:y},"edit"==v?.type?L?(0,e.createElement)(mo,{route:L,systems:f,metaStructure:h,onChange:e=>{j(),I(e)},onCancel:j,onDelete:()=>{const e=s('Permanently delete "%s"?').replace("%s",L.name);confirm(e)&&(O(L.id),b({type:"edit",routeId:0}),y.current.close())}}):(0,e.createElement)(mo,{route:{id:g.current,name:"",status:"screwed-on",created:"",difficulty:null!==(n=p?.grades?.[0]?.difficulty)&&void 0!==n?n:0,gradingSystem:null!==(r=p?.id)&&void 0!==r?r:"",metas:{}},systems:f,metaStructure:h,onChange:e=>{j(),N(e),g.current--},onCancel:j}):null,"qr"==v?.type?(0,e.createElement)(go,{onClick:()=>{b(null),j()}},(0,e.createElement)(c,{text:F(v.routeId),options:{type:"image/jpeg",quality:.6,errorCorrectionLevel:"H",margin:4,scale:4,width:300}}),(0,e.createElement)("p",null,(0,e.createElement)("a",{href:F(v.routeId)},F(v.routeId)))):null,"difficulty"==v?.type&&L?(0,e.createElement)(go,{onClick:()=>{}},(0,e.createElement)(xo,{route:L})):null),(0,e.createElement)(io,{state:A,onChange:T,className:o.table,columns:U},((e,t="",n="desc")=>""===t?e:[...e].sort(((e,r)=>{const o="desc"==n?r:e,i="desc"==n?e:r;return"name"==t?o.name.localeCompare(i.name):"difficulty"==t?o.difficulty-i.difficulty:"gradingSystem"==t?o.gradingSystem.localeCompare(i.gradingSystem,"de",{sensitivity:"base"}):"created"==t?o.created.localeCompare(i.created,"de",{sensitivity:"base"}):o.metas[t]?.localeCompare(i.metas[t],"de",{sensitivity:"base"})})))(M,A.orderBy,A.orderDirection).map((t=>(0,e.createElement)(ro,{key:t.id,route:t,system:Ur(f,t.gradingSystem),columns:Object.keys(U),metaStructure:h,onClickDifficulty:()=>{b({type:"difficulty",routeId:t.id}),B()},onEditClick:()=>{b({type:"edit",routeId:t.id}),B()},onQRClick:()=>{b({type:"qr",routeId:t.id}),B()}})))))};o()((()=>{(0,i.render)((0,e.createElement)(ko,null),document.getElementById(window.ClimbPress.rootId))}))}()}();
  • climbpress/trunk/dist/stats.asset.php

    r3024800 r3045938  
    1 <?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-dom-ready', 'wp-element'), 'version' => '694f2029b4c03cbc15ac');
     1<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-dom-ready', 'wp-element'), 'version' => '2e25ad5ddeb912da85ff');
  • climbpress/trunk/dist/stats.js

    r3024800 r3045938  
    1 !function(){"use strict";var e={535:function(e,t,r){var n=r(237),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=p(r);i&&i!==h&&e(t,i,n)}var s=c(r);d&&(s=s.concat(d(r)));for(var a=l(t),y=l(r),m=0;m<s.length;++m){var g=s[m];if(!(o[g]||n&&n[g]||y&&y[g]||a&&a[g])){var v=f(r,g);try{u(t,g,v)}catch(e){}}}}return t}},684:function(e,t){},198:function(e,t){var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case m:case y:case l:return e;default:return t}}case i:return t}}}function k(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=y,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||x(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===y},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=x},237:function(e,t,r){e.exports=r(198)},603:function(e,t,r){r.d(t,{Z:function(){return n}}),e=r.hmd(e);var n=function(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:e)},415:function(e,t,r){var n=r(196),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,s=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return a((function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,r,t]),s((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},322:function(e,t,r){e.exports=r(415)},196:function(e){e.exports=window.React}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n](o,o.exports,r),o.loaded=!0,o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e=r(196),t=r.n(e),n=window.wp.domReady,i=r.n(n),o=window.wp.element;const s=e=>{var t;return null!==(t=window.ClimbPress.i18n[e])&&void 0!==t?t:`? ${e} ?`},a=()=>window.ClimbPress.RESTNamespace,l=e=>{var t;return null!==(t=window.ClimbPress.gradingSystems.find((t=>t.id==e)))&&void 0!==t?t:null};function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function c(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}r(535);function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r(684);var h,y=(0,e.createContext)(),m=(function(e){}(h=y),function(e){}(h),function(e){var r=function(r){var n,i;function o(){for(var n,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return d(p(p(n=r.call.apply(r,[this].concat(o))||this)),"cachedTheme",void 0),d(p(p(n)),"lastOuterTheme",void 0),d(p(p(n)),"lastTheme",void 0),d(p(p(n)),"renderProvider",(function(r){var i=n.props.children;return t().createElement(e.Provider,{value:n.getTheme(r)},i)})),n}i=r,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var s=o.prototype;return s.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,"function"==typeof this.lastTheme){var t=this.props.theme;this.cachedTheme=t(e)}else{var r=this.props.theme;this.cachedTheme=e?f({},e,r):r}return this.cachedTheme},s.render=function(){return this.props.children?t().createElement(e.Consumer,null,this.renderProvider):null},o}(t().Component)}(h),"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),g="object"===("undefined"==typeof window?"undefined":m(window))&&"object"===("undefined"==typeof document?"undefined":m(document))&&9===document.nodeType;function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function b(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===v(t)?t:String(t)}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b(n.key),n)}}function x(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function S(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,k(e,t)}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var P={}.constructor;function O(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(O);if(e.constructor!==P)return e;var t={};for(var r in e)t[r]=O(e[r]);return t}function E(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,i=O(t);return n.plugins.onCreateRule(e,i,r)||(e[0],null)}var C=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},A=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=C(e[r]," ");else t=C(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function T(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function j(e,t){for(var r="",n=0;n<t;n++)r+="  ";return r+e}function M(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var i=r.indent,o=void 0===i?0:i,s=t.fallbacks;!1===r.format&&(o=-1/0);var a=T(r),l=a.linebreak,u=a.space;if(e&&o++,s)if(Array.isArray(s))for(var c=0;c<s.length;c++){var d=s[c];for(var f in d){var p=d[f];null!=p&&(n&&(n+=l),n+=j(f+":"+u+A(p)+";",o))}}else for(var h in s){var y=s[h];null!=y&&(n&&(n+=l),n+=j(h+":"+u+A(y)+";",o))}for(var m in t){var g=t[m];null!=g&&"fallbacks"!==m&&(n&&(n+=l),n+=j(m+":"+u+A(g)+";",o))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),j(""+e+u+"{"+n,--o)+j("}",o)):n}var I=/([[\].#*$><+~=|^:(),"'`\s])/g,N="undefined"!=typeof CSS&&CSS.escape,_=function(e){return N?N(e):e.replace(I,"\\$1")},L=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,i=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var i=t;r&&!1===r.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,s=e in this.style;if(o&&!s&&!n)return this;var a=o&&s;if(a?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),V=function(e){function t(t,r,n){var i;i=e.call(this,t,r,n)||this;var o=n.selector,s=n.scoped,a=n.sheet,l=n.generateId;return o?i.selectorText=o:!1!==s&&(i.id=l(R(R(i)),a),i.selectorText="."+_(i.id)),i}S(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=A(r))}return e},r.toString=function(e){var t=this.options.sheet,r=t&&t.options.link?u({},e,{allowEmpty:!0}):e;return M(this.selectorText,this.style,r)},x(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;r&&t&&(t.setSelector(r,e)||t.replaceRule(r,this))}},get:function(){return this.selectorText}}]),t}(L),$={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new V(e,t,r)}},z={indent:1,children:!0},D=/@([\w-]+)/,F=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(D);for(var i in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new de(u({},r,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=z);var t=T(e).linebreak;if(null==e.indent&&(e.indent=z.indent),null==e.children&&(e.children=z.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),W=/@container|@media|@supports\s+/,U={onCreateRule:function(e,t,r){return W.test(e)?new F(e,t,r):null}},q={indent:1,children:!0},G=/@keyframes\s+([\w-]+)/,B=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(G);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var i=r.scoped,o=r.sheet,s=r.generateId;for(var a in this.id=!1===i?this.name:_(s(this,o)),this.rules=new de(u({},r,{parent:this})),t)this.rules.add(a,t[a],u({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=q);var t=T(e).linebreak;if(null==e.indent&&(e.indent=q.indent),null==e.children&&(e.children=q.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),H=/@keyframes\s+/,X=/\$([\w-]+)/g,J=function(e,t){return"string"==typeof e?e.replace(X,(function(e,r){return r in t?t[r]:e})):e},Y=function(e,t,r){var n=e[t],i=J(n,r);i!==n&&(e[t]=i)},Z={onCreateRule:function(e,t,r){return"string"==typeof e&&H.test(e)?new B(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Y(e,"animation-name",r.keyframes),"animation"in e&&Y(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return J(e,n.keyframes);default:return e}}},K=function(e){function t(){return e.apply(this,arguments)||this}return S(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=t&&t.options.link?u({},e,{allowEmpty:!0}):e;return M(this.key,this.style,r)},t}(L),Q={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new K(e,t,r):null}},ee=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=T(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=M(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return M(this.at,this.style,e)},e}(),te=/@font-face/,re={onCreateRule:function(e,t,r){return te.test(e)?new ee(e,t,r):null}},ne=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return M(this.key,this.style,e)},e}(),ie={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new ne(e,t,r):null}},oe=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),se={"@charset":!0,"@import":!0,"@namespace":!0},ae={onCreateRule:function(e,t,r){return e in se?new oe(e,t,r):null}},le=[$,U,Z,Q,re,ie,ae],ue={process:!0},ce={force:!0,process:!0},de=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,i=n.parent,o=n.sheet,s=n.jss,a=n.Renderer,l=n.generateId,c=n.scoped,d=u({classes:this.classes,parent:i,sheet:o,jss:s,Renderer:a,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},r),f=e;e in this.raw&&(f=e+"-d"+this.counter++),this.raw[f]=t,f in this.classes&&(d.selector="."+_(this.classes[f]));var p=E(f,t,d);if(!p)return null;this.register(p);var h=void 0===d.index?this.index.length:d.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,r){var n=this.get(e),i=this.index.indexOf(n);n&&this.remove(n);var o=r;return-1!==i&&(o=u({},r,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof V?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof B&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof V?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof B&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=ue);var i=this.options,o=i.jss.plugins,s=i.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var a=t.style;if(o.onUpdate(r,t,s,n),n.process&&a&&a!==t.style){for(var l in o.onProcessStyle(t.style,t,s),t.style){var u=t.style[l];u!==a[l]&&t.prop(l,u,ce)}for(var c in a){var d=t.style[c],f=a[c];null==d&&d!==f&&t.prop(c,null,ce)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,i=T(e).linebreak,o=0;o<this.index.length;o++){var s=this.index[o].toString(e);(s||n)&&(t&&(t+=i),t+=s)}return t},e}(),fe=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=u({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new de(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var i=this.rules.add(e,t,r);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(n?n.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var i=this.rules.replace(e,t,r);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?n.renderable&&this.renderer.replaceRule(n.renderable,i):this.renderer.deleteRule(n)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var i=this.addRule(n,e[n],t);i&&r.push(i)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),pe=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var i=this.registry.onCreateRule[n](e,t,r);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,i=0;i<this.registry.onChangeValue.length;i++)n=this.registry.onChangeValue[i](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),he=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=c(t,["attached"]),i=T(n).linebreak,o="",s=0;s<this.registry.length;s++){var a=this.registry[s];null!=r&&a.attached!==r||(o&&(o+=i),o+=a.toString(n))}return o},x(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ye=new he,me="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ge="2f1acc6c3a606b082e5eef5e54414ffb";null==me[ge]&&(me[ge]=0);var ve=me[ge]++,be=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var i="",o="";return n&&(n.options.classNamePrefix&&(o=n.options.classNamePrefix),null!=n.options.jss.id&&(i=String(n.options.jss.id))),e.minify?""+(o||"c")+ve+i+t:o+r.key+"-"+ve+(i?"-"+i:"")+"-"+t}},we=function(e){var t;return function(){return t||(t=e()),t}},xe=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ke=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=A(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var i=n?n.indexOf("!important"):-1,o=i>-1?n.substr(0,i-1):n;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},Se=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Re=function(e,t){return e.selectorText=t,e.selectorText===t},Pe=we((function(){return document.querySelector("head")}));var Oe=we((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Ee=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},Ce=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Ae=function(){function e(e){this.getPropertyValue=xe,this.setProperty=ke,this.removeProperty=Se,this.setSelector=Re,this.hasInsertedRules=!1,this.cssRules=[],e&&ye.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var o=Oe();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=function(e){var t=ye.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var i=function(e){for(var t=Pe(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var i=r,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else Pe().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,i=r;if("conditional"===e.type||"keyframes"===e.type){var o=Ce(r,t);if(!1===(i=Ee(r,n.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(n.rules,i),i}var s=e.toString();if(!s)return!1;var a=Ce(r,t),l=Ee(r,s,a);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,a,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof fe&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Te=0,je=function(){function e(e){this.id=Te++,this.version="10.10.0",this.plugins=new pe,this.options={id:{minify:!1},createGenerateId:be,Renderer:g?Ae:null,plugins:[]},this.generateId=be({minify:!1});for(var t=0;t<le.length;t++)this.plugins.use(le[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=u({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===ye.index?0:ye.index+1);var n=new fe(e,u({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),ye.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=u({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var i=E(e,t,n);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.plugins.use(t)})),this},e}(),Me=function(e){return new je(e)},Ie=function(){function e(){this.length=0,this.sheets=new WeakMap}var t=e.prototype;return t.get=function(e){var t=this.sheets.get(e);return t&&t.sheet},t.add=function(e,t){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:t,refs:0}))},t.manage=function(e){var t=this.sheets.get(e);if(t)return 0===t.refs&&t.sheet.attach(),t.refs++,t.sheet},t.unmanage=function(e){var t=this.sheets.get(e);t&&t.refs>0&&(t.refs--,0===t.refs&&t.sheet.detach())},x(e,[{key:"size",get:function(){return this.length}}]),e}(),Ne="object"==typeof CSS&&null!=CSS&&"number"in CSS;function _e(e){var t=null;for(var r in e){var n=e[r],i=typeof n;if("function"===i)t||(t={}),t[r]=n;else if("object"===i&&null!==n&&!Array.isArray(n)){var o=_e(n);o&&(t||(t={}),t[r]=o)}}return t}Me();var Le=Date.now(),Ve="fnValues"+Le,$e="fnStyle"+ ++Le,ze=r(603),De=function(e){return e&&e[ze.Z]&&e===e[ze.Z]()},Fe=/;\n/,We=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},r=e.split(Fe),n=0;n<r.length;n++){var i=(r[n]||"").trim();if(i){var o=i.indexOf(":");if(-1!==o){var s=i.substr(0,o).trim(),a=i.substr(o+1).trim();t[s]=a}}}return t}(e.style))},Ue="@global",qe=function(){function e(e,t,r){for(var n in this.type="global",this.at=Ue,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new de(u({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Ge=function(){function e(e,t,r){this.type="global",this.at=Ue,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,u({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Be=/\s*,\s*/g;function He(e,t){for(var r=e.split(Be),n="",i=0;i<r.length;i++)n+=t+" "+r[i].trim(),r[i+1]&&(n+=", ");return n}var Xe=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},Je="extendCurrValue"+Date.now();function Ye(e,t,r,n){return void 0===n&&(n={}),function(e,t,r,n){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var i=0;i<e.extend.length;i++){var o=e.extend[i];Ye("string"==typeof o?u({},e,{extend:o}):e.extend[i],t,r,n)}else for(var s in e.extend)"extend"!==s?Xe(e.extend[s])?(s in n||(n[s]={}),Ye(e.extend[s],t,r,n[s])):n[s]=e.extend[s]:Ye(e.extend.extend,t,r,n);else{if(!r)return;var a=r.getRule(e.extend);if(!a)return;if(a===t)return;var l=a.options.parent;l&&Ye(l.rules.raw[e.extend],t,r,n)}}(e,t,r,n),function(e,t,r,n){for(var i in e)"extend"!==i&&(Xe(n[i])&&Xe(e[i])?Ye(e[i],t,r,n[i]):Xe(e[i])?n[i]=Ye(e[i],t,r):n[i]=e[i])}(e,t,r,n),n}var Ze=function(){return{onProcessStyle:function(e,t,r){return"extend"in e?Ye(e,t,r):e},onChangeValue:function(e,t,r){if("extend"!==t)return e;if(null==e||!1===e){for(var n in r[Je])r.prop(n,null);return r[Je]=null,null}if("object"==typeof e){for(var i in e)r.prop(i,e[i]);r[Je]=e}return null}}},Ke=/\s*,\s*/g,Qe=/&/g,et=/\$([\w-]+)/g,tt=function(){function e(e,t){return function(r,n){var i=e.getRule(n)||t&&t.getRule(n);return i?i.selector:n}}function t(e,t){for(var r=t.split(Ke),n=e.split(Ke),i="",o=0;o<r.length;o++)for(var s=r[o],a=0;a<n.length;a++){var l=n[a];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Qe,s):s+" "+l}return i}function r(e,t,r){if(r)return u({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var i=u({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(n,i,o){if("style"!==i.type)return n;var s,a,l=i,c=l.options.parent;for(var d in n){var f=-1!==d.indexOf("&"),p="@"===d[0];if(f||p){if(s=r(l,c,s),f){var h=t(d,l.selector);a||(a=e(c,o)),h=h.replace(et,a);var y=l.key+"-"+d;"replaceRule"in c?c.replaceRule(y,n[d],u({},s,{selector:h})):c.addRule(y,n[d],u({},s,{selector:h}))}else p&&c.addRule(d,{},s).addRule(l.key,n[d],{selector:l.selector});delete n[d]}}return n}}};function rt(e,t){if(!t)return!0;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(!rt(e,t[r]))return!1;return!0}if(t.indexOf(" ")>-1)return rt(e,t.split(" "));var n=e.options.parent;if("$"===t[0]){var i=n.getRule(t.substr(1));return!!i&&i!==e&&(n.classes[e.key]+=" "+n.classes[i.key],!0)}return n.classes[e.key]+=" "+t,!0}var nt=function(){return{onProcessStyle:function(e,t){return"composes"in e?(rt(t,e.composes),delete e.composes,e):e}}},it=/[A-Z]/g,ot=/^ms-/,st={};function at(e){return"-"+e.toLowerCase()}var lt=function(e){if(st.hasOwnProperty(e))return st[e];var t=e.replace(it,at);return st[e]=ot.test(t)?"-"+t:t};function ut(e){var t={};for(var r in e)t[0===r.indexOf("--")?r:lt(r)]=e[r];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(ut):t.fallbacks=ut(e.fallbacks)),t}var ct=Ne&&CSS?CSS.px:"px",dt=Ne&&CSS?CSS.ms:"ms",ft=Ne&&CSS?CSS.percent:"%";function pt(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var i in e)n[i]=e[i],n[i.replace(t,r)]=e[i];return n}var ht=pt({"animation-delay":dt,"animation-duration":dt,"background-position":ct,"background-position-x":ct,"background-position-y":ct,"background-size":ct,border:ct,"border-bottom":ct,"border-bottom-left-radius":ct,"border-bottom-right-radius":ct,"border-bottom-width":ct,"border-left":ct,"border-left-width":ct,"border-radius":ct,"border-right":ct,"border-right-width":ct,"border-top":ct,"border-top-left-radius":ct,"border-top-right-radius":ct,"border-top-width":ct,"border-width":ct,"border-block":ct,"border-block-end":ct,"border-block-end-width":ct,"border-block-start":ct,"border-block-start-width":ct,"border-block-width":ct,"border-inline":ct,"border-inline-end":ct,"border-inline-end-width":ct,"border-inline-start":ct,"border-inline-start-width":ct,"border-inline-width":ct,"border-start-start-radius":ct,"border-start-end-radius":ct,"border-end-start-radius":ct,"border-end-end-radius":ct,margin:ct,"margin-bottom":ct,"margin-left":ct,"margin-right":ct,"margin-top":ct,"margin-block":ct,"margin-block-end":ct,"margin-block-start":ct,"margin-inline":ct,"margin-inline-end":ct,"margin-inline-start":ct,padding:ct,"padding-bottom":ct,"padding-left":ct,"padding-right":ct,"padding-top":ct,"padding-block":ct,"padding-block-end":ct,"padding-block-start":ct,"padding-inline":ct,"padding-inline-end":ct,"padding-inline-start":ct,"mask-position-x":ct,"mask-position-y":ct,"mask-size":ct,height:ct,width:ct,"min-height":ct,"max-height":ct,"min-width":ct,"max-width":ct,bottom:ct,left:ct,top:ct,right:ct,inset:ct,"inset-block":ct,"inset-block-end":ct,"inset-block-start":ct,"inset-inline":ct,"inset-inline-end":ct,"inset-inline-start":ct,"box-shadow":ct,"text-shadow":ct,"column-gap":ct,"column-rule":ct,"column-rule-width":ct,"column-width":ct,"font-size":ct,"font-size-delta":ct,"letter-spacing":ct,"text-decoration-thickness":ct,"text-indent":ct,"text-stroke":ct,"text-stroke-width":ct,"word-spacing":ct,motion:ct,"motion-offset":ct,outline:ct,"outline-offset":ct,"outline-width":ct,perspective:ct,"perspective-origin-x":ft,"perspective-origin-y":ft,"transform-origin":ft,"transform-origin-x":ft,"transform-origin-y":ft,"transform-origin-z":ft,"transition-delay":dt,"transition-duration":dt,"vertical-align":ct,"flex-basis":ct,"shape-margin":ct,size:ct,gap:ct,grid:ct,"grid-gap":ct,"row-gap":ct,"grid-row-gap":ct,"grid-column-gap":ct,"grid-template-rows":ct,"grid-template-columns":ct,"grid-auto-rows":ct,"grid-auto-columns":ct,"box-shadow-x":ct,"box-shadow-y":ct,"box-shadow-blur":ct,"box-shadow-spread":ct,"font-line-height":ct,"text-shadow-x":ct,"text-shadow-y":ct,"text-shadow-blur":ct});function yt(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=yt(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=yt(i,t[i],r);else for(var o in t)t[o]=yt(e+"-"+o,t[o],r);else if("number"==typeof t&&!1===isNaN(t)){var s=r[e]||ht[e];return!s||0===t&&s===ct?t.toString():"function"==typeof s?s(t).toString():""+t+s}return t}var mt=function(e){void 0===e&&(e={});var t=pt(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=yt(n,e[n],t);return e},onChangeValue:function(e,r){return yt(r,e,t)}}},gt={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},vt={position:!0,size:!0},bt={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},wt={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function xt(e,t,r,n){return null==r[t]?e:0===e.length?[]:Array.isArray(e[0])?xt(e[0],t,r,n):"object"==typeof e[0]?function(e,t,r){return e.map((function(e){return kt(e,t,r,!1,!0)}))}(e,t,n):[e]}function kt(e,t,r,n,i){if(!bt[t]&&!wt[t])return[];var o=[];if(wt[t]&&(e=function(e,t,r,n){for(var i in r){var o=r[i];if(void 0!==e[i]&&(n||!t.prop(o))){var s,a=St((s={},s[o]=e[i],s),t)[o];n?t.style.fallbacks[o]=a:t.style[o]=a}delete e[i]}return e}(e,r,wt[t],n)),Object.keys(e).length)for(var s in bt[t])e[s]?Array.isArray(e[s])?o.push(null===vt[s]?e[s]:e[s].join(" ")):o.push(e[s]):null!=bt[t][s]&&o.push(bt[t][s]);return!o.length||i?o:[o]}function St(e,t,r){for(var n in e){var i=e[n];if(Array.isArray(i)){if(!Array.isArray(i[0])){if("fallbacks"===n){for(var o=0;o<e.fallbacks.length;o++)e.fallbacks[o]=St(e.fallbacks[o],t,!0);continue}e[n]=xt(i,n,gt,t),e[n].length||delete e[n]}}else if("object"==typeof i){if("fallbacks"===n){e.fallbacks=St(e.fallbacks,t,!0);continue}e[n]=kt(i,n,t,r),e[n].length||delete e[n]}else""===e[n]&&delete e[n]}return e}function Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Pt="",Ot="",Et="",Ct="",At=g&&"ontouchstart"in document.documentElement;if(g){var Tt={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},jt=document.createElement("p").style;for(var Mt in Tt)if(Mt+"Transform"in jt){Pt=Mt,Ot=Tt[Mt];break}"Webkit"===Pt&&"msHyphens"in jt&&(Pt="ms",Ot=Tt.ms,Ct="edge"),"Webkit"===Pt&&"-apple-trailing-word"in jt&&(Et="apple")}var It=Pt,Nt=Ot,_t=Et,Lt=Ct,Vt=At,$t={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===It?"-webkit-"+e:Nt+e)}},zt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===It?Nt+"print-"+e:e)}},Dt=/[-\s]+(.)?/g;function Ft(e,t){return t?t.toUpperCase():""}function Wt(e){return e.replace(Dt,Ft)}function Ut(e){return Wt("-"+e)}var qt,Gt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===It){var r="mask-image";if(Wt(r)in t)return e;if(It+Ut(r)in t)return Nt+e}return e}},Bt={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==_t||Vt?e:Nt+e)}},Ht={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:Nt+e)}},Xt={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:Nt+e)}},Jt={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===It||"ms"===It&&"edge"!==Lt?Nt+e:e)}},Yt={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===It||"ms"===It||"apple"===_t?Nt+e:e)}},Zt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===It?"WebkitColumn"+Ut(e)in t&&Nt+"column-"+e:"Moz"===It&&"page"+Ut(e)in t&&"page-"+e)}},Kt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===It)return e;var r=e.replace("-inline","");return It+Ut(r)in t&&Nt+r}},Qt={supportedProperty:function(e,t){return Wt(e)in t&&e}},er={supportedProperty:function(e,t){var r=Ut(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:It+r in t?Nt+e:"Webkit"!==It&&"Webkit"+r in t&&"-webkit-"+e}},tr={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===It?""+Nt+e:e)}},rr={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===It?Nt+"scroll-chaining":e)}},nr={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},ir={supportedProperty:function(e,t){var r=nr[e];return!!r&&It+Ut(r)in t&&Nt+r}},or={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},sr=Object.keys(or),ar=function(e){return Nt+e},lr={supportedProperty:function(e,t,r){var n=r.multiple;if(sr.indexOf(e)>-1){var i=or[e];if(!Array.isArray(i))return It+Ut(i)in t&&Nt+i;if(!n)return!1;for(var o=0;o<i.length;o++)if(!(It+Ut(i[0])in t))return!1;return i.map(ar)}return!1}},ur=[$t,zt,Gt,Bt,Ht,Xt,Jt,Yt,Zt,Kt,Qt,er,tr,rr,ir,lr],cr=ur.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),dr=ur.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,function(e){if(Array.isArray(e))return Rt(e)}(r=t.noPrefill)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return Rt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Rt(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),e;var r}),[]),fr={};if(g){qt=document.createElement("p");var pr=window.getComputedStyle(document.documentElement,"");for(var hr in pr)isNaN(hr)||(fr[pr[hr]]=pr[hr]);dr.forEach((function(e){return delete fr[e]}))}function yr(e,t){if(void 0===t&&(t={}),!qt)return e;if(null!=fr[e])return fr[e];"transition"!==e&&"transform"!==e||(t[e]=e in qt.style);for(var r=0;r<cr.length&&(fr[e]=cr[r](e,qt.style,t),!fr[e]);r++);try{qt.style[e]=""}catch(e){return!1}return fr[e]}var mr,gr={},vr={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},br=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function wr(e,t,r){return"var"===t?"var":"all"===t?"all":"all"===r?", all":(t?yr(t):", "+yr(r))||t||r}function xr(e,t){var r=t;if(!mr||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=gr[n])return gr[n];try{mr.style[e]=r}catch(e){return gr[n]=!1,!1}if(vr[e])r=r.replace(br,wr);else if(""===mr.style[e]&&("-ms-flex"===(r=Nt+r)&&(mr.style[e]="-ms-flexbox"),mr.style[e]=r,""===mr.style[e]))return gr[n]=!1,!1;return mr.style[e]="",gr[n]=r,gr[n]}g&&(mr=document.createElement("p"));var kr=function(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var i=!1,o=yr(r);o&&o!==r&&(i=!0);var s=!1,a=xr(o,A(n));a&&a!==n&&(s=!0),(i||s)&&(i&&delete t[r],t[o||r]=a||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===It?e:"@"+Nt+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return xr(t,A(e))||e}}},Sr=function(e){return void 0===e&&(e={}),{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=E(e,{},r);return n[$e]=t,n},onProcessStyle:function(e,t){if(Ve in t||$e in t)return e;var r={};for(var n in e){var i=e[n];"function"==typeof i&&(delete e[n],r[n]=i)}return t[Ve]=r,e},onUpdate:function(e,t,r,n){var i=t,o=i[$e];o&&(i.style=o(e)||{});var s=i[Ve];if(s)for(var a in s)i.prop(a,s[a](e),n)}},(r=e.observable,{onCreateRule:function(e,t,n){if(!De(t))return null;var i=t,o=E(e,{},n);return i.subscribe((function(e){for(var t in e)o.prop(t,e[t],r)})),o},onProcessRule:function(e){if(!e||"style"===e.type){var t=e,n=t.style,i=function(e){var i=n[e];if(!De(i))return"continue";delete n[e],i.subscribe({next:function(n){t.prop(e,n,r)}})};for(var o in n)i(o)}}}),{onProcessRule:We},{onCreateRule:function(e,t,r){if(!e)return null;if(e===Ue)return new qe(e,t,r);if("@"===e[0]&&"@global "===e.substr(0,8))return new Ge(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,i=n?n[Ue]:null;if(i){for(var o in i)t.addRule(o,i[o],u({},r,{selector:He(o,e.selector)}));delete n[Ue]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var i in n)if("@"===i[0]&&i.substr(0,7)===Ue){var o=He(i.substr(7),e.selector);t.addRule(o,n[i],u({},r,{selector:o})),delete n[i]}}(e,t))}},Ze(),tt(),nt(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=ut(e[t]);return e}return ut(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=lt(t);return t===n?e:(r.prop(n,e),null)}},mt(e.defaultUnit),{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var r=0;r<e.length;r++)e[r]=St(e[r],t);return e}return St(e,t)}},kr(),(t=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n={},i=Object.keys(e).sort(t),o=0;o<i.length;o++)n[i[o]]=e[i[o]];return n}})]};var t,r},Rr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Pr=(function(e){var t={}}((function(e){return Rr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Me(Sr())),Or=function(e){void 0===e&&(e=Pr);var t,r=new Map,n=0,i=function(){return(!t||t.rules.index.length>1e4)&&(t=e.createStyleSheet().attach()),t};function o(){var e=arguments,t=JSON.stringify(e),o=r.get(t);if(o)return o.className;var s=[];for(var a in e){var l=e[a];if(Array.isArray(l))for(var u=0;u<l.length;u++)s.push(l[u]);else s.push(l)}for(var c={},d=[],f=0;f<s.length;f++){var p=s[f];if(p){var h=p;if("string"==typeof p){var y=r.get(p);y&&(y.labels.length&&d.push.apply(d,y.labels),h=y.style)}h.label&&-1===d.indexOf(h.label)&&d.push(h.label),Object.assign(c,h)}}delete c.label;var m=(0===d.length?"css":d.join("-"))+"-"+n++;i().addRule(m,c);var g=i().classes[m],v={style:c,labels:d,className:g};return r.set(t,v),r.set(g,v),g}return o.getSheet=i,o}(),Er=Or,Cr=Number.MIN_SAFE_INTEGER||-1e9,Ar=(0,e.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!g}),Tr=new Map,jr=function(e,t){var r=e.managers;if(r)return r[t]||(r[t]=new Ie),r[t];var n=Tr.get(t);return n||(n=new Ie,Tr.set(t,n)),n},Mr=function(e){var t=e.sheet,r=e.context,n=e.index,i=e.theme;t&&(jr(r,n).manage(i),r.registry&&r.registry.add(t))},Ir=Me(Sr()),Nr=new WeakMap,_r=function(e){return Nr.get(e)},Lr=function(e){if(!e.context.disableStylesGeneration){var t=jr(e.context,e.index),r=t.get(e.theme);if(r)return r;var n=e.context.jss||Ir,i=function(e){var t=e.styles;return"function"!=typeof t?t:t(e.theme)}(e),o=_e(i),s=n.createStyleSheet(i,function(e,t){var r;e.context.id&&null!=e.context.id.minify&&(r=e.context.id.minify);var n=e.context.classNamePrefix||"";e.name&&!r&&(n+=e.name.replace(/\s/g,"-")+"-");var i="";return e.name&&(i=e.name+", "),i+="function"==typeof e.styles?"Themed":"Unthemed",u({},e.sheetOptions,{index:e.index,meta:i,classNamePrefix:n,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}(e,null!==o));return function(e,t){Nr.set(e,t)}(s,{dynamicStyles:o,styles:i}),t.add(e.theme,s),s}},Vr=function(e,t){var r=_r(e);if(r){var n={};for(var i in r.dynamicStyles)for(var o=e.rules.index.length,s=e.addRule(i,r.dynamicStyles[i]),a=o;a<e.rules.index.length;a++){var l=e.rules.index[a];e.updateOne(l,t),n[s===l?i:l.key]=l}return n}};function $r(r){return r?e.useEffect:t().useInsertionEffect||e.useLayoutEffect}var zr={};Symbol("react-jss-styled"),function(e){void 0===e&&(e=Er)}();const Dr={neutral50:"#FAFAFA",neutral100:"#F5F5F5",neutral200:"#EEEEEE",neutral300:"#E0E0E0",neutral400:"#BDBDBD",neutral500:"#9E9E9E",neutral600:"#757575",neutral700:"#616161",neutral800:"#424242",neutral900:"#212121"},Fr=function(t,r){void 0===r&&(r={});var n=r,i=n.index,o=void 0===i?Cr++:i,s=n.theming,a=n.name,l=c(n,["index","theming","name"]),u=s&&s.context||y,d={};return function(r){var n=(0,e.useRef)(!0),i=(0,e.useContext)(Ar),s=function(r){return"function"==typeof t&&(r||(0,e.useContext)(u))||zr}(r&&r.theme),c=(0,e.useMemo)((function(){var e=Lr({context:i,styles:t,name:a,theme:s,index:o,sheetOptions:l});return e&&i.isSSR&&Mr({index:o,context:i,sheet:e,theme:s}),[e,e?Vr(e,r):null]}),[i,s]),f=c[0],p=c[1];$r(i.isSSR)((function(){f&&p&&!n.current&&function(e,t,r){for(var n in r)t.updateOne(r[n],e)}(r,f,p)}),[r]),$r(i.isSSR)((function(){return f&&Mr({index:o,context:i,sheet:f,theme:s}),function(){f&&(function(e){e.sheet&&jr(e.context,e.index).unmanage(e.theme)}({index:o,context:i,sheet:f,theme:s}),p&&function(e,t){for(var r in t)e.deleteRule(t[r])}(f,p))}}),[f]);var h=(0,e.useMemo)((function(){return f&&p?function(e,t){if(!t)return e.classes;var r=_r(e);if(!r)return e.classes;var n={};for(var i in r.styles)n[i]=e.classes[i],i in t&&(n[i]+=" "+e.classes[t[i].key]);return n}(f,p):d}),[f,p]);return(0,e.useDebugValue)(h),(0,e.useDebugValue)(s===zr?"No theme":s),(0,e.useEffect)((function(){n.current=!1})),h}}({component:{},cards:{display:"grid",gridTemplateColumns:"repeat(1,1fr)",gap:10,"@media (min-width: 600px)":{gridTemplateColumns:"repeat(2,1fr)"},"@media (min-width: 900px)":{gridTemplateColumns:"repeat(3,1fr)"}},card:{background:"white",borderRadius:"4px",paddingInline:15},label:{fontSize:"1.3em",marginBottom:2},count:{fontSize:"0.8em",color:Dr.neutral700},chart:{background:Dr.neutral300,height:10,maxWidth:400},bar:{height:10,background:"#718792"}});var Wr=window.wp.apiFetch,Ur=r.n(Wr),qr=r(322);const Gr=()=>{},Br=Gr(),Hr=Object,Xr=e=>e===Br,Jr=e=>"function"==typeof e,Yr=(e,t)=>({...e,...t}),Zr=new WeakMap;let Kr=0;const Qr=e=>{const t=typeof e,r=e&&e.constructor,n=r==Date;let i,o;if(Hr(e)!==e||n||r==RegExp)i=n?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(i=Zr.get(e),i)return i;if(i=++Kr+"~",Zr.set(e,i),r==Array){for(i="@",o=0;o<e.length;o++)i+=Qr(e[o])+",";Zr.set(e,i)}if(r==Hr){i="#";const t=Hr.keys(e).sort();for(;!Xr(o=t.pop());)Xr(e[o])||(i+=o+":"+Qr(e[o])+",");Zr.set(e,i)}}return i},en=new WeakMap,tn={},rn={},nn="undefined",on=typeof window!=nn,sn=typeof document!=nn,an=(e,t)=>{const r=en.get(e);return[()=>!Xr(t)&&e.get(t)||tn,n=>{if(!Xr(t)){const i=e.get(t);t in rn||(rn[t]=i),r[5](t,Yr(i,n),i||tn)}},r[6],()=>!Xr(t)&&t in rn?rn[t]:!Xr(t)&&e.get(t)||tn]};let ln=!0;const[un,cn]=on&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Gr,Gr],dn={isOnline:()=>ln,isVisible:()=>{const e=sn&&document.visibilityState;return Xr(e)||"hidden"!==e}},fn={initFocus:e=>(sn&&document.addEventListener("visibilitychange",e),un("focus",e),()=>{sn&&document.removeEventListener("visibilitychange",e),cn("focus",e)}),initReconnect:e=>{const t=()=>{ln=!0,e()},r=()=>{ln=!1};return un("online",t),un("offline",r),()=>{cn("online",t),cn("offline",r)}}},pn=!e.useId,hn=!on||"Deno"in window,yn=hn?e.useEffect:e.useLayoutEffect,mn="undefined"!=typeof navigator&&navigator.connection,gn=!hn&&mn&&(["slow-2g","2g"].includes(mn.effectiveType)||mn.saveData),vn=e=>{if(Jr(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Qr(e):"",t]};let bn=0;const wn=()=>++bn;async function xn(...e){const[t,r,n,i]=e,o=Yr({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{});let s=o.populateCache;const a=o.rollbackOnError;let l=o.optimisticData;const u=!1!==o.revalidate,c=o.throwOnError;if(Jr(r)){const e=r,n=[],i=t.keys();for(const r of i)!/^\$(inf|sub)\$/.test(r)&&e(t.get(r)._k)&&n.push(r);return Promise.all(n.map(d))}return d(r);async function d(r){const[i]=vn(r);if(!i)return;const[o,d]=an(t,i),[f,p,h,y]=en.get(t),m=()=>{const e=f[i];return u&&(delete h[i],delete y[i],e&&e[0])?e[0](2).then((()=>o().data)):o().data};if(e.length<3)return m();let g,v=n;const b=wn();p[i]=[b,0];const w=!Xr(l),x=o(),k=x.data,S=x._c,R=Xr(S)?k:S;if(w&&(l=Jr(l)?l(R,k):l,d({data:l,_c:R})),Jr(v))try{v=v(R)}catch(e){g=e}if(v&&Jr(v.then)){if(v=await v.catch((e=>{g=e})),b!==p[i][0]){if(g)throw g;return v}g&&w&&(e=>"function"==typeof a?a(e):!1!==a)(g)&&(s=!0,d({data:R,_c:Br}))}if(s&&!g)if(Jr(s)){const e=s(v,R);d({data:e,error:Br,_c:Br})}else d({data:v,error:Br,_c:Br});if(p[i][1]=wn(),Promise.resolve(m()).then((()=>{d({_c:Br})})),!g)return v;if(c)throw g}}const kn=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},Sn=(e,t)=>{if(!en.has(e)){const r=Yr(fn,t),n={},i=xn.bind(Br,e);let o=Gr;const s={},a=(e,t)=>{const r=s[e]||[];return s[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},l=(t,r,n)=>{e.set(t,r);const i=s[t];if(i)for(const e of i)e(r,n)},u=()=>{if(!en.has(e)&&(en.set(e,[n,{},{},{},i,l,a]),!hn)){const t=r.initFocus(setTimeout.bind(Br,kn.bind(Br,n,0))),i=r.initReconnect(setTimeout.bind(Br,kn.bind(Br,n,1)));o=()=>{t&&t(),i&&i(),en.delete(e)}}};return u(),[e,i,u,o]}return[e,en.get(e)[4]]},[Rn,Pn]=Sn(new Map),On=Yr({onLoadingSlow:Gr,onSuccess:Gr,onError:Gr,onErrorRetry:(e,__,t,r,n)=>{const i=t.errorRetryCount,o=n.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*t.errorRetryInterval;!Xr(i)&&o>i||setTimeout(r,s,n)},onDiscarded:Gr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:gn?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:gn?5e3:3e3,compare:(e,t)=>Qr(e)==Qr(t),isPaused:()=>!1,cache:Rn,mutate:Pn,fallback:{}},dn),En=(e,t)=>{const r=Yr(e,t);if(t){const{use:n,fallback:i}=e,{use:o,fallback:s}=t;n&&o&&(r.use=n.concat(o)),i&&s&&(r.fallback=Yr(i,s))}return r},Cn=(0,e.createContext)({}),An=on&&window.__SWR_DEVTOOLS_USE__,Tn=An?window.__SWR_DEVTOOLS_USE__:[],jn=Tn.concat((e=>(t,r,n)=>{const i=r&&((...e)=>{const[n]=vn(t),[,,,i]=en.get(Rn);if(n.startsWith("$inf$"))return r(...e);const o=i[n];return Xr(o)?r(...e):(delete i[n],o)});return e(t,i,n)}));An&&(window.__SWR_DEVTOOLS_REACT__=e);const Mn=e.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),In={dedupe:!0},Nn=(Hr.defineProperty((t=>{const{value:r}=t,n=(0,e.useContext)(Cn),i=Jr(r),o=(0,e.useMemo)((()=>i?r(n):r),[i,n,r]),s=(0,e.useMemo)((()=>i?o:En(n,o)),[i,n,o]),a=o&&o.provider,l=(0,e.useRef)(Br);a&&!l.current&&(l.current=Sn(a(s.cache||Rn),o));const u=l.current;return u&&(s.cache=u[0],s.mutate=u[1]),yn((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),(0,e.createElement)(Cn.Provider,Yr(t,{value:s}))}),"defaultValue",{value:On}),Ln=(t,r,n)=>{const{cache:i,compare:o,suspense:s,fallbackData:a,revalidateOnMount:l,revalidateIfStale:u,refreshInterval:c,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:p}=n,[h,y,m,g]=en.get(i),[v,b]=vn(t),w=(0,e.useRef)(!1),x=(0,e.useRef)(!1),k=(0,e.useRef)(v),S=(0,e.useRef)(r),R=(0,e.useRef)(n),P=()=>R.current,O=()=>P().isVisible()&&P().isOnline(),[E,C,A,T]=an(i,v),j=(0,e.useRef)({}).current,M=Xr(a)?n.fallback[v]:a,I=(e,t)=>{for(const r in j){const n=r;if("data"===n){if(!o(e[n],t[n])){if(!Xr(e[n]))return!1;if(!o(W,t[n]))return!1}}else if(t[n]!==e[n])return!1}return!0},N=(0,e.useMemo)((()=>{const e=!!v&&!!r&&(Xr(l)?!P().isPaused()&&!s&&(!!Xr(u)||u):l),t=t=>{const r=Yr(t);return delete r._k,e?{isValidating:!0,isLoading:!0,...r}:r},n=E(),i=T(),o=t(n),a=n===i?o:t(i);let c=o;return[()=>{const e=t(E());return I(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>a]}),[i,v]),_=(0,qr.useSyncExternalStore)((0,e.useCallback)((e=>A(v,((t,r)=>{I(r,t)||e()}))),[i,v]),N[0],N[1]),L=!w.current,V=h[v]&&h[v].length>0,$=_.data,z=Xr($)?M:$,D=_.error,F=(0,e.useRef)(z),W=p?Xr($)?F.current:$:z,U=!(V&&!Xr(D))&&(L&&!Xr(l)?l:!P().isPaused()&&(s?!Xr(z)&&u:Xr(z)||u)),q=!!(v&&r&&L&&U),G=Xr(_.isValidating)?q:_.isValidating,B=Xr(_.isLoading)?q:_.isLoading,H=(0,e.useCallback)((async e=>{const t=S.current;if(!v||!t||x.current||P().isPaused())return!1;let r,i,s=!0;const a=e||{},l=!m[v]||!a.dedupe,u=()=>pn?!x.current&&v===k.current&&w.current:v===k.current,c={isValidating:!1,isLoading:!1},d=()=>{C(c)},f=()=>{const e=m[v];e&&e[1]===i&&delete m[v]},p={isValidating:!0};Xr(E().data)&&(p.isLoading=!0);try{if(l&&(C(p),n.loadingTimeout&&Xr(E().data)&&setTimeout((()=>{s&&u()&&P().onLoadingSlow(v,n)}),n.loadingTimeout),m[v]=[t(b),wn()]),[r,i]=m[v],r=await r,l&&setTimeout(f,n.dedupingInterval),!m[v]||m[v][1]!==i)return l&&u()&&P().onDiscarded(v),!1;c.error=Br;const e=y[v];if(!Xr(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return d(),l&&u()&&P().onDiscarded(v),!1;const a=E().data;c.data=o(a,r)?a:r,l&&u()&&P().onSuccess(r,v,n)}catch(e){f();const t=P(),{shouldRetryOnError:r}=t;t.isPaused()||(c.error=e,l&&u()&&(t.onError(e,v,t),(!0===r||Jr(r)&&r(e))&&O()&&t.onErrorRetry(e,v,t,(e=>{const t=h[v];t&&t[0]&&t[0](3,e)}),{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return s=!1,d(),!0}),[v,i]),X=(0,e.useCallback)(((...e)=>xn(i,k.current,...e)),[]);if(yn((()=>{S.current=r,R.current=n,Xr($)||(F.current=$)})),yn((()=>{if(!v)return;const e=H.bind(Br,In);let t=0;const r=((e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}})(v,h,((r,n={})=>{if(0==r){const r=Date.now();P().revalidateOnFocus&&r>t&&O()&&(t=r+P().focusThrottleInterval,e())}else if(1==r)P().revalidateOnReconnect&&O()&&e();else{if(2==r)return H();if(3==r)return H(n)}}));return x.current=!1,k.current=v,w.current=!0,C({_k:b}),U&&(Xr(z)||hn?e():(n=e,on&&typeof window.requestAnimationFrame!=nn?window.requestAnimationFrame(n):setTimeout(n,1))),()=>{x.current=!0,r()};var n}),[v]),yn((()=>{let e;function t(){const t=Jr(c)?c(E().data):c;t&&-1!==e&&(e=setTimeout(r,t))}function r(){E().error||!d&&!P().isVisible()||!f&&!P().isOnline()?t():H(In).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[c,d,f,v]),(0,e.useDebugValue)(W),s&&Xr(z)&&v){if(!pn&&hn)throw new Error("Fallback data is required when using suspense in SSR.");S.current=r,R.current=n,x.current=!1;const e=g[v];if(!Xr(e)){const t=X(e);Mn(t)}if(!Xr(D))throw D;{const e=H(In);Xr(W)||(e.status="fulfilled",e.value=!0),Mn(e)}}return{mutate:X,get data(){return j.data=!0,W},get error(){return j.error=!0,D},get isValidating(){return j.isValidating=!0,G},get isLoading(){return j.isLoading=!0,B}}},function(...t){const r=Yr(On,(0,e.useContext)(Cn)),[n,i,o]=(e=>Jr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(t),s=En(r,o);let a=Ln;const{use:l}=s,u=(l||[]).concat(jn);for(let e=u.length;e--;)a=u[e](a);return a(n,i||s.fetcher||null,s)});var Ln;const Vn=(e,t)=>{const r={};return t.forEach((t=>{var n;const i=t[e];r[i]=(null!==(n=r[i])&&void 0!==n?n:0)+1})),Object.keys(r).map((e=>({key:e,value:r[e]})))},$n=(e,t)=>{const r={};return t.forEach((t=>{var n,i;const o=null!==(n=t.metas[e])&&void 0!==n?n:s("- no indication -");r[o]=(null!==(i=r[o])&&void 0!==i?i:0)+1})),Object.keys(r).map((e=>({key:e,value:r[e]})))},zn=({items:t})=>{const r=Fr(),n=t.reduce(((e,t)=>t.count+e),0);return(0,e.createElement)("ul",null,t.map((t=>{const i=t.count/n*100;return(0,e.createElement)("li",{key:t.label},(0,e.createElement)("div",{className:r.label},t.label),(0,e.createElement)("div",{className:r.chart},(0,e.createElement)("div",{className:r.bar,style:{width:i+"%"}})),(0,e.createElement)("div",{className:r.count},t.count))})))};var Dn=()=>{const t=Fr(),{routes:r}=((e="any",t="")=>{const{data:r,mutate:n}=Nn(a()+"/routes?status="+e+"&year="+t,(e=>Ur()({path:e})));return{routes:null!=r?r:[],update:e=>{Ur()({path:a()+"/routes/"+e.id,method:"PATCH",data:{name:e.name,status:e.status,difficulty:e.difficulty,grading_system:e.gradingSystem,created:e.created,metas:e.metas}}).finally((()=>{n(r.map((t=>({...t.id==e.id?e:t}))))}))},add:e=>{Ur()({path:a()+"/routes",method:"POST",data:{name:e.name,status:e.status,difficulty:e.difficulty,grading_system:e.gradingSystem,created:e.created,metas:e.metas}}).then((e=>{n([e,...r])}))},remove:e=>{Ur()({path:a()+"/routes/"+e,method:"DELETE"}).then((()=>{n(r.filter((t=>t.id!=e)))}))}}})("screwed-on"),n=l(window.ClimbPress.defaultGradingSystemId),i=window.ClimbPress.routeMetaStructure,u=(0,o.useMemo)((()=>i.map((e=>({key:e.key,label:e.label,routes:$n(e.key,r)})))),[i,r]),c=(0,o.useMemo)((()=>Vn("gradingSystem",r)),[r]),d=(0,o.useMemo)((()=>Vn("difficulty",r).sort(((e,t)=>parseInt(e.key)-parseInt(t.key)))),[r]);return(0,e.createElement)("div",{className:t.component},(0,e.createElement)("div",{className:t.cards},c.length>1?(0,e.createElement)("div",{className:t.card},(0,e.createElement)("h2",null,s("Grading-System")),(0,e.createElement)(zn,{items:c.map((e=>({label:e.key,count:e.value})))})):null,(0,e.createElement)("div",{className:t.card},(0,e.createElement)("h2",null,s("Grades")),(0,e.createElement)(zn,{items:d.map((e=>({label:((e,t)=>{let r=-1,n=-1;return t.grades.forEach(((t,i)=>{const o=Math.abs(t.difficulty-e);(n<0||n>o)&&(n=o,r=i)})),t.grades[r]})(parseInt(e.key),n).label,count:e.value})))})),u.map((r=>(0,e.createElement)("div",{className:t.card,key:r.key},(0,e.createElement)("h2",null,r.label),(0,e.createElement)(zn,{items:r.routes.map((e=>{var t;return{label:null!==(t=e.key)&&void 0!==t?t:s("- no value -"),count:e.value}}))}))))),(0,e.createElement)("p",null,s("These statistics contain all screwed on routes.")))};i()((()=>{(0,o.render)((0,e.createElement)(Dn,null),document.getElementById(window.ClimbPress.rootId))}))}()}();
     1!function(){"use strict";var e={535:function(e,t,r){var n=r(237),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?s:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=p(r);i&&i!==h&&e(t,i,n)}var s=c(r);d&&(s=s.concat(d(r)));for(var a=l(t),y=l(r),m=0;m<s.length;++m){var g=s[m];if(!(o[g]||n&&n[g]||y&&y[g]||a&&a[g])){var v=f(r,g);try{u(t,g,v)}catch(e){}}}}return t}},684:function(e,t){},198:function(e,t){var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case m:case y:case l:return e;default:return t}}case i:return t}}}function k(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=y,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||x(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===y},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===a},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=x},237:function(e,t,r){e.exports=r(198)},603:function(e,t,r){r.d(t,{Z:function(){return n}}),e=r.hmd(e);var n=function(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:e)},415:function(e,t,r){var n=r(196),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,s=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return a((function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,r,t]),s((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},322:function(e,t,r){e.exports=r(415)},196:function(e){e.exports=window.React}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n](o,o.exports,r),o.loaded=!0,o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e=r(196),t=r.n(e),n=window.wp.domReady,i=r.n(n),o=window.wp.element;const s=e=>{var t;return null!==(t=window.ClimbPress.i18n[e])&&void 0!==t?t:`? ${e} ?`},a=()=>window.ClimbPress.RESTNamespace,l=e=>{var t;return null!==(t=window.ClimbPress.gradingSystems.find((t=>t.id==e)))&&void 0!==t?t:null};function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}function c(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}r(535);function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r(684);var h,y=(0,e.createContext)(),m=(function(e){}(h=y),function(e){}(h),function(e){var r=function(r){var n,i;function o(){for(var n,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return d(p(p(n=r.call.apply(r,[this].concat(o))||this)),"cachedTheme",void 0),d(p(p(n)),"lastOuterTheme",void 0),d(p(p(n)),"lastTheme",void 0),d(p(p(n)),"renderProvider",(function(r){var i=n.props.children;return t().createElement(e.Provider,{value:n.getTheme(r)},i)})),n}i=r,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var s=o.prototype;return s.getTheme=function(e){if(this.props.theme!==this.lastTheme||e!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=e,this.lastTheme=this.props.theme,"function"==typeof this.lastTheme){var t=this.props.theme;this.cachedTheme=t(e)}else{var r=this.props.theme;this.cachedTheme=e?f({},e,r):r}return this.cachedTheme},s.render=function(){return this.props.children?t().createElement(e.Consumer,null,this.renderProvider):null},o}(t().Component)}(h),"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),g="object"===("undefined"==typeof window?"undefined":m(window))&&"object"===("undefined"==typeof document?"undefined":m(document))&&9===document.nodeType;function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function b(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===v(t)?t:String(t)}function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b(n.key),n)}}function x(e,t,r){return t&&w(e.prototype,t),r&&w(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function S(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,k(e,t)}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var P={}.constructor;function O(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(O);if(e.constructor!==P)return e;var t={};for(var r in e)t[r]=O(e[r]);return t}function E(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,i=O(t);return n.plugins.onCreateRule(e,i,r)||(e[0],null)}var C=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},A=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=C(e[r]," ");else t=C(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function T(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function j(e,t){for(var r="",n=0;n<t;n++)r+="  ";return r+e}function M(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var i=r.indent,o=void 0===i?0:i,s=t.fallbacks;!1===r.format&&(o=-1/0);var a=T(r),l=a.linebreak,u=a.space;if(e&&o++,s)if(Array.isArray(s))for(var c=0;c<s.length;c++){var d=s[c];for(var f in d){var p=d[f];null!=p&&(n&&(n+=l),n+=j(f+":"+u+A(p)+";",o))}}else for(var h in s){var y=s[h];null!=y&&(n&&(n+=l),n+=j(h+":"+u+A(y)+";",o))}for(var m in t){var g=t[m];null!=g&&"fallbacks"!==m&&(n&&(n+=l),n+=j(m+":"+u+A(g)+";",o))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),j(""+e+u+"{"+n,--o)+j("}",o)):n}var I=/([[\].#*$><+~=|^:(),"'`\s])/g,N="undefined"!=typeof CSS&&CSS.escape,_=function(e){return N?N(e):e.replace(I,"\\$1")},L=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,i=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var i=t;r&&!1===r.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,s=e in this.style;if(o&&!s&&!n)return this;var a=o&&s;if(a?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),V=function(e){function t(t,r,n){var i;i=e.call(this,t,r,n)||this;var o=n.selector,s=n.scoped,a=n.sheet,l=n.generateId;return o?i.selectorText=o:!1!==s&&(i.id=l(R(R(i)),a),i.selectorText="."+_(i.id)),i}S(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=A(r))}return e},r.toString=function(e){var t=this.options.sheet,r=t&&t.options.link?u({},e,{allowEmpty:!0}):e;return M(this.selectorText,this.style,r)},x(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;r&&t&&(t.setSelector(r,e)||t.replaceRule(r,this))}},get:function(){return this.selectorText}}]),t}(L),$={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new V(e,t,r)}},z={indent:1,children:!0},D=/@([\w-]+)/,F=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(D);for(var i in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new de(u({},r,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=z);var t=T(e).linebreak;if(null==e.indent&&(e.indent=z.indent),null==e.children&&(e.children=z.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),W=/@container|@media|@supports\s+/,U={onCreateRule:function(e,t,r){return W.test(e)?new F(e,t,r):null}},q={indent:1,children:!0},G=/@keyframes\s+([\w-]+)/,B=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(G);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var i=r.scoped,o=r.sheet,s=r.generateId;for(var a in this.id=!1===i?this.name:_(s(this,o)),this.rules=new de(u({},r,{parent:this})),t)this.rules.add(a,t[a],u({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=q);var t=T(e).linebreak;if(null==e.indent&&(e.indent=q.indent),null==e.children&&(e.children=q.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),H=/@keyframes\s+/,X=/\$([\w-]+)/g,J=function(e,t){return"string"==typeof e?e.replace(X,(function(e,r){return r in t?t[r]:e})):e},Y=function(e,t,r){var n=e[t],i=J(n,r);i!==n&&(e[t]=i)},Z={onCreateRule:function(e,t,r){return"string"==typeof e&&H.test(e)?new B(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Y(e,"animation-name",r.keyframes),"animation"in e&&Y(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return J(e,n.keyframes);default:return e}}},K=function(e){function t(){return e.apply(this,arguments)||this}return S(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=t&&t.options.link?u({},e,{allowEmpty:!0}):e;return M(this.key,this.style,r)},t}(L),Q={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new K(e,t,r):null}},ee=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=T(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=M(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return M(this.at,this.style,e)},e}(),te=/@font-face/,re={onCreateRule:function(e,t,r){return te.test(e)?new ee(e,t,r):null}},ne=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return M(this.key,this.style,e)},e}(),ie={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new ne(e,t,r):null}},oe=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),se={"@charset":!0,"@import":!0,"@namespace":!0},ae={onCreateRule:function(e,t,r){return e in se?new oe(e,t,r):null}},le=[$,U,Z,Q,re,ie,ae],ue={process:!0},ce={force:!0,process:!0},de=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,i=n.parent,o=n.sheet,s=n.jss,a=n.Renderer,l=n.generateId,c=n.scoped,d=u({classes:this.classes,parent:i,sheet:o,jss:s,Renderer:a,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},r),f=e;e in this.raw&&(f=e+"-d"+this.counter++),this.raw[f]=t,f in this.classes&&(d.selector="."+_(this.classes[f]));var p=E(f,t,d);if(!p)return null;this.register(p);var h=void 0===d.index?this.index.length:d.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,r){var n=this.get(e),i=this.index.indexOf(n);n&&this.remove(n);var o=r;return-1!==i&&(o=u({},r,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof V?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof B&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof V?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof B&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=ue);var i=this.options,o=i.jss.plugins,s=i.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var a=t.style;if(o.onUpdate(r,t,s,n),n.process&&a&&a!==t.style){for(var l in o.onProcessStyle(t.style,t,s),t.style){var u=t.style[l];u!==a[l]&&t.prop(l,u,ce)}for(var c in a){var d=t.style[c],f=a[c];null==d&&d!==f&&t.prop(c,null,ce)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,i=T(e).linebreak,o=0;o<this.index.length;o++){var s=this.index[o].toString(e);(s||n)&&(t&&(t+=i),t+=s)}return t},e}(),fe=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=u({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new de(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var i=this.rules.add(e,t,r);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(n?n.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var i=this.rules.replace(e,t,r);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?n.renderable&&this.renderer.replaceRule(n.renderable,i):this.renderer.deleteRule(n)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var i=this.addRule(n,e[n],t);i&&r.push(i)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),pe=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var i=this.registry.onCreateRule[n](e,t,r);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,i=0;i<this.registry.onChangeValue.length;i++)n=this.registry.onChangeValue[i](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),he=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=c(t,["attached"]),i=T(n).linebreak,o="",s=0;s<this.registry.length;s++){var a=this.registry[s];null!=r&&a.attached!==r||(o&&(o+=i),o+=a.toString(n))}return o},x(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ye=new he,me="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ge="2f1acc6c3a606b082e5eef5e54414ffb";null==me[ge]&&(me[ge]=0);var ve=me[ge]++,be=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var i="",o="";return n&&(n.options.classNamePrefix&&(o=n.options.classNamePrefix),null!=n.options.jss.id&&(i=String(n.options.jss.id))),e.minify?""+(o||"c")+ve+i+t:o+r.key+"-"+ve+(i?"-"+i:"")+"-"+t}},we=function(e){var t;return function(){return t||(t=e()),t}},xe=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ke=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=A(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var i=n?n.indexOf("!important"):-1,o=i>-1?n.substr(0,i-1):n;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},Se=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Re=function(e,t){return e.selectorText=t,e.selectorText===t},Pe=we((function(){return document.querySelector("head")}));var Oe=we((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Ee=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},Ce=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Ae=function(){function e(e){this.getPropertyValue=xe,this.setProperty=ke,this.removeProperty=Se,this.setSelector=Re,this.hasInsertedRules=!1,this.cssRules=[],e&&ye.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var o=Oe();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=function(e){var t=ye.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var i=function(e){for(var t=Pe(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var i=r,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else Pe().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,i=r;if("conditional"===e.type||"keyframes"===e.type){var o=Ce(r,t);if(!1===(i=Ee(r,n.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(n.rules,i),i}var s=e.toString();if(!s)return!1;var a=Ce(r,t),l=Ee(r,s,a);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,a,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof fe&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Te=0,je=function(){function e(e){this.id=Te++,this.version="10.10.0",this.plugins=new pe,this.options={id:{minify:!1},createGenerateId:be,Renderer:g?Ae:null,plugins:[]},this.generateId=be({minify:!1});for(var t=0;t<le.length;t++)this.plugins.use(le[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=u({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===ye.index?0:ye.index+1);var n=new fe(e,u({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),ye.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=u({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var i=E(e,t,n);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.plugins.use(t)})),this},e}(),Me=function(e){return new je(e)},Ie=function(){function e(){this.length=0,this.sheets=new WeakMap}var t=e.prototype;return t.get=function(e){var t=this.sheets.get(e);return t&&t.sheet},t.add=function(e,t){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:t,refs:0}))},t.manage=function(e){var t=this.sheets.get(e);if(t)return 0===t.refs&&t.sheet.attach(),t.refs++,t.sheet},t.unmanage=function(e){var t=this.sheets.get(e);t&&t.refs>0&&(t.refs--,0===t.refs&&t.sheet.detach())},x(e,[{key:"size",get:function(){return this.length}}]),e}(),Ne="object"==typeof CSS&&null!=CSS&&"number"in CSS;function _e(e){var t=null;for(var r in e){var n=e[r],i=typeof n;if("function"===i)t||(t={}),t[r]=n;else if("object"===i&&null!==n&&!Array.isArray(n)){var o=_e(n);o&&(t||(t={}),t[r]=o)}}return t}Me();var Le=Date.now(),Ve="fnValues"+Le,$e="fnStyle"+ ++Le,ze=r(603),De=function(e){return e&&e[ze.Z]&&e===e[ze.Z]()},Fe=/;\n/,We=function(e){"string"==typeof e.style&&(e.style=function(e){for(var t={},r=e.split(Fe),n=0;n<r.length;n++){var i=(r[n]||"").trim();if(i){var o=i.indexOf(":");if(-1!==o){var s=i.substr(0,o).trim(),a=i.substr(o+1).trim();t[s]=a}}}return t}(e.style))},Ue="@global",qe=function(){function e(e,t,r){for(var n in this.type="global",this.at=Ue,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new de(u({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Ge=function(){function e(e,t,r){this.type="global",this.at=Ue,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,u({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Be=/\s*,\s*/g;function He(e,t){for(var r=e.split(Be),n="",i=0;i<r.length;i++)n+=t+" "+r[i].trim(),r[i+1]&&(n+=", ");return n}var Xe=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},Je="extendCurrValue"+Date.now();function Ye(e,t,r,n){return void 0===n&&(n={}),function(e,t,r,n){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var i=0;i<e.extend.length;i++){var o=e.extend[i];Ye("string"==typeof o?u({},e,{extend:o}):e.extend[i],t,r,n)}else for(var s in e.extend)"extend"!==s?Xe(e.extend[s])?(s in n||(n[s]={}),Ye(e.extend[s],t,r,n[s])):n[s]=e.extend[s]:Ye(e.extend.extend,t,r,n);else{if(!r)return;var a=r.getRule(e.extend);if(!a)return;if(a===t)return;var l=a.options.parent;l&&Ye(l.rules.raw[e.extend],t,r,n)}}(e,t,r,n),function(e,t,r,n){for(var i in e)"extend"!==i&&(Xe(n[i])&&Xe(e[i])?Ye(e[i],t,r,n[i]):Xe(e[i])?n[i]=Ye(e[i],t,r):n[i]=e[i])}(e,t,r,n),n}var Ze=function(){return{onProcessStyle:function(e,t,r){return"extend"in e?Ye(e,t,r):e},onChangeValue:function(e,t,r){if("extend"!==t)return e;if(null==e||!1===e){for(var n in r[Je])r.prop(n,null);return r[Je]=null,null}if("object"==typeof e){for(var i in e)r.prop(i,e[i]);r[Je]=e}return null}}},Ke=/\s*,\s*/g,Qe=/&/g,et=/\$([\w-]+)/g,tt=function(){function e(e,t){return function(r,n){var i=e.getRule(n)||t&&t.getRule(n);return i?i.selector:n}}function t(e,t){for(var r=t.split(Ke),n=e.split(Ke),i="",o=0;o<r.length;o++)for(var s=r[o],a=0;a<n.length;a++){var l=n[a];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Qe,s):s+" "+l}return i}function r(e,t,r){if(r)return u({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var i=u({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(n,i,o){if("style"!==i.type)return n;var s,a,l=i,c=l.options.parent;for(var d in n){var f=-1!==d.indexOf("&"),p="@"===d[0];if(f||p){if(s=r(l,c,s),f){var h=t(d,l.selector);a||(a=e(c,o)),h=h.replace(et,a);var y=l.key+"-"+d;"replaceRule"in c?c.replaceRule(y,n[d],u({},s,{selector:h})):c.addRule(y,n[d],u({},s,{selector:h}))}else p&&c.addRule(d,{},s).addRule(l.key,n[d],{selector:l.selector});delete n[d]}}return n}}};function rt(e,t){if(!t)return!0;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(!rt(e,t[r]))return!1;return!0}if(t.indexOf(" ")>-1)return rt(e,t.split(" "));var n=e.options.parent;if("$"===t[0]){var i=n.getRule(t.substr(1));return!!i&&i!==e&&(n.classes[e.key]+=" "+n.classes[i.key],!0)}return n.classes[e.key]+=" "+t,!0}var nt=function(){return{onProcessStyle:function(e,t){return"composes"in e?(rt(t,e.composes),delete e.composes,e):e}}},it=/[A-Z]/g,ot=/^ms-/,st={};function at(e){return"-"+e.toLowerCase()}var lt=function(e){if(st.hasOwnProperty(e))return st[e];var t=e.replace(it,at);return st[e]=ot.test(t)?"-"+t:t};function ut(e){var t={};for(var r in e)t[0===r.indexOf("--")?r:lt(r)]=e[r];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(ut):t.fallbacks=ut(e.fallbacks)),t}var ct=Ne&&CSS?CSS.px:"px",dt=Ne&&CSS?CSS.ms:"ms",ft=Ne&&CSS?CSS.percent:"%";function pt(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var i in e)n[i]=e[i],n[i.replace(t,r)]=e[i];return n}var ht=pt({"animation-delay":dt,"animation-duration":dt,"background-position":ct,"background-position-x":ct,"background-position-y":ct,"background-size":ct,border:ct,"border-bottom":ct,"border-bottom-left-radius":ct,"border-bottom-right-radius":ct,"border-bottom-width":ct,"border-left":ct,"border-left-width":ct,"border-radius":ct,"border-right":ct,"border-right-width":ct,"border-top":ct,"border-top-left-radius":ct,"border-top-right-radius":ct,"border-top-width":ct,"border-width":ct,"border-block":ct,"border-block-end":ct,"border-block-end-width":ct,"border-block-start":ct,"border-block-start-width":ct,"border-block-width":ct,"border-inline":ct,"border-inline-end":ct,"border-inline-end-width":ct,"border-inline-start":ct,"border-inline-start-width":ct,"border-inline-width":ct,"border-start-start-radius":ct,"border-start-end-radius":ct,"border-end-start-radius":ct,"border-end-end-radius":ct,margin:ct,"margin-bottom":ct,"margin-left":ct,"margin-right":ct,"margin-top":ct,"margin-block":ct,"margin-block-end":ct,"margin-block-start":ct,"margin-inline":ct,"margin-inline-end":ct,"margin-inline-start":ct,padding:ct,"padding-bottom":ct,"padding-left":ct,"padding-right":ct,"padding-top":ct,"padding-block":ct,"padding-block-end":ct,"padding-block-start":ct,"padding-inline":ct,"padding-inline-end":ct,"padding-inline-start":ct,"mask-position-x":ct,"mask-position-y":ct,"mask-size":ct,height:ct,width:ct,"min-height":ct,"max-height":ct,"min-width":ct,"max-width":ct,bottom:ct,left:ct,top:ct,right:ct,inset:ct,"inset-block":ct,"inset-block-end":ct,"inset-block-start":ct,"inset-inline":ct,"inset-inline-end":ct,"inset-inline-start":ct,"box-shadow":ct,"text-shadow":ct,"column-gap":ct,"column-rule":ct,"column-rule-width":ct,"column-width":ct,"font-size":ct,"font-size-delta":ct,"letter-spacing":ct,"text-decoration-thickness":ct,"text-indent":ct,"text-stroke":ct,"text-stroke-width":ct,"word-spacing":ct,motion:ct,"motion-offset":ct,outline:ct,"outline-offset":ct,"outline-width":ct,perspective:ct,"perspective-origin-x":ft,"perspective-origin-y":ft,"transform-origin":ft,"transform-origin-x":ft,"transform-origin-y":ft,"transform-origin-z":ft,"transition-delay":dt,"transition-duration":dt,"vertical-align":ct,"flex-basis":ct,"shape-margin":ct,size:ct,gap:ct,grid:ct,"grid-gap":ct,"row-gap":ct,"grid-row-gap":ct,"grid-column-gap":ct,"grid-template-rows":ct,"grid-template-columns":ct,"grid-auto-rows":ct,"grid-auto-columns":ct,"box-shadow-x":ct,"box-shadow-y":ct,"box-shadow-blur":ct,"box-shadow-spread":ct,"font-line-height":ct,"text-shadow-x":ct,"text-shadow-y":ct,"text-shadow-blur":ct});function yt(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=yt(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=yt(i,t[i],r);else for(var o in t)t[o]=yt(e+"-"+o,t[o],r);else if("number"==typeof t&&!1===isNaN(t)){var s=r[e]||ht[e];return!s||0===t&&s===ct?t.toString():"function"==typeof s?s(t).toString():""+t+s}return t}var mt=function(e){void 0===e&&(e={});var t=pt(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=yt(n,e[n],t);return e},onChangeValue:function(e,r){return yt(r,e,t)}}},gt={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},vt={position:!0,size:!0},bt={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},wt={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function xt(e,t,r,n){return null==r[t]?e:0===e.length?[]:Array.isArray(e[0])?xt(e[0],t,r,n):"object"==typeof e[0]?function(e,t,r){return e.map((function(e){return kt(e,t,r,!1,!0)}))}(e,t,n):[e]}function kt(e,t,r,n,i){if(!bt[t]&&!wt[t])return[];var o=[];if(wt[t]&&(e=function(e,t,r,n){for(var i in r){var o=r[i];if(void 0!==e[i]&&(n||!t.prop(o))){var s,a=St((s={},s[o]=e[i],s),t)[o];n?t.style.fallbacks[o]=a:t.style[o]=a}delete e[i]}return e}(e,r,wt[t],n)),Object.keys(e).length)for(var s in bt[t])e[s]?Array.isArray(e[s])?o.push(null===vt[s]?e[s]:e[s].join(" ")):o.push(e[s]):null!=bt[t][s]&&o.push(bt[t][s]);return!o.length||i?o:[o]}function St(e,t,r){for(var n in e){var i=e[n];if(Array.isArray(i)){if(!Array.isArray(i[0])){if("fallbacks"===n){for(var o=0;o<e.fallbacks.length;o++)e.fallbacks[o]=St(e.fallbacks[o],t,!0);continue}e[n]=xt(i,n,gt,t),e[n].length||delete e[n]}}else if("object"==typeof i){if("fallbacks"===n){e.fallbacks=St(e.fallbacks,t,!0);continue}e[n]=kt(i,n,t,r),e[n].length||delete e[n]}else""===e[n]&&delete e[n]}return e}function Rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Pt="",Ot="",Et="",Ct="",At=g&&"ontouchstart"in document.documentElement;if(g){var Tt={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},jt=document.createElement("p").style;for(var Mt in Tt)if(Mt+"Transform"in jt){Pt=Mt,Ot=Tt[Mt];break}"Webkit"===Pt&&"msHyphens"in jt&&(Pt="ms",Ot=Tt.ms,Ct="edge"),"Webkit"===Pt&&"-apple-trailing-word"in jt&&(Et="apple")}var It=Pt,Nt=Ot,_t=Et,Lt=Ct,Vt=At,$t={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===It?"-webkit-"+e:Nt+e)}},zt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===It?Nt+"print-"+e:e)}},Dt=/[-\s]+(.)?/g;function Ft(e,t){return t?t.toUpperCase():""}function Wt(e){return e.replace(Dt,Ft)}function Ut(e){return Wt("-"+e)}var qt,Gt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===It){var r="mask-image";if(Wt(r)in t)return e;if(It+Ut(r)in t)return Nt+e}return e}},Bt={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==_t||Vt?e:Nt+e)}},Ht={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:Nt+e)}},Xt={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:Nt+e)}},Jt={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===It||"ms"===It&&"edge"!==Lt?Nt+e:e)}},Yt={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===It||"ms"===It||"apple"===_t?Nt+e:e)}},Zt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===It?"WebkitColumn"+Ut(e)in t&&Nt+"column-"+e:"Moz"===It&&"page"+Ut(e)in t&&"page-"+e)}},Kt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===It)return e;var r=e.replace("-inline","");return It+Ut(r)in t&&Nt+r}},Qt={supportedProperty:function(e,t){return Wt(e)in t&&e}},er={supportedProperty:function(e,t){var r=Ut(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:It+r in t?Nt+e:"Webkit"!==It&&"Webkit"+r in t&&"-webkit-"+e}},tr={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===It?""+Nt+e:e)}},rr={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===It?Nt+"scroll-chaining":e)}},nr={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},ir={supportedProperty:function(e,t){var r=nr[e];return!!r&&It+Ut(r)in t&&Nt+r}},or={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},sr=Object.keys(or),ar=function(e){return Nt+e},lr={supportedProperty:function(e,t,r){var n=r.multiple;if(sr.indexOf(e)>-1){var i=or[e];if(!Array.isArray(i))return It+Ut(i)in t&&Nt+i;if(!n)return!1;for(var o=0;o<i.length;o++)if(!(It+Ut(i[0])in t))return!1;return i.map(ar)}return!1}},ur=[$t,zt,Gt,Bt,Ht,Xt,Jt,Yt,Zt,Kt,Qt,er,tr,rr,ir,lr],cr=ur.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),dr=ur.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,function(e){if(Array.isArray(e))return Rt(e)}(r=t.noPrefill)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return Rt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Rt(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),e;var r}),[]),fr={};if(g){qt=document.createElement("p");var pr=window.getComputedStyle(document.documentElement,"");for(var hr in pr)isNaN(hr)||(fr[pr[hr]]=pr[hr]);dr.forEach((function(e){return delete fr[e]}))}function yr(e,t){if(void 0===t&&(t={}),!qt)return e;if(null!=fr[e])return fr[e];"transition"!==e&&"transform"!==e||(t[e]=e in qt.style);for(var r=0;r<cr.length&&(fr[e]=cr[r](e,qt.style,t),!fr[e]);r++);try{qt.style[e]=""}catch(e){return!1}return fr[e]}var mr,gr={},vr={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},br=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function wr(e,t,r){return"var"===t?"var":"all"===t?"all":"all"===r?", all":(t?yr(t):", "+yr(r))||t||r}function xr(e,t){var r=t;if(!mr||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=gr[n])return gr[n];try{mr.style[e]=r}catch(e){return gr[n]=!1,!1}if(vr[e])r=r.replace(br,wr);else if(""===mr.style[e]&&("-ms-flex"===(r=Nt+r)&&(mr.style[e]="-ms-flexbox"),mr.style[e]=r,""===mr.style[e]))return gr[n]=!1,!1;return mr.style[e]="",gr[n]=r,gr[n]}g&&(mr=document.createElement("p"));var kr=function(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var i=!1,o=yr(r);o&&o!==r&&(i=!0);var s=!1,a=xr(o,A(n));a&&a!==n&&(s=!0),(i||s)&&(i&&delete t[r],t[o||r]=a||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===It?e:"@"+Nt+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return xr(t,A(e))||e}}},Sr=function(e){return void 0===e&&(e={}),{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=E(e,{},r);return n[$e]=t,n},onProcessStyle:function(e,t){if(Ve in t||$e in t)return e;var r={};for(var n in e){var i=e[n];"function"==typeof i&&(delete e[n],r[n]=i)}return t[Ve]=r,e},onUpdate:function(e,t,r,n){var i=t,o=i[$e];o&&(i.style=o(e)||{});var s=i[Ve];if(s)for(var a in s)i.prop(a,s[a](e),n)}},(r=e.observable,{onCreateRule:function(e,t,n){if(!De(t))return null;var i=t,o=E(e,{},n);return i.subscribe((function(e){for(var t in e)o.prop(t,e[t],r)})),o},onProcessRule:function(e){if(!e||"style"===e.type){var t=e,n=t.style,i=function(e){var i=n[e];if(!De(i))return"continue";delete n[e],i.subscribe({next:function(n){t.prop(e,n,r)}})};for(var o in n)i(o)}}}),{onProcessRule:We},{onCreateRule:function(e,t,r){if(!e)return null;if(e===Ue)return new qe(e,t,r);if("@"===e[0]&&"@global "===e.substr(0,8))return new Ge(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,i=n?n[Ue]:null;if(i){for(var o in i)t.addRule(o,i[o],u({},r,{selector:He(o,e.selector)}));delete n[Ue]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var i in n)if("@"===i[0]&&i.substr(0,7)===Ue){var o=He(i.substr(7),e.selector);t.addRule(o,n[i],u({},r,{selector:o})),delete n[i]}}(e,t))}},Ze(),tt(),nt(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=ut(e[t]);return e}return ut(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=lt(t);return t===n?e:(r.prop(n,e),null)}},mt(e.defaultUnit),{onProcessStyle:function(e,t){if(!e||"style"!==t.type)return e;if(Array.isArray(e)){for(var r=0;r<e.length;r++)e[r]=St(e[r],t);return e}return St(e,t)}},kr(),(t=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n={},i=Object.keys(e).sort(t),o=0;o<i.length;o++)n[i[o]]=e[i[o]];return n}})]};var t,r},Rr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Pr=(function(e){var t={}}((function(e){return Rr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Me(Sr())),Or=function(e){void 0===e&&(e=Pr);var t,r=new Map,n=0,i=function(){return(!t||t.rules.index.length>1e4)&&(t=e.createStyleSheet().attach()),t};function o(){var e=arguments,t=JSON.stringify(e),o=r.get(t);if(o)return o.className;var s=[];for(var a in e){var l=e[a];if(Array.isArray(l))for(var u=0;u<l.length;u++)s.push(l[u]);else s.push(l)}for(var c={},d=[],f=0;f<s.length;f++){var p=s[f];if(p){var h=p;if("string"==typeof p){var y=r.get(p);y&&(y.labels.length&&d.push.apply(d,y.labels),h=y.style)}h.label&&-1===d.indexOf(h.label)&&d.push(h.label),Object.assign(c,h)}}delete c.label;var m=(0===d.length?"css":d.join("-"))+"-"+n++;i().addRule(m,c);var g=i().classes[m],v={style:c,labels:d,className:g};return r.set(t,v),r.set(g,v),g}return o.getSheet=i,o}(),Er=Or,Cr=Number.MIN_SAFE_INTEGER||-1e9,Ar=(0,e.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!g}),Tr=new Map,jr=function(e,t){var r=e.managers;if(r)return r[t]||(r[t]=new Ie),r[t];var n=Tr.get(t);return n||(n=new Ie,Tr.set(t,n)),n},Mr=function(e){var t=e.sheet,r=e.context,n=e.index,i=e.theme;t&&(jr(r,n).manage(i),r.registry&&r.registry.add(t))},Ir=Me(Sr()),Nr=new WeakMap,_r=function(e){return Nr.get(e)},Lr=function(e){if(!e.context.disableStylesGeneration){var t=jr(e.context,e.index),r=t.get(e.theme);if(r)return r;var n=e.context.jss||Ir,i=function(e){var t=e.styles;return"function"!=typeof t?t:t(e.theme)}(e),o=_e(i),s=n.createStyleSheet(i,function(e,t){var r;e.context.id&&null!=e.context.id.minify&&(r=e.context.id.minify);var n=e.context.classNamePrefix||"";e.name&&!r&&(n+=e.name.replace(/\s/g,"-")+"-");var i="";return e.name&&(i=e.name+", "),i+="function"==typeof e.styles?"Themed":"Unthemed",u({},e.sheetOptions,{index:e.index,meta:i,classNamePrefix:n,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}(e,null!==o));return function(e,t){Nr.set(e,t)}(s,{dynamicStyles:o,styles:i}),t.add(e.theme,s),s}},Vr=function(e,t){var r=_r(e);if(r){var n={};for(var i in r.dynamicStyles)for(var o=e.rules.index.length,s=e.addRule(i,r.dynamicStyles[i]),a=o;a<e.rules.index.length;a++){var l=e.rules.index[a];e.updateOne(l,t),n[s===l?i:l.key]=l}return n}};function $r(r){return r?e.useEffect:t().useInsertionEffect||e.useLayoutEffect}var zr={};Symbol("react-jss-styled"),function(e){void 0===e&&(e=Er)}();const Dr={neutral50:"#FAFAFA",neutral100:"#F5F5F5",neutral200:"#EEEEEE",neutral300:"#E0E0E0",neutral400:"#BDBDBD",neutral500:"#9E9E9E",neutral600:"#757575",neutral700:"#616161",neutral800:"#424242",neutral900:"#212121"},Fr=function(t,r){void 0===r&&(r={});var n=r,i=n.index,o=void 0===i?Cr++:i,s=n.theming,a=n.name,l=c(n,["index","theming","name"]),u=s&&s.context||y,d={};return function(r){var n=(0,e.useRef)(!0),i=(0,e.useContext)(Ar),s=function(r){return"function"==typeof t&&(r||(0,e.useContext)(u))||zr}(r&&r.theme),c=(0,e.useMemo)((function(){var e=Lr({context:i,styles:t,name:a,theme:s,index:o,sheetOptions:l});return e&&i.isSSR&&Mr({index:o,context:i,sheet:e,theme:s}),[e,e?Vr(e,r):null]}),[i,s]),f=c[0],p=c[1];$r(i.isSSR)((function(){f&&p&&!n.current&&function(e,t,r){for(var n in r)t.updateOne(r[n],e)}(r,f,p)}),[r]),$r(i.isSSR)((function(){return f&&Mr({index:o,context:i,sheet:f,theme:s}),function(){f&&(function(e){e.sheet&&jr(e.context,e.index).unmanage(e.theme)}({index:o,context:i,sheet:f,theme:s}),p&&function(e,t){for(var r in t)e.deleteRule(t[r])}(f,p))}}),[f]);var h=(0,e.useMemo)((function(){return f&&p?function(e,t){if(!t)return e.classes;var r=_r(e);if(!r)return e.classes;var n={};for(var i in r.styles)n[i]=e.classes[i],i in t&&(n[i]+=" "+e.classes[t[i].key]);return n}(f,p):d}),[f,p]);return(0,e.useDebugValue)(h),(0,e.useDebugValue)(s===zr?"No theme":s),(0,e.useEffect)((function(){n.current=!1})),h}}({component:{},cards:{display:"grid",gridTemplateColumns:"repeat(1,1fr)",gap:10,"@media (min-width: 600px)":{gridTemplateColumns:"repeat(2,1fr)"},"@media (min-width: 900px)":{gridTemplateColumns:"repeat(3,1fr)"}},card:{background:"white",borderRadius:"4px",paddingInline:15},label:{fontSize:"1.3em",marginBottom:2},count:{fontSize:"0.8em",color:Dr.neutral700},chart:{background:Dr.neutral300,height:10,maxWidth:400},bar:{height:10,background:"#718792"}});var Wr=window.wp.apiFetch,Ur=r.n(Wr),qr=r(322);const Gr=()=>{},Br=Gr(),Hr=Object,Xr=e=>e===Br,Jr=e=>"function"==typeof e,Yr=(e,t)=>({...e,...t}),Zr=new WeakMap;let Kr=0;const Qr=e=>{const t=typeof e,r=e&&e.constructor,n=r==Date;let i,o;if(Hr(e)!==e||n||r==RegExp)i=n?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(i=Zr.get(e),i)return i;if(i=++Kr+"~",Zr.set(e,i),r==Array){for(i="@",o=0;o<e.length;o++)i+=Qr(e[o])+",";Zr.set(e,i)}if(r==Hr){i="#";const t=Hr.keys(e).sort();for(;!Xr(o=t.pop());)Xr(e[o])||(i+=o+":"+Qr(e[o])+",");Zr.set(e,i)}}return i},en=new WeakMap,tn={},rn={},nn="undefined",on=typeof window!=nn,sn=typeof document!=nn,an=(e,t)=>{const r=en.get(e);return[()=>!Xr(t)&&e.get(t)||tn,n=>{if(!Xr(t)){const i=e.get(t);t in rn||(rn[t]=i),r[5](t,Yr(i,n),i||tn)}},r[6],()=>!Xr(t)&&t in rn?rn[t]:!Xr(t)&&e.get(t)||tn]};let ln=!0;const[un,cn]=on&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Gr,Gr],dn={isOnline:()=>ln,isVisible:()=>{const e=sn&&document.visibilityState;return Xr(e)||"hidden"!==e}},fn={initFocus:e=>(sn&&document.addEventListener("visibilitychange",e),un("focus",e),()=>{sn&&document.removeEventListener("visibilitychange",e),cn("focus",e)}),initReconnect:e=>{const t=()=>{ln=!0,e()},r=()=>{ln=!1};return un("online",t),un("offline",r),()=>{cn("online",t),cn("offline",r)}}},pn=!e.useId,hn=!on||"Deno"in window,yn=hn?e.useEffect:e.useLayoutEffect,mn="undefined"!=typeof navigator&&navigator.connection,gn=!hn&&mn&&(["slow-2g","2g"].includes(mn.effectiveType)||mn.saveData),vn=e=>{if(Jr(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Qr(e):"",t]};let bn=0;const wn=()=>++bn;async function xn(...e){const[t,r,n,i]=e,o=Yr({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{});let s=o.populateCache;const a=o.rollbackOnError;let l=o.optimisticData;const u=o.throwOnError;if(Jr(r)){const e=r,n=[],i=t.keys();for(const r of i)!/^\$(inf|sub)\$/.test(r)&&e(t.get(r)._k)&&n.push(r);return Promise.all(n.map(c))}return c(r);async function c(r){const[i]=vn(r);if(!i)return;const[c,d]=an(t,i),[f,p,h,y]=en.get(t),m=()=>{const e=f[i];return(Jr(o.revalidate)?o.revalidate(c().data,r):!1!==o.revalidate)&&(delete h[i],delete y[i],e&&e[0])?e[0](2).then((()=>c().data)):c().data};if(e.length<3)return m();let g,v=n;const b=wn();p[i]=[b,0];const w=!Xr(l),x=c(),k=x.data,S=x._c,R=Xr(S)?k:S;if(w&&(l=Jr(l)?l(R,k):l,d({data:l,_c:R})),Jr(v))try{v=v(R)}catch(e){g=e}if(v&&Jr(v.then)){if(v=await v.catch((e=>{g=e})),b!==p[i][0]){if(g)throw g;return v}g&&w&&(e=>"function"==typeof a?a(e):!1!==a)(g)&&(s=!0,d({data:R,_c:Br}))}if(s&&!g)if(Jr(s)){const e=s(v,R);d({data:e,error:Br,_c:Br})}else d({data:v,error:Br,_c:Br});if(p[i][1]=wn(),Promise.resolve(m()).then((()=>{d({_c:Br})})),!g)return v;if(u)throw g}}const kn=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},Sn=(e,t)=>{if(!en.has(e)){const r=Yr(fn,t),n={},i=xn.bind(Br,e);let o=Gr;const s={},a=(e,t)=>{const r=s[e]||[];return s[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},l=(t,r,n)=>{e.set(t,r);const i=s[t];if(i)for(const e of i)e(r,n)},u=()=>{if(!en.has(e)&&(en.set(e,[n,{},{},{},i,l,a]),!hn)){const t=r.initFocus(setTimeout.bind(Br,kn.bind(Br,n,0))),i=r.initReconnect(setTimeout.bind(Br,kn.bind(Br,n,1)));o=()=>{t&&t(),i&&i(),en.delete(e)}}};return u(),[e,i,u,o]}return[e,en.get(e)[4]]},[Rn,Pn]=Sn(new Map),On=Yr({onLoadingSlow:Gr,onSuccess:Gr,onError:Gr,onErrorRetry:(e,__,t,r,n)=>{const i=t.errorRetryCount,o=n.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*t.errorRetryInterval;!Xr(i)&&o>i||setTimeout(r,s,n)},onDiscarded:Gr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:gn?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:gn?5e3:3e3,compare:(e,t)=>Qr(e)==Qr(t),isPaused:()=>!1,cache:Rn,mutate:Pn,fallback:{}},dn),En=(e,t)=>{const r=Yr(e,t);if(t){const{use:n,fallback:i}=e,{use:o,fallback:s}=t;n&&o&&(r.use=n.concat(o)),i&&s&&(r.fallback=Yr(i,s))}return r},Cn=(0,e.createContext)({}),An=on&&window.__SWR_DEVTOOLS_USE__,Tn=An?window.__SWR_DEVTOOLS_USE__:[],jn=Tn.concat((e=>(t,r,n)=>{const i=r&&((...e)=>{const[n]=vn(t),[,,,i]=en.get(Rn);if(n.startsWith("$inf$"))return r(...e);const o=i[n];return Xr(o)?r(...e):(delete i[n],o)});return e(t,i,n)}));An&&(window.__SWR_DEVTOOLS_REACT__=e);const Mn=e.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),In={dedupe:!0},Nn=(Hr.defineProperty((t=>{const{value:r}=t,n=(0,e.useContext)(Cn),i=Jr(r),o=(0,e.useMemo)((()=>i?r(n):r),[i,n,r]),s=(0,e.useMemo)((()=>i?o:En(n,o)),[i,n,o]),a=o&&o.provider,l=(0,e.useRef)(Br);a&&!l.current&&(l.current=Sn(a(s.cache||Rn),o));const u=l.current;return u&&(s.cache=u[0],s.mutate=u[1]),yn((()=>{if(u)return u[2]&&u[2](),u[3]}),[]),(0,e.createElement)(Cn.Provider,Yr(t,{value:s}))}),"defaultValue",{value:On}),Ln=(t,r,n)=>{const{cache:i,compare:o,suspense:s,fallbackData:a,revalidateOnMount:l,revalidateIfStale:u,refreshInterval:c,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:p}=n,[h,y,m,g]=en.get(i),[v,b]=vn(t),w=(0,e.useRef)(!1),x=(0,e.useRef)(!1),k=(0,e.useRef)(v),S=(0,e.useRef)(r),R=(0,e.useRef)(n),P=()=>R.current,O=()=>P().isVisible()&&P().isOnline(),[E,C,A,T]=an(i,v),j=(0,e.useRef)({}).current,M=Xr(a)?n.fallback[v]:a,I=(e,t)=>{for(const r in j){const n=r;if("data"===n){if(!o(e[n],t[n])){if(!Xr(e[n]))return!1;if(!o(W,t[n]))return!1}}else if(t[n]!==e[n])return!1}return!0},N=(0,e.useMemo)((()=>{const e=!!v&&!!r&&(Xr(l)?!P().isPaused()&&!s&&(!!Xr(u)||u):l),t=t=>{const r=Yr(t);return delete r._k,e?{isValidating:!0,isLoading:!0,...r}:r},n=E(),i=T(),o=t(n),a=n===i?o:t(i);let c=o;return[()=>{const e=t(E());return I(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>a]}),[i,v]),_=(0,qr.useSyncExternalStore)((0,e.useCallback)((e=>A(v,((t,r)=>{I(r,t)||e()}))),[i,v]),N[0],N[1]),L=!w.current,V=h[v]&&h[v].length>0,$=_.data,z=Xr($)?M:$,D=_.error,F=(0,e.useRef)(z),W=p?Xr($)?F.current:$:z,U=!(V&&!Xr(D))&&(L&&!Xr(l)?l:!P().isPaused()&&(s?!Xr(z)&&u:Xr(z)||u)),q=!!(v&&r&&L&&U),G=Xr(_.isValidating)?q:_.isValidating,B=Xr(_.isLoading)?q:_.isLoading,H=(0,e.useCallback)((async e=>{const t=S.current;if(!v||!t||x.current||P().isPaused())return!1;let r,i,s=!0;const a=e||{},l=!m[v]||!a.dedupe,u=()=>pn?!x.current&&v===k.current&&w.current:v===k.current,c={isValidating:!1,isLoading:!1},d=()=>{C(c)},f=()=>{const e=m[v];e&&e[1]===i&&delete m[v]},p={isValidating:!0};Xr(E().data)&&(p.isLoading=!0);try{if(l&&(C(p),n.loadingTimeout&&Xr(E().data)&&setTimeout((()=>{s&&u()&&P().onLoadingSlow(v,n)}),n.loadingTimeout),m[v]=[t(b),wn()]),[r,i]=m[v],r=await r,l&&setTimeout(f,n.dedupingInterval),!m[v]||m[v][1]!==i)return l&&u()&&P().onDiscarded(v),!1;c.error=Br;const e=y[v];if(!Xr(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return d(),l&&u()&&P().onDiscarded(v),!1;const a=E().data;c.data=o(a,r)?a:r,l&&u()&&P().onSuccess(r,v,n)}catch(e){f();const t=P(),{shouldRetryOnError:r}=t;t.isPaused()||(c.error=e,l&&u()&&(t.onError(e,v,t),(!0===r||Jr(r)&&r(e))&&(P().revalidateOnFocus&&P().revalidateOnReconnect&&!O()||t.onErrorRetry(e,v,t,(e=>{const t=h[v];t&&t[0]&&t[0](3,e)}),{retryCount:(a.retryCount||0)+1,dedupe:!0}))))}return s=!1,d(),!0}),[v,i]),X=(0,e.useCallback)(((...e)=>xn(i,k.current,...e)),[]);if(yn((()=>{S.current=r,R.current=n,Xr($)||(F.current=$)})),yn((()=>{if(!v)return;const e=H.bind(Br,In);let t=0;const r=((e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}})(v,h,((r,n={})=>{if(0==r){const r=Date.now();P().revalidateOnFocus&&r>t&&O()&&(t=r+P().focusThrottleInterval,e())}else if(1==r)P().revalidateOnReconnect&&O()&&e();else{if(2==r)return H();if(3==r)return H(n)}}));return x.current=!1,k.current=v,w.current=!0,C({_k:b}),U&&(Xr(z)||hn?e():(n=e,on&&typeof window.requestAnimationFrame!=nn?window.requestAnimationFrame(n):setTimeout(n,1))),()=>{x.current=!0,r()};var n}),[v]),yn((()=>{let e;function t(){const t=Jr(c)?c(E().data):c;t&&-1!==e&&(e=setTimeout(r,t))}function r(){E().error||!d&&!P().isVisible()||!f&&!P().isOnline()?t():H(In).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[c,d,f,v]),(0,e.useDebugValue)(W),s&&Xr(z)&&v){if(!pn&&hn)throw new Error("Fallback data is required when using suspense in SSR.");S.current=r,R.current=n,x.current=!1;const e=g[v];if(!Xr(e)){const t=X(e);Mn(t)}if(!Xr(D))throw D;{const e=H(In);Xr(W)||(e.status="fulfilled",e.value=!0),Mn(e)}}return{mutate:X,get data(){return j.data=!0,W},get error(){return j.error=!0,D},get isValidating(){return j.isValidating=!0,G},get isLoading(){return j.isLoading=!0,B}}},function(...t){const r=Yr(On,(0,e.useContext)(Cn)),[n,i,o]=(e=>Jr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}])(t),s=En(r,o);let a=Ln;const{use:l}=s,u=(l||[]).concat(jn);for(let e=u.length;e--;)a=u[e](a);return a(n,i||s.fetcher||null,s)});var Ln;const Vn=(e,t)=>{const r={};return t.forEach((t=>{var n;const i=t[e];r[i]=(null!==(n=r[i])&&void 0!==n?n:0)+1})),Object.keys(r).map((e=>({key:e,value:r[e]})))},$n=(e,t)=>{const r={};return t.forEach((t=>{var n,i;const o=null!==(n=t.metas[e])&&void 0!==n?n:s("- no indication -");r[o]=(null!==(i=r[o])&&void 0!==i?i:0)+1})),Object.keys(r).map((e=>({key:e,value:r[e]})))},zn=({items:t})=>{const r=Fr(),n=t.reduce(((e,t)=>t.count+e),0);return(0,e.createElement)("ul",null,t.map((t=>{const i=t.count/n*100;return(0,e.createElement)("li",{key:t.label},(0,e.createElement)("div",{className:r.label},t.label),(0,e.createElement)("div",{className:r.chart},(0,e.createElement)("div",{className:r.bar,style:{width:i+"%"}})),(0,e.createElement)("div",{className:r.count},t.count))})))};var Dn=()=>{const t=Fr(),{routes:r}=((e="any",t="")=>{const{data:r,mutate:n}=Nn(a()+"/routes?status="+e+"&year="+t,(e=>Ur()({path:e})));return{routes:null!=r?r:[],update:e=>{Ur()({path:a()+"/routes/"+e.id,method:"PATCH",data:{name:e.name,status:e.status,difficulty:e.difficulty,grading_system:e.gradingSystem,created:e.created,metas:e.metas}}).finally((()=>{n(r.map((t=>({...t.id==e.id?e:t}))))}))},add:e=>{Ur()({path:a()+"/routes",method:"POST",data:{name:e.name,status:e.status,difficulty:e.difficulty,grading_system:e.gradingSystem,created:e.created,metas:e.metas}}).then((e=>{n([e,...r])}))},remove:e=>{Ur()({path:a()+"/routes/"+e,method:"DELETE"}).then((()=>{n(r.filter((t=>t.id!=e)))}))}}})("screwed-on"),n=l(window.ClimbPress.defaultGradingSystemId),i=window.ClimbPress.routeMetaStructure,u=(0,o.useMemo)((()=>i.map((e=>({key:e.key,label:e.label,routes:$n(e.key,r)})))),[i,r]),c=(0,o.useMemo)((()=>Vn("gradingSystem",r)),[r]),d=(0,o.useMemo)((()=>Vn("difficulty",r).sort(((e,t)=>parseInt(e.key)-parseInt(t.key)))),[r]);return(0,e.createElement)("div",{className:t.component},(0,e.createElement)("div",{className:t.cards},c.length>1?(0,e.createElement)("div",{className:t.card},(0,e.createElement)("h2",null,s("Grading-System")),(0,e.createElement)(zn,{items:c.map((e=>({label:e.key,count:e.value})))})):null,(0,e.createElement)("div",{className:t.card},(0,e.createElement)("h2",null,s("Grades")),(0,e.createElement)(zn,{items:d.map((e=>({label:((e,t)=>{let r=-1,n=-1;return t.grades.forEach(((t,i)=>{const o=Math.abs(t.difficulty-e);(n<0||n>o)&&(n=o,r=i)})),t.grades[r]})(parseInt(e.key),n).label,count:e.value})))})),u.map((r=>(0,e.createElement)("div",{className:t.card,key:r.key},(0,e.createElement)("h2",null,r.label),(0,e.createElement)(zn,{items:r.routes.map((e=>{var t;return{label:null!==(t=e.key)&&void 0!==t?t:s("- no value -"),count:e.value}}))}))))),(0,e.createElement)("p",null,s("These statistics contain all screwed on routes.")))};i()((()=>{(0,o.render)((0,e.createElement)(Dn,null),document.getElementById(window.ClimbPress.rootId))}))}()}();
  • climbpress/trunk/plugin.php

    r3024800 r3045938  
    55 * Plugin URI: https://www.climbpress.com/
    66 * Description: Route management for climbing and boulder gyms
    7  * Version: 0.6.1
     7 * Version: 0.6.2
    88 * Author: Edward Bock <hi@edwardbock.de>
    99 * Author URI: https://www.edwardbock.de
    1010 * Requires at least: 5.0
    11  * Tested up to: 6.4.2
     11 * Tested up to: 6.4.3
    1212 * Requires PHP: 8.0
    1313 * Text Domain: climbpress
    1414 * License: http://www.gnu.org/licenses/gpl-2.0.html GPLv2
    15  * @copyright Copyright (c) 2023, Edward Bock
     15 * @copyright Copyright by Edward Bock
    1616 * @package ClimbPress
    1717 *
  • climbpress/trunk/vendor/composer/installed.php

    r3024800 r3045938  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '4865370b023bb817af2e5caad812ff3e2696f3c7',
     6        'reference' => 'f9f75480cb70a6542683e7a437cf3a1d06944eab',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1414            'pretty_version' => 'dev-main',
    1515            'version' => 'dev-main',
    16             'reference' => '4865370b023bb817af2e5caad812ff3e2696f3c7',
     16            'reference' => 'f9f75480cb70a6542683e7a437cf3a1d06944eab',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • climbpress/trunk/web-components/routes.js

    r3024800 r3045938  
    77 * Copyright 2017 Google LLC
    88 * SPDX-License-Identifier: BSD-3-Clause
    9  */const{is:Dt,defineProperty:zt,getOwnPropertyDescriptor:Bt,getOwnPropertyNames:Jt,getOwnPropertySymbols:qt,getPrototypeOf:Ft}=Object,A=globalThis,vt=A.trustedTypes,Gt=vt?vt.emptyScript:"",X=A.reactiveElementPolyfillSupport,H=(s,t)=>s,W={toAttribute(s,t){switch(t){case Boolean:s=s?Gt:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},it=(s,t)=>!Dt(s,t),gt={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:it};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),A.litPropertyMetadata??(A.litPropertyMetadata=new WeakMap);class N extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=gt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&zt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){const{get:i,set:o}=Bt(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return i==null?void 0:i.call(this)},set(n){const l=i==null?void 0:i.call(this);o.call(this,n),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??gt}static _$Ei(){if(this.hasOwnProperty(H("elementProperties")))return;const t=Ft(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(H("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(H("properties"))){const e=this.properties,r=[...Jt(e),...qt(e)];for(const i of r)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)e.unshift(bt(i))}else t!==void 0&&e.push(bt(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$ES)==null||e.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Lt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(e=>{var r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e){var o;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const n=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:W).toAttribute(e,r.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var o;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=r.getPropertyOptions(i),l=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:W;this._$Em=i,this[i]=l.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,r,i=!1,o){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??it)(i?o:this[t],e))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,n]of i)n.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.C(o,this[o],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(r=this._$ES)==null||r.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(e)):this._$ET()}catch(i){throw t=!1,this._$ET(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)==null||e.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EO(e,this[e]))),this._$ET()}updated(t){}firstUpdated(t){}}N.elementStyles=[],N.shadowRootOptions={mode:"open"},N[H("elementProperties")]=new Map,N[H("finalized")]=new Map,X==null||X({ReactiveElement:N}),(A.reactiveElementVersions??(A.reactiveElementVersions=[])).push("2.0.1");/**
     9 */const{is:Dt,defineProperty:zt,getOwnPropertyDescriptor:Bt,getOwnPropertyNames:Jt,getOwnPropertySymbols:qt,getPrototypeOf:Ft}=Object,A=globalThis,vt=A.trustedTypes,Gt=vt?vt.emptyScript:"",X=A.reactiveElementPolyfillSupport,H=(s,t)=>s,W={toAttribute(s,t){switch(t){case Boolean:s=s?Gt:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},it=(s,t)=>!Dt(s,t),ft={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:it};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),A.litPropertyMetadata??(A.litPropertyMetadata=new WeakMap);class U extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ft){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,e);i!==void 0&&zt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,r){const{get:i,set:o}=Bt(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return i==null?void 0:i.call(this)},set(n){const l=i==null?void 0:i.call(this);o.call(this,n),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ft}static _$Ei(){if(this.hasOwnProperty(H("elementProperties")))return;const t=Ft(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(H("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(H("properties"))){const e=this.properties,r=[...Jt(e),...qt(e)];for(const i of r)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,i]of e)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const i=this._$Eu(e,r);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)e.unshift(bt(i))}else t!==void 0&&e.push(bt(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Lt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostConnected)==null?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var r;return(r=e.hostDisconnected)==null?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){var o;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const n=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:W).toAttribute(e,r.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var o;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const n=r.getPropertyOptions(i),l=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)==null?void 0:o.fromAttribute)!==void 0?n.converter:W;this._$Em=i,this[i]=l.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,r){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??it)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,n]of i)n.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],n)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(r=this._$EO)==null||r.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(e)):this._$EU()}catch(i){throw t=!1,this._$EU(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}U.elementStyles=[],U.shadowRootOptions={mode:"open"},U[H("elementProperties")]=new Map,U[H("finalized")]=new Map,X==null||X({ReactiveElement:U}),(A.reactiveElementVersions??(A.reactiveElementVersions=[])).push("2.0.4");/**
    1010 * @license
    1111 * Copyright 2017 Google LLC
    1212 * SPDX-License-Identifier: BSD-3-Clause
    13  */const V=globalThis,Q=V.trustedTypes,ft=Q?Q.createPolicy("lit-html",{createHTML:s=>s}):void 0,Et="$lit$",_=`lit$${(Math.random()+"").slice(9)}$`,Ct="?"+_,Wt=`<${Ct}>`,O=document,L=()=>O.createComment(""),D=s=>s===null||typeof s!="object"&&typeof s!="function",Pt=Array.isArray,Qt=s=>Pt(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Y=`[ 
     13 */const V=globalThis,Q=V.trustedTypes,gt=Q?Q.createPolicy("lit-html",{createHTML:s=>s}):void 0,Et="$lit$",_=`lit$${(Math.random()+"").slice(9)}$`,Ct="?"+_,Wt=`<${Ct}>`,O=document,L=()=>O.createComment(""),D=s=>s===null||typeof s!="object"&&typeof s!="function",Pt=Array.isArray,Qt=s=>Pt(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Y=`[ 
    1414\f\r]`,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,mt=/-->/g,yt=/>/g,C=RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^     
    15 \f\r"'\`<>=]|("|')|))|$)`,"g"),$t=/'/g,_t=/"/g,Ot=/^(?:script|style|textarea|title)$/i,Kt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),w=Kt(1),T=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),wt=new WeakMap,P=O.createTreeWalker(O,129);function Tt(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return ft!==void 0?ft.createHTML(t):t}const Xt=(s,t)=>{const e=s.length-1,r=[];let i,o=t===2?"<svg>":"",n=M;for(let l=0;l<e;l++){const a=s[l];let d,u,c=-1,b=0;for(;b<a.length&&(n.lastIndex=b,u=n.exec(a),u!==null);)b=n.lastIndex,n===M?u[1]==="!--"?n=mt:u[1]!==void 0?n=yt:u[2]!==void 0?(Ot.test(u[2])&&(i=RegExp("</"+u[2],"g")),n=C):u[3]!==void 0&&(n=C):n===C?u[0]===">"?(n=i??M,c=-1):u[1]===void 0?c=-2:(c=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?C:u[3]==='"'?_t:$t):n===_t||n===$t?n=C:n===mt||n===yt?n=M:(n=C,i=void 0);const f=n===C&&s[l+1].startsWith("/>")?" ":"";o+=n===M?a+Wt:c>=0?(r.push(d),a.slice(0,c)+Et+a.slice(c)+_+f):a+_+(c===-2?l:f)}return[Tt(s,o+(s[e]||"<?>")+(t===2?"</svg>":"")),r]};class z{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let o=0,n=0;const l=t.length-1,a=this.parts,[d,u]=Xt(t,e);if(this.el=z.createElement(d,r),P.currentNode=this.el.content,e===2){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=P.nextNode())!==null&&a.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(const c of i.getAttributeNames())if(c.endsWith(Et)){const b=u[n++],f=i.getAttribute(c).split(_),S=/([.?@])?(.*)/.exec(b);a.push({type:1,index:o,name:S[2],strings:f,ctor:S[1]==="."?Zt:S[1]==="?"?te:S[1]==="@"?ee:K}),i.removeAttribute(c)}else c.startsWith(_)&&(a.push({type:6,index:o}),i.removeAttribute(c));if(Ot.test(i.tagName)){const c=i.textContent.split(_),b=c.length-1;if(b>0){i.textContent=Q?Q.emptyScript:"";for(let f=0;f<b;f++)i.append(c[f],L()),P.nextNode(),a.push({type:2,index:++o});i.append(c[b],L())}}}else if(i.nodeType===8)if(i.data===Ct)a.push({type:2,index:o});else{let c=-1;for(;(c=i.data.indexOf(_,c+1))!==-1;)a.push({type:7,index:o}),c+=_.length-1}o++}}static createElement(t,e){const r=O.createElement("template");return r.innerHTML=t,r}}function U(s,t,e=s,r){var n,l;if(t===T)return t;let i=r!==void 0?(n=e._$Co)==null?void 0:n[r]:e._$Cl;const o=D(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((l=i==null?void 0:i._$AO)==null||l.call(i,!1),o===void 0?i=void 0:(i=new o(s),i._$AT(s,e,r)),r!==void 0?(e._$Co??(e._$Co=[]))[r]=i:e._$Cl=i),i!==void 0&&(t=U(s,i._$AS(s,t.values),i,r)),t}class Yt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,i=((t==null?void 0:t.creationScope)??O).importNode(e,!0);P.currentNode=i;let o=P.nextNode(),n=0,l=0,a=r[0];for(;a!==void 0;){if(n===a.index){let d;a.type===2?d=new B(o,o.nextSibling,this,t):a.type===1?d=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(d=new re(o,this,t)),this._$AV.push(d),a=r[++l]}n!==(a==null?void 0:a.index)&&(o=P.nextNode(),n++)}return P.currentNode=O,i}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class B{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,r,i){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),D(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==T&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Qt(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==p&&D(this._$AH)?this._$AA.nextSibling.data=t:this.$(O.createTextNode(t)),this._$AH=t}g(t){var o;const{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=z.createElement(Tt(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(e);else{const n=new Yt(i,this),l=n.u(this.options);n.p(e),this.$(l),this._$AH=n}}_$AC(t){let e=wt.get(t.strings);return e===void 0&&wt.set(t.strings,e=new z(t)),e}T(t){Pt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const o of t)i===e.length?e.push(r=new B(this.k(L()),this.k(L()),this,this.options)):r=e[i],r._$AI(o),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class K{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,o){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=p}_$AI(t,e=this,r,i){const o=this.strings;let n=!1;if(o===void 0)t=U(this,t,e,0),n=!D(t)||t!==this._$AH&&t!==T,n&&(this._$AH=t);else{const l=t;let a,d;for(t=o[0],a=0;a<o.length-1;a++)d=U(this,l[r+a],e,a),d===T&&(d=this._$AH[a]),n||(n=!D(d)||d!==this._$AH[a]),d===p?t=p:t!==p&&(t+=(d??"")+o[a+1]),this._$AH[a]=d}n&&!i&&this.O(t)}O(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Zt extends K{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===p?void 0:t}}class te extends K{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class ee extends K{constructor(t,e,r,i,o){super(t,e,r,i,o),this.type=5}_$AI(t,e=this){if((t=U(this,t,e,0)??p)===T)return;const r=this._$AH,i=t===p&&r!==p||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==p&&(r===p||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class re{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const Z=V.litHtmlPolyfillSupport;Z==null||Z(z,B),(V.litHtmlVersions??(V.litHtmlVersions=[])).push("3.1.0");const se=(s,t,e)=>{const r=(e==null?void 0:e.renderBefore)??t;let i=r._$litPart$;if(i===void 0){const o=(e==null?void 0:e.renderBefore)??null;r._$litPart$=i=new B(t.insertBefore(L(),o),o,void 0,e??{})}return i._$AI(s),i};/**
     15\f\r"'\`<>=]|("|')|))|$)`,"g"),$t=/'/g,_t=/"/g,Ot=/^(?:script|style|textarea|title)$/i,Kt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),w=Kt(1),T=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),wt=new WeakMap,P=O.createTreeWalker(O,129);function Tt(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return gt!==void 0?gt.createHTML(t):t}const Xt=(s,t)=>{const e=s.length-1,r=[];let i,o=t===2?"<svg>":"",n=M;for(let l=0;l<e;l++){const a=s[l];let d,u,c=-1,b=0;for(;b<a.length&&(n.lastIndex=b,u=n.exec(a),u!==null);)b=n.lastIndex,n===M?u[1]==="!--"?n=mt:u[1]!==void 0?n=yt:u[2]!==void 0?(Ot.test(u[2])&&(i=RegExp("</"+u[2],"g")),n=C):u[3]!==void 0&&(n=C):n===C?u[0]===">"?(n=i??M,c=-1):u[1]===void 0?c=-2:(c=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?C:u[3]==='"'?_t:$t):n===_t||n===$t?n=C:n===mt||n===yt?n=M:(n=C,i=void 0);const g=n===C&&s[l+1].startsWith("/>")?" ":"";o+=n===M?a+Wt:c>=0?(r.push(d),a.slice(0,c)+Et+a.slice(c)+_+g):a+_+(c===-2?l:g)}return[Tt(s,o+(s[e]||"<?>")+(t===2?"</svg>":"")),r]};class z{constructor({strings:t,_$litType$:e},r){let i;this.parts=[];let o=0,n=0;const l=t.length-1,a=this.parts,[d,u]=Xt(t,e);if(this.el=z.createElement(d,r),P.currentNode=this.el.content,e===2){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=P.nextNode())!==null&&a.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(const c of i.getAttributeNames())if(c.endsWith(Et)){const b=u[n++],g=i.getAttribute(c).split(_),S=/([.?@])?(.*)/.exec(b);a.push({type:1,index:o,name:S[2],strings:g,ctor:S[1]==="."?Zt:S[1]==="?"?te:S[1]==="@"?ee:K}),i.removeAttribute(c)}else c.startsWith(_)&&(a.push({type:6,index:o}),i.removeAttribute(c));if(Ot.test(i.tagName)){const c=i.textContent.split(_),b=c.length-1;if(b>0){i.textContent=Q?Q.emptyScript:"";for(let g=0;g<b;g++)i.append(c[g],L()),P.nextNode(),a.push({type:2,index:++o});i.append(c[b],L())}}}else if(i.nodeType===8)if(i.data===Ct)a.push({type:2,index:o});else{let c=-1;for(;(c=i.data.indexOf(_,c+1))!==-1;)a.push({type:7,index:o}),c+=_.length-1}o++}}static createElement(t,e){const r=O.createElement("template");return r.innerHTML=t,r}}function k(s,t,e=s,r){var n,l;if(t===T)return t;let i=r!==void 0?(n=e._$Co)==null?void 0:n[r]:e._$Cl;const o=D(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==o&&((l=i==null?void 0:i._$AO)==null||l.call(i,!1),o===void 0?i=void 0:(i=new o(s),i._$AT(s,e,r)),r!==void 0?(e._$Co??(e._$Co=[]))[r]=i:e._$Cl=i),i!==void 0&&(t=k(s,i._$AS(s,t.values),i,r)),t}class Yt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,i=((t==null?void 0:t.creationScope)??O).importNode(e,!0);P.currentNode=i;let o=P.nextNode(),n=0,l=0,a=r[0];for(;a!==void 0;){if(n===a.index){let d;a.type===2?d=new B(o,o.nextSibling,this,t):a.type===1?d=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(d=new re(o,this,t)),this._$AV.push(d),a=r[++l]}n!==(a==null?void 0:a.index)&&(o=P.nextNode(),n++)}return P.currentNode=O,i}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class B{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,r,i){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=k(this,t,e),D(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==T&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Qt(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==p&&D(this._$AH)?this._$AA.nextSibling.data=t:this.T(O.createTextNode(t)),this._$AH=t}$(t){var o;const{values:e,_$litType$:r}=t,i=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=z.createElement(Tt(r.h,r.h[0]),this.options)),r);if(((o=this._$AH)==null?void 0:o._$AD)===i)this._$AH.p(e);else{const n=new Yt(i,this),l=n.u(this.options);n.p(e),this.T(l),this._$AH=n}}_$AC(t){let e=wt.get(t.strings);return e===void 0&&wt.set(t.strings,e=new z(t)),e}k(t){Pt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,i=0;for(const o of t)i===e.length?e.push(r=new B(this.S(L()),this.S(L()),this,this.options)):r=e[i],r._$AI(o),i++;i<e.length&&(this._$AR(r&&r._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class K{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,i,o){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=p}_$AI(t,e=this,r,i){const o=this.strings;let n=!1;if(o===void 0)t=k(this,t,e,0),n=!D(t)||t!==this._$AH&&t!==T,n&&(this._$AH=t);else{const l=t;let a,d;for(t=o[0],a=0;a<o.length-1;a++)d=k(this,l[r+a],e,a),d===T&&(d=this._$AH[a]),n||(n=!D(d)||d!==this._$AH[a]),d===p?t=p:t!==p&&(t+=(d??"")+o[a+1]),this._$AH[a]=d}n&&!i&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Zt extends K{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}class te extends K{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class ee extends K{constructor(t,e,r,i,o){super(t,e,r,i,o),this.type=5}_$AI(t,e=this){if((t=k(this,t,e,0)??p)===T)return;const r=this._$AH,i=t===p&&r!==p||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==p&&(r===p||i);i&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class re{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){k(this,t)}}const Z=V.litHtmlPolyfillSupport;Z==null||Z(z,B),(V.litHtmlVersions??(V.litHtmlVersions=[])).push("3.1.2");const se=(s,t,e)=>{const r=(e==null?void 0:e.renderBefore)??t;let i=r._$litPart$;if(i===void 0){const o=(e==null?void 0:e.renderBefore)??null;r._$litPart$=i=new B(t.insertBefore(L(),o),o,void 0,e??{})}return i._$AI(s),i};/**
    1616 * @license
    1717 * Copyright 2017 Google LLC
    1818 * SPDX-License-Identifier: BSD-3-Clause
    19  */class R extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=se(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return T}}var xt;R._$litElement$=!0,R.finalized=!0,(xt=globalThis.litElementHydrateSupport)==null||xt.call(globalThis,{LitElement:R});const tt=globalThis.litElementPolyfillSupport;tt==null||tt({LitElement:R});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");/**
     19 */class N extends U{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=se(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return T}}var xt;N._$litElement$=!0,N.finalized=!0,(xt=globalThis.litElementHydrateSupport)==null||xt.call(globalThis,{LitElement:N});const tt=globalThis.litElementPolyfillSupport;tt==null||tt({LitElement:N});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");/**
    2020 * @license
    2121 * Copyright 2017 Google LLC
    2222 * SPDX-License-Identifier: BSD-3-Clause
    23  */const kt=s=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)};/**
     23 */const Rt=s=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)};/**
    2424 * @license
    2525 * Copyright 2017 Google LLC
    2626 * SPDX-License-Identifier: BSD-3-Clause
    27  */const ie={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:it},oe=(s=ie,t,e)=>{const{kind:r,metadata:i}=e;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(e.name,s),r==="accessor"){const{name:n}=e;return{set(l){const a=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,a,s)},init(l){return l!==void 0&&this.C(n,void 0,s),l}}}if(r==="setter"){const{name:n}=e;return function(l){const a=this[n];t.call(this,l),this.requestUpdate(n,a,s)}}throw Error("Unsupported decorator location: "+r)};function v(s){return(t,e)=>typeof e=="object"?oe(s,t,e):((r,i,o)=>{const n=i.hasOwnProperty(o);return i.constructor.createProperty(o,n?{...r,wrapped:!0}:r),n?Object.getOwnPropertyDescriptor(i,o):void 0})(s,t,e)}/**
     27 */const ie={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:it},oe=(s=ie,t,e)=>{const{kind:r,metadata:i}=e;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(e.name,s),r==="accessor"){const{name:n}=e;return{set(l){const a=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,a,s)},init(l){return l!==void 0&&this.P(n,void 0,s),l}}}if(r==="setter"){const{name:n}=e;return function(l){const a=this[n];t.call(this,l),this.requestUpdate(n,a,s)}}throw Error("Unsupported decorator location: "+r)};function v(s){return(t,e)=>typeof e=="object"?oe(s,t,e):((r,i,o)=>{const n=i.hasOwnProperty(o);return i.constructor.createProperty(o,n?{...r,wrapped:!0}:r),n?Object.getOwnPropertyDescriptor(i,o):void 0})(s,t,e)}/**
    2828 * @license
    2929 * Copyright 2017 Google LLC
     
    3333 * Copyright 2018 Google LLC
    3434 * SPDX-License-Identifier: BSD-3-Clause
    35  */const ne=s=>s??p,ae=":host{color:#000;display:block;box-sizing:border-box;width:100%;max-width:var(--wp--style--global--content-size, auto);margin-inline:auto;padding-right:var(--wp--style--root--padding-right, 0);padding-left:var(--wp--style--root--padding-left, 0);--gap-container: var(--climbpress-routes-gap-container, 8px);--gap-list: var(--climbpress-routes-gap-list, 8px);--input-padding: var(--climbpress-routes-input-padding, 8px)}.container{display:flex;flex-direction:column;gap:var(--gap-container)}slot[name=button]::slotted(*){margin-top:16px;width:100%}button{outline:none;padding:var(--climbpress-routes--item-padding);cursor:pointer;text-align:center;width:100%;font-weight:700;margin-top:16px;background-color:var(--climbpress-routes--color-primary);border:var(--climbpress-routes--item-border);border-color:var(--climbpress-routes--color-contrast);color:var(--climbpress-routes--color-contrast)}button:hover{background-color:var(--climbpress-routes--color-contrast);color:var(--climbpress-routes--color-base)}input,select{display:block;box-sizing:border-box;padding:var(--input-padding);margin-bottom:var(--climbpress-routes--item-padding);font-size:16px;font-weight:700;border:1px solid black;outline-color:var(--climbpress-routes--color-secondary, initial)}input{width:100%}.filters{display:flex;column-gap:var(--climbpress-routes--item-padding);flex-wrap:wrap;container-name:filters;container-type:inline-size}@container filters(max-width: 560 px){.filters select{width:100%}}.routes{display:flex;flex-direction:column;gap:var(--gap-list)}",Nt=(s,t)=>t.find(e=>e.id==s.gradingSystem),I=(s,t)=>{var o;const e=(o=Nt(s,t))==null?void 0:o.grades;if(!e)return null;let r=null,i=null;for(let n=0;n<e.length;n++){const l=e[n];if(r==null){r=n,i=l;continue}if(l.difficulty===s.difficulty){r=n,i=l;break}const a=Math.abs(l.difficulty-i.difficulty),d=Math.abs(l.difficulty-s.difficulty);a>d&&(r=n,i=l)}return r==null||i==null?null:{index:r,grade:i}},Rt=(s,t)=>{var r;const e=I(s,t);return((r=e==null?void 0:e.grade)==null?void 0:r.label)??String(s.difficulty)},Ut=(s,t,e)=>{var i;const r=e.find(o=>o.key==s);return r?((i=r==null?void 0:r.options.find(o=>o.key==t))==null?void 0:i.label)??null:null};/**
     35 */const ne=s=>s??p,ae=":host{color:#000;display:block;box-sizing:border-box;width:100%;max-width:var(--wp--style--global--content-size, auto);margin-inline:auto;padding-right:var(--wp--style--root--padding-right, 0);padding-left:var(--wp--style--root--padding-left, 0);--gap-container: var(--climbpress-routes-gap-container, 8px);--gap-list: var(--climbpress-routes-gap-list, 8px);--input-padding: var(--climbpress-routes-input-padding, 8px)}.container{display:flex;flex-direction:column;gap:var(--gap-container)}slot[name=button]::slotted(*){margin-top:16px;width:100%}button{outline:none;padding:var(--climbpress-routes--item-padding);cursor:pointer;text-align:center;width:100%;font-weight:700;margin-top:16px;background-color:var(--climbpress-routes--color-primary);border:var(--climbpress-routes--item-border);border-color:var(--climbpress-routes--color-contrast);color:var(--climbpress-routes--color-contrast)}button:hover{background-color:var(--climbpress-routes--color-contrast);color:var(--climbpress-routes--color-base)}input,select{display:block;box-sizing:border-box;padding:var(--input-padding);margin-bottom:var(--climbpress-routes--item-padding);font-size:16px;font-weight:700;border:1px solid black;outline-color:var(--climbpress-routes--color-secondary, initial)}input{width:100%}.filters{display:flex;column-gap:var(--climbpress-routes--item-padding);flex-wrap:wrap;container-name:filters;container-type:inline-size}@container filters(max-width: 560 px){.filters select{width:100%}}.routes{display:flex;flex-direction:column;gap:var(--gap-list)}",Ut=(s,t)=>t.find(e=>e.id==s.gradingSystem),I=(s,t)=>{var o;const e=(o=Ut(s,t))==null?void 0:o.grades;if(!e)return null;let r=null,i=null;for(let n=0;n<e.length;n++){const l=e[n];if(r==null){r=n,i=l;continue}if(l.difficulty===s.difficulty){r=n,i=l;break}const a=Math.abs(l.difficulty-i.difficulty),d=Math.abs(l.difficulty-s.difficulty);a>d&&(r=n,i=l)}return r==null||i==null?null:{index:r,grade:i}},Nt=(s,t)=>{var r;const e=I(s,t);return((r=e==null?void 0:e.grade)==null?void 0:r.label)??String(s.difficulty)},kt=(s,t,e)=>{var i;const r=e.find(o=>o.key==s);return r?((i=r==null?void 0:r.options.find(o=>o.key==t))==null?void 0:i.label)??null:null};/**
    3636 * @license
    3737 * Copyright 2017 Google LLC
     
    4141 * Copyright 2018 Google LLC
    4242 * SPDX-License-Identifier: BSD-3-Clause
    43  */const q=de(class extends ce{constructor(s){var t;if(super(s),s.type!==le.ATTRIBUTE||s.name!=="class"||((t=s.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){var r,i;if(this.it===void 0){this.it=new Set,s.strings!==void 0&&(this.st=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((r=this.st)!=null&&r.has(o))&&this.it.add(o);return this.render(t)}const e=s.element.classList;for(const o of this.it)o in t||(e.remove(o),this.it.delete(o));for(const o in t){const n=!!t[o];n===this.it.has(o)||(i=this.st)!=null&&i.has(o)||(n?(e.add(o),this.it.add(o)):(e.remove(o),this.it.delete(o)))}return T}}),ue=':host{--text-color: var(--climbpress-route-text-color, currentColor);--background-color: var(--climbpress-route-background-color, white);--padding: var(--climbpress-route-padding, 8px);--border-radius: var(--climbpress-route-border-radius, 0);--border-width: var(--climbpress-route-border-width, 1px);--border-style: var(--climbpress-route-border-style, solid);--border-color: var(--climbpress-route-border-color, currentColor);--border: var(--border-width) var(--border-style) var(--border-color);--button-text-color: var(--climbpress-route-button-text-color, white);--button-background-color: var(--climbpress-route-button-background-color, rgba(0,0,0,80%));--button-border-radius: var(--climbpress-route-button-border-radius, 0);--button-border-width: var(--climbpress-route-button-border-width, 1px);--button-border-style: var(--climbpress-route-button-border-style, solid);--button-border-color: var(--climbpress-route-button-border-color, currentColor);--button-border: var(--button-border-width) var(--button-border-style) var(--button-border-color);--button-text-color-hover: var(--climbpress-route-button-text-color-hover, white);--button-background-color-hover: var(--climbpress-route-button-background-color-hover, rgba(0,0,0,100%));--button-border-radius-hover: var(--climbpress-route-button-border-radius-hover, 0);--button-border-width-hover: var(--climbpress-route-button-border-width-hover, 1px);--button-border-style-hover: var(--climbpress-route-button-border-style-hover, solid);--button-border-color-hover: var(--climbpress-route-button-border-color-hover, currentColor);--button-border-hover: var(--button-border-width-hover) var(--button-border-style-hover) var(--button-border-color-hover);--button-text-color-active: var(--climbpress-route-button-text-color-active, rgba(0,0,0,100%));--button-background-color-active: var(--climbpress-route-button-background-color-active, white);--button-border-radius-active: var(--climbpress-route-button-border-radius-active, 0);--button-border-width-active: var(--climbpress-route-button-border-width-active, 1px);--button-border-style-active: var(--climbpress-route-button-border-style-active, solid);--button-border-color-active: var(--climbpress-route-button-border-color-active, currentColor);--button-border-active: var(--button-border-width-active) var(--button-border-style-active) var(--button-border-color-active);--button-text-color-disabled: var(--climbpress-route-button-text-color-disabled, darkgrey);--button-background-color-disabled: var(--climbpress-route-button-background-color-disabled, lightgrey);--button-border-radius-disabled: var(--climbpress-route-button-border-radius-disabled, 0);--button-border-width-disabled: var(--climbpress-route-button-border-width-disabled, 1px);--button-border-style-disabled: var(--climbpress-route-button-border-style-disabled, solid);--button-border-color-disabled: var(--climbpress-route-button-border-color-diesabled, lightgrey);--button-border-disabled: var(--button-border-width-disabled) var(--button-border-style-disabled) var(--button-border-color-disabled);--transition-duration: var(--climbpress-route-transition-duration, .22s);--transition-timing-function: var(--climbpress-route-transition-timing-function, ease-in-out);--transition: all var(--transition-duration) var(--transition-timing-function)}.route{display:grid;grid-template-areas:"details difficulty" "expanded difficulty";grid-template-columns:minmax(0,3fr) 1fr;align-items:center;justify-items:stretch;list-style:none;color:var(--text-color);background:var(--background-color);border-radius:var(--border-radius);border:var(--border);container-name:route;container-type:inline-size;transition:var(--transition);box-sizing:border-box;padding:var(--padding)}.details{grid-area:details;padding-block:var(--padding);padding-inline:var(--padding) 0}.name{font-weight:700;font-size:20px;transition:var(--transition)}.meta{font-size:14px;overflow-y:hidden;opacity:1;transition:var(--transition)}.meta>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.difficulty{display:grid;grid-template-rows:1fr;grid-area:difficulty}.value{position:relative;font-size:24px;line-height:1em;font-weight:700;text-align:center;transition:var(--transition)}.my-value{position:absolute;left:50%;transform:translate(-50%);top:20px;font-size:14px;text-wrap:nowrap}.difficulty .voting{display:grid;grid-template-rows:0fr;margin-top:0;transition:var(--transition)}.difficulty .community-voting{text-align:center;margin-top:8px}.difficulty .voting_wrapper{overflow-y:hidden}.voting button{cursor:pointer;padding:0;margin:0;width:40px;aspect-ratio:1;color:var(--button-text-color);background-color:var(--button-background-color);border:var(--button-border);border-radius:var(--button-border-radius)}.voting button:hover{color:var(--button-text-color-hover);background-color:var(--button-background-color-hover);border:var(--button-border-hover)}.voting button.active{color:var(--button-text-color-active);background-color:var(--button-background-color-active);border:var(--button-border-active)}.voting button[disabled]{color:var(--button-text-color-disabled);background-color:var(--button-background-color-disabled);border:var(--button-border-disabled);cursor:initial}button{font-size:1.4em}.btn-easier,.btn-harder{font-weight:bolder}.voting .label{font-size:.8em;text-align:center;opacity:60%}.controls{display:flex;gap:8px;justify-content:center;align-items:center}@container route(min-width: 500 px){.difficulty .value{font-size:36px}}.expanded-details{grid-area:expanded;transition:var(--transition)}dl{padding-block:0 var(--padding);padding-inline:var(--padding);margin-block:0;font-size:1rem}dt{font-weight:700}dd{padding:0;margin-inline:0;margin-block:0 8px}.route:not(.expanded){cursor:pointer}.route.expanded{grid-template-areas:"details details" "expanded difficulty" "controls controls"}.route.expanded .details{cursor:pointer}.expanded.route{border-color:var(--climbpress-routes--color-primary);grid-template-columns:minmax(0,3fr) 2fr}.route.expanded .my-value{display:none}.details .meta,.expanded-details{display:grid;transition:var(--transition)}.details .meta{grid-template-rows:1fr}.expanded-details{grid-template-rows:0fr}.details .meta>div,.expanded-details>div{overflow-y:hidden}.expanded .details .meta{grid-template-rows:0fr;opacity:0;min-height:0;height:0}.expanded .expanded-details{grid-template-rows:1fr}.expanded .expanded-details,.expanded .controls{opacity:1}.expanded .difficulty .value{font-size:72px}.expanded .difficulty .voting{grid-template-rows:1fr;margin-top:12px}',Mt="climbpressRouteVote",jt="climbpressRouteUnvote",he="climbpressRouteExpandToggle";var pe=Object.defineProperty,be=Object.getOwnPropertyDescriptor,x=(s,t,e,r)=>{for(var i=r>1?void 0:r?be(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&pe(t,e,i),i};let $=class extends R{constructor(){super(...arguments),this.i18n={},this.route=null,this.metaStructure=[],this.gradingSystems=[],this.expanded=!1,this.vote=null}render(){var dt,ct,ut,ht;const s=this.route;if(!s)return null;const t=Rt(s,this.gradingSystems),e=Object.keys(s.metas),r=e.filter(h=>{var y;return!(((y=this.metaCollapsed)==null?void 0:y.includes(h))??!1)}),i=(this.metaCollapsed??e).map(h=>{const y=s.metas[h]??"";return Ut(h,y,this.metaStructure)??y}).filter(h=>h!=""),o=q({expanded:this.expanded}),n=()=>{this.expanded||this.dispatchToggleExpand()},l=h=>{this.expanded&&(h.preventDefault(),h.stopPropagation(),h.stopImmediatePropagation(),this.dispatchToggleExpand())},a=Nt(s,this.gradingSystems),d=I(s,this.gradingSystems),u=this.vote;let c=null,b=null,f=null;const S=d?d.index-4:0,nt=d?d.index+4:0;if(d!=null&&a){u&&(c=I({gradingSystem:s.gradingSystem,difficulty:u.difficulty},this.gradingSystems)??null);const h=c||d,y=h.index+1,E=h.index-1;y<=nt&&(b=((dt=a.grades)==null?void 0:dt[y])??null),E>=S&&(f=((ct=a.grades)==null?void 0:ct[E])??null)}let k=null;s.communityVotesCount>4&&(console.debug("community",s),k=((ut=I({gradingSystem:s.gradingSystem,difficulty:s.communityAverageDifficulty},this.gradingSystems))==null?void 0:ut.grade)??null);const at=h=>y=>{if(y.preventDefault(),y.stopPropagation(),y.stopImmediatePropagation(),h<0||!d)return;const E=I({gradingSystem:s==null?void 0:s.gradingSystem,difficulty:h},this.gradingSystems);E==null||E.index<S||E.index>nt||this.dispatchChangeVote(E.grade.difficulty)},It=h=>{h.preventDefault(),h.stopPropagation(),h.stopImmediatePropagation(),s!=null&&(u===null?this.dispatchChangeVote(s.difficulty):this.dispatchChangeUnvote())},lt=new Intl.DateTimeFormat(void 0,{dateStyle:"short"}),J=[];return c&&J.push(c.grade.label),k&&J.push(`⌀ ${k.label}`),w`
     43 */const q=de(class extends ce{constructor(s){var t;if(super(s),s.type!==le.ATTRIBUTE||s.name!=="class"||((t=s.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){var r,i;if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!((r=this.nt)!=null&&r.has(o))&&this.st.add(o);return this.render(t)}const e=s.element.classList;for(const o of this.st)o in t||(e.remove(o),this.st.delete(o));for(const o in t){const n=!!t[o];n===this.st.has(o)||(i=this.nt)!=null&&i.has(o)||(n?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return T}}),ue=':host{--text-color: var(--climbpress-route-text-color, currentColor);--background-color: var(--climbpress-route-background-color, white);--padding: var(--climbpress-route-padding, 8px);--border-radius: var(--climbpress-route-border-radius, 0);--border-width: var(--climbpress-route-border-width, 1px);--border-style: var(--climbpress-route-border-style, solid);--border-color: var(--climbpress-route-border-color, currentColor);--border: var(--border-width) var(--border-style) var(--border-color);--button-text-color: var(--climbpress-route-button-text-color, white);--button-background-color: var(--climbpress-route-button-background-color, rgba(0,0,0,80%));--button-border-radius: var(--climbpress-route-button-border-radius, 0);--button-border-width: var(--climbpress-route-button-border-width, 1px);--button-border-style: var(--climbpress-route-button-border-style, solid);--button-border-color: var(--climbpress-route-button-border-color, currentColor);--button-border: var(--button-border-width) var(--button-border-style) var(--button-border-color);--button-text-color-hover: var(--climbpress-route-button-text-color-hover, white);--button-background-color-hover: var(--climbpress-route-button-background-color-hover, rgba(0,0,0,100%));--button-border-radius-hover: var(--climbpress-route-button-border-radius-hover, 0);--button-border-width-hover: var(--climbpress-route-button-border-width-hover, 1px);--button-border-style-hover: var(--climbpress-route-button-border-style-hover, solid);--button-border-color-hover: var(--climbpress-route-button-border-color-hover, currentColor);--button-border-hover: var(--button-border-width-hover) var(--button-border-style-hover) var(--button-border-color-hover);--button-text-color-active: var(--climbpress-route-button-text-color-active, rgba(0,0,0,100%));--button-background-color-active: var(--climbpress-route-button-background-color-active, white);--button-border-radius-active: var(--climbpress-route-button-border-radius-active, 0);--button-border-width-active: var(--climbpress-route-button-border-width-active, 1px);--button-border-style-active: var(--climbpress-route-button-border-style-active, solid);--button-border-color-active: var(--climbpress-route-button-border-color-active, currentColor);--button-border-active: var(--button-border-width-active) var(--button-border-style-active) var(--button-border-color-active);--button-text-color-disabled: var(--climbpress-route-button-text-color-disabled, darkgrey);--button-background-color-disabled: var(--climbpress-route-button-background-color-disabled, lightgrey);--button-border-radius-disabled: var(--climbpress-route-button-border-radius-disabled, 0);--button-border-width-disabled: var(--climbpress-route-button-border-width-disabled, 1px);--button-border-style-disabled: var(--climbpress-route-button-border-style-disabled, solid);--button-border-color-disabled: var(--climbpress-route-button-border-color-diesabled, lightgrey);--button-border-disabled: var(--button-border-width-disabled) var(--button-border-style-disabled) var(--button-border-color-disabled);--transition-duration: var(--climbpress-route-transition-duration, .22s);--transition-timing-function: var(--climbpress-route-transition-timing-function, ease-in-out);--transition: all var(--transition-duration) var(--transition-timing-function)}.route{display:grid;grid-template-areas:"details difficulty" "expanded difficulty";grid-template-columns:minmax(0,3fr) 1fr;align-items:center;justify-items:stretch;list-style:none;color:var(--text-color);background:var(--background-color);border-radius:var(--border-radius);border:var(--border);container-name:route;container-type:inline-size;transition:var(--transition);box-sizing:border-box;padding:var(--padding)}.details{grid-area:details;padding-block:var(--padding);padding-inline:var(--padding) 0}.name{font-weight:700;font-size:20px;transition:var(--transition)}.meta{font-size:14px;overflow-y:hidden;opacity:1;transition:var(--transition)}.meta>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.difficulty{display:grid;grid-template-rows:1fr;grid-area:difficulty}.value{position:relative;font-size:24px;line-height:1em;font-weight:700;text-align:center;transition:var(--transition)}.my-value{position:absolute;left:50%;transform:translate(-50%);top:20px;font-size:14px;text-wrap:nowrap}.difficulty .voting{display:grid;grid-template-rows:0fr;margin-top:0;transition:var(--transition)}.difficulty .community-voting{text-align:center;margin-top:8px}.difficulty .voting_wrapper{overflow-y:hidden}.voting button{cursor:pointer;padding:0;margin:0;width:40px;aspect-ratio:1;color:var(--button-text-color);background-color:var(--button-background-color);border:var(--button-border);border-radius:var(--button-border-radius)}.voting button:hover{color:var(--button-text-color-hover);background-color:var(--button-background-color-hover);border:var(--button-border-hover)}.voting button.active{color:var(--button-text-color-active);background-color:var(--button-background-color-active);border:var(--button-border-active)}.voting button[disabled]{color:var(--button-text-color-disabled);background-color:var(--button-background-color-disabled);border:var(--button-border-disabled);cursor:initial}button{font-size:1.4em}.btn-easier,.btn-harder{font-weight:bolder}.voting .label{font-size:.8em;text-align:center;opacity:60%}.controls{display:flex;gap:8px;justify-content:center;align-items:center}@container route(min-width: 500 px){.difficulty .value{font-size:36px}}.expanded-details{grid-area:expanded;transition:var(--transition)}dl{padding-block:0 var(--padding);padding-inline:var(--padding);margin-block:0;font-size:1rem}dt{font-weight:700}dd{padding:0;margin-inline:0;margin-block:0 8px}.route:not(.expanded){cursor:pointer}.route.expanded{grid-template-areas:"details details" "expanded difficulty" "controls controls"}.route.expanded .details{cursor:pointer}.expanded.route{border-color:var(--climbpress-routes--color-primary);grid-template-columns:minmax(0,3fr) 2fr}.route.expanded .my-value{display:none}.details .meta,.expanded-details{display:grid;transition:var(--transition)}.details .meta{grid-template-rows:1fr}.expanded-details{grid-template-rows:0fr}.details .meta>div,.expanded-details>div{overflow-y:hidden}.expanded .details .meta{grid-template-rows:0fr;opacity:0;min-height:0;height:0}.expanded .expanded-details{grid-template-rows:1fr}.expanded .expanded-details,.expanded .controls{opacity:1}.expanded .difficulty .value{font-size:72px}.expanded .difficulty .voting{grid-template-rows:1fr;margin-top:12px}',Mt="climbpressRouteVote",jt="climbpressRouteUnvote",he="climbpressRouteExpandToggle";var pe=Object.defineProperty,be=Object.getOwnPropertyDescriptor,x=(s,t,e,r)=>{for(var i=r>1?void 0:r?be(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&pe(t,e,i),i};let $=class extends N{constructor(){super(...arguments),this.i18n={},this.route=null,this.metaStructure=[],this.gradingSystems=[],this.expanded=!1,this.vote=null}render(){var dt,ct,ut,ht;const s=this.route;if(!s)return null;const t=Nt(s,this.gradingSystems),e=Object.keys(s.metas),r=e.filter(h=>{var y;return!(((y=this.metaCollapsed)==null?void 0:y.includes(h))??!1)}),i=(this.metaCollapsed??e).map(h=>{const y=s.metas[h]??"";return kt(h,y,this.metaStructure)??y}).filter(h=>h!=""),o=q({expanded:this.expanded}),n=()=>{this.expanded||this.dispatchToggleExpand()},l=h=>{this.expanded&&(h.preventDefault(),h.stopPropagation(),h.stopImmediatePropagation(),this.dispatchToggleExpand())},a=Ut(s,this.gradingSystems),d=I(s,this.gradingSystems),u=this.vote;let c=null,b=null,g=null;const S=d?d.index-4:0,nt=d?d.index+4:0;if(d!=null&&a){u&&(c=I({gradingSystem:s.gradingSystem,difficulty:u.difficulty},this.gradingSystems)??null);const h=c||d,y=h.index+1,E=h.index-1;y<=nt&&(b=((dt=a.grades)==null?void 0:dt[y])??null),E>=S&&(g=((ct=a.grades)==null?void 0:ct[E])??null)}let R=null;s.communityVotesCount>4&&(console.debug("community",s),R=((ut=I({gradingSystem:s.gradingSystem,difficulty:s.communityAverageDifficulty},this.gradingSystems))==null?void 0:ut.grade)??null);const at=h=>y=>{if(y.preventDefault(),y.stopPropagation(),y.stopImmediatePropagation(),h<0||!d)return;const E=I({gradingSystem:s==null?void 0:s.gradingSystem,difficulty:h},this.gradingSystems);E==null||E.index<S||E.index>nt||this.dispatchChangeVote(E.grade.difficulty)},It=h=>{h.preventDefault(),h.stopPropagation(),h.stopImmediatePropagation(),s!=null&&(u===null?this.dispatchChangeVote(s.difficulty):this.dispatchChangeUnvote())},lt=new Intl.DateTimeFormat(void 0,{dateStyle:"short"}),J=[];return c&&J.push(c.grade.label),R&&J.push(`⌀ ${R.label}`),w`
    4444            <div class="route ${o}" @click=${n}>
    45                 <div class="details">
    46                     <div class="name" @click=${l}>${s.name}</div>
     45                <div class="details" @click=${l}>
     46                    <div class="name" >${s.name}</div>
    4747                    <div class="meta">
    4848                        <div>
     
    6363                            <div class="controls">
    6464                                <button
    65                                         ?disabled=${f==null}
    66                                         @click=${at((f==null?void 0:f.difficulty)??-1)}
     65                                        ?disabled=${g==null}
     66                                        @click=${at((g==null?void 0:g.difficulty)??-1)}
    6767                                        class=${q({"btn-easier":!0})}
    6868                                >
     
    8585                            <div class="community-voting">
    8686                                <div class="label">⌀ Bewertung</div>
    87                                 <div>${(k==null?void 0:k.label)??"-"}</div>
     87                                <div>${(R==null?void 0:R.label)??"-"}</div>
    8888                            </div>
    8989                           
     
    105105            <dt>${i}</dt>
    106106            <dd>${o}</dd>
    107         `}dispatchChangeVote(s){var e;const t=(e=this.route)==null?void 0:e.id;t&&this.dispatchEvent(new CustomEvent(Mt,{detail:{difficulty:s,route:t},bubbles:!0,composed:!0}))}dispatchChangeUnvote(){var t;const s=(t=this.route)==null?void 0:t.id;s&&this.dispatchEvent(new CustomEvent(jt,{detail:{route:s},bubbles:!0,composed:!0}))}dispatchToggleExpand(){var t;const s=(t=this.route)==null?void 0:t.id;s&&this.dispatchEvent(new CustomEvent(he,{detail:{route:s},bubbles:!0,composed:!0}))}};$.styles=st(ue);x([v({type:Object})],$.prototype,"i18n",2);x([v({type:Object})],$.prototype,"route",2);x([v({attribute:"meta-structure",type:Array})],$.prototype,"metaStructure",2);x([v({attribute:"meta-collapsed",type:Array})],$.prototype,"metaCollapsed",2);x([v({attribute:"grading-systems",type:Object})],$.prototype,"gradingSystems",2);x([v({attribute:"expanded",type:Boolean})],$.prototype,"expanded",2);x([v({type:Object})],$.prototype,"vote",2);$=x([kt("climbpress-route")],$);var ve=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,m=(s,t,e,r)=>{for(var i=r>1?void 0:r?ge(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&ve(t,e,i),i};let g=class extends R{constructor(){super(...arguments),this.i18n={},this.gradingSystems=[],this.routes=[],this.votes={},this.routeMetaStructure=[],this.count=10,this.hideSearch=!1,this.hideFilters=!1,this.showVoting=!1,this.searchQuery="",this.active=[],this.filterBy={},this.searchAbleProps=["name","metas","gradingSystem"]}getById(s){var e;let t=null;return(e=this.shadowRoot)==null||e.querySelectorAll("climbpress-route").forEach(r=>{r.route!=null&&r.route.id==s&&(t=r)}),t}render(){const s=this.getFilteredRoutes(),t=this.cutOffRoutes(s);return w`
     107        `}dispatchChangeVote(s){var e;const t=(e=this.route)==null?void 0:e.id;t&&this.dispatchEvent(new CustomEvent(Mt,{detail:{difficulty:s,route:t},bubbles:!0,composed:!0}))}dispatchChangeUnvote(){var t;const s=(t=this.route)==null?void 0:t.id;s&&this.dispatchEvent(new CustomEvent(jt,{detail:{route:s},bubbles:!0,composed:!0}))}dispatchToggleExpand(){var t;const s=(t=this.route)==null?void 0:t.id;s&&this.dispatchEvent(new CustomEvent(he,{detail:{route:s},bubbles:!0,composed:!0}))}};$.styles=st(ue);x([v({type:Object})],$.prototype,"i18n",2);x([v({type:Object})],$.prototype,"route",2);x([v({attribute:"meta-structure",type:Array})],$.prototype,"metaStructure",2);x([v({attribute:"meta-collapsed",type:Array})],$.prototype,"metaCollapsed",2);x([v({attribute:"grading-systems",type:Object})],$.prototype,"gradingSystems",2);x([v({attribute:"expanded",type:Boolean})],$.prototype,"expanded",2);x([v({type:Object})],$.prototype,"vote",2);$=x([Rt("climbpress-route")],$);var ve=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,m=(s,t,e,r)=>{for(var i=r>1?void 0:r?fe(t,e):t,o=s.length-1,n;o>=0;o--)(n=s[o])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&ve(t,e,i),i};let f=class extends N{constructor(){super(...arguments),this.i18n={},this.gradingSystems=[],this.routes=[],this.votes={},this.routeMetaStructure=[],this.count=10,this.hideSearch=!1,this.hideFilters=!1,this.showVoting=!1,this.searchQuery="",this.active=[],this.filterBy={},this.searchAbleProps=["name","metas","gradingSystem"]}getById(s){var e;let t=null;return(e=this.shadowRoot)==null||e.querySelectorAll("climbpress-route").forEach(r=>{r.route!=null&&r.route.id==s&&(t=r)}),t}render(){const s=this.getFilteredRoutes(),t=this.cutOffRoutes(s);return w`
    108108            <div class="container">
    109109                ${this.renderSearch()}
     
    131131        `}renderFilters(){return""}renderSearch(){var t;if(this.hideSearch)return"";const s=((t=this.i18n)==null?void 0:t.searchPlaceholder)??"Search...";return w`
    132132            <slot name="input"><input placeholder=${s} name="search"/></slot>
    133         `}firstUpdated(s){super.firstUpdated(s),this.renderRoot.addEventListener("keyup",t=>{const e=t.target;e.name=="search"&&(this.searchQuery=e.value)}),this.renderRoot.addEventListener("change",t=>{const e=t.target;this.filterBy[e.name]=e.value,this.requestUpdate()})}cutOffRoutes(s){return this.count<1?s:s.slice(0,this.count)}getFilteredRoutes(){const s=this.searchQuery.toLowerCase();return this.routes.filter(t=>Rt(t,this.gradingSystems).includes(s)?!0:Object.keys(this.filterBy).find(i=>{const o=t[i];return this.filterBy[i]!=""&&t.hasOwnProperty(i)&&o!=this.filterBy[i]})?!1:s==""?!0:this.searchAbleProps.find(i=>{if(i=="metas"){const n=t[i];return Object.keys(n).find(l=>{const a=n[l],d=Ut(l,a,this.routeMetaStructure);return d?d.toLowerCase().includes(s.toLowerCase()):a.toLowerCase().includes(s.toLowerCase())})!=null}const o=t[i];return typeof o=="string"&&o.toLowerCase().includes(s.toLowerCase())})!=null)}handleClick(s){this.active.includes(s)?this.active=this.active.filter(t=>t!=s):this.active=[...this.active,s]}onClickAll(){this.count=0}};g.styles=st(ae);m([v({type:Object})],g.prototype,"i18n",2);m([v({attribute:"grading-systems",type:Object})],g.prototype,"gradingSystems",2);m([v({type:Array})],g.prototype,"routes",2);m([v({type:Object})],g.prototype,"votes",2);m([v({attribute:"route-meta-structure",type:Array})],g.prototype,"routeMetaStructure",2);m([v({attribute:"route-meta-collapsed",type:Array})],g.prototype,"routeMetaCollapsed",2);m([v({type:Number})],g.prototype,"count",2);m([v({attribute:"hide-search",type:Boolean})],g.prototype,"hideSearch",2);m([v({attribute:"hide-filters",type:Boolean})],g.prototype,"hideFilters",2);m([v({attribute:"show-voting",type:Boolean})],g.prototype,"showVoting",2);m([ot()],g.prototype,"searchQuery",2);m([ot()],g.prototype,"active",2);m([ot()],g.prototype,"filterBy",2);g=m([kt("climbpress-routes")],g);const et=s=>`climbpress-vote(route:${s})`,F=(s,t)=>{t==null?localStorage.removeItem(et(s)):localStorage.setItem(et(s),JSON.stringify(t))},j=s=>{try{const t=localStorage.getItem(et(s));return t?JSON.parse(t):null}catch{return null}};window.ClimbPressPublic.fetchRoutes==null&&(window.ClimbPressPublic={...window.ClimbPressPublic,async fetchRoutes(s="/wp-json/climbpress/v1/routes"){return fetch(s).then(t=>t.json())},async vote(s,t){return(await fetch("/wp-json/climbpress/v1/votes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({route_id:s,difficulty:t})}).then(r=>r.json())).voting_id},async changeVote(s,t){return(await fetch("/wp-json/climbpress/v1/votes",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({voting_id:s,difficulty:t})}).then(r=>r.json())).success},async unvote(s){return await fetch("/wp-json/climbpress/v1/votes",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:s})}).then(e=>e.json())}});window.ClimbPressPublic.fetchRoutes;const fe=window.ClimbPressPublic.vote,At=window.ClimbPressPublic.unvote,me=window.ClimbPressPublic.changeVote;Ht(()=>{document.querySelectorAll("climbpress-route").forEach(t=>{var e;t.route!=null&&(t.vote=((e=j(t.route.id))==null?void 0:e.vote)??null)}),document.querySelectorAll("climbpress-routes").forEach(t=>{const e={};t.routes.forEach(r=>{var o;const i=(o=j(r.id))==null?void 0:o.vote;i&&(e[r.id]=i)}),t.votes=e}),window.addEventListener(jt,async t=>{var r,i,o;const e=t.target;if(e.localName=="climbpress-routes"){const n=t.target,l=(r=j(t.detail.route))==null?void 0:r.voteId;if(!l||!await At(l))return;F(t.detail.route,null);const d={};Object.entries(n.votes).forEach(([u,c])=>{const b=parseInt(u);b!=t.detail.route&&c!=null&&(d[b]=c)}),n.votes=d}else if(e.localName=="climbpress-route"){const n=t.target;if(n.vote==null)return;const a=(i=n.route)==null?void 0:i.id,d=(o=j(a))==null?void 0:o.voteId;if(!d||!await At(d))return;F(a,null),n.vote=null}}),window.addEventListener(Mt,async t=>{const e=t.target;if(e.localName=="climbpress-routes"){const r=e,{route:i,difficulty:o}=t.detail;if(await s(o,i)===!1)return;r.votes={...r.votes,[i]:{difficulty:o}}}else if(e.localName=="climbpress-route"){const r=e,i=r.route;if(i==null)return;const o=t.detail.difficulty,n=await s(o,i.id);if(n===!1)return;r.vote=n}});async function s(t,e){const r=j(e);if(r==null){const i=await fe(e,t);if(!i)return!1;F(e,{voteId:i,vote:{difficulty:t}})}else{if(!await me(r.voteId,t))return!1;F(e,{voteId:r.voteId,vote:{difficulty:t}})}return{difficulty:t}}});
     133        `}firstUpdated(s){super.firstUpdated(s),this.renderRoot.addEventListener("keyup",t=>{const e=t.target;e.name=="search"&&(this.searchQuery=e.value)}),this.renderRoot.addEventListener("change",t=>{const e=t.target;this.filterBy[e.name]=e.value,this.requestUpdate()})}cutOffRoutes(s){return this.count<1?s:s.slice(0,this.count)}getFilteredRoutes(){const s=this.searchQuery.toLowerCase();return this.routes.filter(t=>Nt(t,this.gradingSystems).includes(s)?!0:Object.keys(this.filterBy).find(i=>{const o=t[i];return this.filterBy[i]!=""&&t.hasOwnProperty(i)&&o!=this.filterBy[i]})?!1:s==""?!0:this.searchAbleProps.find(i=>{if(i=="metas"){const n=t[i];return Object.keys(n).find(l=>{const a=n[l],d=kt(l,a,this.routeMetaStructure);return d?d.toLowerCase().includes(s.toLowerCase()):a.toLowerCase().includes(s.toLowerCase())})!=null}const o=t[i];return typeof o=="string"&&o.toLowerCase().includes(s.toLowerCase())})!=null)}handleClick(s){this.active.includes(s)?this.active=this.active.filter(t=>t!=s):this.active=[...this.active,s]}onClickAll(){this.count=0}};f.styles=st(ae);m([v({type:Object})],f.prototype,"i18n",2);m([v({attribute:"grading-systems",type:Object})],f.prototype,"gradingSystems",2);m([v({type:Array})],f.prototype,"routes",2);m([v({type:Object})],f.prototype,"votes",2);m([v({attribute:"route-meta-structure",type:Array})],f.prototype,"routeMetaStructure",2);m([v({attribute:"route-meta-collapsed",type:Array})],f.prototype,"routeMetaCollapsed",2);m([v({type:Number})],f.prototype,"count",2);m([v({attribute:"hide-search",type:Boolean})],f.prototype,"hideSearch",2);m([v({attribute:"hide-filters",type:Boolean})],f.prototype,"hideFilters",2);m([v({attribute:"show-voting",type:Boolean})],f.prototype,"showVoting",2);m([ot()],f.prototype,"searchQuery",2);m([ot()],f.prototype,"active",2);m([ot()],f.prototype,"filterBy",2);f=m([Rt("climbpress-routes")],f);const et=s=>`climbpress-vote(route:${s})`,F=(s,t)=>{t==null?localStorage.removeItem(et(s)):localStorage.setItem(et(s),JSON.stringify(t))},j=s=>{try{const t=localStorage.getItem(et(s));return t?JSON.parse(t):null}catch{return null}};window.ClimbPressPublic.fetchRoutes==null&&(window.ClimbPressPublic={...window.ClimbPressPublic,async fetchRoutes(s="/wp-json/climbpress/v1/routes"){return fetch(s).then(t=>t.json())},async vote(s,t){return(await fetch("/wp-json/climbpress/v1/votes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({route_id:s,difficulty:t})}).then(r=>r.json())).voting_id},async changeVote(s,t){return(await fetch("/wp-json/climbpress/v1/votes",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({voting_id:s,difficulty:t})}).then(r=>r.json())).success},async unvote(s){return await fetch("/wp-json/climbpress/v1/votes",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:s})}).then(e=>e.json())}});window.ClimbPressPublic.fetchRoutes;const ge=window.ClimbPressPublic.vote,At=window.ClimbPressPublic.unvote,me=window.ClimbPressPublic.changeVote;Ht(()=>{document.querySelectorAll("climbpress-route").forEach(t=>{var e;t.route!=null&&(t.vote=((e=j(t.route.id))==null?void 0:e.vote)??null)}),document.querySelectorAll("climbpress-routes").forEach(t=>{const e={};t.routes.forEach(r=>{var o;const i=(o=j(r.id))==null?void 0:o.vote;i&&(e[r.id]=i)}),t.votes=e}),window.addEventListener(jt,async t=>{var r,i,o;const e=t.target;if(e.localName=="climbpress-routes"){const n=t.target,l=(r=j(t.detail.route))==null?void 0:r.voteId;if(!l||!await At(l))return;F(t.detail.route,null);const d={};Object.entries(n.votes).forEach(([u,c])=>{const b=parseInt(u);b!=t.detail.route&&c!=null&&(d[b]=c)}),n.votes=d}else if(e.localName=="climbpress-route"){const n=t.target;if(n.vote==null)return;const a=(i=n.route)==null?void 0:i.id,d=(o=j(a))==null?void 0:o.voteId;if(!d||!await At(d))return;F(a,null),n.vote=null}}),window.addEventListener(Mt,async t=>{const e=t.target;if(e.localName=="climbpress-routes"){const r=e,{route:i,difficulty:o}=t.detail;if(await s(o,i)===!1)return;r.votes={...r.votes,[i]:{difficulty:o}}}else if(e.localName=="climbpress-route"){const r=e,i=r.route;if(i==null)return;const o=t.detail.difficulty,n=await s(o,i.id);if(n===!1)return;r.vote=n}});async function s(t,e){const r=j(e);if(r==null){const i=await ge(e,t);if(!i)return!1;F(e,{voteId:i,vote:{difficulty:t}})}else{if(!await me(r.voteId,t))return!1;F(e,{voteId:r.voteId,vote:{difficulty:t}})}return{difficulty:t}}});
    134134//# sourceMappingURL=routes.js.map
  • climbpress/trunk/web-components/routes.js.map

    r3024800 r3045938  
    1 {"version":3,"file":"routes.js","sources":["../../node_modules/.pnpm/@wordpress+dom-ready@3.49.0/node_modules/@wordpress/dom-ready/build-module/index.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.1/node_modules/@lit/reactive-element/css-tag.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.1/node_modules/@lit/reactive-element/reactive-element.js","../../node_modules/.pnpm/lit-html@3.1.0/node_modules/lit-html/lit-html.js","../../node_modules/.pnpm/lit-element@4.0.1/node_modules/lit-element/lit-element.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.1/node_modules/@lit/reactive-element/decorators/custom-element.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.1/node_modules/@lit/reactive-element/decorators/property.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.1/node_modules/@lit/reactive-element/decorators/state.js","../../node_modules/.pnpm/lit-html@3.1.0/node_modules/lit-html/directives/if-defined.js","../../src/lib/grading-system.ts","../../src/lib/meta.ts","../../node_modules/.pnpm/lit-html@3.1.0/node_modules/lit-html/directive.js","../../node_modules/.pnpm/lit-html@3.1.0/node_modules/lit-html/directives/class-map.js","../../src/web-components/events.ts","../../src/web-components/route.ts","../../src/web-components/routes.ts","../../src/lib/cache.ts","../../src/public-api.ts","../../src/web-components.ts"],"sourcesContent":["/**\n * @typedef {() => void} Callback\n *\n * TODO: Remove this typedef and inline `() => void` type.\n *\n * This typedef is used so that a descriptive type is provided in our\n * automatically generated documentation.\n *\n * An in-line type `() => void` would be preferable, but the generated\n * documentation is `null` in that case.\n *\n * @see https://github.com/WordPress/gutenberg/issues/18045\n */\n\n/**\n * Specify a function to execute when the DOM is fully loaded.\n *\n * @param {Callback} callback A function to execute after the DOM is ready.\n *\n * @example\n * ```js\n * import domReady from '@wordpress/dom-ready';\n *\n * domReady( function() {\n * \t//do something after DOM loads.\n * } );\n * ```\n *\n * @return {void}\n */\nexport default function domReady(callback) {\n  if (typeof document === 'undefined') {\n    return;\n  }\n  if (document.readyState === 'complete' ||\n  // DOMContentLoaded + Images/Styles/etc loaded, so we call directly.\n  document.readyState === 'interactive' // DOMContentLoaded fires at this point, so we call directly.\n  ) {\n    return void callback();\n  }\n\n  // DOMContentLoaded has not fired yet, delay callback until then.\n  document.addEventListener('DOMContentLoaded', callback);\n}\n//# sourceMappingURL=index.js.map","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[o+1]),t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement(\"style\"),n=t.litNonce;void 0!==n&&o.setAttribute(\"nonce\",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{n as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as s}from\"./css-tag.js\";export{CSSResult,adoptStyles,css,getCompatibleStyle,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const{is:i,defineProperty:e,getOwnPropertyDescriptor:r,getOwnPropertyNames:h,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:\"\",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!i(t,s),y={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:f};Symbol.metadata??=Symbol(\"metadata\"),a.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e(this.prototype,t,r)}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(d(\"elementProperties\")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d(\"finalized\")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d(\"properties\"))){const t=this.properties,s=[...h(t),...o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(t(s))}else void 0!==s&&i.push(t(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:\"string\"==typeof i?i:\"string\"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$ES??=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$ES?.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return s(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$ES?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$ES?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EO(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null}}requestUpdate(t,s,i,e=!1,r){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f)(e?r:this[t],s))return;this.C(t,s,i)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t)!0!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.C(s,this[s],i)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$ES?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$ET()}catch(s){throw t=!1,this._$ET(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$ES?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:\"open\"},b[d(\"elementProperties\")]=new Map,b[d(\"finalized\")]=new Map,p?.({ReactiveElement:b}),(a.reactiveElementVersions??=[]).push(\"2.0.1\");export{b as ReactiveElement,u as defaultConverter,f as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,i=t.trustedTypes,s=i?i.createPolicy(\"lit-html\",{createHTML:t=>t}):void 0,e=\"$lit$\",h=`lit$${(Math.random()+\"\").slice(9)}$`,o=\"?\"+h,n=`<${o}>`,r=document,l=()=>r.createComment(\"\"),c=t=>null===t||\"object\"!=typeof t&&\"function\"!=typeof t,a=Array.isArray,u=t=>a(t)||\"function\"==typeof t?.[Symbol.iterator],d=\"[ \\t\\n\\f\\r]\",f=/<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\\\s\"'>=/]+)(${d}*=${d}*(?:[^ \\t\\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`,\"g\"),p=/'/g,g=/\"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),b=y(2),w=Symbol.for(\"lit-noChange\"),T=Symbol.for(\"lit-nothing\"),A=new WeakMap,E=r.createTreeWalker(r,129);function C(t,i){if(!Array.isArray(t)||!t.hasOwnProperty(\"raw\"))throw Error(\"invalid template strings array\");return void 0!==s?s.createHTML(i):i}const P=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?\"<svg>\":\"\",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?\"!--\"===u[1]?c=v:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp(\"</\"+u[2],\"g\")),c=m):void 0!==u[3]&&(c=m):c===m?\">\"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m:'\"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=void 0);const x=c===m&&t[i+1].startsWith(\"/>\")?\" \":\"\";l+=c===f?s+n:d>=0?(o.push(a),s.slice(0,d)+e+s.slice(d)+h+x):s+h+(-2===d?i:x)}return[C(t,l+(t[s]||\"<?>\")+(2===i?\"</svg>\":\"\")),o]};class V{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=P(t,s);if(this.el=V.createElement(f,n),E.currentNode=this.el.content,2===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=E.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:\".\"===e[1]?k:\"?\"===e[1]?H:\"@\"===e[1]?I:R}),r.removeAttribute(t)}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i?i.emptyScript:\"\";for(let i=0;i<s;i++)r.append(t[i],l()),E.nextNode(),d.push({type:2,index:++c});r.append(t[s],l())}}}else if(8===r.nodeType)if(r.data===o)d.push({type:2,index:c});else{let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1}c++}}static createElement(t,i){const s=r.createElement(\"template\");return s.innerHTML=t,s}}function N(t,i,s=t,e){if(i===w)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=N(t,h._$AS(t,i.values),h,e)),i}class S{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r).importNode(i,!0);E.currentNode=e;let h=E.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new M(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new L(h,this,t)),this._$AV.push(i),l=s[++n]}o!==l?.index&&(h=E.nextNode(),o++)}return E.currentNode=r,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class M{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=N(this,t,i),c(t)?t===T||null==t||\"\"===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==w&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):u(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==T&&c(this._$AH)?this._$AA.nextSibling.data=t:this.$(r.createTextNode(t)),this._$AH=t}g(t){const{values:i,_$litType$:s}=t,e=\"number\"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=V.createElement(C(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const t=new S(e,this),s=t.u(this.options);t.p(i),this.$(s),this._$AH=t}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new V(t)),i}T(t){a(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new M(this.k(l()),this.k(l()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class R{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||\"\"!==s[0]||\"\"!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=T}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=N(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==w,o&&(this._$AH=t);else{const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=N(this,e[s+n],i,n),r===w&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===T?t=T:t!==T&&(t+=(r??\"\")+h[n+1]),this._$AH[n]=r}o&&!e&&this.O(t)}O(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??\"\")}}class k extends R{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===T?void 0:t}}class H extends R{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==T)}}class I extends R{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5}_$AI(t,i=this){if((t=N(this,t,i,0)??T)===w)return;const s=this._$AH,e=t===T&&s!==T||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==T&&(s===T||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){\"function\"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class L{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){N(this,t)}}const z={j:e,P:h,A:o,C:1,M:P,L:S,R:u,V:N,D:M,I:R,H,N:I,U:k,B:L},Z=t.litHtmlPolyfillSupport;Z?.(V,M),(t.litHtmlVersions??=[]).push(\"3.1.0\");const j=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new M(i.insertBefore(l(),t),t,void 0,s??{})}return h._$AI(t),h};export{z as _$LH,x as html,w as noChange,T as nothing,j as render,b as svg};\n//# sourceMappingURL=lit-html.js.map\n","import{ReactiveElement as t}from\"@lit/reactive-element\";export*from\"@lit/reactive-element\";import{render as e,noChange as i}from\"lit-html\";export*from\"lit-html\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */class s extends t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=e(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return i}}s._$litElement$=!0,s[(\"finalized\",\"finalized\")]=!0,globalThis.litElementHydrateSupport?.({LitElement:s});const r=globalThis.litElementPolyfillSupport;r?.({LitElement:s});const o={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(globalThis.litElementVersions??=[]).push(\"4.0.1\");export{s as LitElement,o as _$LE};\n//# sourceMappingURL=lit-element.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)};export{t as customElement};\n//# sourceMappingURL=custom-element.js.map\n","import{defaultConverter as t,notEqual as e}from\"../reactive-element.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o={attribute:!0,type:String,converter:t,reflect:!1,hasChanged:e},r=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),s.set(r.name,t),\"accessor\"===n){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.C(o,void 0,t),e}}}if(\"setter\"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error(\"Unsupported decorator location: \"+n)};function n(t){return(e,o)=>\"object\"==typeof o?r(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}export{n as property,r as standardProperty};\n//# sourceMappingURL=property.js.map\n","import{property as t}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function r(r){return t({...r,state:!0,attribute:!1})}export{r as state};\n//# sourceMappingURL=state.js.map\n","import{nothing as t}from\"../lit-html.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o=o=>o??t;export{o as ifDefined};\n//# sourceMappingURL=if-defined.js.map\n","import {Grade, GradingSystem, Route} from \"../_types\";\n\nexport const findGradingSystem = (route: Pick<Route, \"gradingSystem\">, gradingSystems: GradingSystem[]) => {\n    return gradingSystems.find(s => s.id == route.gradingSystem)\n}\n\nexport const getClosestGrade = (route: Pick<Route, \"gradingSystem\" | \"difficulty\">, gradingSystems: GradingSystem[]) => {\n    const grades = findGradingSystem(route, gradingSystems)?.grades;\n    if(!grades) return null;\n\n    let closest: number | null = null;\n    let closestGrade: Grade | null = null\n    for (let index = 0; index < grades.length; index++) {\n        const grade = grades[index];\n        if (closest == null) {\n            closest = index;\n            closestGrade = grade\n            continue;\n        }\n        if (grade.difficulty === route.difficulty) {\n            closest = index;\n            closestGrade = grade;\n            break;\n        }\n        const distanceToClosest = Math.abs(grade.difficulty - closestGrade!.difficulty);\n        const distanceToDifficulty = Math.abs(grade.difficulty - route.difficulty);\n        if (distanceToClosest > distanceToDifficulty) {\n            closest = index;\n            closestGrade = grade;\n        }\n    }\n    return closest == null || closestGrade == null ? null : {\n        index: closest,\n        grade: closestGrade,\n    }\n}\n\nexport const getGradeDisplay = (route: Route, gradingSystems: GradingSystem[]) => {\n    const closest = getClosestGrade(route,gradingSystems);\n    return closest?.grade?.label ?? String(route.difficulty);\n}","import {RouteMeta} from \"../_types\";\n\nexport const getMetaLabel = (metaKey: string, metaValue: string | number, metaStructure: RouteMeta[]) => {\n    const _metaStructure = metaStructure.find(m => m.key == metaKey)\n    if (!_metaStructure) return null;\n    return _metaStructure?.options.find(o => o.key == metaValue)?.label ?? null;\n}","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}export{i as Directive,t as PartType,e as directive};\n//# sourceMappingURL=directive.js.map\n","import{noChange as t}from\"../lit-html.js\";import{directive as s,Directive as i,PartType as r}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const e=s(class extends i{constructor(t){if(super(t),t.type!==r.ATTRIBUTE||\"class\"!==t.name||t.strings?.length>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(t){return\" \"+Object.keys(t).filter((s=>t[s])).join(\" \")+\" \"}update(s,[i]){if(void 0===this.it){this.it=new Set,void 0!==s.strings&&(this.st=new Set(s.strings.join(\" \").split(/\\s/).filter((t=>\"\"!==t))));for(const t in i)i[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.it)t in i||(r.remove(t),this.it.delete(t));for(const t in i){const s=!!i[t];s===this.it.has(t)||this.st?.has(t)||(s?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return t}});export{e as classMap};\n//# sourceMappingURL=class-map.js.map\n","export type EventRouteVote = {\n    difficulty: number\n    route: number\n}\nexport const EVENT_ROUTE_VOTE = \"climbpressRouteVote\";\nexport type EventRouteUnvote = {\n    route: number\n}\nexport const EVENT_ROUTE_UNVOTE = \"climbpressRouteUnvote\";\nexport type EventRouteExpandToggle = {\n    route: number\n}\nexport const EVENT_ROUTE_EXPAND_TOGGLE = \"climbpressRouteExpandToggle\";","import {html, LitElement, unsafeCSS} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\n\n// @ts-ignore\nimport styles from './route.css?inline'\nimport type {Grade, Route, Vote} from \"../_types\";\nimport {GradingSystem, RouteMeta} from \"../_types\";\nimport {findGradingSystem, getClosestGrade, getGradeDisplay} from \"../lib/grading-system\";\nimport {getMetaLabel} from \"../lib/meta\";\nimport {\n    EVENT_ROUTE_EXPAND_TOGGLE,\n    EVENT_ROUTE_UNVOTE,\n    EVENT_ROUTE_VOTE,\n    EventRouteExpandToggle,\n    EventRouteUnvote,\n    EventRouteVote\n} from \"./events\";\n\nexport type i18n = {\n    date?: string\n    route_voting_label?: string\n}\n\n@customElement(\"climbpress-route\")\nexport default class ClimbPressRoute extends LitElement {\n    static styles = unsafeCSS(styles);\n\n    @property({type: Object})\n    public i18n: i18n = {}\n\n    @property({type: Object})\n    public route: Route | null = null\n\n    @property({attribute: \"meta-structure\", type: Array})\n    public metaStructure: RouteMeta[] = [];\n\n    @property({attribute: \"meta-collapsed\", type: Array})\n    public metaCollapsed?: string[]\n\n    @property({attribute: \"grading-systems\", type: Object})\n    public gradingSystems: GradingSystem[] = [];\n\n    @property({attribute: \"expanded\", type: Boolean})\n    public expanded: boolean = false\n\n    @property({type: Object})\n    public vote: Vote | null = null\n\n    protected render() {\n        const route = this.route;\n\n        if (!route) return null;\n\n        const grade = getGradeDisplay(route, this.gradingSystems);\n        const metaKeys = Object.keys(route.metas);\n        const metaKeysNotInCollapsedMetas = metaKeys.filter(key => {\n            return !(this.metaCollapsed?.includes(key) ?? false);\n        });\n\n        const collapsedMetaValues = (this.metaCollapsed ?? metaKeys).map(key => {\n            const value = route.metas[key] ?? \"\";\n            return getMetaLabel(key, value, this.metaStructure) ?? value;\n        }).filter(v => v != \"\");\n\n        const classes = classMap({\n            expanded: this.expanded,\n        });\n\n        const clickExpand = () => {\n            if (!this.expanded) this.dispatchToggleExpand()\n        }\n        const clickCollapse = (e: Event) => {\n            if (this.expanded) {\n                e.preventDefault()\n                e.stopPropagation()\n                e.stopImmediatePropagation()\n                this.dispatchToggleExpand()\n            }\n        }\n\n        const gradingSystem = findGradingSystem(route, this.gradingSystems);\n        const routeGrade = getClosestGrade(route, this.gradingSystems);\n\n        const vote = this.vote;\n        let votedGrade: { grade: Grade, index: number } | null = null;\n        let nextHarderGrade: Grade | null = null;\n        let nextEasierGrade: Grade | null = null;\n        const minIndex = routeGrade ? routeGrade.index - 4 : 0;\n        const maxIndex = routeGrade ? routeGrade.index + 4 : 0;\n\n        if (routeGrade != null && gradingSystem) {\n            if (vote) {\n                votedGrade = getClosestGrade({\n                    gradingSystem: route.gradingSystem,\n                    difficulty: vote.difficulty,\n                }, this.gradingSystems) ?? null;\n            }\n            const baseGrade = votedGrade ? votedGrade : routeGrade;\n            const nextHarderGradeIndex = baseGrade.index + 1;\n            const nextEasierGradeIndex = baseGrade.index -1;\n\n            if(nextHarderGradeIndex <= maxIndex){\n                nextHarderGrade = gradingSystem.grades?.[nextHarderGradeIndex] ?? null;\n            }\n            if(nextEasierGradeIndex >= minIndex){\n                nextEasierGrade = gradingSystem.grades?.[nextEasierGradeIndex] ?? null;\n            }\n        }\n\n        // TODO: move to box settings or global settings\n        let communityVotingGrade: null | Grade = null\n        if(route.communityVotesCount > 4){\n            console.debug(\"community\", route)\n            communityVotingGrade = getClosestGrade({\n                gradingSystem: route.gradingSystem,\n                difficulty: route.communityAverageDifficulty,\n            }, this.gradingSystems)?.grade ?? null;\n        }\n\n\n\n        const clickVote = (difficulty: number) => (e: Event) => {\n            e.preventDefault();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n\n            if (difficulty < 0 || !routeGrade) {\n                return;\n            }\n\n            const grade = getClosestGrade(\n                {\n                    gradingSystem: route?.gradingSystem,\n                    difficulty,\n                },\n                this.gradingSystems\n            );\n\n            // TODO: make it block configuration or global setting max and min vote difference\n\n            if (grade == null || grade.index < minIndex || grade.index > maxIndex) return;\n\n            this.dispatchChangeVote(grade.grade.difficulty)\n        }\n\n        const clickSameVote = (e: Event) => {\n            e.preventDefault();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            if (route == null) return;\n            if (vote === null) {\n                this.dispatchChangeVote(route.difficulty);\n            } else {\n                this.dispatchChangeUnvote();\n            }\n        }\n\n        const dateFormat = new Intl.DateTimeFormat(undefined,{\n            dateStyle: \"short\",\n        });\n\n        const communityValues: string[] = []\n\n        if(votedGrade){\n            communityValues.push(votedGrade.grade.label);\n        }\n        if(communityVotingGrade){\n            communityValues.push(`⌀ ${communityVotingGrade.label}`);\n        }\n\n        return html`\n            <div class=\"route ${classes}\" @click=${clickExpand}>\n                <div class=\"details\">\n                    <div class=\"name\" @click=${clickCollapse}>${route.name}</div>\n                    <div class=\"meta\">\n                        <div>\n                            ${dateFormat.format(Date.parse(route.created))} •\n                            ${collapsedMetaValues.join(\" • \")}\n                        </div>\n                    </div>\n                </div>\n                <div class=\"difficulty\">\n                    <div class=\"value\">\n                        ${grade}\n                        ${communityValues.length ?\n                                html`<span class=\"my-value\">${communityValues.join(\" / \")}</span>`\n                        :null}\n                    </div>\n                    \n                    <div class=\"voting\">\n                        <div class=\"voting_wrapper\">\n                            <div class=\"label\">${this.i18n.route_voting_label ?? \"Deine Bewertung\"}</div>\n                            <div class=\"controls\">\n                                <button\n                                        ?disabled=${nextEasierGrade == null}\n                                        @click=${clickVote(nextEasierGrade?.difficulty ?? -1)}\n                                        class=${classMap({\n                                            \"btn-easier\": true,\n                                            //active: votedGrade != null && currentVoteValue < route.difficulty\n                                        })}\n                                >\n                                    –\n                                </button>\n                                <button\n                                        @click=${clickSameVote}\n                                        class=${classMap({active: vote != null})}\n                                >\n                                    ${votedGrade ? votedGrade.grade.label : grade}\n                                </button>\n                                <button\n                                        ?disabled=${nextHarderGrade == null}\n                                        @click=${clickVote(nextHarderGrade?.difficulty ?? -1)}\n                                        class=${classMap({\n                                            \"btn-harder\": true,\n                                            //active: votedGrade != null && currentVoteValue > route.difficulty\n                                        })}\n                                >\n                                    +\n                                </button>\n                            </div>\n                            <div class=\"community-voting\">\n                                <div class=\"label\">⌀ Bewertung</div>\n                                <div>${communityVotingGrade?.label ?? \"-\" }</div>\n                            </div>\n                           \n                        </div>                        \n                    </div>\n                </div>\n                <div class=\"expanded-details\">\n                    <div>\n                        <dl>\n                            <dt>${this.i18n.date ?? \"Datum\"}</dt>\n                            <dd>${dateFormat.format(Date.parse(route.created))}</dd>\n                            ${this.metaCollapsed?.map(this.renderRouteMeta.bind(this, route))}\n                            ${metaKeysNotInCollapsedMetas.map(this.renderRouteMeta.bind(this, route))}\n                        </dl>\n                    </div>\n                </div>\n            </div>\n        `\n    }\n\n    private renderRouteMeta(route: Route, metaKey: string) {\n        const value = route.metas[metaKey] ?? \"\";\n        if (value == \"\") return '';\n        const structure = this.metaStructure.find(m => m.key == metaKey)\n        const label = structure?.label ?? metaKey;\n        const display = structure?.options?.find(o => o.key == value)?.label ?? value;\n        return html`\n            <dt>${label}</dt>\n            <dd>${display}</dd>\n        `\n    }\n\n    // ------------------------------------------------\n    // Events\n    // ------------------------------------------------\n    private dispatchChangeVote(value: number) {\n        const routeId = this.route?.id;\n        if (!routeId) return;\n        this.dispatchEvent(\n            new CustomEvent<EventRouteVote>(\n                EVENT_ROUTE_VOTE,\n                {\n                    detail: {\n                        difficulty: value,\n                        route: routeId,\n                    },\n                    bubbles: true,\n                    composed: true\n                },\n            )\n        )\n    }\n\n    private dispatchChangeUnvote() {\n        const routeId = this.route?.id;\n        if (!routeId) return;\n        this.dispatchEvent(\n            new CustomEvent<EventRouteUnvote>(\n                EVENT_ROUTE_UNVOTE,\n                {\n                    detail: {\n                        route: routeId,\n                    },\n                    bubbles: true,\n                    composed: true,\n                },\n            )\n        )\n    }\n\n    private dispatchToggleExpand() {\n        const routeId = this.route?.id;\n        if (!routeId) return;\n        this.dispatchEvent(\n            new CustomEvent<EventRouteExpandToggle>(\n                EVENT_ROUTE_EXPAND_TOGGLE,\n                {\n                    detail: {\n                        route: routeId,\n                    },\n                    bubbles: true,\n                    composed: true,\n                },\n            )\n        )\n    }\n}\n\ndeclare global {\n    interface HTMLElementTagNameMap {\n        'climbpress-route': ClimbPressRoute\n    }\n}\n","import {html, LitElement, nothing, PropertyValues, unsafeCSS} from 'lit';\nimport {customElement, property, state} from 'lit/decorators.js';\nimport {ifDefined} from 'lit/directives/if-defined.js';\nimport {GradingSystem, Route, RouteMeta, Vote} from \"../_types\";\n\nimport './theme.css';\n\n// @ts-ignore\nimport styles from './routes.css?inline'\nimport {getGradeDisplay} from \"../lib/grading-system\";\nimport {getMetaLabel} from \"../lib/meta\";\nimport './route'\nimport {EventRouteExpandToggle, EventRouteVote} from \"./events\";\nimport ClimbPressRoute from \"./route\";\n\n@customElement(\"climbpress-routes\")\nexport default class ClimbPressRoutes extends LitElement {\n    static styles = unsafeCSS(styles);\n\n    @property({type: Object})\n    public i18n: { [key: string]: string } = {}\n\n    @property({attribute: \"grading-systems\", type: Object})\n    public gradingSystems: GradingSystem[] = [];\n\n    @property({type: Array})\n    public routes: Route[] = [];\n\n    @property({type: Object})\n    public votes: {[route: number]: Vote|undefined} = {}\n\n    @property({attribute: \"route-meta-structure\", type: Array})\n    public routeMetaStructure: RouteMeta[] = [];\n\n    @property({attribute: \"route-meta-collapsed\", type: Array})\n    public routeMetaCollapsed?: string[]\n\n    @property({type: Number})\n    public count: number = 10;\n\n    @property({attribute: \"hide-search\", type: Boolean})\n    public hideSearch: boolean = false;\n\n    @property({attribute: \"hide-filters\", type: Boolean})\n    public hideFilters: boolean = false;\n\n    @property({attribute: \"show-voting\", type: Boolean})\n    public showVoting: boolean = false;\n\n    @state()\n    private searchQuery: string = \"\";\n\n    @state()\n    private active: number[] = []\n\n    @state()\n    private filterBy: { [key: string]: string } = {};\n\n    getById(route: number): null | ClimbPressRoute{\n        let needle: null|ClimbPressRoute = null;\n        this.shadowRoot?.querySelectorAll(\"climbpress-route\").forEach(element=> {\n            if(element.route != null && element.route.id == route){\n                needle = element;\n            }\n        })\n        return needle;\n    }\n\n    // ------------------------------------------------------------\n    // render\n    // ------------------------------------------------------------\n    protected render() {\n        const filtered = this.getFilteredRoutes();\n        const cutOffRoutes = this.cutOffRoutes(filtered);\n\n        return html`\n            <div class=\"container\">\n                ${this.renderSearch()}\n                ${this.renderFilters()}\n                <div class=\"routes\">\n                    ${cutOffRoutes.length > 0 ?\n                            cutOffRoutes.map(this.renderRoute.bind(this))\n                            :\n                            html`<slot name=\"not-found\"><p><i>No route found</i></p></slot>`\n                    }\n                </div>\n\n                ${cutOffRoutes.length < filtered.length ?\n                        html`\n                            <slot name=\"button\" @click=${this.onClickAll}>\n                                <button role=\"button\">All routes</button>\n                            </slot>`\n                        : nothing\n                }\n            </div>\n        `;\n    }\n\n    private renderRoute(route: Route) {\n        const isExpanded = this.active.includes(route.id);\n\n        const onToggle = (e: CustomEvent<EventRouteExpandToggle>) => {\n            if(this.active.includes(e.detail.route)){\n                this.active = this.active.filter(el => el != e.detail.route);\n            } else {\n                this.active = [...this.active, e.detail.route];\n            }\n        }\n\n        const onVote = (e: CustomEvent<EventRouteVote>)=> {\n            console.debug(e.detail);\n        }\n\n        return html`\n            <climbpress-route\n                    @climbpressRouteExpandToggle=${onToggle}\n                    @climbpressRouteVote=${onVote}\n                    route=${JSON.stringify(route)}\n                    meta-structure=${JSON.stringify(this.routeMetaStructure)}\n                    meta-collapsed=${JSON.stringify(this.routeMetaCollapsed)}\n                    grading-systems=${JSON.stringify(this.gradingSystems)}\n                    ?expanded=${isExpanded}\n                    vote=${ifDefined(this.votes[route.id] ? JSON.stringify(this.votes[route.id]) : undefined)}\n            ></climbpress-route>\n        `\n    }\n\n    private renderFilters() {\n        return '';\n        // if (this.hideFilters) return '';\n        //\n        // const systems = Array.from(\n        //     new Set(this.routes.map(r => r.gradingSystem).filter(s => s != \"\"))\n        // ).map(s => {\n        //     return getGradingSystems().find(system => s == system.id)\n        // }).filter(s => s != undefined);\n        // const walls = Array.from(new Set(this.routes.map(r => r.sector).filter(w => w != \"\")));\n        //\n        // const labelGradingSystem = this.labels?.filterAllGradingSystems ?? \"- All grading systems -\";\n        // const labelWall = this.labels?.filterAllWalls ?? \"- All walls -\"\n        //\n        // return html`\n        //     <div class=\"filters\">\n        //         <select name=\"gradingSystem\">\n        //             <option value=\"\">${labelGradingSystem}</option>\n        //             ${systems.map(system => {\n        //                 return html`\n        //                     <option value=${system.id}>${system.name}</option>\n        //                 `\n        //             })}\n        //         </select>\n        //         <select name=\"wall\">\n        //             <option value=\"\">${labelWall}</option>\n        //             ${walls.map(w => {\n        //                 return html`\n        //                     <option value=${w}>${w}</option>`\n        //             })}\n        //         </select>\n        //     </div>\n        // `\n    }\n\n    private renderSearch() {\n        if (this.hideSearch) return '';\n        const label = this.i18n?.searchPlaceholder ?? \"Search...\";\n        return html`\n            <slot name=\"input\"><input placeholder=${label} name=\"search\"/></slot>\n        `\n    }\n\n    // ------------------------------------------------------------\n    // lifecycle\n    // ------------------------------------------------------------\n    protected firstUpdated(_changedProperties: PropertyValues) {\n        super.firstUpdated(_changedProperties);\n\n        this.renderRoot.addEventListener(\"keyup\", (e) => {\n            const target = (e.target as HTMLInputElement)\n            if (target.name == \"search\") {\n                this.searchQuery = target.value;\n            }\n        })\n\n        this.renderRoot.addEventListener(\"change\", (e) => {\n            const target = (e.target as HTMLSelectElement);\n            this.filterBy[target.name] = target.value;\n            this.requestUpdate()\n        })\n    }\n\n    // ------------------------------------------------------------\n    // utils\n    // ------------------------------------------------------------\n    private searchAbleProps: Array<keyof Route> = [\"name\", \"metas\", \"gradingSystem\"];\n\n    private cutOffRoutes(routes: Route[]) {\n\n        if (this.count < 1) return routes;\n\n        return routes.slice(0, this.count);\n    }\n\n    private getFilteredRoutes() {\n        const searchValue = this.searchQuery.toLowerCase();\n        return this.routes.filter(route => {\n            const grade = getGradeDisplay(route, this.gradingSystems)\n            if (grade.includes(searchValue)) {\n                return true;\n            }\n            const doesNotMatch = Object.keys(this.filterBy).find((key) => {\n                const routeValue = route[key as keyof Route]\n                return this.filterBy[key] != \"\" && route.hasOwnProperty(key) && routeValue != this.filterBy[key];\n            });\n            if (doesNotMatch) return false;\n            if (searchValue == \"\") {\n                return true;\n            }\n            return this.searchAbleProps.find(prop => {\n                if (prop == \"metas\") {\n                    const value = route[prop];\n                    return Object.keys(value).find(metaKey => {\n                        const metaValue = value[metaKey];\n                        const label = getMetaLabel(metaKey, metaValue, this.routeMetaStructure);\n                        if (label) {\n                            return label.toLowerCase().includes(searchValue.toLowerCase());\n                        }\n                        return metaValue.toLowerCase().includes(searchValue.toLowerCase());\n                    }) != undefined;\n                }\n                const value = route[prop];\n                return typeof value === \"string\" && value.toLowerCase().includes(searchValue.toLowerCase())\n            }) != undefined;\n        });\n    }\n\n    // ------------------------------------------------------------\n    // event handling\n    // ------------------------------------------------------------\n    private handleClick(index: number) {\n        if (this.active.includes(index)) {\n            this.active = this.active.filter(i => i != index);\n        } else {\n            this.active = [\n                ...this.active,\n                index,\n            ];\n        }\n    }\n\n    private onClickAll() {\n        this.count = 0;\n    }\n}\n\ndeclare global {\n    interface HTMLElementTagNameMap {\n        'climbpress-routes': ClimbPressRoutes\n    }\n}\n","import {Route, Vote} from \"../_types\";\n\nexport const getRoutes = (): Route[] => {\n    try{\n        // TODO: zod parsing\n        return JSON.parse(localStorage.getItem(\"climbpress-routes\") ?? \"[]\");\n    } catch (e) {\n        console.error(e);\n    }\n    return [];\n}\n\nexport const setRoutes = (routes: Route[]) => localStorage.setItem(\"climbpress-routes\", JSON.stringify(routes));\n\ntype CachedVote = {\n    vote: Vote\n    voteId: string\n}\n\nconst getVoteKey = (routeId: number) => `climbpress-vote(route:${routeId})`;\nexport const setVoteCache = (routeId: number, vote: CachedVote|null) =>{\n    if(vote == null){\n        localStorage.removeItem(getVoteKey(routeId));\n    } else {\n        localStorage.setItem(getVoteKey(routeId), JSON.stringify(vote));\n    }\n}\n\nexport const getVoteCache = (routeId: number): CachedVote | null => {\n    try {\n        const cache = localStorage.getItem(getVoteKey(routeId));\n        return cache ?   JSON.parse(cache): null;\n    } catch (e) {\n        return null;\n    }\n}","import {GradingSystem, Route, RouteMeta} from \"./_types\";\n\ndeclare global {\n    interface Window {\n        ClimbPressPublic: {\n            RESTNamespace: string\n            gradingSystems: GradingSystem[]\n            metaStructure: RouteMeta[]\n            labels: { [key: string]: string }\n            fetchRoutes(url?: string): Promise<Route[]>\n            vote(route_id: number, difficulty: number): Promise<string|false>\n            changeVote(vote_id: string, difficulty: number): Promise<boolean>\n            unvote(vote_id: string): Promise<boolean>\n        }\n    }\n}\n\nif(window.ClimbPressPublic.fetchRoutes == undefined){\n    window.ClimbPressPublic = {\n        ...window.ClimbPressPublic,\n        async fetchRoutes (url = \"/wp-json/climbpress/v1/routes\") {\n            return fetch(url).then(res => res.json());\n        },\n        async vote(route_id, difficulty){\n            const result = await fetch(`/wp-json/climbpress/v1/votes`,{\n                method: \"POST\",\n                headers: {\n                    \"Content-Type\": \"application/json\",\n                },\n                body: JSON.stringify({\n                    route_id,\n                    difficulty,\n                })\n            }).then(res=> res.json()) as { voting_id: string|false};\n            return result.voting_id;\n        },\n        async changeVote(voting_id, difficulty){\n            const result = await fetch(`/wp-json/climbpress/v1/votes`,{\n                method: \"PATCH\",\n                headers: {\n                    \"Content-Type\": \"application/json\",\n                },\n                body: JSON.stringify({\n                    voting_id,\n                    difficulty,\n                })\n            }).then(res=> res.json()) as { success: boolean};\n            return result.success;\n        },\n        async unvote(vote_id){\n            const result = await fetch(`/wp-json/climbpress/v1/votes`,{\n                method: \"DELETE\",\n                headers: {\n                    \"Content-Type\": \"application/json\",\n                },\n                body: JSON.stringify({\n                    id: vote_id,\n                })\n            }).then(res=> res.json());\n            return result as boolean;\n        }\n\n    }\n}\n\nexport const fetchRoutes = window.ClimbPressPublic.fetchRoutes;\nexport const getGradingSystems = () => window.ClimbPressPublic.gradingSystems;\nexport const vote = window.ClimbPressPublic.vote;\nexport const unvote = window.ClimbPressPublic.unvote;\nexport const changeVote = window.ClimbPressPublic.changeVote;\nexport const getLabels = () => window.ClimbPressPublic.labels;\n","import domReady from \"@wordpress/dom-ready\";\nimport './web-components/routes'\nimport {EVENT_ROUTE_UNVOTE, EVENT_ROUTE_VOTE, EventRouteUnvote, EventRouteVote} from \"./web-components/events\";\nimport ClimbPressRoute from \"./web-components/route\";\nimport {getVoteCache, setVoteCache} from \"./lib/cache\";\nimport {changeVote, unvote, vote} from \"./public-api\";\n\nimport './web-components/theme.css';\nimport ClimbPressRoutes from \"./web-components/routes\";\nimport {Vote} from \"./_types\";\n\ndomReady(() => {\n\n    document.querySelectorAll(\"climbpress-route\").forEach((element) => {\n        if (element.route == null) return;\n        element.vote = getVoteCache(element.route.id)?.vote ?? null;\n    })\n    document.querySelectorAll(\"climbpress-routes\").forEach((element) => {\n        const votes: {[route:number]: Vote} = {}\n        element.routes.forEach(route => {\n            const vote = getVoteCache(route.id)?.vote;\n            if(vote){\n                votes[route.id] = vote;\n            }\n        });\n        element.votes = votes;\n    })\n\n    // @ts-ignore\n    window.addEventListener(EVENT_ROUTE_UNVOTE, async (event: CustomEvent<EventRouteUnvote>) => {\n        const element = (event.target as Element);\n        if (element.localName == \"climbpress-routes\") {\n            const element = (event.target as ClimbPressRoutes);\n            const voteId = getVoteCache(event.detail.route)?.voteId;\n\n            if (!voteId) return;\n\n            const success = await unvote(voteId);\n            if (!success) {\n                return;\n            }\n\n            setVoteCache(event.detail.route, null);\n            const votes: {[route:number]: Vote} = {};\n            Object.entries(element.votes).forEach(([route, vote]) => {\n                const routeId = parseInt(route);\n                if(routeId != event.detail.route && vote != undefined){\n                    votes[routeId] = vote;\n                }\n            });\n            element.votes = votes;\n\n        } else if(element.localName == \"climbpress-route\"){\n            const element = (event.target as ClimbPressRoute);\n            const currentVote = element.vote;\n            if (currentVote == null) return;\n\n            const routeId = element.route?.id!\n\n            const voteId = getVoteCache(routeId)?.voteId;\n            if (!voteId) return;\n\n\n            const success = await unvote(voteId);\n            if (!success) {\n                return;\n            }\n            setVoteCache(routeId, null);\n            element.vote = null;\n        }\n\n    })\n\n    // @ts-ignore\n    window.addEventListener(EVENT_ROUTE_VOTE, async (event: CustomEvent<EventRouteVote>) => {\n        const element = (event.target as Element);\n        if (element.localName == \"climbpress-routes\") {\n            const routesElement = element as ClimbPressRoutes;\n            const {route, difficulty} = event.detail;\n            const vote = await doVote(difficulty, route);\n            if(vote === false) return;\n\n            routesElement.votes = {\n                ...routesElement.votes,\n                [route]: {difficulty},\n            };\n        } else if (element.localName == \"climbpress-route\") {\n            const routeElement = element as ClimbPressRoute;\n            const route = routeElement.route;\n            if (route == null) return;\n\n            const difficulty = event.detail.difficulty;\n\n            const vote = await doVote(difficulty, route.id);\n            if(vote === false) return;\n            routeElement.vote = vote;\n        }\n    });\n\n    async function doVote(difficulty: number, routeId: number): Promise<Vote|false> {\n\n        const currentVoteCache = getVoteCache(routeId);\n\n        if (currentVoteCache == null) {\n            const voteId = await vote(routeId, difficulty);\n            if (!voteId) {\n                return false;\n            }\n            setVoteCache(routeId, {\n                voteId: voteId,\n                vote: {\n                    difficulty,\n                },\n            });\n        } else {\n            const success = await changeVote(currentVoteCache.voteId, difficulty);\n            if (!success) {\n                return false;\n            }\n            setVoteCache(routeId, {\n                voteId: currentVoteCache.voteId,\n                vote: {\n                    difficulty,\n                }\n            });\n        }\n        return {\n            difficulty,\n        }\n    }\n})"],"names":["domReady","callback","t","e","s","o","n$3","r","n","S","c","i","h","a","l","p","d","u","f","y","b","_a","v","_","m","g","$","x","w","T","A","E","C","P","V","k","H","I","R","N","_b","M","L","j","findGradingSystem","route","gradingSystems","getClosestGrade","grades","closest","closestGrade","index","grade","distanceToClosest","distanceToDifficulty","getGradeDisplay","getMetaLabel","metaKey","metaValue","metaStructure","_metaStructure","EVENT_ROUTE_VOTE","EVENT_ROUTE_UNVOTE","EVENT_ROUTE_EXPAND_TOGGLE","ClimbPressRoute","LitElement","metaKeys","metaKeysNotInCollapsedMetas","key","collapsedMetaValues","value","classes","classMap","clickExpand","clickCollapse","gradingSystem","routeGrade","vote","votedGrade","nextHarderGrade","nextEasierGrade","minIndex","maxIndex","baseGrade","nextHarderGradeIndex","nextEasierGradeIndex","communityVotingGrade","_c","clickVote","difficulty","clickSameVote","dateFormat","communityValues","html","_d","structure","label","display","routeId","unsafeCSS","styles","__decorateClass","property","customElement","ClimbPressRoutes","needle","element","filtered","cutOffRoutes","nothing","isExpanded","el","ifDefined","_changedProperties","target","routes","searchValue","routeValue","prop","state","getVoteKey","setVoteCache","getVoteCache","cache","url","res","route_id","voting_id","vote_id","unvote","changeVote","votes","event","voteId","routesElement","doVote","routeElement","currentVoteCache"],"mappings":"aA8Be,SAASA,GAASC,EAAU,CACzC,GAAI,SAAO,SAAa,KAGxB,IAAI,SAAS,aAAe,YAE5B,SAAS,aAAe,cAEtB,OAAO,KAAKA,EAAQ,EAItB,SAAS,iBAAiB,mBAAoBA,CAAQ,EACxD,CC3CA;AAAA;AAAA;AAAA;AAAA,GAKA,MAAMC,EAAE,WAAWC,GAAED,EAAE,aAAsBA,EAAE,WAAX,QAAqBA,EAAE,SAAS,eAAe,uBAAuB,SAAS,WAAW,YAAY,cAAc,UAAUE,GAAE,OAAQ,EAACC,GAAE,IAAI,QAAO,IAAAC,GAAC,KAAO,CAAC,YAAY,EAAE,EAAED,EAAE,CAAC,GAAG,KAAK,aAAa,GAAGA,IAAID,GAAE,MAAM,MAAM,mEAAmE,EAAE,KAAK,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,IAAI,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,MAAMA,EAAE,KAAK,EAAE,GAAGD,IAAY,IAAT,OAAW,CAAC,MAAMA,EAAWC,IAAT,QAAgBA,EAAE,SAAN,EAAaD,IAAI,EAAEE,GAAE,IAAID,CAAC,GAAY,IAAT,UAAc,KAAK,EAAE,EAAE,IAAI,eAAe,YAAY,KAAK,OAAO,EAAED,GAAGE,GAAE,IAAID,EAAE,CAAC,EAAE,CA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,MAAOuE,GAAuC,CACpF,MAAM1B,EAAW0B,EAAM,OACnB,GAAA1B,EAAQ,WAAa,oBAAqB,CAC1C,MAAM4B,EAAgB5B,EAChB,CAAC,MAAA7D,EAAO,WAAA4C,GAAc2C,EAAM,OAElC,GADa,MAAMG,EAAO9C,EAAY5C,CAAK,IAC/B,GAAO,OAEnByF,EAAc,MAAQ,CAClB,GAAGA,EAAc,MACjB,CAACzF,CAAK,EAAG,CAAC,WAAA4C,CAAU,CAAA,CACxB,SACOiB,EAAQ,WAAa,mBAAoB,CAChD,MAAM8B,EAAe9B,EACf7D,EAAQ2F,EAAa,MAC3B,GAAI3F,GAAS,KAAM,OAEb,MAAA4C,EAAa2C,EAAM,OAAO,WAE1BvD,EAAO,MAAM0D,EAAO9C,EAAY5C,EAAM,EAAE,EAC9C,GAAGgC,IAAS,GAAO,OACnB2D,EAAa,KAAO3D,CACxB,CAAA,CACH,EAEc,eAAA0D,EAAO9C,EAAoBS,EAAsC,CAEtE,MAAAuC,EAAmBf,EAAaxB,CAAO,EAE7C,GAAIuC,GAAoB,KAAM,CAC1B,MAAMJ,EAAS,MAAMxD,GAAKqB,EAAST,CAAU,EAC7C,GAAI,CAAC4C,EACM,MAAA,GAEXZ,EAAavB,EAAS,CAClB,OAAAmC,EACA,KAAM,CACF,WAAA5C,CACJ,CAAA,CACH,CAAA,KACE,CAEH,GAAI,CADY,MAAMyC,GAAWO,EAAiB,OAAQhD,CAAU,EAEzD,MAAA,GAEXgC,EAAavB,EAAS,CAClB,OAAQuC,EAAiB,OACzB,KAAM,CACF,WAAAhD,CACJ,CAAA,CACH,CACL,CACO,MAAA,CACH,WAAAA,CAAA,CAER,CACJ,CAAC","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,11,12]}
     1{"version":3,"file":"routes.js","sources":["../../node_modules/.pnpm/@wordpress+dom-ready@3.52.0/node_modules/@wordpress/dom-ready/build-module/index.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js","../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/lit-html.js","../../node_modules/.pnpm/lit-element@4.0.4/node_modules/lit-element/lit-element.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js","../../node_modules/.pnpm/@lit+reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/state.js","../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/if-defined.js","../../src/lib/grading-system.ts","../../src/lib/meta.ts","../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directive.js","../../node_modules/.pnpm/lit-html@3.1.2/node_modules/lit-html/directives/class-map.js","../../src/web-components/events.ts","../../src/web-components/route.ts","../../src/web-components/routes.ts","../../src/lib/cache.ts","../../src/public-api.ts","../../src/web-components.ts"],"sourcesContent":["/**\n * @typedef {() => void} Callback\n *\n * TODO: Remove this typedef and inline `() => void` type.\n *\n * This typedef is used so that a descriptive type is provided in our\n * automatically generated documentation.\n *\n * An in-line type `() => void` would be preferable, but the generated\n * documentation is `null` in that case.\n *\n * @see https://github.com/WordPress/gutenberg/issues/18045\n */\n\n/**\n * Specify a function to execute when the DOM is fully loaded.\n *\n * @param {Callback} callback A function to execute after the DOM is ready.\n *\n * @example\n * ```js\n * import domReady from '@wordpress/dom-ready';\n *\n * domReady( function() {\n * \t//do something after DOM loads.\n * } );\n * ```\n *\n * @return {void}\n */\nexport default function domReady(callback) {\n  if (typeof document === 'undefined') {\n    return;\n  }\n  if (document.readyState === 'complete' ||\n  // DOMContentLoaded + Images/Styles/etc loaded, so we call directly.\n  document.readyState === 'interactive' // DOMContentLoaded fires at this point, so we call directly.\n  ) {\n    return void callback();\n  }\n\n  // DOMContentLoaded has not fired yet, delay callback until then.\n  document.addEventListener('DOMContentLoaded', callback);\n}\n//# sourceMappingURL=index.js.map","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),o=new WeakMap;class n{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new n(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[o+1]),t[0]);return new n(o,t,s)},S=(s,o)=>{if(e)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement(\"style\"),n=t.litNonce;void 0!==n&&o.setAttribute(\"nonce\",n),o.textContent=e.cssText,s.appendChild(o)}},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{n as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as s}from\"./css-tag.js\";export{CSSResult,adoptStyles,css,getCompatibleStyle,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const{is:i,defineProperty:e,getOwnPropertyDescriptor:r,getOwnPropertyNames:h,getOwnPropertySymbols:o,getPrototypeOf:n}=Object,a=globalThis,c=a.trustedTypes,l=c?c.emptyScript:\"\",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},f=(t,s)=>!i(t,s),y={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:f};Symbol.metadata??=Symbol(\"metadata\"),a.litPropertyMetadata??=new WeakMap;class b extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=y){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,s);void 0!==r&&e(this.prototype,t,r)}}static getPropertyDescriptor(t,s,i){const{get:e,set:h}=r(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get(){return e?.call(this)},set(s){const r=e?.call(this);h.call(this,s),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(d(\"elementProperties\")))return;const t=n(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d(\"finalized\")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d(\"properties\"))){const t=this.properties,s=[...h(t),...o(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(t(s))}else void 0!==s&&i.push(t(s));return i}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:\"string\"==typeof i?i:\"string\"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return s(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EC(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==r?this.removeAttribute(e):this.setAttribute(e,r),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),r=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e,this[e]=r.fromAttribute(s,t.type),this._$Em=null}}requestUpdate(t,s,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??f)(this[t],s))return;this.P(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t)!0!==i.wrapped||this._$AL.has(s)||void 0===this[s]||this.P(s,this[s],i)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}b.elementStyles=[],b.shadowRootOptions={mode:\"open\"},b[d(\"elementProperties\")]=new Map,b[d(\"finalized\")]=new Map,p?.({ReactiveElement:b}),(a.reactiveElementVersions??=[]).push(\"2.0.4\");export{b as ReactiveElement,u as defaultConverter,f as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=globalThis,i=t.trustedTypes,s=i?i.createPolicy(\"lit-html\",{createHTML:t=>t}):void 0,e=\"$lit$\",h=`lit$${(Math.random()+\"\").slice(9)}$`,o=\"?\"+h,n=`<${o}>`,r=document,l=()=>r.createComment(\"\"),c=t=>null===t||\"object\"!=typeof t&&\"function\"!=typeof t,a=Array.isArray,u=t=>a(t)||\"function\"==typeof t?.[Symbol.iterator],d=\"[ \\t\\n\\f\\r]\",f=/<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d}(?:([^\\\\s\"'>=/]+)(${d}*=${d}*(?:[^ \\t\\n\\f\\r\"'\\`<>=]|(\"|')|))|$)`,\"g\"),p=/'/g,g=/\"/g,$=/^(?:script|style|textarea|title)$/i,y=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y(1),b=y(2),w=Symbol.for(\"lit-noChange\"),T=Symbol.for(\"lit-nothing\"),A=new WeakMap,E=r.createTreeWalker(r,129);function C(t,i){if(!Array.isArray(t)||!t.hasOwnProperty(\"raw\"))throw Error(\"invalid template strings array\");return void 0!==s?s.createHTML(i):i}const P=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?\"<svg>\":\"\",c=f;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f?\"!--\"===u[1]?c=v:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp(\"</\"+u[2],\"g\")),c=m):void 0!==u[3]&&(c=m):c===m?\">\"===u[0]?(c=r??f,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m:'\"'===u[3]?g:p):c===g||c===p?c=m:c===v||c===_?c=f:(c=m,r=void 0);const x=c===m&&t[i+1].startsWith(\"/>\")?\" \":\"\";l+=c===f?s+n:d>=0?(o.push(a),s.slice(0,d)+e+s.slice(d)+h+x):s+h+(-2===d?i:x)}return[C(t,l+(t[s]||\"<?>\")+(2===i?\"</svg>\":\"\")),o]};class V{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=P(t,s);if(this.el=V.createElement(f,n),E.currentNode=this.el.content,2===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=E.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e)){const i=v[a++],s=r.getAttribute(t).split(h),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:\".\"===e[1]?k:\"?\"===e[1]?H:\"@\"===e[1]?I:R}),r.removeAttribute(t)}else t.startsWith(h)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h),s=t.length-1;if(s>0){r.textContent=i?i.emptyScript:\"\";for(let i=0;i<s;i++)r.append(t[i],l()),E.nextNode(),d.push({type:2,index:++c});r.append(t[s],l())}}}else if(8===r.nodeType)if(r.data===o)d.push({type:2,index:c});else{let t=-1;for(;-1!==(t=r.data.indexOf(h,t+1));)d.push({type:7,index:c}),t+=h.length-1}c++}}static createElement(t,i){const s=r.createElement(\"template\");return s.innerHTML=t,s}}function N(t,i,s=t,e){if(i===w)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(!1),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=N(t,h._$AS(t,i.values),h,e)),i}class S{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r).importNode(i,!0);E.currentNode=e;let h=E.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new M(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new L(h,this,t)),this._$AV.push(i),l=s[++n]}o!==l?.index&&(h=E.nextNode(),o++)}return E.currentNode=r,e}p(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class M{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=N(this,t,i),c(t)?t===T||null==t||\"\"===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==w&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==T&&c(this._$AH)?this._$AA.nextSibling.data=t:this.T(r.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e=\"number\"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=V.createElement(C(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const t=new S(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new V(t)),i}k(t){a(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new M(this.S(l()),this.S(l()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class R{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||\"\"!==s[0]||\"\"!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=T}_$AI(t,i=this,s,e){const h=this.strings;let o=!1;if(void 0===h)t=N(this,t,i,0),o=!c(t)||t!==this._$AH&&t!==w,o&&(this._$AH=t);else{const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=N(this,e[s+n],i,n),r===w&&(r=this._$AH[n]),o||=!c(r)||r!==this._$AH[n],r===T?t=T:t!==T&&(t+=(r??\"\")+h[n+1]),this._$AH[n]=r}o&&!e&&this.j(t)}j(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??\"\")}}class k extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===T?void 0:t}}class H extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==T)}}class I extends R{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5}_$AI(t,i=this){if((t=N(this,t,i,0)??T)===w)return;const s=this._$AH,e=t===T&&s!==T||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==T&&(s===T||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){\"function\"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class L{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){N(this,t)}}const z={P:e,A:h,C:o,M:1,L:P,R:S,D:u,V:N,I:M,H:R,N:H,U:I,B:k,F:L},Z=t.litHtmlPolyfillSupport;Z?.(V,M),(t.litHtmlVersions??=[]).push(\"3.1.2\");const j=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new M(i.insertBefore(l(),t),t,void 0,s??{})}return h._$AI(t),h};export{z as _$LH,x as html,w as noChange,T as nothing,j as render,b as svg};\n//# sourceMappingURL=lit-html.js.map\n","import{ReactiveElement as t}from\"@lit/reactive-element\";export*from\"@lit/reactive-element\";import{render as e,noChange as i}from\"lit-html\";export*from\"lit-html\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */class s extends t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=e(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return i}}s._$litElement$=!0,s[(\"finalized\",\"finalized\")]=!0,globalThis.litElementHydrateSupport?.({LitElement:s});const r=globalThis.litElementPolyfillSupport;r?.({LitElement:s});const o={_$AK:(t,e,i)=>{t._$AK(e,i)},_$AL:t=>t._$AL};(globalThis.litElementVersions??=[]).push(\"4.0.4\");export{s as LitElement,o as _$LE};\n//# sourceMappingURL=lit-element.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)};export{t as customElement};\n//# sourceMappingURL=custom-element.js.map\n","import{defaultConverter as t,notEqual as e}from\"../reactive-element.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o={attribute:!0,type:String,converter:t,reflect:!1,hasChanged:e},r=(t=o,e,r)=>{const{kind:n,metadata:i}=r;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),s.set(r.name,t),\"accessor\"===n){const{name:o}=r;return{set(r){const n=e.get.call(this);e.set.call(this,r),this.requestUpdate(o,n,t)},init(e){return void 0!==e&&this.P(o,void 0,t),e}}}if(\"setter\"===n){const{name:o}=r;return function(r){const n=this[o];e.call(this,r),this.requestUpdate(o,n,t)}}throw Error(\"Unsupported decorator location: \"+n)};function n(t){return(e,o)=>\"object\"==typeof o?r(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)}export{n as property,r as standardProperty};\n//# sourceMappingURL=property.js.map\n","import{property as t}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function r(r){return t({...r,state:!0,attribute:!1})}export{r as state};\n//# sourceMappingURL=state.js.map\n","import{nothing as t}from\"../lit-html.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o=o=>o??t;export{o as ifDefined};\n//# sourceMappingURL=if-defined.js.map\n","import {Grade, GradingSystem, Route} from \"../_types\";\n\nexport const findGradingSystem = (route: Pick<Route, \"gradingSystem\">, gradingSystems: GradingSystem[]) => {\n    return gradingSystems.find(s => s.id == route.gradingSystem)\n}\n\nexport const getClosestGrade = (route: Pick<Route, \"gradingSystem\" | \"difficulty\">, gradingSystems: GradingSystem[]) => {\n    const grades = findGradingSystem(route, gradingSystems)?.grades;\n    if(!grades) return null;\n\n    let closest: number | null = null;\n    let closestGrade: Grade | null = null\n    for (let index = 0; index < grades.length; index++) {\n        const grade = grades[index];\n        if (closest == null) {\n            closest = index;\n            closestGrade = grade\n            continue;\n        }\n        if (grade.difficulty === route.difficulty) {\n            closest = index;\n            closestGrade = grade;\n            break;\n        }\n        const distanceToClosest = Math.abs(grade.difficulty - closestGrade!.difficulty);\n        const distanceToDifficulty = Math.abs(grade.difficulty - route.difficulty);\n        if (distanceToClosest > distanceToDifficulty) {\n            closest = index;\n            closestGrade = grade;\n        }\n    }\n    return closest == null || closestGrade == null ? null : {\n        index: closest,\n        grade: closestGrade,\n    }\n}\n\nexport const getGradeDisplay = (route: Route, gradingSystems: GradingSystem[]) => {\n    const closest = getClosestGrade(route,gradingSystems);\n    return closest?.grade?.label ?? String(route.difficulty);\n}","import {RouteMeta} from \"../_types\";\n\nexport const getMetaLabel = (metaKey: string, metaValue: string | number, metaStructure: RouteMeta[]) => {\n    const _metaStructure = metaStructure.find(m => m.key == metaKey)\n    if (!_metaStructure) return null;\n    return _metaStructure?.options.find(o => o.key == metaValue)?.label ?? null;\n}","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}export{i as Directive,t as PartType,e as directive};\n//# sourceMappingURL=directive.js.map\n","import{noChange as t}from\"../lit-html.js\";import{directive as s,Directive as i,PartType as r}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const e=s(class extends i{constructor(t){if(super(t),t.type!==r.ATTRIBUTE||\"class\"!==t.name||t.strings?.length>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(t){return\" \"+Object.keys(t).filter((s=>t[s])).join(\" \")+\" \"}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(\" \").split(/\\s/).filter((t=>\"\"!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)))}return t}});export{e as classMap};\n//# sourceMappingURL=class-map.js.map\n","export type EventRouteVote = {\n    difficulty: number\n    route: number\n}\nexport const EVENT_ROUTE_VOTE = \"climbpressRouteVote\";\nexport type EventRouteUnvote = {\n    route: number\n}\nexport const EVENT_ROUTE_UNVOTE = \"climbpressRouteUnvote\";\nexport type EventRouteExpandToggle = {\n    route: number\n}\nexport const EVENT_ROUTE_EXPAND_TOGGLE = \"climbpressRouteExpandToggle\";","import {html, LitElement, unsafeCSS} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\n\n// @ts-ignore\nimport styles from './route.css?inline'\nimport type {Grade, Route, Vote} from \"../_types\";\nimport {GradingSystem, RouteMeta} from \"../_types\";\nimport {findGradingSystem, getClosestGrade, getGradeDisplay} from \"../lib/grading-system\";\nimport {getMetaLabel} from \"../lib/meta\";\nimport {\n    EVENT_ROUTE_EXPAND_TOGGLE,\n    EVENT_ROUTE_UNVOTE,\n    EVENT_ROUTE_VOTE,\n    EventRouteExpandToggle,\n    EventRouteUnvote,\n    EventRouteVote\n} from \"./events\";\n\nexport type i18n = {\n    date?: string\n    route_voting_label?: string\n}\n\n@customElement(\"climbpress-route\")\nexport default class ClimbPressRoute extends LitElement {\n    static styles = unsafeCSS(styles);\n\n    @property({type: Object})\n    public i18n: i18n = {}\n\n    @property({type: Object})\n    public route: Route | null = null\n\n    @property({attribute: \"meta-structure\", type: Array})\n    public metaStructure: RouteMeta[] = [];\n\n    @property({attribute: \"meta-collapsed\", type: Array})\n    public metaCollapsed?: string[]\n\n    @property({attribute: \"grading-systems\", type: Object})\n    public gradingSystems: GradingSystem[] = [];\n\n    @property({attribute: \"expanded\", type: Boolean})\n    public expanded: boolean = false\n\n    @property({type: Object})\n    public vote: Vote | null = null\n\n    protected render() {\n        const route = this.route;\n\n        if (!route) return null;\n\n        const grade = getGradeDisplay(route, this.gradingSystems);\n        const metaKeys = Object.keys(route.metas);\n        const metaKeysNotInCollapsedMetas = metaKeys.filter(key => {\n            return !(this.metaCollapsed?.includes(key) ?? false);\n        });\n\n        const collapsedMetaValues = (this.metaCollapsed ?? metaKeys).map(key => {\n            const value = route.metas[key] ?? \"\";\n            return getMetaLabel(key, value, this.metaStructure) ?? value;\n        }).filter(v => v != \"\");\n\n        const classes = classMap({\n            expanded: this.expanded,\n        });\n\n        const clickExpand = () => {\n            if (!this.expanded) this.dispatchToggleExpand()\n        }\n        const clickCollapse = (e: Event) => {\n            if (this.expanded) {\n                e.preventDefault()\n                e.stopPropagation()\n                e.stopImmediatePropagation()\n                this.dispatchToggleExpand()\n            }\n        }\n\n        const gradingSystem = findGradingSystem(route, this.gradingSystems);\n        const routeGrade = getClosestGrade(route, this.gradingSystems);\n\n        const vote = this.vote;\n        let votedGrade: { grade: Grade, index: number } | null = null;\n        let nextHarderGrade: Grade | null = null;\n        let nextEasierGrade: Grade | null = null;\n        const minIndex = routeGrade ? routeGrade.index - 4 : 0;\n        const maxIndex = routeGrade ? routeGrade.index + 4 : 0;\n\n        if (routeGrade != null && gradingSystem) {\n            if (vote) {\n                votedGrade = getClosestGrade({\n                    gradingSystem: route.gradingSystem,\n                    difficulty: vote.difficulty,\n                }, this.gradingSystems) ?? null;\n            }\n            const baseGrade = votedGrade ? votedGrade : routeGrade;\n            const nextHarderGradeIndex = baseGrade.index + 1;\n            const nextEasierGradeIndex = baseGrade.index -1;\n\n            if(nextHarderGradeIndex <= maxIndex){\n                nextHarderGrade = gradingSystem.grades?.[nextHarderGradeIndex] ?? null;\n            }\n            if(nextEasierGradeIndex >= minIndex){\n                nextEasierGrade = gradingSystem.grades?.[nextEasierGradeIndex] ?? null;\n            }\n        }\n\n        // TODO: move to box settings or global settings\n        let communityVotingGrade: null | Grade = null\n        if(route.communityVotesCount > 4){\n            console.debug(\"community\", route)\n            communityVotingGrade = getClosestGrade({\n                gradingSystem: route.gradingSystem,\n                difficulty: route.communityAverageDifficulty,\n            }, this.gradingSystems)?.grade ?? null;\n        }\n        const clickVote = (difficulty: number) => (e: Event) => {\n            e.preventDefault();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n\n            if (difficulty < 0 || !routeGrade) {\n                return;\n            }\n\n            const grade = getClosestGrade(\n                {\n                    gradingSystem: route?.gradingSystem,\n                    difficulty,\n                },\n                this.gradingSystems\n            );\n\n            // TODO: make it block configuration or global setting max and min vote difference\n\n            if (grade == null || grade.index < minIndex || grade.index > maxIndex) return;\n\n            this.dispatchChangeVote(grade.grade.difficulty)\n        }\n\n        const clickSameVote = (e: Event) => {\n            e.preventDefault();\n            e.stopPropagation();\n            e.stopImmediatePropagation();\n            if (route == null) return;\n            if (vote === null) {\n                this.dispatchChangeVote(route.difficulty);\n            } else {\n                this.dispatchChangeUnvote();\n            }\n        }\n\n        const dateFormat = new Intl.DateTimeFormat(undefined,{\n            dateStyle: \"short\",\n        });\n\n        const communityValues: string[] = []\n\n        if(votedGrade){\n            communityValues.push(votedGrade.grade.label);\n        }\n        if(communityVotingGrade){\n            communityValues.push(`⌀ ${communityVotingGrade.label}`);\n        }\n\n        return html`\n            <div class=\"route ${classes}\" @click=${clickExpand}>\n                <div class=\"details\" @click=${clickCollapse}>\n                    <div class=\"name\" >${route.name}</div>\n                    <div class=\"meta\">\n                        <div>\n                            ${dateFormat.format(Date.parse(route.created))} •\n                            ${collapsedMetaValues.join(\" • \")}\n                        </div>\n                    </div>\n                </div>\n                <div class=\"difficulty\">\n                    <div class=\"value\">\n                        ${grade}\n                        ${communityValues.length ?\n                                html`<span class=\"my-value\">${communityValues.join(\" / \")}</span>`\n                        :null}\n                    </div>\n                    \n                    <div class=\"voting\">\n                        <div class=\"voting_wrapper\">\n                            <div class=\"label\">${this.i18n.route_voting_label ?? \"Deine Bewertung\"}</div>\n                            <div class=\"controls\">\n                                <button\n                                        ?disabled=${nextEasierGrade == null}\n                                        @click=${clickVote(nextEasierGrade?.difficulty ?? -1)}\n                                        class=${classMap({\n                                            \"btn-easier\": true,\n                                            //active: votedGrade != null && currentVoteValue < route.difficulty\n                                        })}\n                                >\n                                    –\n                                </button>\n                                <button\n                                        @click=${clickSameVote}\n                                        class=${classMap({active: vote != null})}\n                                >\n                                    ${votedGrade ? votedGrade.grade.label : grade}\n                                </button>\n                                <button\n                                        ?disabled=${nextHarderGrade == null}\n                                        @click=${clickVote(nextHarderGrade?.difficulty ?? -1)}\n                                        class=${classMap({\n                                            \"btn-harder\": true,\n                                            //active: votedGrade != null && currentVoteValue > route.difficulty\n                                        })}\n                                >\n                                    +\n                                </button>\n                            </div>\n                            <div class=\"community-voting\">\n                                <div class=\"label\">⌀ Bewertung</div>\n                                <div>${communityVotingGrade?.label ?? \"-\" }</div>\n                            </div>\n                           \n                        </div>                        \n                    </div>\n                </div>\n                <div class=\"expanded-details\">\n                    <div>\n                        <dl>\n                            <dt>${this.i18n.date ?? \"Datum\"}</dt>\n                            <dd>${dateFormat.format(Date.parse(route.created))}</dd>\n                            ${this.metaCollapsed?.map(this.renderRouteMeta.bind(this, route))}\n                            ${metaKeysNotInCollapsedMetas.map(this.renderRouteMeta.bind(this, route))}\n                        </dl>\n                    </div>\n                </div>\n            </div>\n        `\n    }\n\n    private renderRouteMeta(route: Route, metaKey: string) {\n        const value = route.metas[metaKey] ?? \"\";\n        if (value == \"\") return '';\n        const structure = this.metaStructure.find(m => m.key == metaKey)\n        const label = structure?.label ?? metaKey;\n        const display = structure?.options?.find(o => o.key == value)?.label ?? value;\n        return html`\n            <dt>${label}</dt>\n            <dd>${display}</dd>\n        `\n    }\n\n    // ------------------------------------------------\n    // Events\n    // ------------------------------------------------\n    private dispatchChangeVote(value: number) {\n        const routeId = this.route?.id;\n        if (!routeId) return;\n        this.dispatchEvent(\n            new CustomEvent<EventRouteVote>(\n                EVENT_ROUTE_VOTE,\n                {\n                    detail: {\n                        difficulty: value,\n                        route: routeId,\n                    },\n                    bubbles: true,\n                    composed: true\n                },\n            )\n        )\n    }\n\n    private dispatchChangeUnvote() {\n        const routeId = this.route?.id;\n        if (!routeId) return;\n        this.dispatchEvent(\n            new CustomEvent<EventRouteUnvote>(\n                EVENT_ROUTE_UNVOTE,\n                {\n                    detail: {\n                        route: routeId,\n                    },\n                    bubbles: true,\n                    composed: true,\n                },\n            )\n        )\n    }\n\n    private dispatchToggleExpand() {\n        const routeId = this.route?.id;\n        if (!routeId) return;\n        this.dispatchEvent(\n            new CustomEvent<EventRouteExpandToggle>(\n                EVENT_ROUTE_EXPAND_TOGGLE,\n                {\n                    detail: {\n                        route: routeId,\n                    },\n                    bubbles: true,\n                    composed: true,\n                },\n            )\n        )\n    }\n}\n\ndeclare global {\n    interface HTMLElementTagNameMap {\n        'climbpress-route': ClimbPressRoute\n    }\n}\n","import {html, LitElement, nothing, PropertyValues, unsafeCSS} from 'lit';\nimport {customElement, property, state} from 'lit/decorators.js';\nimport {ifDefined} from 'lit/directives/if-defined.js';\nimport {GradingSystem, Route, RouteMeta, Vote} from \"../_types\";\n\nimport './theme.css';\n\n// @ts-ignore\nimport styles from './routes.css?inline'\nimport {getGradeDisplay} from \"../lib/grading-system\";\nimport {getMetaLabel} from \"../lib/meta\";\nimport './route'\nimport {EventRouteExpandToggle, EventRouteVote} from \"./events\";\nimport ClimbPressRoute from \"./route\";\n\n@customElement(\"climbpress-routes\")\nexport default class ClimbPressRoutes extends LitElement {\n    static styles = unsafeCSS(styles);\n\n    @property({type: Object})\n    public i18n: { [key: string]: string } = {}\n\n    @property({attribute: \"grading-systems\", type: Object})\n    public gradingSystems: GradingSystem[] = [];\n\n    @property({type: Array})\n    public routes: Route[] = [];\n\n    @property({type: Object})\n    public votes: {[route: number]: Vote|undefined} = {}\n\n    @property({attribute: \"route-meta-structure\", type: Array})\n    public routeMetaStructure: RouteMeta[] = [];\n\n    @property({attribute: \"route-meta-collapsed\", type: Array})\n    public routeMetaCollapsed?: string[]\n\n    @property({type: Number})\n    public count: number = 10;\n\n    @property({attribute: \"hide-search\", type: Boolean})\n    public hideSearch: boolean = false;\n\n    @property({attribute: \"hide-filters\", type: Boolean})\n    public hideFilters: boolean = false;\n\n    @property({attribute: \"show-voting\", type: Boolean})\n    public showVoting: boolean = false;\n\n    @state()\n    private searchQuery: string = \"\";\n\n    @state()\n    private active: number[] = []\n\n    @state()\n    private filterBy: { [key: string]: string } = {};\n\n    getById(route: number): null | ClimbPressRoute{\n        let needle: null|ClimbPressRoute = null;\n        this.shadowRoot?.querySelectorAll(\"climbpress-route\").forEach(element=> {\n            if(element.route != null && element.route.id == route){\n                needle = element;\n            }\n        })\n        return needle;\n    }\n\n    // ------------------------------------------------------------\n    // render\n    // ------------------------------------------------------------\n    protected render() {\n        const filtered = this.getFilteredRoutes();\n        const cutOffRoutes = this.cutOffRoutes(filtered);\n\n        return html`\n            <div class=\"container\">\n                ${this.renderSearch()}\n                ${this.renderFilters()}\n                <div class=\"routes\">\n                    ${cutOffRoutes.length > 0 ?\n                            cutOffRoutes.map(this.renderRoute.bind(this))\n                            :\n                            html`<slot name=\"not-found\"><p><i>No route found</i></p></slot>`\n                    }\n                </div>\n\n                ${cutOffRoutes.length < filtered.length ?\n                        html`\n                            <slot name=\"button\" @click=${this.onClickAll}>\n                                <button role=\"button\">All routes</button>\n                            </slot>`\n                        : nothing\n                }\n            </div>\n        `;\n    }\n\n    private renderRoute(route: Route) {\n        const isExpanded = this.active.includes(route.id);\n\n        const onToggle = (e: CustomEvent<EventRouteExpandToggle>) => {\n            if(this.active.includes(e.detail.route)){\n                this.active = this.active.filter(el => el != e.detail.route);\n            } else {\n                this.active = [...this.active, e.detail.route];\n            }\n        }\n\n        const onVote = (e: CustomEvent<EventRouteVote>)=> {\n            console.debug(e.detail);\n        }\n\n        return html`\n            <climbpress-route\n                    @climbpressRouteExpandToggle=${onToggle}\n                    @climbpressRouteVote=${onVote}\n                    route=${JSON.stringify(route)}\n                    meta-structure=${JSON.stringify(this.routeMetaStructure)}\n                    meta-collapsed=${JSON.stringify(this.routeMetaCollapsed)}\n                    grading-systems=${JSON.stringify(this.gradingSystems)}\n                    ?expanded=${isExpanded}\n                    vote=${ifDefined(this.votes[route.id] ? JSON.stringify(this.votes[route.id]) : undefined)}\n            ></climbpress-route>\n        `\n    }\n\n    private renderFilters() {\n        return '';\n        // if (this.hideFilters) return '';\n        //\n        // const systems = Array.from(\n        //     new Set(this.routes.map(r => r.gradingSystem).filter(s => s != \"\"))\n        // ).map(s => {\n        //     return getGradingSystems().find(system => s == system.id)\n        // }).filter(s => s != undefined);\n        // const walls = Array.from(new Set(this.routes.map(r => r.sector).filter(w => w != \"\")));\n        //\n        // const labelGradingSystem = this.labels?.filterAllGradingSystems ?? \"- All grading systems -\";\n        // const labelWall = this.labels?.filterAllWalls ?? \"- All walls -\"\n        //\n        // return html`\n        //     <div class=\"filters\">\n        //         <select name=\"gradingSystem\">\n        //             <option value=\"\">${labelGradingSystem}</option>\n        //             ${systems.map(system => {\n        //                 return html`\n        //                     <option value=${system.id}>${system.name}</option>\n        //                 `\n        //             })}\n        //         </select>\n        //         <select name=\"wall\">\n        //             <option value=\"\">${labelWall}</option>\n        //             ${walls.map(w => {\n        //                 return html`\n        //                     <option value=${w}>${w}</option>`\n        //             })}\n        //         </select>\n        //     </div>\n        // `\n    }\n\n    private renderSearch() {\n        if (this.hideSearch) return '';\n        const label = this.i18n?.searchPlaceholder ?? \"Search...\";\n        return html`\n            <slot name=\"input\"><input placeholder=${label} name=\"search\"/></slot>\n        `\n    }\n\n    // ------------------------------------------------------------\n    // lifecycle\n    // ------------------------------------------------------------\n    protected firstUpdated(_changedProperties: PropertyValues) {\n        super.firstUpdated(_changedProperties);\n\n        this.renderRoot.addEventListener(\"keyup\", (e) => {\n            const target = (e.target as HTMLInputElement)\n            if (target.name == \"search\") {\n                this.searchQuery = target.value;\n            }\n        })\n\n        this.renderRoot.addEventListener(\"change\", (e) => {\n            const target = (e.target as HTMLSelectElement);\n            this.filterBy[target.name] = target.value;\n            this.requestUpdate()\n        })\n    }\n\n    // ------------------------------------------------------------\n    // utils\n    // ------------------------------------------------------------\n    private searchAbleProps: Array<keyof Route> = [\"name\", \"metas\", \"gradingSystem\"];\n\n    private cutOffRoutes(routes: Route[]) {\n\n        if (this.count < 1) return routes;\n\n        return routes.slice(0, this.count);\n    }\n\n    private getFilteredRoutes() {\n        const searchValue = this.searchQuery.toLowerCase();\n        return this.routes.filter(route => {\n            const grade = getGradeDisplay(route, this.gradingSystems)\n            if (grade.includes(searchValue)) {\n                return true;\n            }\n            const doesNotMatch = Object.keys(this.filterBy).find((key) => {\n                const routeValue = route[key as keyof Route]\n                return this.filterBy[key] != \"\" && route.hasOwnProperty(key) && routeValue != this.filterBy[key];\n            });\n            if (doesNotMatch) return false;\n            if (searchValue == \"\") {\n                return true;\n            }\n            return this.searchAbleProps.find(prop => {\n                if (prop == \"metas\") {\n                    const value = route[prop];\n                    return Object.keys(value).find(metaKey => {\n                        const metaValue = value[metaKey];\n                        const label = getMetaLabel(metaKey, metaValue, this.routeMetaStructure);\n                        if (label) {\n                            return label.toLowerCase().includes(searchValue.toLowerCase());\n                        }\n                        return metaValue.toLowerCase().includes(searchValue.toLowerCase());\n                    }) != undefined;\n                }\n                const value = route[prop];\n                return typeof value === \"string\" && value.toLowerCase().includes(searchValue.toLowerCase())\n            }) != undefined;\n        });\n    }\n\n    // ------------------------------------------------------------\n    // event handling\n    // ------------------------------------------------------------\n    private handleClick(index: number) {\n        if (this.active.includes(index)) {\n            this.active = this.active.filter(i => i != index);\n        } else {\n            this.active = [\n                ...this.active,\n                index,\n            ];\n        }\n    }\n\n    private onClickAll() {\n        this.count = 0;\n    }\n}\n\ndeclare global {\n    interface HTMLElementTagNameMap {\n        'climbpress-routes': ClimbPressRoutes\n    }\n}\n","import {Route, Vote} from \"../_types\";\n\nexport const getRoutes = (): Route[] => {\n    try{\n        // TODO: zod parsing\n        return JSON.parse(localStorage.getItem(\"climbpress-routes\") ?? \"[]\");\n    } catch (e) {\n        console.error(e);\n    }\n    return [];\n}\n\nexport const setRoutes = (routes: Route[]) => localStorage.setItem(\"climbpress-routes\", JSON.stringify(routes));\n\ntype CachedVote = {\n    vote: Vote\n    voteId: string\n}\n\nconst getVoteKey = (routeId: number) => `climbpress-vote(route:${routeId})`;\nexport const setVoteCache = (routeId: number, vote: CachedVote|null) =>{\n    if(vote == null){\n        localStorage.removeItem(getVoteKey(routeId));\n    } else {\n        localStorage.setItem(getVoteKey(routeId), JSON.stringify(vote));\n    }\n}\n\nexport const getVoteCache = (routeId: number): CachedVote | null => {\n    try {\n        const cache = localStorage.getItem(getVoteKey(routeId));\n        return cache ?   JSON.parse(cache): null;\n    } catch (e) {\n        return null;\n    }\n}","import {GradingSystem, Route, RouteMeta} from \"./_types\";\n\ndeclare global {\n    interface Window {\n        ClimbPressPublic: {\n            RESTNamespace: string\n            gradingSystems: GradingSystem[]\n            metaStructure: RouteMeta[]\n            labels: { [key: string]: string }\n            fetchRoutes(url?: string): Promise<Route[]>\n            vote(route_id: number, difficulty: number): Promise<string|false>\n            changeVote(vote_id: string, difficulty: number): Promise<boolean>\n            unvote(vote_id: string): Promise<boolean>\n        }\n    }\n}\n\nif(window.ClimbPressPublic.fetchRoutes == undefined){\n    window.ClimbPressPublic = {\n        ...window.ClimbPressPublic,\n        async fetchRoutes (url = \"/wp-json/climbpress/v1/routes\") {\n            return fetch(url).then(res => res.json());\n        },\n        async vote(route_id, difficulty){\n            const result = await fetch(`/wp-json/climbpress/v1/votes`,{\n                method: \"POST\",\n                headers: {\n                    \"Content-Type\": \"application/json\",\n                },\n                body: JSON.stringify({\n                    route_id,\n                    difficulty,\n                })\n            }).then(res=> res.json()) as { voting_id: string|false};\n            return result.voting_id;\n        },\n        async changeVote(voting_id, difficulty){\n            const result = await fetch(`/wp-json/climbpress/v1/votes`,{\n                method: \"PATCH\",\n                headers: {\n                    \"Content-Type\": \"application/json\",\n                },\n                body: JSON.stringify({\n                    voting_id,\n                    difficulty,\n                })\n            }).then(res=> res.json()) as { success: boolean};\n            return result.success;\n        },\n        async unvote(vote_id){\n            const result = await fetch(`/wp-json/climbpress/v1/votes`,{\n                method: \"DELETE\",\n                headers: {\n                    \"Content-Type\": \"application/json\",\n                },\n                body: JSON.stringify({\n                    id: vote_id,\n                })\n            }).then(res=> res.json());\n            return result as boolean;\n        }\n\n    }\n}\n\nexport const fetchRoutes = window.ClimbPressPublic.fetchRoutes;\nexport const getGradingSystems = () => window.ClimbPressPublic.gradingSystems;\nexport const vote = window.ClimbPressPublic.vote;\nexport const unvote = window.ClimbPressPublic.unvote;\nexport const changeVote = window.ClimbPressPublic.changeVote;\nexport const getLabels = () => window.ClimbPressPublic.labels;\n","import domReady from \"@wordpress/dom-ready\";\nimport './web-components/routes'\nimport {EVENT_ROUTE_UNVOTE, EVENT_ROUTE_VOTE, EventRouteUnvote, EventRouteVote} from \"./web-components/events\";\nimport ClimbPressRoute from \"./web-components/route\";\nimport {getVoteCache, setVoteCache} from \"./lib/cache\";\nimport {changeVote, unvote, vote} from \"./public-api\";\n\nimport './web-components/theme.css';\nimport ClimbPressRoutes from \"./web-components/routes\";\nimport {Vote} from \"./_types\";\n\ndomReady(() => {\n\n    document.querySelectorAll(\"climbpress-route\").forEach((element) => {\n        if (element.route == null) return;\n        element.vote = getVoteCache(element.route.id)?.vote ?? null;\n    })\n    document.querySelectorAll(\"climbpress-routes\").forEach((element) => {\n        const votes: {[route:number]: Vote} = {}\n        element.routes.forEach(route => {\n            const vote = getVoteCache(route.id)?.vote;\n            if(vote){\n                votes[route.id] = vote;\n            }\n        });\n        element.votes = votes;\n    })\n\n    // @ts-ignore\n    window.addEventListener(EVENT_ROUTE_UNVOTE, async (event: CustomEvent<EventRouteUnvote>) => {\n        const element = (event.target as Element);\n        if (element.localName == \"climbpress-routes\") {\n            const element = (event.target as ClimbPressRoutes);\n            const voteId = getVoteCache(event.detail.route)?.voteId;\n\n            if (!voteId) return;\n\n            const success = await unvote(voteId);\n            if (!success) {\n                return;\n            }\n\n            setVoteCache(event.detail.route, null);\n            const votes: {[route:number]: Vote} = {};\n            Object.entries(element.votes).forEach(([route, vote]) => {\n                const routeId = parseInt(route);\n                if(routeId != event.detail.route && vote != undefined){\n                    votes[routeId] = vote;\n                }\n            });\n            element.votes = votes;\n\n        } else if(element.localName == \"climbpress-route\"){\n            const element = (event.target as ClimbPressRoute);\n            const currentVote = element.vote;\n            if (currentVote == null) return;\n\n            const routeId = element.route?.id!\n\n            const voteId = getVoteCache(routeId)?.voteId;\n            if (!voteId) return;\n\n\n            const success = await unvote(voteId);\n            if (!success) {\n                return;\n            }\n            setVoteCache(routeId, null);\n            element.vote = null;\n        }\n\n    })\n\n    // @ts-ignore\n    window.addEventListener(EVENT_ROUTE_VOTE, async (event: CustomEvent<EventRouteVote>) => {\n        const element = (event.target as Element);\n        if (element.localName == \"climbpress-routes\") {\n            const routesElement = element as ClimbPressRoutes;\n            const {route, difficulty} = event.detail;\n            const vote = await doVote(difficulty, route);\n            if(vote === false) return;\n\n            routesElement.votes = {\n                ...routesElement.votes,\n                [route]: {difficulty},\n            };\n        } else if (element.localName == \"climbpress-route\") {\n            const routeElement = element as ClimbPressRoute;\n            const route = routeElement.route;\n            if (route == null) return;\n\n            const difficulty = event.detail.difficulty;\n\n            const vote = await doVote(difficulty, route.id);\n            if(vote === false) return;\n            routeElement.vote = vote;\n        }\n    });\n\n    async function doVote(difficulty: number, routeId: number): Promise<Vote|false> {\n\n        const currentVoteCache = getVoteCache(routeId);\n\n        if (currentVoteCache == null) {\n            const voteId = await vote(routeId, difficulty);\n            if (!voteId) {\n                return false;\n            }\n            setVoteCache(routeId, {\n                voteId: voteId,\n                vote: {\n                    difficulty,\n                },\n            });\n        } else {\n            const success = await changeVote(currentVoteCache.voteId, difficulty);\n            if (!success) {\n                return false;\n            }\n            setVoteCache(routeId, {\n                voteId: currentVoteCache.voteId,\n                vote: {\n                    difficulty,\n                }\n            });\n        }\n        return {\n            difficulty,\n        }\n    }\n})"],"names":["domReady","callback","t","e","s","o","n$3","r","n","S","c","i","h","a","l","p","d","u","f","y","b","_a","v","_","m","g","$","x","w","T","A","E","C","P","V","k","H","I","R","N","_b","M","L","j","findGradingSystem","route","gradingSystems","getClosestGrade","grades","closest","closestGrade","index","grade","distanceToClosest","distanceToDifficulty","getGradeDisplay","getMetaLabel","metaKey","metaValue","metaStructure","_metaStructure","EVENT_ROUTE_VOTE","EVENT_ROUTE_UNVOTE","EVENT_ROUTE_EXPAND_TOGGLE","ClimbPressRoute","LitElement","metaKeys","metaKeysNotInCollapsedMetas","key","collapsedMetaValues","value","classes","classMap","clickExpand","clickCollapse","gradingSystem","routeGrade","vote","votedGrade","nextHarderGrade","nextEasierGrade","minIndex","maxIndex","baseGrade","nextHarderGradeIndex","nextEasierGradeIndex","communityVotingGrade","_c","clickVote","difficulty","clickSameVote","dateFormat","communityValues","html","_d","structure","label","display","routeId","unsafeCSS","styles","__decorateClass","property","customElement","ClimbPressRoutes","needle","element","filtered","cutOffRoutes","nothing","isExpanded","el","ifDefined","_changedProperties","target","routes","searchValue","routeValue","prop","state","getVoteKey","setVoteCache","getVoteCache","cache","url","res","route_id","voting_id","vote_id","unvote","changeVote","votes","event","voteId","routesElement","doVote","routeElement","currentVoteCache"],"mappings":"aA8Be,SAASA,GAASC,EAAU,CACzC,GAAI,SAAO,SAAa,KAGxB,IAAI,SAAS,aAAe,YAE5B,SAAS,aAAe,cAEtB,OAAO,KAAKA,EAAQ,EAItB,SAAS,iBAAiB,mBAAoBA,CAAQ,EACxD,CC3CA;AAAA;A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