From d2ef8c432769e31518eec9cf3496268edda6ddfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Dietrich?= Date: Mon, 15 Jan 2024 10:46:19 +0100 Subject: [PATCH] automatic update --- docs/{index.c6146c1f.js => index.6605109c.js} | 158 +++++++++--------- docs/{index.90a29b64.js => index.7fd13e38.js} | 4 +- docs/index.html | 2 +- 3 files changed, 82 insertions(+), 82 deletions(-) rename docs/{index.c6146c1f.js => index.6605109c.js} (97%) rename docs/{index.90a29b64.js => index.7fd13e38.js} (99%) diff --git a/docs/index.c6146c1f.js b/docs/index.6605109c.js similarity index 97% rename from docs/index.c6146c1f.js rename to docs/index.6605109c.js index 40f2863..8d5c6ce 100644 --- a/docs/index.c6146c1f.js +++ b/docs/index.6605109c.js @@ -19,7 +19,7 @@ mounted:function(e,t){ep(e,t.value)},beforeUpdate:function(e,t,n){e._assign=el(n // As long as the user only uses trusted templates, this is safe. insertStaticContent:function(e,t,n,r,i,o){var a=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==o&&(i=i.nextSibling););else{_.innerHTML=r?"".concat(e,""):e;var l=_.content;if(r){for(var u=l.firstChild;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}t.insertBefore(l,n)}return[// first a?a.nextSibling:t.firstChild,// last -n?n.previousSibling:t.lastChild]}}),eT=!1;function eA(){return i||(i=(0,g.createRenderer)(eN))}function eD(){return i=eT?i:(0,g.createHydrationRenderer)(eN),eT=!0,i}var eR=function(){for(var e,t=arguments.length,n=Array(t),r=0;r-1)return{checked:!0}}else if((0,p.isSet)(n)){if(t.props&&n.has(t.props.value))return{checked:!0}}else if(n)return{checked:!0}},ey.getSSRProps=function(e,t){if("string"==typeof t.type){var n=e_(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}},eE.getSSRProps=function(e){if(!e.value)return{style:{display:"none"}}})};e(n.exports,g)}),f.register("disEZ",function(e,n){t(e.exports,"_",function(){return r});function r(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}}),f.register("fJNo6",function(e,n){function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1?t-1:0),r=1;r3)||void 0===arguments[3]||arguments[3],i=t?t.vnode:null;if(t){for(var o=t.parent,a=t.proxy;o;){var l=o.ec;if(l){for(var u=0;u3&&void 0!==arguments[3]&&arguments[3],console.error(e)})(e,n,i,r)}r={},(0,d._)(r,"sp","serverPrefetch hook"),(0,d._)(r,"bc","beforeCreate hook"),(0,d._)(r,"c","created hook"),(0,d._)(r,"bm","beforeMount hook"),(0,d._)(r,"m","mounted hook"),(0,d._)(r,"bu","beforeUpdate hook"),(0,d._)(r,"u","updated"),(0,d._)(r,"bum","beforeUnmount hook"),(0,d._)(r,"um","unmounted hook"),(0,d._)(r,"a","activated hook"),(0,d._)(r,"da","deactivated hook"),(0,d._)(r,"ec","errorCaptured hook"),(0,d._)(r,"rtc","renderTracked hook"),(0,d._)(r,"rtg","renderTriggered hook"),(0,d._)(r,0,"setup function"),(0,d._)(r,1,"render function"),(0,d._)(r,2,"watcher getter"),(0,d._)(r,3,"watcher callback"),(0,d._)(r,4,"watcher cleanup function"),(0,d._)(r,5,"native event handler"),(0,d._)(r,6,"component event handler"),(0,d._)(r,7,"vnode hook"),(0,d._)(r,8,"directive hook"),(0,d._)(r,9,"transition hook"),(0,d._)(r,10,"app errorHandler"),(0,d._)(r,11,"app warnHandler"),(0,d._)(r,12,"ref function"),(0,d._)(r,13,"async component loader"),(0,d._)(r,14,"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core");var k=!1,S=!1,C=[],E=0,V=[],N=null,T=0,A=/* @__PURE__ */Promise.resolve(),D=null;function R(e){var t=D||A;return e?t.then(this?e.bind(this):e):t}function O(e){C.length&&C.includes(e,k&&e.allowRecurse?E+1:E)||(null==e.id?C.push(e):C.splice(function(e){for(var t=E+1,n=C.length;t>>1;L(C[r])1&&void 0!==arguments[1]?arguments[1]:k?E+1:0;t1?n-1:0),o=1;o-1)return{checked:!0}}else if((0,p.isSet)(n)){if(t.props&&n.has(t.props.value))return{checked:!0}}else if(n)return{checked:!0}},ey.getSSRProps=function(e,t){if("string"==typeof t.type){var n=e_(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}},eE.getSSRProps=function(e){if(!e.value)return{style:{display:"none"}}})};e(n.exports,g)}),f.register("disEZ",function(e,n){t(e.exports,"_",function(){return r});function r(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}}),f.register("fJNo6",function(e,n){function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1?t-1:0),r=1;r3)||void 0===arguments[3]||arguments[3],i=t?t.vnode:null;if(t){for(var o=t.parent,a=t.proxy;o;){var l=o.ec;if(l){for(var u=0;u3&&void 0!==arguments[3]&&arguments[3],console.error(e)})(e,n,i,r)}r={},(0,d._)(r,"sp","serverPrefetch hook"),(0,d._)(r,"bc","beforeCreate hook"),(0,d._)(r,"c","created hook"),(0,d._)(r,"bm","beforeMount hook"),(0,d._)(r,"m","mounted hook"),(0,d._)(r,"bu","beforeUpdate hook"),(0,d._)(r,"u","updated"),(0,d._)(r,"bum","beforeUnmount hook"),(0,d._)(r,"um","unmounted hook"),(0,d._)(r,"a","activated hook"),(0,d._)(r,"da","deactivated hook"),(0,d._)(r,"ec","errorCaptured hook"),(0,d._)(r,"rtc","renderTracked hook"),(0,d._)(r,"rtg","renderTriggered hook"),(0,d._)(r,0,"setup function"),(0,d._)(r,1,"render function"),(0,d._)(r,2,"watcher getter"),(0,d._)(r,3,"watcher callback"),(0,d._)(r,4,"watcher cleanup function"),(0,d._)(r,5,"native event handler"),(0,d._)(r,6,"component event handler"),(0,d._)(r,7,"vnode hook"),(0,d._)(r,8,"directive hook"),(0,d._)(r,9,"transition hook"),(0,d._)(r,10,"app errorHandler"),(0,d._)(r,11,"app warnHandler"),(0,d._)(r,12,"ref function"),(0,d._)(r,13,"async component loader"),(0,d._)(r,14,"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core");var k=!1,S=!1,C=[],E=0,V=[],N=null,T=0,A=/* @__PURE__ */Promise.resolve(),D=null;function R(e){var t=D||A;return e?t.then(this?e.bind(this):e):t}function O(e){C.length&&C.includes(e,k&&e.allowRecurse?E+1:E)||(null==e.id?C.push(e):C.splice(function(e){for(var t=E+1,n=C.length;t>>1;L(C[r])1&&void 0!==arguments[1]?arguments[1]:k?E+1:0;t1?n-1:0),o=1;o1){var l=!0,u=!1,s=void 0;try{for(var c,d=t[Symbol.iterator]();!(l=(c=d.next()).done);l=!0){var f=c.value;if(f.type!==nd){a=f;break}}}catch(e){u=!0,s=e}finally{try{l||null==d.return||d.return()}finally{if(u)throw s}}}var h=(0,g.toRaw)(e),p=h.mode;if(o.isLeaving)return eO(a);var m=eI(a);if(!m)return eO(a);var y=eR(m,h,o,i);eB(m,y);var _=i.subTree,b=_&&eI(_),w=!1,x=m.type.getTransitionKey;if(x){var k=x();void 0===n?n=k:k!==n&&(n=k,w=!0)}if(b&&b.type!==nd&&(!nk(m,b)||w)){var S=eR(b,h,o,i);if(eB(b,S),"out-in"===p)return o.isLeaving=!0,S.afterLeave=function(){o.isLeaving=!1,!1!==i.update.active&&i.update()},eO(a);"in-out"===p&&m.type!==nd&&(S.delayLeave=function(e,t,n){eD(o,b)[String(b.key)]=b,e._leaveCb=function(){t(),e._leaveCb=void 0,delete y.delayedLeave},y.delayedLeave=n})}return a}}}};function eD(e,t){var n=e.leavingVNodes,r=n.get(t.type);return r||(r=/* @__PURE__ */Object.create(null),n.set(t.type,r)),r}function eR(e,t,n,r){var i=t.appear,o=t.mode,a=t.persisted,l=t.onBeforeEnter,u=t.onEnter,s=t.onAfterEnter,c=t.onEnterCancelled,d=t.onBeforeLeave,f=t.onLeave,h=t.onAfterLeave,p=t.onLeaveCancelled,g=t.onBeforeAppear,y=t.onAppear,_=t.onAfterAppear,b=t.onAppearCancelled,x=String(e.key),k=eD(n,e),S=function(e,t){e&&w(e,r,9,t)},C=function(e,t){var n=t[1];S(e,t),(0,m.isArray)(e)?e.every(function(e){return e.length<=1})&&n():e.length<=1&&n()},E={mode:o,persisted:void 0!==a&&a,beforeEnter:function(t){var r=l;if(!n.isMounted){if(!i)return;r=g||l}t._leaveCb&&t._leaveCb(!0);var o=k[x];o&&nk(e,o)&&o.el._leaveCb&&o.el._leaveCb(),S(r,[t])},enter:function(e){var t=u,r=s,o=c;if(!n.isMounted){if(!i)return;t=y||u,r=_||s,o=b||c}var a=!1,l=e._enterCb=function(t){a||(a=!0,t?S(o,[e]):S(r,[e]),E.delayedLeave&&E.delayedLeave(),e._enterCb=void 0)};t?C(t,[e,l]):l()},leave:function(t,r){var i=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();S(d,[t]);var o=!1,a=t._leaveCb=function(n){o||(o=!0,r(),n?S(p,[t]):S(h,[t]),t._leaveCb=void 0,k[i]!==e||delete k[i])};k[i]=e,f?C(f,[t,a]):a()},clone:function(e){return eR(e,t,n,r)}};return E}function eO(e){if(eU(e))return(e=nD(e)).children=null,e}function eI(e){return eU(e)?e.children?e.children[0]:void 0:e}function eB(e,t){6&e.shapeFlag&&e.component?eB(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function eP(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=[],i=0,o=0;o1)for(var u=0;u1)return c=null,t;if(!nx(r)||!(4&r.shapeFlag)&&!(128&r.shapeFlag))return c=null,r;var i=eX(r),a=i.type,l=n3(eL(i)?i.type.__asyncResolved||{}:a),d=e.include,f=e.exclude,h=e.max;if(d&&(!l||!eY(d,l))||f&&l&&eY(f,l))return c=i,r;var p=null==i.key?a:i.key,g=u.get(p);return i.el&&(i=nD(i),128&r.shapeFlag&&(r.ssContent=i)),b=p,g?(i.el=g.el,i.component=g.component,i.transition&&eB(i,i.transition),i.shapeFlag|=512,s.delete(p),s.add(p)):(s.add(p),h&&s.size>parseInt(h,10)&&o(s.values().next().value)),i.shapeFlag|=256,c=i,es(r.type)?r:i}}};function eY(e,t){return(0,m.isArray)(e)?e.some(function(e){return eY(e,t)}):(0,m.isString)(e)?e.split(",").includes(t):!!(0,m.isRegExp)(e)&&e.test(t)}function eH(e,t){eW(e,"a",t)}function eq(e,t){eW(e,"da",t)}function eW(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nY,r=e.__wdc||(e.__wdc=function(){for(var t=n;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(eG(t,r,n),n)for(var i=n.parent;i&&i.parent;)eU(i.parent.vnode)&&function(e,t,n,r){var i=eG(t,e,r,!0);e2(function(){(0,m.remove)(r[t],i)},n)}(r,t,n,i),i=i.parent}function eK(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function eX(e){return 128&e.shapeFlag?e.ssContent:e}function eG(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nY,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){var i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=function(){for(var r=arguments.length,i=Array(r),o=0;o1&&void 0!==arguments[1]?arguments[1]:nY;return(!nG||"sp"===e)&&eG(e,function(){for(var e=arguments.length,n=Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:nY;eG("ec",e,t)}var e8="components";function e7(e,t){return tn(e8,e,!0,t)||e}var e9=Symbol.for("v-ndc");function te(e){return(0,m.isString)(e)?tn(e8,e,!1)||e:e||e9}function tt(e){return tn("directives",e)}function tn(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=J||nY;if(r){var i=r.type;if(e===e8){var o=n3(i,!1);if(o&&(o===t||o===(0,m.camelize)(t)||o===(0,m.capitalize)((0,m.camelize)(t))))return i}var a=// check instance[type] first which is resolved for options API +__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup:function(e,t){var n=t.slots,r=function(e){eK(e),y(e,a,d,!0)},i=function(e){u.forEach(function(t,n){var r=n3(t.type);!r||e&&e(r)||o(n)})},o=function(e){var t=u.get(e);c&&nk(t,c)?c&&eK(c):r(t),u.delete(e),s.delete(e)},a=nH(),l=a.ctx;if(!l.renderer)return function(){var e=n.default&&n.default();return e&&1===e.length?e[0]:e};var u=/* @__PURE__ */new Map,s=/* @__PURE__ */new Set,c=null;__VUE_PROD_DEVTOOLS__&&(a.__v_cache=u);var d=a.suspense,f=l.renderer,p=f.p,g=f.m,y=f.um,_=(0,f.o.createElement)("div");l.activate=function(e,t,n,r,i){var o=e.component;g(e,t,n,0,d),p(o.vnode,e,t,n,o,d,r,e.slotScopeIds,i),t8(function(){o.isDeactivated=!1,o.a&&(0,m.invokeArrayFns)(o.a);var t=e.props&&e.props.onVnodeMounted;t&&nj(t,o.parent,e)},d),__VUE_PROD_DEVTOOLS__&&H(o)},l.deactivate=function(e){var t=e.component;g(e,_,null,1,d),t8(function(){t.da&&(0,m.invokeArrayFns)(t.da);var n=e.props&&e.props.onVnodeUnmounted;n&&nj(n,t.parent,e),t.isDeactivated=!0},d),__VUE_PROD_DEVTOOLS__&&H(t)},ew(function(){return[e.include,e.exclude]},function(e){var t=(0,h._)(e,2),n=t[0],r=t[1];n&&i(function(e){return eY(n,e)}),r&&i(function(e){return!eY(r,e)})},{flush:"post",deep:!0});var b=null,w=function(){null!=b&&u.set(b,eX(a.subTree))};return eZ(w),e0(w),e1(function(){u.forEach(function(e){var t=a.subTree,n=a.suspense,i=eX(t);if(e.type===i.type&&e.key===i.key){eK(i);var o=i.component.da;o&&t8(o,n);return}r(e)})}),function(){if(b=null,!n.default)return null;var t=n.default(),r=t[0];if(t.length>1)return c=null,t;if(!nx(r)||!(4&r.shapeFlag)&&!(128&r.shapeFlag))return c=null,r;var i=eX(r),a=i.type,l=n3(eL(i)?i.type.__asyncResolved||{}:a),d=e.include,f=e.exclude,h=e.max;if(d&&(!l||!eY(d,l))||f&&l&&eY(f,l))return c=i,r;var p=null==i.key?a:i.key,g=u.get(p);return i.el&&(i=nD(i),128&r.shapeFlag&&(r.ssContent=i)),b=p,g?(i.el=g.el,i.component=g.component,i.transition&&eB(i,i.transition),i.shapeFlag|=512,s.delete(p),s.add(p)):(s.add(p),h&&s.size>parseInt(h,10)&&o(s.values().next().value)),i.shapeFlag|=256,c=i,es(r.type)?r:i}}};function eY(e,t){return(0,m.isArray)(e)?e.some(function(e){return eY(e,t)}):(0,m.isString)(e)?e.split(",").includes(t):!!(0,m.isRegExp)(e)&&e.test(t)}function eH(e,t){eW(e,"a",t)}function eq(e,t){eW(e,"da",t)}function eW(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nY,r=e.__wdc||(e.__wdc=function(){for(var t=n;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(eG(t,r,n),n)for(var i=n.parent;i&&i.parent;)eU(i.parent.vnode)&&function(e,t,n,r){var i=eG(t,e,r,!0);e2(function(){(0,m.remove)(r[t],i)},n)}(r,t,n,i),i=i.parent}function eK(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function eX(e){return 128&e.shapeFlag?e.ssContent:e}function eG(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:nY,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){var i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=function(){for(var r=arguments.length,i=Array(r),o=0;o1&&void 0!==arguments[1]?arguments[1]:nY;return(!nG||"sp"===e)&&eG(e,function(){for(var e=arguments.length,n=Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:nY;eG("ec",e,t)}var e8="components";function e7(e,t){return tn(e8,e,!0,t)||e}var e9=Symbol.for("v-ndc");function te(e){return(0,m.isString)(e)?tn(e8,e,!1)||e:e||e9}function tt(e){return tn("directives",e)}function tn(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=J||nY;if(r){var i=r.type;if(e===e8){var o=n3(i,!1);if(o&&(o===t||o===(0,m.camelize)(t)||o===(0,m.capitalize)((0,m.camelize)(t))))return i}var a=// check instance[type] first which is resolved for options API tr(r[e]||i[e],t)||// global registration tr(r.appContext[e],t);return!a&&n?i:a}}function tr(e,t){return e&&(e[t]||e[(0,m.camelize)(t)]||e[(0,m.capitalize)((0,m.camelize)(t))])}function ti(e,t,n,r){var i,o=n&&n[r];if((0,m.isArray)(e)||(0,m.isString)(e)){i=Array(e.length);for(var a=0,l=e.length;a2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if(J.isCE||J.parent&&eL(J.parent)&&J.parent.isCE)return"default"!==t&&(n.name=t),nT("slot",n,r&&r());var o=e[t];o&&o._c&&(o._d=!1),np();var a=o&&function e(t){return t.some(function(t){return!nx(t)||!!(t.type!==nd&&(t.type!==ns||e(t.children)))})?t:null}(o(n)),l=nw(ns,{key:n.key||// slot content array of a dynamic conditional slot may have a branch // key attached in the `createSlots` helper, respect that @@ -49,8 +49,8 @@ methods:tM,computed:tM,// lifecycle beforeCreate:tP,created:tP,beforeMount:tP,mounted:tP,beforeUpdate:tP,updated:tP,beforeDestroy:tP,beforeUnmount:tP,destroyed:tP,unmounted:tP,activated:tP,deactivated:tP,errorCaptured:tP,serverPrefetch:tP,// assets components:tM,directives:tM,// watch watch:function(e,t){if(!e)return t;if(!t)return e;var n=(0,m.extend)(/* @__PURE__ */Object.create(null),e);for(var r in t)n[r]=tP(e[r],t[r]);return n},// provide / inject -provide:tI,inject:function(e,t){return tM(tB(e),tB(t))}};function tI(e,t){return t?e?function(){return(0,m.extend)((0,m.isFunction)(e)?e.call(this,this):e,(0,m.isFunction)(t)?t.call(this,this):t)}:t:e}function tB(e){if((0,m.isArray)(e)){for(var t={},n=0;n2&&void 0!==arguments[2]&&arguments[2],r=nY||J;if(r||tU){var i=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:tU._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&(0,m.isFunction)(t)?t.call(r&&r.proxy):t}}function tH(){return!!(nY||J||tU)}function tq(e,t,n,r){var i,o=(0,h._)(e.propsOptions,2),a=o[0],l=o[1],u=!1;if(t){for(var s in t)if(!(0,m.isReservedProp)(s)){var c=t[s],d=void 0;a&&(0,m.hasOwn)(a,d=(0,m.camelize)(s))?l&&l.includes(d)?(i||(i={}))[d]=c:n[d]=c:$(e.emitsOptions,s)||s in r&&c===r[s]||(r[s]=c,u=!0)}}if(l)for(var f=(0,g.toRaw)(n),p=i||m.EMPTY_OBJ,y=0;y4&&void 0!==arguments[4]&&arguments[4];if((0,m.isArray)(e)){e.forEach(function(e,o){return t2(e,t&&((0,m.isArray)(t)?t[o]:t),n,r,i)});return}if(!eL(r)||i){var o=4&r.shapeFlag?n2(r.component)||r.component.proxy:r.el,a=i?null:o,l=e.i,u=e.r,s=t&&t.r,c=l.refs===m.EMPTY_OBJ?l.refs={}:l.refs,d=l.setupState;if(null!=s&&s!==u&&((0,m.isString)(s)?(c[s]=null,(0,m.hasOwn)(d,s)&&(d[s]=null)):(0,g.isRef)(s)&&(s.value=null)),(0,m.isFunction)(u))b(u,l,12,[a,c]);else{var f=(0,m.isString)(u),h=(0,g.isRef)(u);if(f||h){var p=function(){if(e.f){var t=f?(0,m.hasOwn)(d,u)?d[u]:c[u]:u.value;i?(0,m.isArray)(t)&&(0,m.remove)(t,o):(0,m.isArray)(t)?t.includes(o)||t.push(o):f?(c[u]=[o],(0,m.hasOwn)(d,u)&&(d[u]=c[u])):(u.value=[o],e.k&&(c[e.k]=u.value))}else f?(c[u]=a,(0,m.hasOwn)(d,u)&&(d[u]=a)):h&&(u.value=a,e.k&&(c[e.k]=a))};a?(p.id=-1,t8(p,n)):p()}}}}var t3=!1,t5=function(e){return/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName},t4=function(e){return 8/* COMMENT */===e.nodeType};function t6(e){var t=e.mt,n=e.p,r=e.o,i=r.patchProp,o=r.createText,a=r.nextSibling,l=r.parentNode,u=r.remove,s=r.insert,c=r.createComment,d=function(n,r,i,u,c){var m=arguments.length>5&&void 0!==arguments[5]&&arguments[5],_=t4(n)&&"["===n.data,b=function(){return g(n,r,i,u,c,_)},w=r.type,x=r.ref,k=r.shapeFlag,S=r.patchFlag,C=n.nodeType;r.el=n,-2===S&&(m=!1,r.dynamicChildren=null);var E=null;switch(w){case nc:3/* TEXT */!==C?""===r.children?(s(r.el=o(""),l(n),n),E=n):E=b():(n.data!==r.children&&(t3=!0,n.data=r.children),E=a(n));break;case nd:E=8/* COMMENT */!==C||_?b():a(n);break;case nf:if(_&&(C=(n=a(n)).nodeType),1/* ELEMENT */===C||3/* TEXT */===C){E=n;for(var V=!r.children.length,N=0;N3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e!==t){e&&!nk(e,t)&&(r=eh(e),ea(e,i,o,!0),e=null),-2===t.patchFlag&&(u=!1,t.dynamicChildren=null);var s=t.type,c=t.ref,d=t.shapeFlag;switch(s){case nc:N(e,t,n,r);break;case nd:T(e,t,n,r);break;case nf:null==e&&A(t,n,r,a);break;case ns:X(e,t,n,r,i,o,a,l,u);break;default:1&d?I(e,t,n,r,i,o,a,l,u):6&d?G(e,t,n,r,i,o,a,l,u):64&d?s.process(e,t,n,r,i,o,a,l,u,ep):128&d&&s.process(e,t,n,r,i,o,a,l,u,ep)}null!=c&&i&&t2(c,e&&e.ref,o,t||e,!t)}},N=function(e,t,n,r){if(null==e)l(t.el=d(t.children),n,r);else{var i=t.el=e.el;t.children!==e.children&&y(i,t.children)}},T=function(e,t,n,r){null==e?l(t.el=f(t.children||""),n,r):t.el=e.el},A=function(e,t,n,r){var i;i=(0,h._)(S(e.children,t,n,r,e.el,e.anchor),2),e.el=i[0],e.anchor=i[1]},D=function(e,t,n){for(var r,i=e.el,o=e.anchor;i&&i!==o;)r=w(i),l(i,t,n),i=r;l(o,t,n)},R=function(e){for(var t,n=e.el,r=e.anchor;n&&n!==r;)t=w(n),u(n),n=t;u(r)},I=function(e,t,n,r,i,o,a,l,u){a=a||"svg"===t.type,null==e?B(t,n,r,i,o,a,l,u):F(e,t,i,o,a,l,u)},B=function(e,t,n,r,i,o,a,u){var d,f,h=e.type,p=e.props,g=e.shapeFlag,y=e.transition,b=e.dirs;if(d=e.el=c(e.type,o,p&&p.is,p),8&g?_(d,e.children):16&g&&j(e.children,d,null,r,i,o&&"foreignObject"!==h,a,u),b&&eE(e,null,r,"created"),L(d,e,e.scopeId,a,r),p){for(var w in p)"value"===w||(0,m.isReservedProp)(w)||s(d,w,null,p[w],o,e.children,r,i,ef);"value"in p&&s(d,"value",null,p.value),(f=p.onVnodeBeforeMount)&&nj(f,r,e)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(d,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(d,"__vueParentComponent",{value:r,enumerable:!1})),b&&eE(e,null,r,"beforeMount");var x=(!i||i&&!i.pendingBranch)&&y&&!y.persisted;x&&y.beforeEnter(d),l(d,t,n),((f=p&&p.onVnodeMounted)||x||b)&&t8(function(){f&&nj(f,r,e),x&&y.enter(d),b&&eE(e,null,r,"mounted")},i)},L=function(e,t,n,r,i){if(n&&k(e,n),r)for(var o=0;o8&&void 0!==arguments[8]?arguments[8]:0,s=u;s0){if(16&c)W(u,t,h,p,n,r,i);else if(2&c&&h.class!==p.class&&s(u,"class",null,p.class,i),4&c&&s(u,"style",h.style,p.style,i),8&c)for(var y=t.dynamicProps,b=0;b2&&void 0!==arguments[2]&&arguments[2],r=nY||J;if(r||tU){var i=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:tU._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&(0,m.isFunction)(t)?t.call(r&&r.proxy):t}}function tH(){return!!(nY||J||tU)}function tq(e,t,n,r){var i,o=(0,h._)(e.propsOptions,2),a=o[0],l=o[1],u=!1;if(t){for(var s in t)if(!(0,m.isReservedProp)(s)){var c=t[s],d=void 0;a&&(0,m.hasOwn)(a,d=(0,m.camelize)(s))?l&&l.includes(d)?(i||(i={}))[d]=c:n[d]=c:$(e.emitsOptions,s)||s in r&&c===r[s]||(r[s]=c,u=!0)}}if(l)for(var f=(0,g.toRaw)(n),p=i||m.EMPTY_OBJ,y=0;y4&&void 0!==arguments[4]&&arguments[4];if((0,m.isArray)(e)){e.forEach(function(e,o){return t2(e,t&&((0,m.isArray)(t)?t[o]:t),n,r,i)});return}if(!eL(r)||i){var o=4&r.shapeFlag?n2(r.component)||r.component.proxy:r.el,a=i?null:o,l=e.i,u=e.r,s=t&&t.r,c=l.refs===m.EMPTY_OBJ?l.refs={}:l.refs,d=l.setupState;if(null!=s&&s!==u&&((0,m.isString)(s)?(c[s]=null,(0,m.hasOwn)(d,s)&&(d[s]=null)):(0,g.isRef)(s)&&(s.value=null)),(0,m.isFunction)(u))b(u,l,12,[a,c]);else{var f=(0,m.isString)(u),h=(0,g.isRef)(u);if(f||h){var p=function(){if(e.f){var t=f?(0,m.hasOwn)(d,u)?d[u]:c[u]:u.value;i?(0,m.isArray)(t)&&(0,m.remove)(t,o):(0,m.isArray)(t)?t.includes(o)||t.push(o):f?(c[u]=[o],(0,m.hasOwn)(d,u)&&(d[u]=c[u])):(u.value=[o],e.k&&(c[e.k]=u.value))}else f?(c[u]=a,(0,m.hasOwn)(d,u)&&(d[u]=a)):h&&(u.value=a,e.k&&(c[e.k]=a))};a?(p.id=-1,t8(p,n)):p()}}}}var t3=!1,t4=function(e){return/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName},t5=function(e){return 8/* COMMENT */===e.nodeType};function t6(e){var t=e.mt,n=e.p,r=e.o,i=r.patchProp,o=r.createText,a=r.nextSibling,l=r.parentNode,u=r.remove,s=r.insert,c=r.createComment,d=function(n,r,i,u,c){var m=arguments.length>5&&void 0!==arguments[5]&&arguments[5],_=t5(n)&&"["===n.data,b=function(){return g(n,r,i,u,c,_)},w=r.type,x=r.ref,k=r.shapeFlag,S=r.patchFlag,C=n.nodeType;r.el=n,-2===S&&(m=!1,r.dynamicChildren=null);var E=null;switch(w){case nc:3/* TEXT */!==C?""===r.children?(s(r.el=o(""),l(n),n),E=n):E=b():(n.data!==r.children&&(t3=!0,n.data=r.children),E=a(n));break;case nd:E=8/* COMMENT */!==C||_?b():a(n);break;case nf:if(_&&(C=(n=a(n)).nodeType),1/* ELEMENT */===C||3/* TEXT */===C){E=n;for(var V=!r.children.length,N=0;N3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e!==t){e&&!nk(e,t)&&(r=eh(e),ea(e,i,o,!0),e=null),-2===t.patchFlag&&(u=!1,t.dynamicChildren=null);var s=t.type,c=t.ref,d=t.shapeFlag;switch(s){case nc:N(e,t,n,r);break;case nd:T(e,t,n,r);break;case nf:null==e&&A(t,n,r,a);break;case ns:X(e,t,n,r,i,o,a,l,u);break;default:1&d?I(e,t,n,r,i,o,a,l,u):6&d?G(e,t,n,r,i,o,a,l,u):64&d?s.process(e,t,n,r,i,o,a,l,u,ep):128&d&&s.process(e,t,n,r,i,o,a,l,u,ep)}null!=c&&i&&t2(c,e&&e.ref,o,t||e,!t)}},N=function(e,t,n,r){if(null==e)l(t.el=d(t.children),n,r);else{var i=t.el=e.el;t.children!==e.children&&y(i,t.children)}},T=function(e,t,n,r){null==e?l(t.el=f(t.children||""),n,r):t.el=e.el},A=function(e,t,n,r){var i;i=(0,h._)(S(e.children,t,n,r,e.el,e.anchor),2),e.el=i[0],e.anchor=i[1]},D=function(e,t,n){for(var r,i=e.el,o=e.anchor;i&&i!==o;)r=w(i),l(i,t,n),i=r;l(o,t,n)},R=function(e){for(var t,n=e.el,r=e.anchor;n&&n!==r;)t=w(n),u(n),n=t;u(r)},I=function(e,t,n,r,i,o,a,l,u){a=a||"svg"===t.type,null==e?B(t,n,r,i,o,a,l,u):F(e,t,i,o,a,l,u)},B=function(e,t,n,r,i,o,a,u){var d,f,h=e.type,p=e.props,g=e.shapeFlag,y=e.transition,b=e.dirs;if(d=e.el=c(e.type,o,p&&p.is,p),8&g?_(d,e.children):16&g&&j(e.children,d,null,r,i,o&&"foreignObject"!==h,a,u),b&&eE(e,null,r,"created"),L(d,e,e.scopeId,a,r),p){for(var w in p)"value"===w||(0,m.isReservedProp)(w)||s(d,w,null,p[w],o,e.children,r,i,ef);"value"in p&&s(d,"value",null,p.value),(f=p.onVnodeBeforeMount)&&nj(f,r,e)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(d,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(d,"__vueParentComponent",{value:r,enumerable:!1})),b&&eE(e,null,r,"beforeMount");var x=(!i||i&&!i.pendingBranch)&&y&&!y.persisted;x&&y.beforeEnter(d),l(d,t,n),((f=p&&p.onVnodeMounted)||x||b)&&t8(function(){f&&nj(f,r,e),x&&y.enter(d),b&&eE(e,null,r,"mounted")},i)},L=function(e,t,n,r,i){if(n&&k(e,n),r)for(var o=0;o8&&void 0!==arguments[8]?arguments[8]:0,s=u;s0){if(16&c)W(u,t,h,p,n,r,i);else if(2&c&&h.class!==p.class&&s(u,"class",null,p.class,i),4&c&&s(u,"style",h.style,p.style,i),8&c)for(var y=t.dynamicProps,b=0;b1?u.forEach(function(t){return t(e)}):u[0](e)};var nW=function(e){l(e),e.scope.on()},nK=function(){nY&&nY.scope.off(),l(null)};function nX(e){return 4&e.vnode.shapeFlag}var nG=!1;function n$(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];nG=t;var n=e.vnode,r=n.props,i=n.children,o=nX(e);(function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i={},o={};for(var a in(0,m.def)(o,nC,1),e.propsDefaults=/* @__PURE__ */Object.create(null),tq(e,t,i,o),e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:(0,g.shallowReactive)(i):e.type.props?e.props=i:e.props=o,e.attrs=o})(e,r,o,t),t0(e,i);var a=o?function(e,t){var n=e.type;e.accessCache=/* @__PURE__ */Object.create(null),e.proxy=(0,g.markRaw)(new Proxy(e.ctx,td));var r=n.setup;if(r){var i=e.setupContext=r.length>1?n1(e):null;nW(e),(0,g.pauseTracking)();var o=b(r,e,0,[e.props,i]);if((0,g.resetTracking)(),nK(),(0,m.isPromise)(o)){if(o.then(nK,nK),t)return o.then(function(n){nJ(e,n,t)}).catch(function(t){x(t,e,0)});e.asyncDep=o}else nJ(e,o,t)}else n0(e,t)}(e,t):void 0;return nG=!1,a}function nJ(e,t,n){(0,m.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,m.isObject)(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=(0,g.proxyRefs)(t)),n0(e,n)}function nZ(e){s=e,c=function(e){e.render._rc&&(e.withProxy=new Proxy(e.ctx,tf))}}var nQ=function(){return!s};function n0(e,t,n){var r=e.type;if(!e.render){if(!t&&s&&!r.render){var i=r.template||tD(e).template;if(i){var o=e.appContext.config,a=o.isCustomElement,l=o.compilerOptions,u=r.delimiters,d=r.compilerOptions,f=(0,m.extend)((0,m.extend)({isCustomElement:a,delimiters:u},l),d);r.render=s(i,f)}}e.render=r.render||m.NOOP,c&&c(e)}__VUE_OPTIONS_API__&&(nW(e),(0,g.pauseTracking)(),function(e){var t=function(e,t){(0,m.isArray)(t)?t.forEach(function(t){return e(t.bind(r))}):t&&e(t.bind(r))},n=tD(e),r=e.proxy,i=e.ctx;tT=!1,n.beforeCreate&&tA(n.beforeCreate,e,"bc");var o=n.data,a=n.computed,l=n.methods,u=n.watch,s=n.provide,c=n.inject,d=n.created,f=n.beforeMount,h=n.mounted,p=n.beforeUpdate,y=n.updated,_=n.activated,b=n.deactivated,w=(n.beforeDestroy,n.beforeUnmount),x=(n.destroyed,n.unmounted),k=n.render,S=n.renderTracked,C=n.renderTriggered,E=n.errorCaptured,V=n.serverPrefetch,N=n.expose,T=n.inheritAttrs,A=n.components,D=n.directives;if(n.filters,c&&function(e,t){for(var n in arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.NOOP,(0,m.isArray)(e)&&(e=tB(e)),e)!function(n){var r=e[n],i=void 0;i=(0,m.isObject)(r)?"default"in r?tY(r.from||n,r.default,!0):tY(r.from||n):tY(r),(0,g.isRef)(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){return i.value},set:function(e){return i.value=e}}):t[n]=i}(n)}(c,i,null),l)for(var R in l){var O=l[R];(0,m.isFunction)(O)&&(i[R]=O.bind(r))}if(o){var I=o.call(r,r);(0,m.isObject)(I)&&(e.data=(0,g.reactive)(I))}if(tT=!0,a)for(var B in a)!function(e){var t=a[e],n=n5({get:(0,m.isFunction)(t)?t.bind(r,r):(0,m.isFunction)(t.get)?t.get.bind(r,r):m.NOOP,set:!(0,m.isFunction)(t)&&(0,m.isFunction)(t.set)?t.set.bind(r):m.NOOP});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:function(){return n.value},set:function(e){return n.value=e}})}(B);if(u)for(var P in u)(function e(t,n,r,i){var o=i.includes(".")?ek(r,i):function(){return r[i]};if((0,m.isString)(t)){var a=n[t];(0,m.isFunction)(a)&&ew(o,a,void 0)}else if((0,m.isFunction)(t))ew(o,t.bind(r),void 0);else if((0,m.isObject)(t)){if((0,m.isArray)(t))t.forEach(function(t){return e(t,n,r,i)});else{var l=(0,m.isFunction)(t.handler)?t.handler.bind(r):n[t.handler];(0,m.isFunction)(l)&&ew(o,l,t)}}})(u[P],i,r,P);if(s){var M=(0,m.isFunction)(s)?s.call(r):s;Reflect.ownKeys(M).forEach(function(e){tz(e,M[e])})}if(d&&tA(d,e,"c"),t(eJ,f),t(eZ,h),t(eQ,p),t(e0,y),t(eH,_),t(eq,b),t(e6,E),t(e4,S),t(e5,C),t(e1,w),t(e2,x),t(e3,V),(0,m.isArray)(N)){if(N.length){var L=e.exposed||(e.exposed={});N.forEach(function(e){Object.defineProperty(L,e,{get:function(){return r[e]},set:function(t){return r[e]=t}})})}else e.exposed||(e.exposed={})}k&&e.render===m.NOOP&&(e.render=k),null!=T&&(e.inheritAttrs=T),A&&(e.components=A),D&&(e.directives=D)}(e),(0,g.resetTracking)(),nK())}function n1(e){return{get attrs(){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:function(t,n){return(0,g.track)(e,"get","$attrs"),t[n]}}))},slots:e.slots,emit:e.emit,expose:function(t){e.exposed=t||{}}}}function n2(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,g.proxyRefs)((0,g.markRaw)(e.exposed)),{get:function(t,n){return n in t?t[n]:n in ts?ts[n](e):void 0},has:function(e,t){return t in e||t in ts}}))}function n3(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,m.isFunction)(e)?e.displayName||e.name:e.name||t&&e.__name}var n5=function(e,t){return(0,g.computed)(e,t,nG)};function n4(e,t,n){var r=arguments.length;return 2!==r?(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&nx(n)&&(n=[n]),nT(e,t,n)):!(0,m.isObject)(t)||(0,m.isArray)(t)?nT(e,null,t):nx(t)?nT(e,null,[t]):nT(e,t)}var n6=Symbol.for("v-scx"),n8=function(){return tY(n6)};function n7(){}function n9(e,t,n,r){var i=n[r];if(i&&re(i,e))return i;var o=t();return o.memo=e.slice(),n[r]=o}function re(e,t){var n=e.memo;if(n.length!=t.length)return!1;for(var r=0;r0&&nv&&nv.push(e),!0}var rt="3.3.4",rn={createComponentInstance:nz,setupComponent:n$,renderComponentRoot:ei,setCurrentRenderingInstance:Q,isVNode:nx,normalizeVNode:nB},rr=null,ri=null}),f.register("bNhjt",function(e,n){t(e.exports,"EffectScope",function(){return y}),t(e.exports,"effectScope",function(){return _}),t(e.exports,"getCurrentScope",function(){return w}),t(e.exports,"onScopeDispose",function(){return x}),t(e.exports,"ReactiveEffect",function(){return O}),t(e.exports,"effect",function(){return B}),t(e.exports,"stop",function(){return P}),t(e.exports,"pauseTracking",function(){return j}),t(e.exports,"resetTracking",function(){return F}),t(e.exports,"track",function(){return U}),t(e.exports,"trigger",function(){return Y}),t(e.exports,"toRaw",function(){return eY}),t(e.exports,"isRef",function(){return eG}),t(e.exports,"readonly",function(){return eP}),t(e.exports,"reactive",function(){return eI}),t(e.exports,"isReadonly",function(){return eF}),t(e.exports,"isShallow",function(){return eU}),t(e.exports,"shallowReactive",function(){return eB}),t(e.exports,"shallowReadonly",function(){return eM}),t(e.exports,"isReactive",function(){return ej}),t(e.exports,"isProxy",function(){return ez}),t(e.exports,"markRaw",function(){return eH}),t(e.exports,"ref",function(){return e$}),t(e.exports,"shallowRef",function(){return eJ}),t(e.exports,"triggerRef",function(){return e0}),t(e.exports,"unref",function(){return e1}),t(e.exports,"toValue",function(){return e2}),t(e.exports,"proxyRefs",function(){return e5}),t(e.exports,"customRef",function(){return e6}),t(e.exports,"toRefs",function(){return e8}),t(e.exports,"toRef",function(){return te}),t(e.exports,"computed",function(){return tr});var r,i,o,a,l,u,s,c=f("disEZ"),d=f("fJNo6"),h=f("h8xva"),p=f("6wEIk"),g=f("2Yjkq"),m=f("9Nw75"),y=/*#__PURE__*/function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,c._)(this,e),this.detached=t,/** +isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=G.bind(null,o),e.ce&&e.ce(o),o}var nY=null,nH=function(){return nY||J},nq="__VUE_INSTANCE_SETTERS__";(u=(0,m.getGlobalThis)()[nq])||(u=(0,m.getGlobalThis)()[nq]=[]),u.push(function(e){return nY=e}),l=function(e){u.length>1?u.forEach(function(t){return t(e)}):u[0](e)};var nW=function(e){l(e),e.scope.on()},nK=function(){nY&&nY.scope.off(),l(null)};function nX(e){return 4&e.vnode.shapeFlag}var nG=!1;function n$(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];nG=t;var n=e.vnode,r=n.props,i=n.children,o=nX(e);(function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i={},o={};for(var a in(0,m.def)(o,nC,1),e.propsDefaults=/* @__PURE__ */Object.create(null),tq(e,t,i,o),e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:(0,g.shallowReactive)(i):e.type.props?e.props=i:e.props=o,e.attrs=o})(e,r,o,t),t0(e,i);var a=o?function(e,t){var n=e.type;e.accessCache=/* @__PURE__ */Object.create(null),e.proxy=(0,g.markRaw)(new Proxy(e.ctx,td));var r=n.setup;if(r){var i=e.setupContext=r.length>1?n1(e):null;nW(e),(0,g.pauseTracking)();var o=b(r,e,0,[e.props,i]);if((0,g.resetTracking)(),nK(),(0,m.isPromise)(o)){if(o.then(nK,nK),t)return o.then(function(n){nJ(e,n,t)}).catch(function(t){x(t,e,0)});e.asyncDep=o}else nJ(e,o,t)}else n0(e,t)}(e,t):void 0;return nG=!1,a}function nJ(e,t,n){(0,m.isFunction)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,m.isObject)(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=(0,g.proxyRefs)(t)),n0(e,n)}function nZ(e){s=e,c=function(e){e.render._rc&&(e.withProxy=new Proxy(e.ctx,tf))}}var nQ=function(){return!s};function n0(e,t,n){var r=e.type;if(!e.render){if(!t&&s&&!r.render){var i=r.template||tD(e).template;if(i){var o=e.appContext.config,a=o.isCustomElement,l=o.compilerOptions,u=r.delimiters,d=r.compilerOptions,f=(0,m.extend)((0,m.extend)({isCustomElement:a,delimiters:u},l),d);r.render=s(i,f)}}e.render=r.render||m.NOOP,c&&c(e)}__VUE_OPTIONS_API__&&(nW(e),(0,g.pauseTracking)(),function(e){var t=function(e,t){(0,m.isArray)(t)?t.forEach(function(t){return e(t.bind(r))}):t&&e(t.bind(r))},n=tD(e),r=e.proxy,i=e.ctx;tT=!1,n.beforeCreate&&tA(n.beforeCreate,e,"bc");var o=n.data,a=n.computed,l=n.methods,u=n.watch,s=n.provide,c=n.inject,d=n.created,f=n.beforeMount,h=n.mounted,p=n.beforeUpdate,y=n.updated,_=n.activated,b=n.deactivated,w=(n.beforeDestroy,n.beforeUnmount),x=(n.destroyed,n.unmounted),k=n.render,S=n.renderTracked,C=n.renderTriggered,E=n.errorCaptured,V=n.serverPrefetch,N=n.expose,T=n.inheritAttrs,A=n.components,D=n.directives;if(n.filters,c&&function(e,t){for(var n in arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.NOOP,(0,m.isArray)(e)&&(e=tB(e)),e)!function(n){var r=e[n],i=void 0;i=(0,m.isObject)(r)?"default"in r?tY(r.from||n,r.default,!0):tY(r.from||n):tY(r),(0,g.isRef)(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){return i.value},set:function(e){return i.value=e}}):t[n]=i}(n)}(c,i,null),l)for(var R in l){var O=l[R];(0,m.isFunction)(O)&&(i[R]=O.bind(r))}if(o){var I=o.call(r,r);(0,m.isObject)(I)&&(e.data=(0,g.reactive)(I))}if(tT=!0,a)for(var B in a)!function(e){var t=a[e],n=n4({get:(0,m.isFunction)(t)?t.bind(r,r):(0,m.isFunction)(t.get)?t.get.bind(r,r):m.NOOP,set:!(0,m.isFunction)(t)&&(0,m.isFunction)(t.set)?t.set.bind(r):m.NOOP});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:function(){return n.value},set:function(e){return n.value=e}})}(B);if(u)for(var P in u)(function e(t,n,r,i){var o=i.includes(".")?ek(r,i):function(){return r[i]};if((0,m.isString)(t)){var a=n[t];(0,m.isFunction)(a)&&ew(o,a,void 0)}else if((0,m.isFunction)(t))ew(o,t.bind(r),void 0);else if((0,m.isObject)(t)){if((0,m.isArray)(t))t.forEach(function(t){return e(t,n,r,i)});else{var l=(0,m.isFunction)(t.handler)?t.handler.bind(r):n[t.handler];(0,m.isFunction)(l)&&ew(o,l,t)}}})(u[P],i,r,P);if(s){var M=(0,m.isFunction)(s)?s.call(r):s;Reflect.ownKeys(M).forEach(function(e){tz(e,M[e])})}if(d&&tA(d,e,"c"),t(eJ,f),t(eZ,h),t(eQ,p),t(e0,y),t(eH,_),t(eq,b),t(e6,E),t(e5,S),t(e4,C),t(e1,w),t(e2,x),t(e3,V),(0,m.isArray)(N)){if(N.length){var L=e.exposed||(e.exposed={});N.forEach(function(e){Object.defineProperty(L,e,{get:function(){return r[e]},set:function(t){return r[e]=t}})})}else e.exposed||(e.exposed={})}k&&e.render===m.NOOP&&(e.render=k),null!=T&&(e.inheritAttrs=T),A&&(e.components=A),D&&(e.directives=D)}(e),(0,g.resetTracking)(),nK())}function n1(e){return{get attrs(){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:function(t,n){return(0,g.track)(e,"get","$attrs"),t[n]}}))},slots:e.slots,emit:e.emit,expose:function(t){e.exposed=t||{}}}}function n2(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,g.proxyRefs)((0,g.markRaw)(e.exposed)),{get:function(t,n){return n in t?t[n]:n in ts?ts[n](e):void 0},has:function(e,t){return t in e||t in ts}}))}function n3(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,m.isFunction)(e)?e.displayName||e.name:e.name||t&&e.__name}var n4=function(e,t){return(0,g.computed)(e,t,nG)};function n5(e,t,n){var r=arguments.length;return 2!==r?(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&nx(n)&&(n=[n]),nT(e,t,n)):!(0,m.isObject)(t)||(0,m.isArray)(t)?nT(e,null,t):nx(t)?nT(e,null,[t]):nT(e,t)}var n6=Symbol.for("v-scx"),n8=function(){return tY(n6)};function n7(){}function n9(e,t,n,r){var i=n[r];if(i&&re(i,e))return i;var o=t();return o.memo=e.slice(),n[r]=o}function re(e,t){var n=e.memo;if(n.length!=t.length)return!1;for(var r=0;r0&&nv&&nv.push(e),!0}var rt="3.3.4",rn={createComponentInstance:nz,setupComponent:n$,renderComponentRoot:ei,setCurrentRenderingInstance:Q,isVNode:nx,normalizeVNode:nB},rr=null,ri=null}),f.register("bNhjt",function(e,n){t(e.exports,"EffectScope",function(){return y}),t(e.exports,"effectScope",function(){return _}),t(e.exports,"getCurrentScope",function(){return w}),t(e.exports,"onScopeDispose",function(){return x}),t(e.exports,"ReactiveEffect",function(){return O}),t(e.exports,"effect",function(){return B}),t(e.exports,"stop",function(){return P}),t(e.exports,"pauseTracking",function(){return j}),t(e.exports,"resetTracking",function(){return F}),t(e.exports,"track",function(){return U}),t(e.exports,"trigger",function(){return Y}),t(e.exports,"toRaw",function(){return eY}),t(e.exports,"isRef",function(){return eG}),t(e.exports,"readonly",function(){return eP}),t(e.exports,"reactive",function(){return eI}),t(e.exports,"isReadonly",function(){return eF}),t(e.exports,"isShallow",function(){return eU}),t(e.exports,"shallowReactive",function(){return eB}),t(e.exports,"shallowReadonly",function(){return eM}),t(e.exports,"isReactive",function(){return ej}),t(e.exports,"isProxy",function(){return ez}),t(e.exports,"markRaw",function(){return eH}),t(e.exports,"ref",function(){return e$}),t(e.exports,"shallowRef",function(){return eJ}),t(e.exports,"triggerRef",function(){return e0}),t(e.exports,"unref",function(){return e1}),t(e.exports,"toValue",function(){return e2}),t(e.exports,"proxyRefs",function(){return e4}),t(e.exports,"customRef",function(){return e6}),t(e.exports,"toRefs",function(){return e8}),t(e.exports,"toRef",function(){return te}),t(e.exports,"computed",function(){return tr});var r,i,o,a,l,u,s,c=f("disEZ"),d=f("fJNo6"),h=f("h8xva"),p=f("6wEIk"),g=f("2Yjkq"),m=f("9Nw75"),y=/*#__PURE__*/function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,c._)(this,e),this.detached=t,/** * @internal */this._active=!0,/** * @internal @@ -117,7 +117,7 @@ isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:nu * This should only be called on non-detached scopes * @internal */key:"off",value:function(){u=this.parent}},{key:"stop",value:function(e){if(this._active){var t,n;for(t=0,n=this.effects.length;t1&&void 0!==arguments[1]?arguments[1]:u;t&&t.active&&t.effects.push(e)}function w(){return u}function x(e){u&&u.cleanups.push(e)}var k=function(e){var t=new Set(e);return t.w=0,t.n=0,t},S=function(e){return(e.w&A)>0},C=function(e){return(e.n&A)>0},E=function(e){var t=e.deps;if(t.length)for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0;(0,c._)(this,e),this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,b(this,r)}return(0,d._)(e,[{key:"run",value:function(){if(!this.active)return this.fn();for(var e=s,t=M;e;){if(e===this)return;e=e.parent}try{return this.parent=s,s=this,M=!0,A=1<<++T,T<=30?E(this):I(this),this.fn()}finally{T<=30&&V(this),A=1<<--T,s=this.parent,M=t,this.parent=void 0,this.deferStop&&this.stop()}}},{key:"stop",value:function(){s===this?this.deferStop=!0:this.active&&(I(this),this.onStop&&this.onStop(),this.active=!1)}}]),e}();function I(e){var t=e.deps;if(t.length){for(var n=0;n=u)&&l.push(e)})}else switch(void 0!==n&&l.push(a.get(n)),t){case"add":(0,m.isArray)(e)?(0,m.isIntegerKey)(n)&&l.push(a.get("length")):(l.push(a.get(D)),(0,m.isMap)(e)&&l.push(a.get(R)));break;case"delete":!(0,m.isArray)(e)&&(l.push(a.get(D)),(0,m.isMap)(e)&&l.push(a.get(R)));break;case"set":(0,m.isMap)(e)&&l.push(a.get(D))}if(1===l.length)l[0]&&H(l[0]);else{var s=[],c=!0,d=!1,f=void 0;try{for(var h,p=l[Symbol.iterator]();!(c=(h=p.next()).done);c=!0){var y=h.value;y&&s.push.apply(s,(0,g._)(y))}}catch(e){d=!0,f=e}finally{try{c||null==p.return||p.return()}finally{if(d)throw f}}H(k(s))}}}function H(e,t){var n=(0,m.isArray)(e)?e:(0,g._)(e),r=!0,i=!1,o=void 0;try{for(var a,l=n[Symbol.iterator]();!(r=(a=l.next()).done);r=!0){var u=a.value;u.computed&&q(u,t)}}catch(e){i=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw o}}var s=!0,c=!1,d=void 0;try{for(var f,h=n[Symbol.iterator]();!(s=(f=h.next()).done);s=!0){var p=f.value;p.computed||q(p,t)}}catch(e){c=!0,d=e}finally{try{s||null==h.return||h.return()}finally{if(c)throw d}}}function q(e,t){(e!==s||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}var W=/* @__PURE__ */(0,m.makeMap)("__proto__,__v_isRef,__isVue"),K=new Set(/* @__PURE__ */Object.getOwnPropertyNames(Symbol).filter(function(e){return"arguments"!==e&&"caller"!==e}).map(function(e){return Symbol[e]}).filter(m.isSymbol)),X=/* @__PURE__ */ee(),G=/* @__PURE__ */ee(!1,!0),$=/* @__PURE__ */ee(!0),J=/* @__PURE__ */ee(!0,!0),Z=(r={},["includes","indexOf","lastIndexOf"].forEach(function(e){r[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&i===(e?t?eO:eR:t?eD:eA).get(n))return n;var o=(0,m.isArray)(n);if(!e){if(o&&(0,m.hasOwn)(Z,r))return Reflect.get(Z,r,i);if("hasOwnProperty"===r)return Q}var a=Reflect.get(n,r,i);return((0,m.isSymbol)(r)?K.has(r):W(r))?a:(e||U(n,"get",r),t)?a:eG(a)?o&&(0,m.isIntegerKey)(r)?a:a.value:(0,m.isObject)(a)?e?eP(a):eI(a):a}}var et=/* @__PURE__ */er(),en=/* @__PURE__ */er(!0);function er(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,r,i){var o=t[n];if(eF(o)&&eG(o)&&!eG(r))return!1;if(!e&&(eU(r)||eF(r)||(o=eY(o),r=eY(r)),!(0,m.isArray)(t)&&eG(o)&&!eG(r)))return o.value=r,!0;var a=(0,m.isArray)(t)&&(0,m.isIntegerKey)(n)?Number(n)2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=eY(e=e.__v_raw),o=eY(t);n||(t!==o&&U(i,"get",t),U(i,"get",o));var a=es(i).has,l=r?eu:n?eW:eq;return a.call(i,t)?l(e.get(t)):a.call(i,o)?l(e.get(o)):void(e!==i&&e.get(t))}function ed(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.__v_raw,r=eY(n),i=eY(e);return t||(e!==i&&U(r,"has",e),U(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function ef(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,t||U(eY(e),"iterate",D),Reflect.get(e,"size",e)}function eh(e){e=eY(e);var t=eY(this);return es(t).has.call(t,e)||(t.add(e),Y(t,"add",e,e)),this}function ev(e,t){t=eY(t);var n=eY(this),r=es(n),i=r.has,o=r.get,a=i.call(n,e);a||(e=eY(e),a=i.call(n,e));var l=o.call(n,e);return n.set(e,t),a?(0,m.hasChanged)(t,l)&&Y(n,"set",e,t,l):Y(n,"add",e,t),this}function ep(e){var t=eY(this),n=es(t),r=n.has,i=n.get,o=r.call(t,e);o||(e=eY(e),o=r.call(t,e));var a=i?i.call(t,e):void 0,l=t.delete(e);return o&&Y(t,"delete",e,void 0,a),l}function eg(){var e=eY(this),t=0!==e.size,n=e.clear();return t&&Y(e,"clear",void 0,void 0,void 0),n}function em(e,t){return function(n,r){var i=this,o=i.__v_raw,a=eY(o),l=t?eu:e?eW:eq;return e||U(a,"iterate",D),o.forEach(function(e,t){return n.call(r,l(e),l(t),i)})}}function ey(e,t,n){return function(){for(var r=arguments.length,i=Array(r),o=0;o1?tt(e,t,n):e$(e)}function tt(e,t,n){var r=e[t];return eG(r)?r:new e7(e,t,n)}var tn=/*#__PURE__*/function(){function e(t,n,r,i){var o=this;(0,c._)(this,e),this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new O(t,function(){o._dirty||(o._dirty=!0,eX(o))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}return(0,d._)(e,[{key:"value",get:function(){var e=eY(this);return eK(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value},set:function(e){this._setter(e)}}]),e}();function tr(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=(0,m.isFunction)(e);return o?(n=e,r=m.NOOP):(n=e.get,r=e.set),new tn(n,r,o||!r,i)}}),f.register("9Nw75",function(e,n){t(e.exports,"makeMap",function(){return d}),t(e.exports,"EMPTY_OBJ",function(){return h}),t(e.exports,"EMPTY_ARR",function(){return p}),t(e.exports,"NOOP",function(){return g}),t(e.exports,"NO",function(){return m}),t(e.exports,"isOn",function(){return _}),t(e.exports,"isModelListener",function(){return b}),t(e.exports,"extend",function(){return w}),t(e.exports,"remove",function(){return x}),t(e.exports,"hasOwn",function(){return S}),t(e.exports,"isArray",function(){return C}),t(e.exports,"isMap",function(){return E}),t(e.exports,"isSet",function(){return V}),t(e.exports,"isRegExp",function(){return T}),t(e.exports,"isFunction",function(){return A}),t(e.exports,"isString",function(){return D}),t(e.exports,"isSymbol",function(){return R}),t(e.exports,"isObject",function(){return O}),t(e.exports,"isPromise",function(){return I}),t(e.exports,"toRawType",function(){return M}),t(e.exports,"isPlainObject",function(){return L}),t(e.exports,"isIntegerKey",function(){return j}),t(e.exports,"isReservedProp",function(){return F}),t(e.exports,"isBuiltInDirective",function(){return U}),t(e.exports,"camelize",function(){return H}),t(e.exports,"hyphenate",function(){return W}),t(e.exports,"capitalize",function(){return K}),t(e.exports,"toHandlerKey",function(){return X}),t(e.exports,"hasChanged",function(){return G}),t(e.exports,"invokeArrayFns",function(){return $}),t(e.exports,"def",function(){return J}),t(e.exports,"looseToNumber",function(){return Z}),t(e.exports,"toNumber",function(){return Q}),t(e.exports,"getGlobalThis",function(){return ee}),t(e.exports,"isGloballyWhitelisted",function(){return et}),t(e.exports,"normalizeStyle",function(){return en}),t(e.exports,"normalizeClass",function(){return ea}),t(e.exports,"normalizeProps",function(){return el}),t(e.exports,"isHTMLTag",function(){return eu}),t(e.exports,"isSVGTag",function(){return es}),t(e.exports,"isSpecialBooleanAttr",function(){return ec}),t(e.exports,"includeBooleanAttr",function(){return ed}),t(e.exports,"looseEqual",function(){return ef}),t(e.exports,"looseIndexOf",function(){return eh}),t(e.exports,"toDisplayString",function(){return ev});var r,i,o,a=f("h8xva"),u=f("6wEIk"),s=f("2Yjkq"),c=f("jZ8XT");function d(e,t){for(var n=/* @__PURE__ */Object.create(null),r=e.split(","),i=0;i-1&&e.splice(n,1)},k=Object.prototype.hasOwnProperty,S=function(e,t){return k.call(e,t)},C=Array.isArray,E=function(e){return"[object Map]"===P(e)},V=function(e){return"[object Set]"===P(e)},N=function(e){return"[object Date]"===P(e)},T=function(e){return"[object RegExp]"===P(e)},A=function(e){return"function"==typeof e},D=function(e){return"string"==typeof e},R=function(e){return(void 0===e?"undefined":(0,c._)(e))==="symbol"},O=function(e){return null!==e&&"object"==typeof e},I=function(e){return O(e)&&A(e.then)&&A(e.catch)},B=Object.prototype.toString,P=function(e){return B.call(e)},M=function(e){return P(e).slice(8,-1)},L=function(e){return"[object Object]"===P(e)},j=function(e){return D(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e},F=/* @__PURE__ */d(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),U=/* @__PURE__ */d("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),z=function(e){var t=/* @__PURE__ */Object.create(null);return function(n){return t[n]||(t[n]=e(n))}},Y=/-(\w)/g,H=z(function(e){return e.replace(Y,function(e,t){return t?t.toUpperCase():""})}),q=/\B([A-Z])/g,W=z(function(e){return e.replace(q,"-$1").toLowerCase()}),K=z(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),X=z(function(e){return e?"on".concat(K(e)):""}),G=function(e,t){return!Object.is(e,t)},$=function(e,t){for(var n=0;n1&&(t[n[0].trim()]=n[1].trim())}}),t}(r):en(r);if(i)for(var o in i)t[o]=i[o]}return t}if(D(e)||O(e))return e}var er=/;(?![^(]*\))/g,ei=/:([^]+)/,eo=/\/\*[^]*?\*\//g;function ea(e){var t="";if(D(e))t=e;else if(C(e))for(var n=0;n")]=i,e},{})):V(t)?(0,a._)({},"Set(".concat(t.size,")"),(0,s._)(t.values())):!O(t)||C(t)||L(t)?t:String(t)}}),f.register("aayhd",function(e,n){u(e.exports),t(e.exports,"default",function(){return l});var r=f("xJRWs"),i=f("3XT9C"),o=f("d6xbH"),a=f("9BzA6"),l={data:function(){var e=this,t=new o.Database;return t.setObservable("*",function(t){e.classrooms=t}),{database:t,classrooms:[],peerID:(0,a.getPeerID)()}},methods:{deleteClass:function(e){this.database.drop(e)},forkClass:function(e){console.log(e=(0,a.clone)(e));var t=(0,a.infoHash)();e.data.createdBy=(0,a.getPeerID)(),e.id=t,this.database.put({id:t,data:e.data,timestamp:Date.now()}),window.location.search="?/classroom/".concat(t)},createClass:function(){return(0,r._)(function(){var e,t;return(0,i.__generator)(this,function(n){return t={id:e=(0,a.infoHash)(),createdBy:(0,a.getPeerID)(),dateCreated:new Date().getTime(),name:"My New Class",meta:{logo:"",description:"",selfAssign:!1,defaultNumberOfRooms:0},members:{teacher:[],student:[]},modules:[{url:"https://edrys-org.github.io/module-reference/",config:"",studentConfig:"",teacherConfig:"",stationConfig:"",width:"full",height:"tall"}]},this.database.put({id:e,data:t,timestamp:Date.now()}),window.location.search="?/classroom/".concat(e),[2]})}).apply(this)}}}}),f.register("xJRWs",function(e,n){function r(e,t,n,r,i,o,a){try{var l=e[o](a),u=l.value}catch(e){n(e);return}l.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var a=e.apply(t,n);function l(e){r(a,i,o,l,u,"next",e)}function u(e){r(a,i,o,l,u,"throw",e)}l(void 0)})}}t(e.exports,"_",function(){return i})}),f.register("3XT9C",function(e,n){function r(e,t){var n,r,i,o,a=function(e){return function(t){return l([e,t])}},l=function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}t(e.exports,"__generator",function(){return r}),t(e.exports,"__values",function(){return i}),f("jZ8XT"),"function"==typeof SuppressedError&&SuppressedError}),f.register("d6xbH",function(e,n){t(e.exports,"Database",function(){return u});var r=f("xJRWs"),i=f("disEZ"),o=f("fJNo6"),a=f("3XT9C"),l=f("3Zw54"),u=/*#__PURE__*/function(){function e(){(0,i._)(this,e),this.observables={},this.db=new l.Dexie("EdrysLite"),this.db.version(1).stores({data:"\n &id,\n timestamp,\n data"}),this.db.open().then(function(e){// Database opened successfully +next:function(){var e=d.next(),t=e.value,n=e.done;return n?{value:t,done:n}:{value:s?[f(t[0]),f(t[1])]:f(t),done:n}}},Symbol.iterator,function(){return this})}}function e_(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r1?tt(e,t,n):e$(e)}function tt(e,t,n){var r=e[t];return eG(r)?r:new e7(e,t,n)}var tn=/*#__PURE__*/function(){function e(t,n,r,i){var o=this;(0,c._)(this,e),this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new O(t,function(){o._dirty||(o._dirty=!0,eX(o))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}return(0,d._)(e,[{key:"value",get:function(){var e=eY(this);return eK(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value},set:function(e){this._setter(e)}}]),e}();function tr(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=(0,m.isFunction)(e);return o?(n=e,r=m.NOOP):(n=e.get,r=e.set),new tn(n,r,o||!r,i)}}),f.register("9Nw75",function(e,n){t(e.exports,"makeMap",function(){return d}),t(e.exports,"EMPTY_OBJ",function(){return h}),t(e.exports,"EMPTY_ARR",function(){return p}),t(e.exports,"NOOP",function(){return g}),t(e.exports,"NO",function(){return m}),t(e.exports,"isOn",function(){return _}),t(e.exports,"isModelListener",function(){return b}),t(e.exports,"extend",function(){return w}),t(e.exports,"remove",function(){return x}),t(e.exports,"hasOwn",function(){return S}),t(e.exports,"isArray",function(){return C}),t(e.exports,"isMap",function(){return E}),t(e.exports,"isSet",function(){return V}),t(e.exports,"isRegExp",function(){return T}),t(e.exports,"isFunction",function(){return A}),t(e.exports,"isString",function(){return D}),t(e.exports,"isSymbol",function(){return R}),t(e.exports,"isObject",function(){return O}),t(e.exports,"isPromise",function(){return I}),t(e.exports,"toRawType",function(){return M}),t(e.exports,"isPlainObject",function(){return L}),t(e.exports,"isIntegerKey",function(){return j}),t(e.exports,"isReservedProp",function(){return F}),t(e.exports,"isBuiltInDirective",function(){return U}),t(e.exports,"camelize",function(){return H}),t(e.exports,"hyphenate",function(){return W}),t(e.exports,"capitalize",function(){return K}),t(e.exports,"toHandlerKey",function(){return X}),t(e.exports,"hasChanged",function(){return G}),t(e.exports,"invokeArrayFns",function(){return $}),t(e.exports,"def",function(){return J}),t(e.exports,"looseToNumber",function(){return Z}),t(e.exports,"toNumber",function(){return Q}),t(e.exports,"getGlobalThis",function(){return ee}),t(e.exports,"isGloballyWhitelisted",function(){return et}),t(e.exports,"normalizeStyle",function(){return en}),t(e.exports,"normalizeClass",function(){return ea}),t(e.exports,"normalizeProps",function(){return el}),t(e.exports,"isHTMLTag",function(){return eu}),t(e.exports,"isSVGTag",function(){return es}),t(e.exports,"isSpecialBooleanAttr",function(){return ec}),t(e.exports,"includeBooleanAttr",function(){return ed}),t(e.exports,"looseEqual",function(){return ef}),t(e.exports,"looseIndexOf",function(){return eh}),t(e.exports,"toDisplayString",function(){return ev});var r,i,o,a=f("h8xva"),u=f("6wEIk"),s=f("2Yjkq"),c=f("jZ8XT");function d(e,t){for(var n=/* @__PURE__ */Object.create(null),r=e.split(","),i=0;i-1&&e.splice(n,1)},k=Object.prototype.hasOwnProperty,S=function(e,t){return k.call(e,t)},C=Array.isArray,E=function(e){return"[object Map]"===P(e)},V=function(e){return"[object Set]"===P(e)},N=function(e){return"[object Date]"===P(e)},T=function(e){return"[object RegExp]"===P(e)},A=function(e){return"function"==typeof e},D=function(e){return"string"==typeof e},R=function(e){return(void 0===e?"undefined":(0,c._)(e))==="symbol"},O=function(e){return null!==e&&"object"==typeof e},I=function(e){return O(e)&&A(e.then)&&A(e.catch)},B=Object.prototype.toString,P=function(e){return B.call(e)},M=function(e){return P(e).slice(8,-1)},L=function(e){return"[object Object]"===P(e)},j=function(e){return D(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e},F=/* @__PURE__ */d(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),U=/* @__PURE__ */d("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),z=function(e){var t=/* @__PURE__ */Object.create(null);return function(n){return t[n]||(t[n]=e(n))}},Y=/-(\w)/g,H=z(function(e){return e.replace(Y,function(e,t){return t?t.toUpperCase():""})}),q=/\B([A-Z])/g,W=z(function(e){return e.replace(q,"-$1").toLowerCase()}),K=z(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),X=z(function(e){return e?"on".concat(K(e)):""}),G=function(e,t){return!Object.is(e,t)},$=function(e,t){for(var n=0;n1&&(t[n[0].trim()]=n[1].trim())}}),t}(r):en(r);if(i)for(var o in i)t[o]=i[o]}return t}if(D(e)||O(e))return e}var er=/;(?![^(]*\))/g,ei=/:([^]+)/,eo=/\/\*[^]*?\*\//g;function ea(e){var t="";if(D(e))t=e;else if(C(e))for(var n=0;n")]=i,e},{})):V(t)?(0,a._)({},"Set(".concat(t.size,")"),(0,s._)(t.values())):!O(t)||C(t)||L(t)?t:String(t)}}),f.register("aayhd",function(e,n){u(e.exports),t(e.exports,"default",function(){return l});var r=f("xJRWs"),i=f("3XT9C"),o=f("d6xbH"),a=f("9BzA6"),l={data:function(){var e=this,t=new o.Database;return t.setObservable("*",function(t){e.classrooms=t}),{database:t,classrooms:[],peerID:(0,a.getPeerID)()}},methods:{deleteClass:function(e){this.database.drop(e)},forkClass:function(e){console.log(e=(0,a.clone)(e));var t=(0,a.infoHash)();e.data.createdBy=(0,a.getPeerID)(),e.id=t,this.database.put({id:t,data:e.data,timestamp:Date.now()}),window.location.search="?/classroom/".concat(t)},createClass:function(){return(0,r._)(function(){var e,t;return(0,i.__generator)(this,function(n){return t={id:e=(0,a.infoHash)(),createdBy:(0,a.getPeerID)(),dateCreated:new Date().getTime(),name:"My New Class",meta:{logo:"",description:"",selfAssign:!1,defaultNumberOfRooms:0},members:{teacher:[],student:[]},modules:[{url:"https://edrys-org.github.io/module-reference/",config:"",studentConfig:"",teacherConfig:"",stationConfig:"",width:"full",height:"tall"}]},this.database.put({id:e,data:t,timestamp:Date.now()}),window.location.search="?/classroom/".concat(e),[2]})}).apply(this)}}}}),f.register("xJRWs",function(e,n){function r(e,t,n,r,i,o,a){try{var l=e[o](a),u=l.value}catch(e){n(e);return}l.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var a=e.apply(t,n);function l(e){r(a,i,o,l,u,"next",e)}function u(e){r(a,i,o,l,u,"throw",e)}l(void 0)})}}t(e.exports,"_",function(){return i})}),f.register("3XT9C",function(e,n){function r(e,t){var n,r,i,o,a=function(e){return function(t){return l([e,t])}},l=function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}t(e.exports,"__generator",function(){return r}),t(e.exports,"__values",function(){return i}),f("jZ8XT"),"function"==typeof SuppressedError&&SuppressedError}),f.register("d6xbH",function(e,n){t(e.exports,"Database",function(){return u});var r=f("xJRWs"),i=f("disEZ"),o=f("fJNo6"),a=f("3XT9C"),l=f("3Zw54"),u=/*#__PURE__*/function(){function e(){(0,i._)(this,e),this.observables={},this.db=new l.Dexie("EdrysLite"),this.db.version(1).stores({data:"\n &id,\n timestamp,\n data"}),this.db.open().then(function(e){// Database opened successfully console.log("Database opened successfully")}).catch(function(e){console.warn("Database error: "+e.message)})}return(0,o._)(e,[{key:"getAll",value:function(){return this.db.data.orderBy("timestamp").desc().toArray()}},{key:"exists",value:function(e){var t=this;return(0,r._)(function(){return(0,a.__generator)(this,function(n){switch(n.label){case 0:return[4,t.get(e)];case 1:return[2,!!n.sent()]}})})()}},{key:"get",value:function(e){var t=this;return(0,r._)(function(){return(0,a.__generator)(this,function(n){switch(n.label){case 0:return[4,t.db.data.get(e)];case 1:return[2,n.sent()]}})})()}},{key:"put",value:function(e){return this.db.data.put(e)}},{key:"update",value:function(e){return e.timestamp=Date.now(),this.put(e)}},{key:"drop",value:function(e){this.db.data.delete(e)}},{key:"setObservable",value:function(e,t){this.observables[e]&&(this.observables[e].unsubscribe(),delete this.observables[e]);var n=this.db.data,r="*"===e?(0,l.liveQuery)(function(){return n.orderBy("timestamp").desc().toArray()}):(0,l.liveQuery)(function(){return n.where("id").equals(e).first()});this.observables[e]=r.subscribe({next:function(e){return t(e)},error:function(e){return console.warn(e)}})}},{key:"deleteObservable",value:function(e){this.observables[e]&&(this.observables[e].unsubscribe(),delete this.observables[e])}}]),e}()}),f.register("3Zw54",function(e,n){t(e.exports,"Dexie",function(){return nD}),t(e.exports,"liveQuery",function(){return nB});/* * Dexie.js - a minimalistic wrapper for IndexedDB * =============================================== @@ -140,7 +140,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var r,i,o,a,u,s,c,d,h=f("jZ8XT"),p=function(){return(p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0)n=t;else{var o=w(t);for(var a in n=o===Object.prototype?{}:Object.create(o),Y&&Y.set(t,n),t)k(t,a)&&(n[a]=e(t[a]))}return n}(e);return Y=null,t}var q={}.toString;function W(e){return q.call(e).slice(8,-1)}var K="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",X=(void 0===K?"undefined":(0,h._)(K))==="symbol"?function(e){var t;return null!=e&&(t=e[K])&&t.apply(e)}:function(){return null},G={};function $(e){var t,n,r,i;if(1==arguments.length){if(_(e))return e.slice();if(this===G&&"string"==typeof e)return[e];if(i=X(e)){for(n=[];!(r=i.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=Array(t);t--;)n[t]=arguments[t];return n}var J="undefined"!=typeof Symbol?function(e){return"AsyncFunction"===e[Symbol.toStringTag]}:function(){return!1},Z="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href),Q=function(){return!0},ee=!Error("").stack;function et(){if(ee)try{throw et.arguments,Error()}catch(e){return e}return Error()}function en(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(Q).map(function(e){return"\n"+e}).join("")):""}var er=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],ei=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(er),eo={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function ea(e,t){this._e=et(),this.name=e,this.message=t}function el(e,t){return e+". Errors: "+Object.keys(t).map(function(e){return t[e].toString()}).filter(function(e,t,n){return n.indexOf(e)===t}).join("\n")}function eu(e,t,n,r){this._e=et(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=el(e,t)}function es(e,t){this._e=et(),this.name="BulkError",this.failures=Object.keys(t).map(function(e){return t[e]}),this.failuresByPos=t,this.message=el(e,t)}V(ea).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+en(this._e,2))}},toString:function(){return this.name+": "+this.message}}),V(eu).from(ea),V(es).from(ea);var ec=ei.reduce(function(e,t){return e[t]=t+"Error",e},{}),ed=ei.reduce(function(e,t){var n=function(e,n){this._e=et(),this.name=r,e?"string"==typeof e?(this.message=""+e+(n?"\n "+n:""),this.inner=n||null):"object"==typeof e&&(this.message=e.name+" "+e.message,this.inner=e):(this.message=eo[t]||r,this.inner=null)},r=t+"Error";return V(n).from(ea),e[t]=n,e},{});ed.Syntax=SyntaxError,ed.Type=TypeError,ed.Range=RangeError;var ef=er.reduce(function(e,t){return e[t+"Error"]=ed[t],e},{}),eh=ei.reduce(function(e,t){return -1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=ed[t]),e},{});function ev(){}function ep(e){return e}function eg(e,t){return null==e||e===ep?t:function(n){return t(e(n))}}function em(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function ey(e,t){return e===ev?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?em(r,this.onsuccess):r),i&&(this.onerror=this.onerror?em(i,this.onerror):i),void 0!==o?o:n}}function e_(e,t){return e===ev?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?em(n,this.onsuccess):n),r&&(this.onerror=this.onerror?em(r,this.onerror):r)}}function eb(e,t){return e===ev?t:function(n){var r=e.apply(this,arguments);b(n,r);var i=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?em(i,this.onsuccess):i),o&&(this.onerror=this.onerror?em(o,this.onerror):o),void 0===r?void 0===a?void 0:a:b(r,a)}}function ew(e,t){return e===ev?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function ex(e,t){return e===ev?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,i=arguments.length,o=Array(i);i--;)o[i]=arguments[i];return n.then(function(){return t.apply(r,o)})}return t.apply(this,arguments)}}eh.ModifyError=eu,eh.DexieError=ea,eh.BulkError=es;var ek={},eS="undefined"==typeof Promise?[]:function(){var e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,w(e),e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,w(t),e]}(),eC=eS[0],eE=eS[1],eV=eS[2],eN=eE&&eE.then,eT=eC&&eC.constructor,eA=!!eV,eD=!1,eR=eV?function(){eV.then(eQ)}:m.setImmediate?setImmediate.bind(null,eQ):m.MutationObserver?function(){var e=document.createElement("div");new MutationObserver(function(){eQ(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:function(){setTimeout(eQ,0)},eO=function(e,t){ez.push([e,t]),eB&&(eR(),eB=!1)},eI=!0,eB=!0,eP=[],eM=[],eL=null,ej=ep,eF={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:th,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(function(e){try{th(e[0],e[1])}catch(e){}})}},eU=eF,ez=[],eY=0,eH=[];function eq(e){if("object"!=typeof this)throw TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=ev,this._lib=!1;var t=this._PSD=eU;if(Z&&(this._stackHolder=et(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==ek)throw TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],!1===this._state&&eX(this,this._value);return}this._state=null,this._value=null,++t.ref,function e(t,n){try{n(function(n){if(null===t._state){if(n===t)throw TypeError("A promise cannot be resolved with itself.");var r=t._lib&&e0();n&&"function"==typeof n.then?e(t,function(e,t){n instanceof eq?n._then(e,t):n.then(e,t)}):(t._state=!0,t._value=n,eG(t)),r&&e1()}},eX.bind(null,t))}catch(e){eX(t,e)}}(this,e)}var eW={get:function(){var e=function(e,r){var i=this,o=!t.global&&(t!==eU||n!==e9),a=o&&!tr(),l=new eq(function(n,l){e$(i,new eK(tc(e,t,o,a),tc(r,t,o,a),n,l,t))});return Z&&eZ(l,this),l},t=eU,n=e9;return e.prototype=ek,e},set:function(e){E(this,"then",e&&e.prototype===ek?eW:{get:function(){return e},set:eW.set})}};function eK(e,t,n,r,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=i}function eX(e,t){if(eM.push(t),null===e._state){var n=e._lib&&e0();t=ej(t),e._state=!1,e._value=t,Z&&null!==t&&"object"==typeof t&&!t._promise&&function(e,t,n){try{e.apply(null,void 0)}catch(e){t&&t(e)}}(function(){var n=T(t,"stack");t._promise=e,E(t,"stack",{get:function(){return eD?n&&(n.get?n.get.apply(t):n.value):e.stack}})}),eP.some(function(t){return t._value===e._value})||eP.push(e),eG(e),n&&e1()}}function eG(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n0;)for(t=0,e=ez,ez=[],n=e.length;t0)eI=!0,eB=!0}function e2(){var e=eP;eP=[],e.forEach(function(e){e._PSD.onunhandled.call(null,e._value,e)});for(var t=eH.slice(0),n=t.length;n;)t[--n]()}function e3(e){return new eq(ek,!1,e)}function e5(e,t){var n=eU;return function(){var r=e0(),i=eU;try{return tl(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{tl(i,!1),r&&e1()}}}S(eq.prototype,{then:eW,_then:function(e,t){e$(this,new eK(null,null,e,t,eU))},catch:function(e){if(1==arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,function(e){return e instanceof t?n(e):e3(e)}):this.then(null,function(e){return e&&e.name===t?n(e):e3(e)})},finally:function(e){return this.then(function(t){return e(),t},function(t){return e(),e3(t)})},stack:{get:function(){if(this._stack)return this._stack;try{eD=!0;var e=(function e(t,n,r){if(n.length===r)return n;var i="";if(!1===t._state){var o,a,l=t._value;null!=l?(o=l.name||"Error",a=l.message||l,i=en(l,0)):(o=l,a=""),n.push(o+(a?": "+a:"")+i)}return Z&&((i=en(t._stackHolder,2))&&-1===n.indexOf(i)&&n.push(i),t._prev&&e(t._prev,n,r)),n})(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{eD=!1}}},timeout:function(e,t){var n=this;return e<1/0?new eq(function(r,i){var o=setTimeout(function(){return i(new ed.Timeout(t))},e);n.then(r,i).finally(clearTimeout.bind(null,o))}):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&E(eq.prototype,Symbol.toStringTag,"Dexie.Promise"),eF.env=tu(),S(eq,{all:function(){var e=$.apply(null,arguments).map(ti);return new eq(function(t,n){0===e.length&&t([]);var r=e.length;e.forEach(function(i,o){return eq.resolve(i).then(function(n){e[o]=n,--r||t(e)},n)})})},resolve:function(e){if(e instanceof eq)return e;if(e&&"function"==typeof e.then)return new eq(function(t,n){e.then(t,n)});var t=new eq(ek,!0,e);return eZ(t,eL),t},reject:e3,race:function(){var e=$.apply(null,arguments).map(ti);return new eq(function(t,n){e.map(function(e){return eq.resolve(e).then(t,n)})})},PSD:{get:function(){return eU},set:function(e){return eU=e}},totalEchoes:{get:function(){return e9}},newPSD:tt,usePSD:ts,scheduler:{get:function(){return eO},set:function(e){eO=e}},rejectionMapper:{get:function(){return ej},set:function(e){ej=e}},follow:function(e,t){return new eq(function(n,r){return tt(function(t,n){var r=eU;r.unhandleds=[],r.onunhandled=n,r.finalize=em(function(){var e,r=this;e=function(){0===r.unhandleds.length?t():n(r.unhandleds[0])},eH.push(function t(){e(),eH.splice(eH.indexOf(t),1)}),++eY,eO(function(){0==--eY&&e2()},[])},r.finalize),e()},t,n,r)})}}),eT&&(eT.allSettled&&E(eq,"allSettled",function(){var e=$.apply(null,arguments).map(ti);return new eq(function(t){0===e.length&&t([]);var n=e.length,r=Array(n);e.forEach(function(e,i){return eq.resolve(e).then(function(e){return r[i]={status:"fulfilled",value:e}},function(e){return r[i]={status:"rejected",reason:e}}).then(function(){return--n||t(r)})})})}),eT.any&&"undefined"!=typeof AggregateError&&E(eq,"any",function(){var e=$.apply(null,arguments).map(ti);return new eq(function(t,n){0===e.length&&n(AggregateError([]));var r=e.length,i=Array(r);e.forEach(function(e,o){return eq.resolve(e).then(function(e){return t(e)},function(e){i[o]=e,--r||n(AggregateError(i))})})})}));var e4={awaits:0,echoes:0,id:0},e6=0,e8=[],e7=0,e9=0,te=0;function tt(e,t,n,r){var i=eU,o=Object.create(i);o.parent=i,o.ref=0,o.global=!1,o.id=++te;var a=eF.env;o.env=eA?{Promise:eq,PromiseProp:{value:eq,configurable:!0,writable:!0},all:eq.all,race:eq.race,allSettled:eq.allSettled,any:eq.any,resolve:eq.resolve,reject:eq.reject,nthen:td(a.nthen,o),gthen:td(a.gthen,o)}:{},t&&b(o,t),++i.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()};var l=ts(o,e,n,r);return 0===o.ref&&o.finalize(),l}function tn(){return e4.id||(e4.id=++e6),++e4.awaits,e4.echoes+=100,e4.id}function tr(){return!!e4.awaits&&(0==--e4.awaits&&(e4.id=0),e4.echoes=100*e4.awaits,!0)}function ti(e){return e4.echoes&&e&&e.constructor===eT?(tn(),e.then(function(e){return tr(),e},function(e){return tr(),tv(e)})):e}function to(e){++e9,e4.echoes&&0!=--e4.echoes||(e4.echoes=e4.id=0),e8.push(eU),tl(e,!0)}function ta(){var e=e8[e8.length-1];e8.pop(),tl(e,!1)}function tl(e,t){var n,r=eU;if((t?!e4.echoes||e7++&&e===eU:!e7||--e7&&e===eU)||(n=t?to.bind(null,e):ta,eN.call(eC,n)),e!==eU&&(eU=e,r===eF&&(eF.env=tu()),eA)){var i=eF.env.Promise,o=e.env;eE.then=o.nthen,i.prototype.then=o.gthen,(r.global||e.global)&&(Object.defineProperty(m,"Promise",o.PromiseProp),i.all=o.all,i.race=o.race,i.resolve=o.resolve,i.reject=o.reject,o.allSettled&&(i.allSettled=o.allSettled),o.any&&(i.any=o.any))}}function tu(){var e=m.Promise;return eA?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(m,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:eE.then,gthen:e.prototype.then}:{}}function ts(e,t,n,r,i){var o=eU;try{return tl(e,!0),t(n,r,i)}finally{tl(o,!1)}}function tc(e,t,n,r){return"function"!=typeof e?e:function(){var i,o=eU;n&&tn(),tl(t,!0);try{return e.apply(this,arguments)}finally{tl(o,!1),r&&(i=tr,eN.call(eC,i))}}}function td(e,t){return function(n,r){return e.call(this,tc(n,t),tc(r,t))}}-1===(""+eN).indexOf("[native code]")&&(tn=tr=ev);var tf="unhandledrejection";function th(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var r,i={promise:t,reason:e};if(m.document&&document.createEvent?((r=document.createEvent("Event")).initEvent(tf,!0,!0),b(r,i)):m.CustomEvent&&(r=new CustomEvent(tf,{detail:i}),b(r,i)),r&&m.dispatchEvent&&(dispatchEvent(r),!m.PromiseRejectionEvent&&m.onunhandledrejection))try{m.onunhandledrejection(r)}catch(e){}Z&&r&&!r.defaultPrevented&&console.warn("Unhandled rejection: "+(e.stack||e))}catch(e){}}var tv=eq.reject,tp="3.2.4",tg=String.fromCharCode(65535),tm=-1/0,ty="Invalid key provided. Keys must be of type string, number, Date or Array.",t_="String expected.",tb=[],tw="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),tx=function(e){return!/(dexie\.js|dexie\.min\.js)/.test(e)},tk="__dbnames",tS="readonly",tC="readwrite";function tE(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var tV={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function tN(e){return"string"!=typeof e||/\./.test(e)?function(e){return e}:function(t){return void 0===t[e]&&e in t&&(t=H(t),delete t[e]),t}}var tT=((r=function(){}).prototype._trans=function(e,t,n){var r=function(e,n,r){if(!r.schema[o])throw new ed.NotFound("Table "+o+" not part of transaction");return t(r.idbtrans,r)},i=this._tx||eU.trans,o=this.name,a=e0();try{return i&&i.db===this.db?i===eU.trans?i._promise(e,r,n):tt(function(){return i._promise(e,r,n)},{trans:i,transless:eU.transless||eU}):function e(t,n,r,i){if(t.idbdb&&(t._state.openComplete||eU.letThrough||t._vip)){var o=t._createTransaction(n,r,t._dbSchema);try{o.create(),t._state.PR1398_maxLoop=3}catch(o){if(o.name===ec.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0)return console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(function(){return e(t,n,r,i)});return tv(o)}return o._promise(n,function(e,t){return tt(function(){return eU.trans=o,i(e,t,o)})}).then(function(e){return o._completion.then(function(){return e})})}if(t._state.openComplete)return tv(new ed.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return tv(new ed.DatabaseClosed);t.open().catch(ev)}return t._state.dbReadyPromise.then(function(){return e(t,n,r,i)})}(this.db,e,[this.name],r)}finally{a&&e1()}},r.prototype.get=function(e,t){var n=this;return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",function(t){return n.core.get({trans:t,key:e}).then(function(e){return n.hook.reading.fire(e)})}).then(t)},r.prototype.where=function(e){var t=function(e,t){try{return 0===o.cmp(e,t)}catch(e){return!1}};if("string"==typeof e)return new this.db.WhereClause(this,e);if(_(e))return new this.db.WhereClause(this,"["+e.join("+")+"]");var n=y(e);if(1===n.length)return this.where(n[0]).equals(e[n[0]]);var r=this.schema.indexes.concat(this.schema.primKey).filter(function(e){return e.compound&&n.every(function(t){return e.keyPath.indexOf(t)>=0})&&e.keyPath.every(function(e){return n.indexOf(e)>=0})})[0];if(r&&this.db._maxKey!==tg)return this.where(r.name).equals(r.keyPath.map(function(t){return e[t]}));!r&&Z&&console.warn("The query "+JSON.stringify(e)+" on "+this.name+" would benefit of a compound index ["+n.join("+")+"]");var i=this.schema.idxByName,o=this.db._deps.indexedDB,a=n.reduce(function(n,r){var o=n[0],a=n[1],l=i[r],u=e[r];return[o||l,o||!l?tE(a,l&&l.multi?function(e){var n=P(e,r);return _(n)&&n.some(function(e){return t(u,e)})}:function(e){return t(u,P(e,r))}):a]},[null,null]),l=a[0],u=a[1];return l?this.where(l.name).equals(e[l.keyPath]).filter(u):r?this.filter(u):this.where(n).equals("")},r.prototype.filter=function(e){return this.toCollection().and(e)},r.prototype.count=function(e){return this.toCollection().count(e)},r.prototype.offset=function(e){return this.toCollection().offset(e)},r.prototype.limit=function(e){return this.toCollection().limit(e)},r.prototype.each=function(e){return this.toCollection().each(e)},r.prototype.toArray=function(e){return this.toCollection().toArray(e)},r.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},r.prototype.orderBy=function(e){return new this.db.Collection(new this.db.WhereClause(this,_(e)?"["+e.join("+")+"]":e))},r.prototype.reverse=function(){return this.toCollection().reverse()},r.prototype.mapToClass=function(e){this.schema.mappedClass=e;var t=function(t){if(!t)return t;var n=Object.create(e.prototype);for(var r in t)if(k(t,r))try{n[r]=t[r]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e},r.prototype.defineClass=function(){return this.mapToClass(function(e){b(this,e)})},r.prototype.add=function(e,t){var n=this,r=this.schema.primKey,i=r.auto,o=r.keyPath,a=e;return o&&i&&(a=tN(o)(e)),this._trans("readwrite",function(e){return n.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[a]})}).then(function(e){return e.numFailures?eq.reject(e.failures[0]):e.lastResult}).then(function(t){if(o)try{M(e,o,t)}catch(e){}return t})},r.prototype.update=function(e,t){if("object"!=typeof e||_(e))return this.where(":id").equals(e).modify(t);var n=P(e,this.schema.primKey.keyPath);if(void 0===n)return tv(new ed.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?y(t).forEach(function(n){M(e,n,t[n])}):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)},r.prototype.put=function(e,t){var n=this,r=this.schema.primKey,i=r.auto,o=r.keyPath,a=e;return o&&i&&(a=tN(o)(e)),this._trans("readwrite",function(e){return n.core.mutate({trans:e,type:"put",values:[a],keys:null!=t?[t]:null})}).then(function(e){return e.numFailures?eq.reject(e.failures[0]):e.lastResult}).then(function(t){if(o)try{M(e,o,t)}catch(e){}return t})},r.prototype.delete=function(e){var t=this;return this._trans("readwrite",function(n){return t.core.mutate({trans:n,type:"delete",keys:[e]})}).then(function(e){return e.numFailures?eq.reject(e.failures[0]):void 0})},r.prototype.clear=function(){var e=this;return this._trans("readwrite",function(t){return e.core.mutate({trans:t,type:"deleteRange",range:tV})}).then(function(e){return e.numFailures?eq.reject(e.failures[0]):void 0})},r.prototype.bulkGet=function(e){var t=this;return this._trans("readonly",function(n){return t.core.getMany({keys:e,trans:n}).then(function(e){return e.map(function(e){return t.hook.reading.fire(e)})})})},r.prototype.bulkAdd=function(e,t,n){var r=this,i=Array.isArray(t)?t:void 0,o=(n=n||(i?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",function(t){var n=r.schema.primKey,a=n.auto,l=n.keyPath;if(l&&i)throw new ed.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(i&&i.length!==e.length)throw new ed.InvalidArgument("Arguments objects and keys must have the same length");var u=e.length,s=l&&a?e.map(tN(l)):e;return r.core.mutate({trans:t,type:"add",keys:i,values:s,wantResults:o}).then(function(e){var t=e.numFailures,n=e.results,i=e.lastResult,a=e.failures;if(0===t)return o?n:i;throw new es(r.name+".bulkAdd(): "+t+" of "+u+" operations failed",a)})})},r.prototype.bulkPut=function(e,t,n){var r=this,i=Array.isArray(t)?t:void 0,o=(n=n||(i?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",function(t){var n=r.schema.primKey,a=n.auto,l=n.keyPath;if(l&&i)throw new ed.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(i&&i.length!==e.length)throw new ed.InvalidArgument("Arguments objects and keys must have the same length");var u=e.length,s=l&&a?e.map(tN(l)):e;return r.core.mutate({trans:t,type:"put",keys:i,values:s,wantResults:o}).then(function(e){var t=e.numFailures,n=e.results,i=e.lastResult,a=e.failures;if(0===t)return o?n:i;throw new es(r.name+".bulkPut(): "+t+" of "+u+" operations failed",a)})})},r.prototype.bulkDelete=function(e){var t=this,n=e.length;return this._trans("readwrite",function(n){return t.core.mutate({trans:n,type:"delete",keys:e})}).then(function(e){var r=e.numFailures,i=e.lastResult,o=e.failures;if(0===r)return i;throw new es(t.name+".bulkDelete(): "+r+" of "+n+" operations failed",o)})},r);function tA(e){var t=function(e,t,o){if("object"==typeof e)return n(e);t||(t=ew),o||(o=ev);var a={subscribers:[],fire:o,subscribe:function(e){-1===a.subscribers.indexOf(e)&&(a.subscribers.push(e),a.fire=t(a.fire,e))},unsubscribe:function(e){a.subscribers=a.subscribers.filter(function(t){return t!==e}),a.fire=a.subscribers.reduce(t,o)}};return r[e]=i[e]=a,a},n=function(e){y(e).forEach(function(n){var r=e[n];if(_(r))t(n,e[n][0],e[n][1]);else if("asap"===r)var i=t(n,ep,function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];i.subscribers.forEach(function(e){I(function(){e.apply(null,t)})})});else throw new ed.InvalidArgument("Invalid event config")})},r={},i=function(t,n){if(n){for(var i=arguments.length,o=Array(i-1);--i;)o[i-1]=arguments[i];return r[t].subscribe.apply(null,o),e}if("string"==typeof t)return r[t]};i.addEventType=t;for(var o=1,a=arguments.length;ot?1:er?l:0},r=e.split(".").reverse(),i=r[0],o=r.length-1;function a(e,t){return t?a(e[r[t]],t-1):e[i]}var l="next"===this._ctx.dir?1:-1;return this.toArray(function(e){return e.sort(n)}).then(t)},i.prototype.toArray=function(e){var t=this;return this._read(function(e){var n=t._ctx;if("next"===n.dir&&tR(n,!0)&&n.limit>0){var r=n.valueMapper,i=tB(n,n.table.core.schema);return n.table.core.query({trans:e,limit:n.limit,values:!0,query:{index:i,range:n.range}}).then(function(e){var t=e.result;return r?t.map(r):t})}var o=[];return tM(n,function(e){return o.push(e)},e,n.table.core).then(function(){return o})},e)},i.prototype.offset=function(e){var t=this._ctx;return e<=0||(t.offset+=e,tR(t)?tI(t,function(){var t=e;return function(e,n){return 0===t||(1===t?--t:n(function(){e.advance(t),t=0}),!1)}}):tI(t,function(){var t=e;return function(){return--t<0}})),this},i.prototype.limit=function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),tI(this._ctx,function(){var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}},!0),this},i.prototype.until=function(e,t){return tO(this._ctx,function(n,r,i){return!e(n.value)||(r(i),t)}),this},i.prototype.first=function(e){return this.limit(1).toArray(function(e){return e[0]}).then(e)},i.prototype.last=function(e){return this.reverse().first(e)},i.prototype.filter=function(e){var t;return tO(this._ctx,function(t){return e(t.value)}),(t=this._ctx).isMatch=tE(t.isMatch,e),this},i.prototype.and=function(e){return this.filter(e)},i.prototype.or=function(e){return new this.db.WhereClause(this._ctx.table,e,this)},i.prototype.reverse=function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},i.prototype.desc=function(){return this.reverse()},i.prototype.eachKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.key,n)})},i.prototype.eachUniqueKey=function(e){return this._ctx.unique="unique",this.eachKey(e)},i.prototype.eachPrimaryKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.primaryKey,n)})},i.prototype.keys=function(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.key)}).then(function(){return n}).then(e)},i.prototype.primaryKeys=function(e){var t=this._ctx;if("next"===t.dir&&tR(t,!0)&&t.limit>0)return this._read(function(e){var n=tB(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})}).then(function(e){return e.result}).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.primaryKey)}).then(function(){return n}).then(e)},i.prototype.uniqueKeys=function(e){return this._ctx.unique="unique",this.keys(e)},i.prototype.firstKey=function(e){return this.limit(1).keys(function(e){return e[0]}).then(e)},i.prototype.lastKey=function(e){return this.reverse().firstKey(e)},i.prototype.distinct=function(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return tO(this._ctx,function(e){var t=e.primaryKey.toString(),r=k(n,t);return n[t]=!0,!r}),this},i.prototype.modify=function(e){var t=this,n=this._ctx;return this._write(function(r){if("function"==typeof e)i=e;else{var i,o=y(e),a=o.length;i=function(t){for(var n=!1,r=0;r0&&l.mutate({trans:r,type:"add",values:h}).then(function(e){for(var t in e.failures)y.splice(parseInt(t),1);g(h.length,e)})).then(function(){return(p.length>0||x&&"object"==typeof e)&&l.mutate({trans:r,type:"put",keys:m,values:p,criteria:x,changeSpec:"function"!=typeof e&&e}).then(function(e){return g(p.length,e)})}).then(function(){return(y.length>0||x&&e===tY)&&l.mutate({trans:r,type:"delete",keys:y,criteria:x}).then(function(e){return g(y.length,e)})}).then(function(){return t.length>a+u&&o(a+d)})})};return o(0).then(function(){if(f.length>0)throw new eu("Error modifying one or more objects",f,h,p);return t.length})})})},i.prototype.delete=function(){var e=this._ctx,t=e.range;return tR(e)&&(e.isPrimKey&&!tw||3===t.type)?this._write(function(n){var r=e.table.core.schema.primaryKey;return e.table.core.count({trans:n,query:{index:r,range:t}}).then(function(r){return e.table.core.mutate({trans:n,type:"deleteRange",range:t}).then(function(e){var t=e.failures;e.lastResult,e.results;var n=e.numFailures;if(n)throw new eu("Could not delete some values",Object.keys(t).map(function(e){return t[e]}),r-n);return r-n})})}):this.modify(tY)},i),tY=function(e,t){return t.value=null};function tH(e,t){return et?-1:e===t?0:1}function tW(e,t,n){var r=e instanceof tJ?new e.Collection(e):e;return r._ctx.error=n?new n(t):TypeError(t),r}function tK(e){return new e.Collection(e,function(){return t$("")}).limit(0)}function tX(e,t,n,r){var i,o,a,l,u,s,c,d=function(e){i="next"===e?function(e){return e.toUpperCase()}:function(e){return e.toLowerCase()},o="next"===e?function(e){return e.toLowerCase()}:function(e){return e.toUpperCase()},a="next"===e?tH:tq;var t=n.map(function(e){return{lower:o(e),upper:i(e)}}).sort(function(e,t){return a(e.lower,t.lower)});l=t.map(function(e){return e.upper}),u=t.map(function(e){return e.lower}),s=e,c="next"===e?"":r},f=n.length;if(!n.every(function(e){return"string"==typeof e}))return tW(e,t_);d("next");var h=new e.Collection(e,function(){return tG(l[0],u[f-1]+r)});h._ondirectionchange=function(e){d(e)};var p=0;return h._addAlgorithm(function(e,n,r){var i=e.key;if("string"!=typeof i)return!1;var d=o(i);if(t(d,u,p))return!0;for(var h=null,g=p;gi(e[u],n[u]))return e.substr(0,u)+n[u]+n.substr(u+1);if(0>i(e[u],r[u]))return e.substr(0,u)+r[u]+n.substr(u+1);if(l>=0)return e.substr(0,l)+t[l]+n.substr(l+1);return null}0>i(e[u],s)&&(l=u)}return a0)&&(h=m)}return n(null!==h?function(){e.continue(h+c)}:r),!1}),h}function tG(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function t$(e){return{type:1,lower:e,upper:e}}var tJ=(Object.defineProperty((o=function(){}).prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),o.prototype.between=function(e,t,n,r){n=!1!==n,r=!0===r;try{if(this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&!(n&&r))return tK(this);return new this.Collection(this,function(){return tG(e,t,!n,!r)})}catch(e){return tW(this,ty)}},o.prototype.equals=function(e){return null==e?tW(this,ty):new this.Collection(this,function(){return t$(e)})},o.prototype.above=function(e){return null==e?tW(this,ty):new this.Collection(this,function(){return tG(e,void 0,!0)})},o.prototype.aboveOrEqual=function(e){return null==e?tW(this,ty):new this.Collection(this,function(){return tG(e,void 0,!1)})},o.prototype.below=function(e){return null==e?tW(this,ty):new this.Collection(this,function(){return tG(void 0,e,!1,!0)})},o.prototype.belowOrEqual=function(e){return null==e?tW(this,ty):new this.Collection(this,function(){return tG(void 0,e)})},o.prototype.startsWith=function(e){return"string"!=typeof e?tW(this,t_):this.between(e,e+tg,!0,!0)},o.prototype.startsWithIgnoreCase=function(e){return""===e?this.startsWith(e):tX(this,function(e,t){return 0===e.indexOf(t[0])},[e],tg)},o.prototype.equalsIgnoreCase=function(e){return tX(this,function(e,t){return e===t[0]},[e],"")},o.prototype.anyOfIgnoreCase=function(){var e=$.apply(G,arguments);return 0===e.length?tK(this):tX(this,function(e,t){return -1!==t.indexOf(e)},e,"")},o.prototype.startsWithAnyOfIgnoreCase=function(){var e=$.apply(G,arguments);return 0===e.length?tK(this):tX(this,function(e,t){return t.some(function(t){return 0===e.indexOf(t)})},e,tg)},o.prototype.anyOf=function(){var e=this,t=$.apply(G,arguments),n=this._cmp;try{t.sort(n)}catch(e){return tW(this,ty)}if(0===t.length)return tK(this);var r=new this.Collection(this,function(){return tG(t[0],t[t.length-1])});r._ondirectionchange=function(r){n="next"===r?e._ascending:e._descending,t.sort(n)};var i=0;return r._addAlgorithm(function(e,r,o){for(var a=e.key;n(a,t[i])>0;)if(++i===t.length)return r(o),!1;return 0===n(a,t[i])||(r(function(){e.continue(t[i])}),!1)}),r},o.prototype.notEqual=function(e){return this.inAnyRange([[tm,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},o.prototype.noneOf=function(){var e=$.apply(G,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return tW(this,ty)}var t=e.reduce(function(e,t){return e?e.concat([[e[e.length-1][1],t]]):[[tm,t]]},null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})},o.prototype.inAnyRange=function(e,t){var n,r=function(e,t){return f(e[0],t[0])},i=this,o=this._cmp,a=this._ascending,l=this._descending,u=this._min,s=this._max;if(0===e.length)return tK(this);if(!e.every(function(e){return void 0!==e[0]&&void 0!==e[1]&&0>=a(e[0],e[1])}))return tW(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ed.InvalidArgument);var c=!t||!1!==t.includeLowers,d=t&&!0===t.includeUppers,f=a;try{(n=e.reduce(function(e,t){for(var n=0,r=e.length;no(t[0],i[1])&&o(t[1],i[0])>0){i[0]=u(i[0],t[0]),i[1]=s(i[1],t[1]);break}}return n===r&&e.push(t),e},[])).sort(r)}catch(e){return tW(this,ty)}var h=0,p=d?function(e){return a(e,n[h][1])>0}:function(e){return a(e,n[h][1])>=0},g=c?function(e){return l(e,n[h][0])>0}:function(e){return l(e,n[h][0])>=0},m=p,y=new this.Collection(this,function(){return tG(n[0][0],n[n.length-1][1],!c,!d)});return y._ondirectionchange=function(e){"next"===e?(m=p,f=a):(m=g,f=l),n.sort(r)},y._addAlgorithm(function(e,t,r){for(var o=e.key;m(o);)if(++h===n.length)return t(r),!1;return!(p(o)||g(o))||0!==i._cmp(o,n[h][1])&&0!==i._cmp(o,n[h][0])&&(t(function(){f===a?e.continue(n[h][0]):e.continue(n[h][1])}),!1)}),y},o.prototype.startsWithAnyOf=function(){var e=$.apply(G,arguments);return e.every(function(e){return"string"==typeof e})?0===e.length?tK(this):this.inAnyRange(e.map(function(e){return[e,e+tg]})):tW(this,"startsWithAnyOf() only works with strings")},o);function tZ(e){return e5(function(t){return tQ(t),e(t.target.error),!1})}function tQ(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var t0="storagemutated",t1="x-storagemutated-1",t2=tA(null,t0),t3=((a=function(){}).prototype._lock=function(){return O(!eU.global),++this._reculock,1!==this._reculock||eU.global||(eU.lockOwnerFor=this),this},a.prototype._unlock=function(){if(O(!eU.global),0==--this._reculock)for(eU.global||(eU.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{ts(e[1],e[0])}catch(e){}}return this},a.prototype._locked=function(){return this._reculock&&eU.lockOwnerFor!==this},a.prototype.create=function(e){var t=this;if(!this.mode)return this;var n=this.db.idbdb,r=this.db._state.dbOpenError;if(O(!this.idbtrans),!e&&!n)switch(r&&r.name){case"DatabaseClosedError":throw new ed.DatabaseClosed(r);case"MissingAPIError":throw new ed.MissingAPI(r.message,r);default:throw new ed.OpenFailed(r)}if(!this.active)throw new ed.TransactionInactive;return O(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):n.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=e5(function(n){tQ(n),t._reject(e.error)}),e.onabort=e5(function(n){tQ(n),t.active&&t._reject(new ed.Abort(e.error)),t.active=!1,t.on("abort").fire(n)}),e.oncomplete=e5(function(){t.active=!1,t._resolve(),"mutatedParts"in e&&t2.storagemutated.fire(e.mutatedParts)}),this},a.prototype._promise=function(e,t,n){var r=this;if("readwrite"===e&&"readwrite"!==this.mode)return tv(new ed.ReadOnly("Transaction is readonly"));if(!this.active)return tv(new ed.TransactionInactive);if(this._locked())return new eq(function(i,o){r._blockedFuncs.push([function(){r._promise(e,t,n).then(i,o)},eU])});if(n)return tt(function(){var e=new eq(function(e,n){r._lock();var i=t(e,n,r);i&&i.then&&i.then(e,n)});return e.finally(function(){return r._unlock()}),e._lib=!0,e});var i=new eq(function(e,n){var i=t(e,n,r);i&&i.then&&i.then(e,n)});return i._lib=!0,i},a.prototype._root=function(){return this.parent?this.parent._root():this},a.prototype.waitFor=function(e){var t=this._root(),n=eq.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then(function(){return n});else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var i=t._waitingFor;return new eq(function(e,r){n.then(function(n){return t._waitingQueue.push(e5(e.bind(null,n)))},function(e){return t._waitingQueue.push(e5(r.bind(null,e)))}).finally(function(){t._waitingFor===i&&(t._waitingFor=null)})})},a.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ed.Abort))},a.prototype.table=function(e){var t=this._memoizedTables||(this._memoizedTables={});if(k(t,e))return t[e];var n=this.schema[e];if(!n)throw new ed.NotFound("Table "+e+" not part of transaction");var r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r},a);function t5(e,t,n,r,i,o,a){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:o,src:(n&&!a?"&":"")+(r?"*":"")+(i?"++":"")+t4(t)}}function t4(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function t6(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:B(n,function(e){return[e.name,e]})}}var t8=function(e){try{return e.only([[]]),t8=function(){return[[]]},[[]]}catch(e){return t8=function(){return tg},tg}};function t7(e){return null==e?function(){}:"string"==typeof e?1===e.split(".").length?function(t){return t[e]}:function(t){return P(t,e)}:function(t){return P(t,e)}}function t9(e){return[].slice.call(e)}var ne=0;function nt(e){return null==e?":id":"string"==typeof e?e:"["+e.join("+")+"]"}function nn(e,t){var n,r,i,o,a,l,u,s,c,d,f,h,g=e._novip,m=t.db,y=(n=g._middlewares,i=(r=g._deps).IDBKeyRange,r.indexedDB,{dbcore:(o=function(e){if(3===e.type)return null;if(4===e.type)throw Error("Cannot convert never type to IDBKeyRange");var t=e.lower,n=e.upper,r=e.lowerOpen,o=e.upperOpen;return void 0===t?void 0===n?null:i.upperBound(n,!!o):void 0===n?i.lowerBound(t,!!r):i.bound(t,n,!!r,!!o)},a=function(e){var t,n=e.name;return{name:n,schema:e,mutate:function(e){var t=e.trans,r=e.type,i=e.keys,a=e.values,l=e.range;return new Promise(function(e,u){e=e5(e);var s,c=t.objectStore(n),d=null==c.keyPath,f="put"===r||"add"===r;if(!f&&"delete"!==r&&"deleteRange"!==r)throw Error("Invalid operation type: "+r);var h=(i||a||{length:1}).length;if(i&&a&&i.length!==a.length)throw Error("Given keys array must have same length as given values array.");if(0===h)return e({numFailures:0,failures:{},results:[],lastResult:void 0});var p=[],g=[],m=0,y=function(e){++m,tQ(e)};if("deleteRange"===r){if(4===l.type)return e({numFailures:m,failures:g,results:[],lastResult:void 0});3===l.type?p.push(s=c.clear()):p.push(s=c.delete(o(l)))}else{var _=f?d?[a,i]:[a,null]:[i,null],b=_[0],w=_[1];if(f)for(var x=0;x0&&"getAll"in t.objectStore(l[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}).schema,c=u.hasGetAll,d=s.tables.map(function(e){return a(e)}),f={},d.forEach(function(e){return f[e.name]=e}),h={stack:"dbcore",transaction:m.transaction.bind(m),table:function(e){if(!f[e])throw Error("Table '"+e+"' not found");return f[e]},MIN_KEY:-1/0,MAX_KEY:t8(i),schema:s},n.dbcore.reduce(function(e,t){var n=t.create;return p(p({},e),n(e))},h))});g.core=y.dbcore,g.tables.forEach(function(e){var t=e.name;g.core.schema.tables.some(function(e){return e.name===t})&&(e.core=g.core.table(t),g[t]instanceof g.Table&&(g[t].core=e.core))})}function nr(e,t,n,r){var i=e._novip;n.forEach(function(e){var n=r[e];t.forEach(function(t){var r=T(t,e);(!r||"value"in r&&void 0===r.value)&&(t===i.Transaction.prototype||t instanceof i.Transaction?E(t,e,{get:function(){return this.table(e)},set:function(t){C(this,e,{value:t,writable:!0,configurable:!0,enumerable:!0})}}):t[e]=new i.Table(e,n))})})}function ni(e,t){var n=e._novip;t.forEach(function(e){for(var t in e)e[t]instanceof n.Table&&delete e[t]})}function no(e,t){return e._cfg.version-t._cfg.version}function na(e,t){var n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){var i=e[n],o=t[n];if(i){var a={name:n,def:o,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")==""+(o.primKey.keyPath||"")&&(i.primKey.auto===o.primKey.auto||tw)){var l=i.idxByName,u=o.idxByName,s=void 0;for(s in l)u[s]||a.del.push(s);for(s in u){var c=l[s],d=u[s];c?c.src!==d.src&&a.change.push(d):a.add.push(d)}(a.del.length>0||a.add.length>0||a.change.length>0)&&r.change.push(a)}else a.recreate=!0,r.change.push(a)}else r.add.push([n,o])}return r}function nl(e,t,n,r){var i=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach(function(e){return nu(i,e)}),i}function nu(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function ns(e,t,n){var r={};return D(t.objectStoreNames,0).forEach(function(e){for(var t=n.objectStore(e),i=t.keyPath,o=t5(t4(i),i||"",!1,!1,!!t.autoIncrement,i&&"string"!=typeof i,!0),a=[],l=0;l0,c=p(p({},n),{isVirtual:s,keyTail:t,keyLength:u,extractKey:t7(e),unique:!s&&n.unique});return i.push(c),c.isPrimaryKey||a.push(c),u>1&&l(2===u?e[0]:e.slice(0,u-1),t+1,n),i.sort(function(e,t){return e.keyTail-t.keyTail}),c}var u=l(i.primaryKey.keyPath,0,i.primaryKey);o[":id"]=[u];for(var s=0,c=i.indexes;s0?Promise.reject(n.failures[0]):r.length1?t:e}:{d:0});else{var n=new nS;return e&&"d"in e&&b(n,e),n}};function nC(e,t,n){var r=tj(t,n);if(!isNaN(r)){if(r>0)throw RangeError();if(nk(e))return b(e,{from:t,to:n,d:1});var i=e.l,o=e.r;if(0>tj(n,e.from))return i?nC(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},nN(e);if(tj(t,e.to)>0)return o?nC(o,t,n):e.r={from:t,to:n,d:1,l:null,r:null},nN(e);0>tj(t,e.from)&&(e.from=t,e.l=null,e.d=o?o.d+1:1),tj(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);var a=!e.r;i&&!e.l&&nE(e,i),o&&a&&nE(e,o)}}function nE(e,t){nk(t)||function e(t,n){var r=n.from,i=n.to,o=n.l,a=n.r;nC(t,r,i),o&&e(t,o),a&&e(t,a)}(e,t)}function nV(e){var t=nk(e)?null:{s:0,n:e};return{next:function(e){for(var n=arguments.length>0;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&0>tj(e,t.n.from);)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||0>=tj(e,t.n.to))return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function nN(e){var t,n,r=((null===(t=e.r)||void 0===t?void 0:t.d)||0)-((null===(n=e.l)||void 0===n?void 0:n.d)||0),i=r>1?"r":r<-1?"l":"";if(i){var o="r"===i?"l":"r",a=p({},e),l=e[i];e.from=l.from,e.to=l.to,e[i]=l[i],a[i]=l[o],e[o]=a,a.d=nT(a)}e.d=nT(e)}function nT(e){var t=e.r,n=e.l;return(t?n?Math.max(t.d,n.d):t.d:n?n.d:0)+1}S(nS.prototype,((c={add:function(e){return nE(this,e),this},addKey:function(e){return nC(this,e,e),this},addKeys:function(e){var t=this;return e.forEach(function(e){return nC(t,e,e)}),this}})[K]=function(){return nV(this)},c));var nA={stack:"dbcore",level:0,create:function(e){var t=e.schema.name,n=new nS(e.MIN_KEY,e.MAX_KEY);return p(p({},e),{table:function(r){var i=e.table(r),o=i.schema,a=o.primaryKey,l=a.extractKey,u=a.outbound,s=p(p({},i),{mutate:function(e){var a=e.trans,l=a.mutatedParts||(a.mutatedParts={}),u=function(e){var n="idb://"+t+"/"+r+"/"+e;return l[n]||(l[n]=new nS)},s=u(""),c=u(":dels"),d=e.type,f="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[],h=f[0],p=f[1],g=e.trans._cache;return i.mutate(e).then(function(e){if(_(h)){"delete"!==d&&(h=e.results),s.addKeys(h);var t=nw(h,g);t||"add"===d||c.addKeys(h),(t||p)&&function(e,t,n,r){t.indexes.forEach(function(t){var i=e(t.name||"");function o(e){return null!=e?t.extractKey(e):null}var a=function(e){return t.multiEntry&&_(e)?e.forEach(function(e){return i.addKey(e)}):i.addKey(e)};(n||r).forEach(function(e,t){var i=n&&o(n[t]),l=r&&o(r[t]);0!==tj(i,l)&&(null!=i&&a(i),null!=l&&a(l))})})}(u,o,t,p)}else if(h){var r={from:h.lower,to:h.upper};c.add(r),s.add(r)}else s.add(n),c.add(n),o.indexes.forEach(function(e){return u(e.name).add(n)});return e})}}),c=function(t){var n,r,i=t.query,o=i.index,a=i.range;return[o,new nS(null!==(n=a.lower)&&void 0!==n?n:e.MIN_KEY,null!==(r=a.upper)&&void 0!==r?r:e.MAX_KEY)]},d={get:function(e){return[a,new nS(e.key)]},getMany:function(e){return[a,new nS().addKeys(e.keys)]},count:c,query:c,openCursor:c};return y(d).forEach(function(e){s[e]=function(o){var a=eU.subscr;if(a){var s=function(e){var n="idb://"+t+"/"+r+"/"+e;return a[n]||(a[n]=new nS)},c=s(""),f=s(":dels"),h=d[e](o),g=h[0],m=h[1];if(s(g.name||"").add(m),!g.isPrimaryKey){if("count"===e)f.add(n);else{var y="query"===e&&u&&o.values&&i.query(p(p({},o),{values:!1}));return i[e].apply(this,arguments).then(function(t){if("query"===e){if(u&&o.values)return y.then(function(e){var n=e.result;return c.addKeys(n),t});var n=o.values?t.result.map(l):t.result;o.values?c.addKeys(n):f.addKeys(n)}else if("openCursor"===e){var r=o.values;return t&&Object.create(t,{key:{get:function(){return f.addKey(t.primaryKey),t.key}},primaryKey:{get:function(){var e=t.primaryKey;return f.addKey(e),e}},value:{get:function(){return r&&c.addKey(t.primaryKey),t.value}}})}return t})}}}return i[e].apply(this,arguments)}}),s}})}},nD=function(){function e(t,n){var r,i,o,a,l,u=this;this._middlewares={},this.verno=0;var s=e.dependencies;this._options=n=p({addons:e.addons,autoOpen:!0,indexedDB:s.indexedDB,IDBKeyRange:s.IDBKeyRange},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange};var c=n.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var d={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:ev,dbReadyPromise:null,cancelOpen:ev,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};d.dbReadyPromise=new eq(function(e){d.dbReadyResolve=e}),d.openCanceller=new eq(function(e,t){d.cancelOpen=t}),this._state=d,this.name=t,this.on=tA(this,"populate","blocked","versionchange","close",{ready:[ex,ev]}),this.on.ready.subscribe=R(this.on.ready.subscribe,function(t){return function(n,r){e.vip(function(){var e=u._state;e.openComplete?(e.dbOpenError||eq.resolve().then(n),r&&t(n)):e.onReadyBeingFired?(e.onReadyBeingFired.push(n),r&&t(n)):(t(n),r||t(function e(){u.on.ready.unsubscribe(n),u.on.ready.unsubscribe(e)}))})}}),this.Collection=(r=this,tD(tz.prototype,function(e,t){this.db=r;var n=tV,i=null;if(t)try{n=t()}catch(e){i=e}var o=e._ctx,a=o.table,l=a.hook.reading.fire;this._ctx={table:a,index:o.index,isPrimKey:!o.index||a.schema.primKey.keyPath&&o.index===a.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:i,or:o.or,valueMapper:l!==ep?l:null}})),this.Table=(i=this,tD(tT.prototype,function(e,t,n){this.db=i,this._tx=n,this.name=e,this.schema=t,this.hook=i._allTables[e]?i._allTables[e].hook:tA(null,{creating:[ey,ev],reading:[eg,ep],updating:[eb,ev],deleting:[e_,ev]})})),this.Transaction=(o=this,tD(t3.prototype,function(e,t,n,r,i){var a=this;this.db=o,this.mode=e,this.storeNames=t,this.schema=n,this.chromeTransactionDurability=r,this.idbtrans=null,this.on=tA(this,"complete","error","abort"),this.parent=i||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new eq(function(e,t){a._resolve=e,a._reject=t}),this._completion.then(function(){a.active=!1,a.on.complete.fire()},function(e){var t=a.active;return a.active=!1,a.on.error.fire(e),a.parent?a.parent._reject(e):t&&a.idbtrans&&a.idbtrans.abort(),tv(e)})})),this.Version=(a=this,tD(nd.prototype,function(e){this.db=a,this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(l=this,tD(tJ.prototype,function(e,t,n){this.db=l,this._ctx={table:e,index:":id"===t?null:t,or:n};var r=l._deps.indexedDB;if(!r)throw new ed.MissingAPI;this._cmp=this._ascending=r.cmp.bind(r),this._descending=function(e,t){return r.cmp(t,e)},this._max=function(e,t){return r.cmp(e,t)>0?e:t},this._min=function(e,t){return 0>r.cmp(e,t)?e:t},this._IDBKeyRange=l._deps.IDBKeyRange})),this.on("versionchange",function(e){e.newVersion>0?console.warn("Another connection wants to upgrade database '"+u.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+u.name+"'. Closing db now to resume the delete request."),u.close()}),this.on("blocked",function(e){!e.newVersion||e.newVersion0x4000000000000000?0:t.oldVersion;u=m<1,e._novip.idbdb=s.result,c=m/10,d=l,f=e._dbSchema,(h=e._createTransaction("readwrite",e._storeNames,f)).create(d),h._completion.catch(o),p=h._reject.bind(h),g=eU.transless||eU,tt(function(){var t,n,r,i,o;eU.trans=h,eU.transless=g,0===c?(y(f).forEach(function(e){nl(d,e,f[e].primKey,f[e].indexes)}),nn(e,d),eq.follow(function(){return e.on.populate.fire(h)}).catch(p)):(t=e._novip,n=[],r=t._versions,i=t._dbSchema=ns(t,t.idbdb,d),o=!1,r.filter(function(e){return e._cfg.version>=c}).forEach(function(e){n.push(function(){var n=i,r=e._cfg.dbschema;nc(t,n,d),nc(t,r,d),i=t._dbSchema=r;var a=na(n,r);a.add.forEach(function(e){nl(d,e[0],e[1].primKey,e[1].indexes)}),a.change.forEach(function(e){if(e.recreate)throw new ed.Upgrade("Not yet support for changing primary key");var t=d.objectStore(e.name);e.add.forEach(function(e){return nu(t,e)}),e.change.forEach(function(e){t.deleteIndex(e.name),nu(t,e)}),e.del.forEach(function(e){return t.deleteIndex(e)})});var l=e._cfg.contentUpgrade;if(l&&e._cfg.version>c){nn(t,d),h._memoizedTables={},o=!0;var u,s=L(r);a.del.forEach(function(e){s[e]=n[e]}),ni(t,[t.Transaction.prototype]),nr(t,[t.Transaction.prototype],y(s),s),h.schema=s;var f=J(l);f&&tn();var p=eq.follow(function(){if((u=l(h))&&f){var e=tr.bind(null,null);u.then(e,e)}});return u&&"function"==typeof u.then?eq.resolve(u):p.then(function(){return u})}}),n.push(function(n){o&&tw||function(e,t){[].slice.call(t.db.objectStoreNames).forEach(function(n){return null==e[n]&&t.db.deleteObjectStore(n)})}(e._cfg.dbschema,n),ni(t,[t.Transaction.prototype]),nr(t,[t.Transaction.prototype],t._storeNames,t._dbSchema),h.schema=t._dbSchema})}),(function e(){return n.length?eq.resolve(n.shift()(h.idbtrans)).then(e):eq.resolve()})().then(function(){(function(e,t){y(e).forEach(function(n){t.db.objectStoreNames.contains(n)||nl(t,n,e[n].primKey,e[n].indexes)})})(i,d)})).catch(p)})}},o),s.onsuccess=e5(function(){l=null;var n,i,o,c=e._novip.idbdb=s.result,d=D(c.objectStoreNames);if(d.length>0)try{var f,h,p,g=c.transaction(1===d.length?d[0]:d,"readonly");r.autoSchema?((f=e._novip).verno=c.version/10,h=f._dbSchema=ns(f,c,g),f._storeNames=D(c.objectStoreNames,0),nr(f,[f._allTables],y(h),h)):(nc(e,e._dbSchema,g),((p=na(ns(e,e.idbdb,g),e._dbSchema)).add.length||p.change.some(function(e){return e.add.length||e.change.length}))&&console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),nn(e,g)}catch(e){}tb.push(e),c.onversionchange=e5(function(t){r.vcFired=!0,e.on("versionchange").fire(t)}),c.onclose=e5(function(t){e.on("close").fire(t)}),u&&(i=(n=e._deps).indexedDB,o=n.IDBKeyRange,nh(i)||a===tk||nf(i,o).put({name:a}).catch(ev)),t()},o)})})]).then(function(){return n(),r.onReadyBeingFired=[],eq.resolve(nv(function(){return e.on.ready.fire(e.vip)})).then(function t(){if(r.onReadyBeingFired.length>0){var n=r.onReadyBeingFired.reduce(ex,ev);return r.onReadyBeingFired=[],eq.resolve(nv(function(){return n(e.vip)})).then(t)}})}).finally(function(){r.onReadyBeingFired=null,r.isBeingOpened=!1}).then(function(){return e}).catch(function(t){r.dbOpenError=t;try{l&&l.abort()}catch(e){}return o===r.openCanceller&&e._close(),tv(t)}).finally(function(){r.openComplete=!0,a()})}(this)},e.prototype._close=function(){var e=this._state,t=tb.indexOf(this);if(t>=0&&tb.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new eq(function(t){e.dbReadyResolve=t}),e.openCanceller=new eq(function(t,n){e.cancelOpen=n})},e.prototype.close=function(){this._close();var e=this._state;this._options.autoOpen=!1,e.dbOpenError=new ed.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)},e.prototype.delete=function(){var e=this,t=arguments.length>0,n=this._state;return new eq(function(r,i){var o=function(){e.close();var t=e._deps.indexedDB.deleteDatabase(e.name);t.onsuccess=e5(function(){var t,n,i,o;t=e._deps,n=e.name,i=t.indexedDB,o=t.IDBKeyRange,nh(i)||n===tk||nf(i,o).delete(n).catch(ev),r()}),t.onerror=tZ(i),t.onblocked=e._fireOnBlocked};if(t)throw new ed.InvalidArgument("Arguments not allowed in db.delete()");n.isBeingOpened?n.dbReadyPromise.then(o):o()})},e.prototype.backendDB=function(){return this.idbdb},e.prototype.isOpen=function(){return null!==this.idbdb},e.prototype.hasBeenClosed=function(){var e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name},e.prototype.hasFailed=function(){return null!==this._state.dbOpenError},e.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(e.prototype,"tables",{get:function(){var e=this;return y(this._allTables).map(function(t){return e._allTables[t]})},enumerable:!1,configurable:!0}),e.prototype.transaction=function(){var e=ng.apply(this,arguments);return this._transaction.apply(this,e)},e.prototype._transaction=function(e,t,n){var r,i,o=this,a=eU.trans;a&&a.db===this&&-1===e.indexOf("!")||(a=null);var l=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{if(i=t.map(function(e){var t=e instanceof o.Table?e.name:e;if("string"!=typeof t)throw TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t}),"r"==e||e===tS)r=tS;else if("rw"==e||e==tC)r=tC;else throw new ed.InvalidArgument("Invalid transaction mode: "+e);if(a){if(a.mode===tS&&r===tC){if(l)a=null;else throw new ed.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY")}a&&i.forEach(function(e){if(a&&-1===a.storeNames.indexOf(e)){if(l)a=null;else throw new ed.SubTransaction("Table "+e+" not included in parent transaction.")}}),l&&a&&!a.active&&(a=null)}}catch(e){return a?a._promise(null,function(t,n){n(e)}):tv(e)}var u=(function e(t,n,r,i,o){return eq.resolve().then(function(){var a,l=eU.transless||eU,u=t._createTransaction(n,r,t._dbSchema,i);if(i)u.idbtrans=i.idbtrans;else try{u.create(),t._state.PR1398_maxLoop=3}catch(i){if(i.name===ec.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0)return console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(function(){return e(t,n,r,null,o)});return tv(i)}var s=J(o);s&&tn();var c=eq.follow(function(){if(a=o.call(u,u)){if(s){var e=tr.bind(null,null);a.then(e,e)}else"function"==typeof a.next&&"function"==typeof a.throw&&(a=np(a))}},{trans:u,transless:l});return(a&&"function"==typeof a.then?eq.resolve(a).then(function(e){return u.active?e:tv(new ed.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):c.then(function(){return a})).then(function(e){return i&&u._resolve(),u._completion.then(function(){return e})}).catch(function(e){return u._reject(e),tv(e)})})}).bind(null,this,r,i,a,n);return a?a._promise(r,u,"lock"):eU.trans?ts(eU.transless,function(){return o._whenReady(u)}):this._whenReady(u)},e.prototype.table=function(e){if(!k(this._allTables,e))throw new ed.InvalidTable("Table "+e+" does not exist");return this._allTables[e]},e}(),nR="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable",nO=((s=function(e){this._subscribe=e}).prototype.subscribe=function(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})},s.prototype[nR]=function(){return this},s);function nI(e,t){return y(t).forEach(function(n){nE(e[n]||(e[n]=new nS),t[n])}),e}function nB(e){var t=!1,n=void 0,r=new nO(function(r){var i=function(t){a&&tn();var n=function(){return tt(e,{subscr:t,trans:null})},r=eU.trans?ts(eU.transless,n):n();return a&&r.then(tr,tr),r},o=function(){return y(s).some(function(e){return u[e]&&function(e,t){var n=nV(t),r=n.next();if(r.done)return!1;for(var i=r.value,o=nV(e),a=o.next(i.from),l=a.value;!r.done&&!a.done;){if(0>=tj(l.from,i.to)&&tj(l.to,i.from)>=0)return!0;0>tj(i.from,l.from)?i=(r=n.next(l.from)).value:l=(a=o.next(i.from)).value}return!1}(u[e],s[e])})},a=J(e),l=!1,u={},s={},c={get closed(){return l},unsubscribe:function(){l=!0,t2.storagemutated.unsubscribe(h)}};r.start&&r.start(c);var d=!1,f=!1,h=function(e){nI(u,e),o()&&p()},p=function(){if(!d&&!l){u={};var e={},a=i(e);f||(t2(t0,h),f=!0),d=!0,Promise.resolve(a).then(function(i){t=!0,n=i,d=!1,!l&&(o()?p():(u={},s=e,r.next&&r.next(i)))},function(e){d=!1,t=!1,r.error&&r.error(e),c.unsubscribe()})}};return p(),c});return r.hasValue=function(){return t},r.getValue=function(){return n},r}try{d={indexedDB:m.indexedDB||m.mozIndexedDB||m.webkitIndexedDB||m.msIndexedDB,IDBKeyRange:m.IDBKeyRange||m.webkitIDBKeyRange}}catch(e){d={indexedDB:null,IDBKeyRange:null}}function nP(e){var t=nM;try{nM=!0,t2.storagemutated.fire(e)}finally{nM=t}}S(nD,p(p({},eh),{delete:function(e){return new nD(e,{addons:[]}).delete()},exists:function(e){return new nD(e,{addons:[]}).open().then(function(e){return e.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(e){try{var t,n,r;return(n=(t=nD.dependencies).indexedDB,r=t.IDBKeyRange,nh(n)?Promise.resolve(n.databases()).then(function(e){return e.map(function(e){return e.name}).filter(function(e){return e!==tk})}):nf(n,r).toCollection().primaryKeys()).then(e)}catch(e){return tv(new ed.MissingAPI)}},defineClass:function(){return function(e){b(this,e)}},ignoreTransaction:function(e){return eU.trans?ts(eU.transless,e):e()},vip:nv,async:function(e){return function(){try{var t=np(e.apply(this,arguments));if(!t||"function"!=typeof t.then)return eq.resolve(t);return t}catch(e){return tv(e)}}},spawn:function(e,t,n){try{var r=np(e.apply(n,t||[]));if(!r||"function"!=typeof r.then)return eq.resolve(r);return r}catch(e){return tv(e)}},currentTransaction:{get:function(){return eU.trans||null}},waitFor:function(e,t){var n=eq.resolve("function"==typeof e?nD.ignoreTransaction(e):e).timeout(t||6e4);return eU.trans?eU.trans.waitFor(n):n},Promise:eq,debug:{get:function(){return Z},set:function(e){Z=e,Q="dexie"===e?function(){return!0}:tx}},derive:V,extend:b,props:S,override:R,Events:tA,on:t2,liveQuery:nB,extendObservabilitySet:nI,getByKeyPath:P,setByKeyPath:M,delByKeyPath:function(e,t){"string"==typeof t?M(e,t,void 0):"length"in t&&[].map.call(t,function(t){M(e,t,void 0)})},shallowClone:L,deepClone:H,getObjectDiff:n_,cmp:tj,asap:I,minKey:tm,addons:[],connections:tb,errnames:ec,dependencies:d,semVer:tp,version:tp.split(".").map(function(e){return parseInt(e)}).reduce(function(e,t,n){return e+t/Math.pow(10,2*n)})})),nD.maxKey=t8(nD.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(t2(t0,function(e){if(!nM){var t;tw?(t=document.createEvent("CustomEvent")).initCustomEvent(t1,!0,!0,e):t=new CustomEvent(t1,{detail:e}),nM=!0,dispatchEvent(t),nM=!1}}),addEventListener(t1,function(e){var t=e.detail;nM||nP(t)}));var nM=!1;if("undefined"!=typeof BroadcastChannel){var nL=new BroadcastChannel(t1);"function"==typeof nL.unref&&nL.unref(),t2(t0,function(e){nM||nL.postMessage(e)}),nL.onmessage=function(e){e.data&&nP(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){t2(t0,function(e){try{nM||("undefined"!=typeof localStorage&&localStorage.setItem(t1,JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&g([],self.clients.matchAll({includeUncontrolled:!0}),!0).forEach(function(t){return t.postMessage({type:t1,changedParts:e})}))}catch(e){}}),"undefined"!=typeof addEventListener&&addEventListener("storage",function(e){if(e.key===t1){var t=JSON.parse(e.newValue);t&&nP(t.changedParts)}});var nj=self.document&&navigator.serviceWorker;nj&&nj.addEventListener("message",function(e){var t=e.data;t&&t.type===t1&&nP(t.changedParts)})}eq.rejectionMapper=function(e,t){if(!e||e instanceof ea||e instanceof TypeError||e instanceof SyntaxError||!e.name||!ef[e.name])return e;var n=new ef[e.name](t||e.message,e);return"stack"in e&&E(n,"stack",{get:function(){return this.inner.stack}}),n},Q=tx}),f.register("9BzA6",function(e,n){t(e.exports,"copyToClipboard",function(){return s}),t(e.exports,"parseClassroom",function(){return c}),t(e.exports,"parse",function(){return d}),t(e.exports,"stringify",function(){return h}),t(e.exports,"scrapeModule",function(){return p}),t(e.exports,"validateUrl",function(){return m}),t(e.exports,"infoHash",function(){return y}),t(e.exports,"getPeerID",function(){return _}),t(e.exports,"clone",function(){return b});var r=f("xJRWs"),i=f("a42Vg"),o=f("9zFRg"),a=f("3XT9C"),l=f("i1Uxe");function u(e,t,n){if(t.match(/(https?)?:\/\//i))return"script"===e?''):'');var r=new URL(t,n).toString();return'\n ')}function s(e){navigator.clipboard.writeText(e)}function c(e){var t;console.warn("parse Classroom",e);try{if(t=d(e))for(var n=0;n').concat(s.style||"","\n \n \n \n ").concat(s.body||"","\n \n \n "),[2,(0,o._)((0,i._)({},e),{name:s.name,description:s.description,icon:s.icon||"mdi-package",shownIn:s["show-in"]||["*"],srcdoc:"data:text/html,"+escape(f),origin:"*"})]}catch(e){throw console.warn("loading yaml:",e),Error("Could not load the YAML-declaration: "+e.message)}else{if((h=document.createElement("html")).innerHTML=t,(p=Object.fromEntries(Object.values(h.getElementsByTagName("meta")).map(function(e){return[e.name,e.content]}))).fetch&&"false"!==p.fetch)return[2,(0,o._)((0,i._)({},e),{name:h.getElementsByTagName("title")[0].innerText||p.name,description:p.description,icon:p.icon||"mdi-package",shownIn:(p["show-in"]||"*").replace(/\s+/g,"").split(","),srcdoc:"data:text/html,"+escape(function(e,t){try{var n=e.match(RegExp(".*?<\\/head>","is"))[0];return n=(n=n.replace(RegExp(".*?<\\/script>","gims"),function(e){var n=e.match(RegExp("src=(?:'|\")([^\"']+)(?:'|\")","is"));return n&&!((n=n[1]).startsWith("https://")||n.startsWith("http://"))?u("script",n,t):e})).replace(RegExp("","gims"),function(e){var n=e.match(RegExp("href=(?:'|\")([^\"']+)(?:'|\")","is"));return n&&!((n=n[1]).startsWith("https://")||n.startsWith("http://"))?u("css",n,t):e}),e.replace(RegExp(".*?<\\/head>","is"),n)}catch(e){console.warn("problems parsing html:",e)}}(t,e.url)),origin:"*"})];try{return[2,(0,o._)((0,i._)({},e),{name:h.getElementsByTagName("title")[0].innerText||p.name,description:p.description,icon:p.icon||"mdi-package",shownIn:(p["show-in"]||"*").replace(/\s+/g,"").split(",")})]}catch(e){throw Error("This does not seem to be a valid module declaration, check the URL manually.")}}return[3,4];case 3:return g=a.sent(),[2,(0,o._)((0,i._)({},e),{name:"",description:g,icon:"mdi-alert",shownIn:""})];case 4:return[2]}})})).apply(this,arguments)}function m(e){try{var t=new URL(e);if(["http:","https:","file:","ipfs:","ipns:","blob:","dat:","hyper:"].includes(t.protocol))return!0}catch(e){}return!1}function y(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:40,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="",r=0;r=0)n=t;else{var o=w(t);for(var a in n=o===Object.prototype?{}:Object.create(o),Y&&Y.set(t,n),t)k(t,a)&&(n[a]=e(t[a]))}return n}(e);return Y=null,t}var q={}.toString;function W(e){return q.call(e).slice(8,-1)}var K="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",X=(void 0===K?"undefined":(0,h._)(K))==="symbol"?function(e){var t;return null!=e&&(t=e[K])&&t.apply(e)}:function(){return null},G={};function $(e){var t,n,r,i;if(1==arguments.length){if(_(e))return e.slice();if(this===G&&"string"==typeof e)return[e];if(i=X(e)){for(n=[];!(r=i.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=Array(t);t--;)n[t]=arguments[t];return n}var J="undefined"!=typeof Symbol?function(e){return"AsyncFunction"===e[Symbol.toStringTag]}:function(){return!1},Z="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href),Q=function(){return!0},ee=!Error("").stack;function et(){if(ee)try{throw et.arguments,Error()}catch(e){return e}return Error()}function en(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(Q).map(function(e){return"\n"+e}).join("")):""}var er=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],ei=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(er),eo={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function ea(e,t){this._e=et(),this.name=e,this.message=t}function el(e,t){return e+". Errors: "+Object.keys(t).map(function(e){return t[e].toString()}).filter(function(e,t,n){return n.indexOf(e)===t}).join("\n")}function eu(e,t,n,r){this._e=et(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=el(e,t)}function es(e,t){this._e=et(),this.name="BulkError",this.failures=Object.keys(t).map(function(e){return t[e]}),this.failuresByPos=t,this.message=el(e,t)}V(ea).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+en(this._e,2))}},toString:function(){return this.name+": "+this.message}}),V(eu).from(ea),V(es).from(ea);var ec=ei.reduce(function(e,t){return e[t]=t+"Error",e},{}),ed=ei.reduce(function(e,t){var n=function(e,n){this._e=et(),this.name=r,e?"string"==typeof e?(this.message=""+e+(n?"\n "+n:""),this.inner=n||null):"object"==typeof e&&(this.message=e.name+" "+e.message,this.inner=e):(this.message=eo[t]||r,this.inner=null)},r=t+"Error";return V(n).from(ea),e[t]=n,e},{});ed.Syntax=SyntaxError,ed.Type=TypeError,ed.Range=RangeError;var ef=er.reduce(function(e,t){return e[t+"Error"]=ed[t],e},{}),eh=ei.reduce(function(e,t){return -1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=ed[t]),e},{});function ev(){}function ep(e){return e}function eg(e,t){return null==e||e===ep?t:function(n){return t(e(n))}}function em(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function ey(e,t){return e===ev?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var o=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?em(r,this.onsuccess):r),i&&(this.onerror=this.onerror?em(i,this.onerror):i),void 0!==o?o:n}}function e_(e,t){return e===ev?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?em(n,this.onsuccess):n),r&&(this.onerror=this.onerror?em(r,this.onerror):r)}}function eb(e,t){return e===ev?t:function(n){var r=e.apply(this,arguments);b(n,r);var i=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?em(i,this.onsuccess):i),o&&(this.onerror=this.onerror?em(o,this.onerror):o),void 0===r?void 0===a?void 0:a:b(r,a)}}function ew(e,t){return e===ev?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function ex(e,t){return e===ev?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,i=arguments.length,o=Array(i);i--;)o[i]=arguments[i];return n.then(function(){return t.apply(r,o)})}return t.apply(this,arguments)}}eh.ModifyError=eu,eh.DexieError=ea,eh.BulkError=es;var ek={},eS="undefined"==typeof Promise?[]:function(){var e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,w(e),e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,w(t),e]}(),eC=eS[0],eE=eS[1],eV=eS[2],eN=eE&&eE.then,eT=eC&&eC.constructor,eA=!!eV,eD=!1,eR=eV?function(){eV.then(eQ)}:m.setImmediate?setImmediate.bind(null,eQ):m.MutationObserver?function(){var e=document.createElement("div");new MutationObserver(function(){eQ(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:function(){setTimeout(eQ,0)},eO=function(e,t){ez.push([e,t]),eB&&(eR(),eB=!1)},eI=!0,eB=!0,eP=[],eM=[],eL=null,ej=ep,eF={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:th,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(function(e){try{th(e[0],e[1])}catch(e){}})}},eU=eF,ez=[],eY=0,eH=[];function eq(e){if("object"!=typeof this)throw TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=ev,this._lib=!1;var t=this._PSD=eU;if(Z&&(this._stackHolder=et(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==ek)throw TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],!1===this._state&&eX(this,this._value);return}this._state=null,this._value=null,++t.ref,function e(t,n){try{n(function(n){if(null===t._state){if(n===t)throw TypeError("A promise cannot be resolved with itself.");var r=t._lib&&e0();n&&"function"==typeof n.then?e(t,function(e,t){n instanceof eq?n._then(e,t):n.then(e,t)}):(t._state=!0,t._value=n,eG(t)),r&&e1()}},eX.bind(null,t))}catch(e){eX(t,e)}}(this,e)}var eW={get:function(){var e=function(e,r){var i=this,o=!t.global&&(t!==eU||n!==e9),a=o&&!tr(),l=new eq(function(n,l){e$(i,new eK(tc(e,t,o,a),tc(r,t,o,a),n,l,t))});return Z&&eZ(l,this),l},t=eU,n=e9;return e.prototype=ek,e},set:function(e){E(this,"then",e&&e.prototype===ek?eW:{get:function(){return e},set:eW.set})}};function eK(e,t,n,r,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=i}function eX(e,t){if(eM.push(t),null===e._state){var n=e._lib&&e0();t=ej(t),e._state=!1,e._value=t,Z&&null!==t&&"object"==typeof t&&!t._promise&&function(e,t,n){try{e.apply(null,void 0)}catch(e){t&&t(e)}}(function(){var n=T(t,"stack");t._promise=e,E(t,"stack",{get:function(){return eD?n&&(n.get?n.get.apply(t):n.value):e.stack}})}),eP.some(function(t){return t._value===e._value})||eP.push(e),eG(e),n&&e1()}}function eG(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n0;)for(t=0,e=ez,ez=[],n=e.length;t0)eI=!0,eB=!0}function e2(){var e=eP;eP=[],e.forEach(function(e){e._PSD.onunhandled.call(null,e._value,e)});for(var t=eH.slice(0),n=t.length;n;)t[--n]()}function e3(e){return new eq(ek,!1,e)}function e4(e,t){var n=eU;return function(){var r=e0(),i=eU;try{return tl(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{tl(i,!1),r&&e1()}}}S(eq.prototype,{then:eW,_then:function(e,t){e$(this,new eK(null,null,e,t,eU))},catch:function(e){if(1==arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,function(e){return e instanceof t?n(e):e3(e)}):this.then(null,function(e){return e&&e.name===t?n(e):e3(e)})},finally:function(e){return this.then(function(t){return e(),t},function(t){return e(),e3(t)})},stack:{get:function(){if(this._stack)return this._stack;try{eD=!0;var e=(function e(t,n,r){if(n.length===r)return n;var i="";if(!1===t._state){var o,a,l=t._value;null!=l?(o=l.name||"Error",a=l.message||l,i=en(l,0)):(o=l,a=""),n.push(o+(a?": "+a:"")+i)}return Z&&((i=en(t._stackHolder,2))&&-1===n.indexOf(i)&&n.push(i),t._prev&&e(t._prev,n,r)),n})(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{eD=!1}}},timeout:function(e,t){var n=this;return e<1/0?new eq(function(r,i){var o=setTimeout(function(){return i(new ed.Timeout(t))},e);n.then(r,i).finally(clearTimeout.bind(null,o))}):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&E(eq.prototype,Symbol.toStringTag,"Dexie.Promise"),eF.env=tu(),S(eq,{all:function(){var e=$.apply(null,arguments).map(ti);return new eq(function(t,n){0===e.length&&t([]);var r=e.length;e.forEach(function(i,o){return eq.resolve(i).then(function(n){e[o]=n,--r||t(e)},n)})})},resolve:function(e){if(e instanceof eq)return e;if(e&&"function"==typeof e.then)return new eq(function(t,n){e.then(t,n)});var t=new eq(ek,!0,e);return eZ(t,eL),t},reject:e3,race:function(){var e=$.apply(null,arguments).map(ti);return new eq(function(t,n){e.map(function(e){return eq.resolve(e).then(t,n)})})},PSD:{get:function(){return eU},set:function(e){return eU=e}},totalEchoes:{get:function(){return e9}},newPSD:tt,usePSD:ts,scheduler:{get:function(){return eO},set:function(e){eO=e}},rejectionMapper:{get:function(){return ej},set:function(e){ej=e}},follow:function(e,t){return new eq(function(n,r){return tt(function(t,n){var r=eU;r.unhandleds=[],r.onunhandled=n,r.finalize=em(function(){var e,r=this;e=function(){0===r.unhandleds.length?t():n(r.unhandleds[0])},eH.push(function t(){e(),eH.splice(eH.indexOf(t),1)}),++eY,eO(function(){0==--eY&&e2()},[])},r.finalize),e()},t,n,r)})}}),eT&&(eT.allSettled&&E(eq,"allSettled",function(){var e=$.apply(null,arguments).map(ti);return new eq(function(t){0===e.length&&t([]);var n=e.length,r=Array(n);e.forEach(function(e,i){return eq.resolve(e).then(function(e){return r[i]={status:"fulfilled",value:e}},function(e){return r[i]={status:"rejected",reason:e}}).then(function(){return--n||t(r)})})})}),eT.any&&"undefined"!=typeof AggregateError&&E(eq,"any",function(){var e=$.apply(null,arguments).map(ti);return new eq(function(t,n){0===e.length&&n(AggregateError([]));var r=e.length,i=Array(r);e.forEach(function(e,o){return eq.resolve(e).then(function(e){return t(e)},function(e){i[o]=e,--r||n(AggregateError(i))})})})}));var e5={awaits:0,echoes:0,id:0},e6=0,e8=[],e7=0,e9=0,te=0;function tt(e,t,n,r){var i=eU,o=Object.create(i);o.parent=i,o.ref=0,o.global=!1,o.id=++te;var a=eF.env;o.env=eA?{Promise:eq,PromiseProp:{value:eq,configurable:!0,writable:!0},all:eq.all,race:eq.race,allSettled:eq.allSettled,any:eq.any,resolve:eq.resolve,reject:eq.reject,nthen:td(a.nthen,o),gthen:td(a.gthen,o)}:{},t&&b(o,t),++i.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()};var l=ts(o,e,n,r);return 0===o.ref&&o.finalize(),l}function tn(){return e5.id||(e5.id=++e6),++e5.awaits,e5.echoes+=100,e5.id}function tr(){return!!e5.awaits&&(0==--e5.awaits&&(e5.id=0),e5.echoes=100*e5.awaits,!0)}function ti(e){return e5.echoes&&e&&e.constructor===eT?(tn(),e.then(function(e){return tr(),e},function(e){return tr(),tv(e)})):e}function to(e){++e9,e5.echoes&&0!=--e5.echoes||(e5.echoes=e5.id=0),e8.push(eU),tl(e,!0)}function ta(){var e=e8[e8.length-1];e8.pop(),tl(e,!1)}function tl(e,t){var n,r=eU;if((t?!e5.echoes||e7++&&e===eU:!e7||--e7&&e===eU)||(n=t?to.bind(null,e):ta,eN.call(eC,n)),e!==eU&&(eU=e,r===eF&&(eF.env=tu()),eA)){var i=eF.env.Promise,o=e.env;eE.then=o.nthen,i.prototype.then=o.gthen,(r.global||e.global)&&(Object.defineProperty(m,"Promise",o.PromiseProp),i.all=o.all,i.race=o.race,i.resolve=o.resolve,i.reject=o.reject,o.allSettled&&(i.allSettled=o.allSettled),o.any&&(i.any=o.any))}}function tu(){var e=m.Promise;return eA?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(m,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:eE.then,gthen:e.prototype.then}:{}}function ts(e,t,n,r,i){var o=eU;try{return tl(e,!0),t(n,r,i)}finally{tl(o,!1)}}function tc(e,t,n,r){return"function"!=typeof e?e:function(){var i,o=eU;n&&tn(),tl(t,!0);try{return e.apply(this,arguments)}finally{tl(o,!1),r&&(i=tr,eN.call(eC,i))}}}function td(e,t){return function(n,r){return e.call(this,tc(n,t),tc(r,t))}}-1===(""+eN).indexOf("[native code]")&&(tn=tr=ev);var tf="unhandledrejection";function th(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var r,i={promise:t,reason:e};if(m.document&&document.createEvent?((r=document.createEvent("Event")).initEvent(tf,!0,!0),b(r,i)):m.CustomEvent&&(r=new CustomEvent(tf,{detail:i}),b(r,i)),r&&m.dispatchEvent&&(dispatchEvent(r),!m.PromiseRejectionEvent&&m.onunhandledrejection))try{m.onunhandledrejection(r)}catch(e){}Z&&r&&!r.defaultPrevented&&console.warn("Unhandled rejection: "+(e.stack||e))}catch(e){}}var tv=eq.reject,tp="3.2.4",tg=String.fromCharCode(65535),tm=-1/0,ty="Invalid key provided. Keys must be of type string, number, Date or Array.",t_="String expected.",tb=[],tw="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),tx=function(e){return!/(dexie\.js|dexie\.min\.js)/.test(e)},tk="__dbnames",tS="readonly",tC="readwrite";function tE(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var tV={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function tN(e){return"string"!=typeof e||/\./.test(e)?function(e){return e}:function(t){return void 0===t[e]&&e in t&&(t=H(t),delete t[e]),t}}var tT=((r=function(){}).prototype._trans=function(e,t,n){var r=function(e,n,r){if(!r.schema[o])throw new ed.NotFound("Table "+o+" not part of transaction");return t(r.idbtrans,r)},i=this._tx||eU.trans,o=this.name,a=e0();try{return i&&i.db===this.db?i===eU.trans?i._promise(e,r,n):tt(function(){return i._promise(e,r,n)},{trans:i,transless:eU.transless||eU}):function e(t,n,r,i){if(t.idbdb&&(t._state.openComplete||eU.letThrough||t._vip)){var o=t._createTransaction(n,r,t._dbSchema);try{o.create(),t._state.PR1398_maxLoop=3}catch(o){if(o.name===ec.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0)return console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(function(){return e(t,n,r,i)});return tv(o)}return o._promise(n,function(e,t){return tt(function(){return eU.trans=o,i(e,t,o)})}).then(function(e){return o._completion.then(function(){return e})})}if(t._state.openComplete)return tv(new ed.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return tv(new ed.DatabaseClosed);t.open().catch(ev)}return t._state.dbReadyPromise.then(function(){return e(t,n,r,i)})}(this.db,e,[this.name],r)}finally{a&&e1()}},r.prototype.get=function(e,t){var n=this;return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",function(t){return n.core.get({trans:t,key:e}).then(function(e){return n.hook.reading.fire(e)})}).then(t)},r.prototype.where=function(e){var t=function(e,t){try{return 0===o.cmp(e,t)}catch(e){return!1}};if("string"==typeof e)return new this.db.WhereClause(this,e);if(_(e))return new this.db.WhereClause(this,"["+e.join("+")+"]");var n=y(e);if(1===n.length)return this.where(n[0]).equals(e[n[0]]);var r=this.schema.indexes.concat(this.schema.primKey).filter(function(e){return e.compound&&n.every(function(t){return e.keyPath.indexOf(t)>=0})&&e.keyPath.every(function(e){return n.indexOf(e)>=0})})[0];if(r&&this.db._maxKey!==tg)return this.where(r.name).equals(r.keyPath.map(function(t){return e[t]}));!r&&Z&&console.warn("The query "+JSON.stringify(e)+" on "+this.name+" would benefit of a compound index ["+n.join("+")+"]");var i=this.schema.idxByName,o=this.db._deps.indexedDB,a=n.reduce(function(n,r){var o=n[0],a=n[1],l=i[r],u=e[r];return[o||l,o||!l?tE(a,l&&l.multi?function(e){var n=P(e,r);return _(n)&&n.some(function(e){return t(u,e)})}:function(e){return t(u,P(e,r))}):a]},[null,null]),l=a[0],u=a[1];return l?this.where(l.name).equals(e[l.keyPath]).filter(u):r?this.filter(u):this.where(n).equals("")},r.prototype.filter=function(e){return this.toCollection().and(e)},r.prototype.count=function(e){return this.toCollection().count(e)},r.prototype.offset=function(e){return this.toCollection().offset(e)},r.prototype.limit=function(e){return this.toCollection().limit(e)},r.prototype.each=function(e){return this.toCollection().each(e)},r.prototype.toArray=function(e){return this.toCollection().toArray(e)},r.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},r.prototype.orderBy=function(e){return new this.db.Collection(new this.db.WhereClause(this,_(e)?"["+e.join("+")+"]":e))},r.prototype.reverse=function(){return this.toCollection().reverse()},r.prototype.mapToClass=function(e){this.schema.mappedClass=e;var t=function(t){if(!t)return t;var n=Object.create(e.prototype);for(var r in t)if(k(t,r))try{n[r]=t[r]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e},r.prototype.defineClass=function(){return this.mapToClass(function(e){b(this,e)})},r.prototype.add=function(e,t){var n=this,r=this.schema.primKey,i=r.auto,o=r.keyPath,a=e;return o&&i&&(a=tN(o)(e)),this._trans("readwrite",function(e){return n.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[a]})}).then(function(e){return e.numFailures?eq.reject(e.failures[0]):e.lastResult}).then(function(t){if(o)try{M(e,o,t)}catch(e){}return t})},r.prototype.update=function(e,t){if("object"!=typeof e||_(e))return this.where(":id").equals(e).modify(t);var n=P(e,this.schema.primKey.keyPath);if(void 0===n)return tv(new ed.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?y(t).forEach(function(n){M(e,n,t[n])}):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)},r.prototype.put=function(e,t){var n=this,r=this.schema.primKey,i=r.auto,o=r.keyPath,a=e;return o&&i&&(a=tN(o)(e)),this._trans("readwrite",function(e){return n.core.mutate({trans:e,type:"put",values:[a],keys:null!=t?[t]:null})}).then(function(e){return e.numFailures?eq.reject(e.failures[0]):e.lastResult}).then(function(t){if(o)try{M(e,o,t)}catch(e){}return t})},r.prototype.delete=function(e){var t=this;return this._trans("readwrite",function(n){return t.core.mutate({trans:n,type:"delete",keys:[e]})}).then(function(e){return e.numFailures?eq.reject(e.failures[0]):void 0})},r.prototype.clear=function(){var e=this;return this._trans("readwrite",function(t){return e.core.mutate({trans:t,type:"deleteRange",range:tV})}).then(function(e){return e.numFailures?eq.reject(e.failures[0]):void 0})},r.prototype.bulkGet=function(e){var t=this;return this._trans("readonly",function(n){return t.core.getMany({keys:e,trans:n}).then(function(e){return e.map(function(e){return t.hook.reading.fire(e)})})})},r.prototype.bulkAdd=function(e,t,n){var r=this,i=Array.isArray(t)?t:void 0,o=(n=n||(i?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",function(t){var n=r.schema.primKey,a=n.auto,l=n.keyPath;if(l&&i)throw new ed.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(i&&i.length!==e.length)throw new ed.InvalidArgument("Arguments objects and keys must have the same length");var u=e.length,s=l&&a?e.map(tN(l)):e;return r.core.mutate({trans:t,type:"add",keys:i,values:s,wantResults:o}).then(function(e){var t=e.numFailures,n=e.results,i=e.lastResult,a=e.failures;if(0===t)return o?n:i;throw new es(r.name+".bulkAdd(): "+t+" of "+u+" operations failed",a)})})},r.prototype.bulkPut=function(e,t,n){var r=this,i=Array.isArray(t)?t:void 0,o=(n=n||(i?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",function(t){var n=r.schema.primKey,a=n.auto,l=n.keyPath;if(l&&i)throw new ed.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(i&&i.length!==e.length)throw new ed.InvalidArgument("Arguments objects and keys must have the same length");var u=e.length,s=l&&a?e.map(tN(l)):e;return r.core.mutate({trans:t,type:"put",keys:i,values:s,wantResults:o}).then(function(e){var t=e.numFailures,n=e.results,i=e.lastResult,a=e.failures;if(0===t)return o?n:i;throw new es(r.name+".bulkPut(): "+t+" of "+u+" operations failed",a)})})},r.prototype.bulkDelete=function(e){var t=this,n=e.length;return this._trans("readwrite",function(n){return t.core.mutate({trans:n,type:"delete",keys:e})}).then(function(e){var r=e.numFailures,i=e.lastResult,o=e.failures;if(0===r)return i;throw new es(t.name+".bulkDelete(): "+r+" of "+n+" operations failed",o)})},r);function tA(e){var t=function(e,t,o){if("object"==typeof e)return n(e);t||(t=ew),o||(o=ev);var a={subscribers:[],fire:o,subscribe:function(e){-1===a.subscribers.indexOf(e)&&(a.subscribers.push(e),a.fire=t(a.fire,e))},unsubscribe:function(e){a.subscribers=a.subscribers.filter(function(t){return t!==e}),a.fire=a.subscribers.reduce(t,o)}};return r[e]=i[e]=a,a},n=function(e){y(e).forEach(function(n){var r=e[n];if(_(r))t(n,e[n][0],e[n][1]);else if("asap"===r)var i=t(n,ep,function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];i.subscribers.forEach(function(e){I(function(){e.apply(null,t)})})});else throw new ed.InvalidArgument("Invalid event config")})},r={},i=function(t,n){if(n){for(var i=arguments.length,o=Array(i-1);--i;)o[i-1]=arguments[i];return r[t].subscribe.apply(null,o),e}if("string"==typeof t)return r[t]};i.addEventType=t;for(var o=1,a=arguments.length;ot?1:er?l:0},r=e.split(".").reverse(),i=r[0],o=r.length-1;function a(e,t){return t?a(e[r[t]],t-1):e[i]}var l="next"===this._ctx.dir?1:-1;return this.toArray(function(e){return e.sort(n)}).then(t)},i.prototype.toArray=function(e){var t=this;return this._read(function(e){var n=t._ctx;if("next"===n.dir&&tR(n,!0)&&n.limit>0){var r=n.valueMapper,i=tB(n,n.table.core.schema);return n.table.core.query({trans:e,limit:n.limit,values:!0,query:{index:i,range:n.range}}).then(function(e){var t=e.result;return r?t.map(r):t})}var o=[];return tM(n,function(e){return o.push(e)},e,n.table.core).then(function(){return o})},e)},i.prototype.offset=function(e){var t=this._ctx;return e<=0||(t.offset+=e,tR(t)?tI(t,function(){var t=e;return function(e,n){return 0===t||(1===t?--t:n(function(){e.advance(t),t=0}),!1)}}):tI(t,function(){var t=e;return function(){return--t<0}})),this},i.prototype.limit=function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),tI(this._ctx,function(){var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}},!0),this},i.prototype.until=function(e,t){return tO(this._ctx,function(n,r,i){return!e(n.value)||(r(i),t)}),this},i.prototype.first=function(e){return this.limit(1).toArray(function(e){return e[0]}).then(e)},i.prototype.last=function(e){return this.reverse().first(e)},i.prototype.filter=function(e){var t;return tO(this._ctx,function(t){return e(t.value)}),(t=this._ctx).isMatch=tE(t.isMatch,e),this},i.prototype.and=function(e){return this.filter(e)},i.prototype.or=function(e){return new this.db.WhereClause(this._ctx.table,e,this)},i.prototype.reverse=function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},i.prototype.desc=function(){return this.reverse()},i.prototype.eachKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.key,n)})},i.prototype.eachUniqueKey=function(e){return this._ctx.unique="unique",this.eachKey(e)},i.prototype.eachPrimaryKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each(function(t,n){e(n.primaryKey,n)})},i.prototype.keys=function(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.key)}).then(function(){return n}).then(e)},i.prototype.primaryKeys=function(e){var t=this._ctx;if("next"===t.dir&&tR(t,!0)&&t.limit>0)return this._read(function(e){var n=tB(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})}).then(function(e){return e.result}).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each(function(e,t){n.push(t.primaryKey)}).then(function(){return n}).then(e)},i.prototype.uniqueKeys=function(e){return this._ctx.unique="unique",this.keys(e)},i.prototype.firstKey=function(e){return this.limit(1).keys(function(e){return e[0]}).then(e)},i.prototype.lastKey=function(e){return this.reverse().firstKey(e)},i.prototype.distinct=function(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return tO(this._ctx,function(e){var t=e.primaryKey.toString(),r=k(n,t);return n[t]=!0,!r}),this},i.prototype.modify=function(e){var t=this,n=this._ctx;return this._write(function(r){if("function"==typeof e)i=e;else{var i,o=y(e),a=o.length;i=function(t){for(var n=!1,r=0;r0&&l.mutate({trans:r,type:"add",values:h}).then(function(e){for(var t in e.failures)y.splice(parseInt(t),1);g(h.length,e)})).then(function(){return(p.length>0||x&&"object"==typeof e)&&l.mutate({trans:r,type:"put",keys:m,values:p,criteria:x,changeSpec:"function"!=typeof e&&e}).then(function(e){return g(p.length,e)})}).then(function(){return(y.length>0||x&&e===tY)&&l.mutate({trans:r,type:"delete",keys:y,criteria:x}).then(function(e){return g(y.length,e)})}).then(function(){return t.length>a+u&&o(a+d)})})};return o(0).then(function(){if(f.length>0)throw new eu("Error modifying one or more objects",f,h,p);return t.length})})})},i.prototype.delete=function(){var e=this._ctx,t=e.range;return tR(e)&&(e.isPrimKey&&!tw||3===t.type)?this._write(function(n){var r=e.table.core.schema.primaryKey;return e.table.core.count({trans:n,query:{index:r,range:t}}).then(function(r){return e.table.core.mutate({trans:n,type:"deleteRange",range:t}).then(function(e){var t=e.failures;e.lastResult,e.results;var n=e.numFailures;if(n)throw new eu("Could not delete some values",Object.keys(t).map(function(e){return t[e]}),r-n);return r-n})})}):this.modify(tY)},i),tY=function(e,t){return t.value=null};function tH(e,t){return et?-1:e===t?0:1}function tW(e,t,n){var r=e instanceof tJ?new e.Collection(e):e;return r._ctx.error=n?new n(t):TypeError(t),r}function tK(e){return new e.Collection(e,function(){return t$("")}).limit(0)}function tX(e,t,n,r){var i,o,a,l,u,s,c,d=function(e){i="next"===e?function(e){return e.toUpperCase()}:function(e){return e.toLowerCase()},o="next"===e?function(e){return e.toLowerCase()}:function(e){return e.toUpperCase()},a="next"===e?tH:tq;var t=n.map(function(e){return{lower:o(e),upper:i(e)}}).sort(function(e,t){return a(e.lower,t.lower)});l=t.map(function(e){return e.upper}),u=t.map(function(e){return e.lower}),s=e,c="next"===e?"":r},f=n.length;if(!n.every(function(e){return"string"==typeof e}))return tW(e,t_);d("next");var h=new e.Collection(e,function(){return tG(l[0],u[f-1]+r)});h._ondirectionchange=function(e){d(e)};var p=0;return h._addAlgorithm(function(e,n,r){var i=e.key;if("string"!=typeof i)return!1;var d=o(i);if(t(d,u,p))return!0;for(var h=null,g=p;gi(e[u],n[u]))return e.substr(0,u)+n[u]+n.substr(u+1);if(0>i(e[u],r[u]))return e.substr(0,u)+r[u]+n.substr(u+1);if(l>=0)return e.substr(0,l)+t[l]+n.substr(l+1);return null}0>i(e[u],s)&&(l=u)}return a0)&&(h=m)}return n(null!==h?function(){e.continue(h+c)}:r),!1}),h}function tG(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function t$(e){return{type:1,lower:e,upper:e}}var tJ=(Object.defineProperty((o=function(){}).prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),o.prototype.between=function(e,t,n,r){n=!1!==n,r=!0===r;try{if(this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&!(n&&r))return tK(this);return new this.Collection(this,function(){return tG(e,t,!n,!r)})}catch(e){return tW(this,ty)}},o.prototype.equals=function(e){return null==e?tW(this,ty):new this.Collection(this,function(){return t$(e)})},o.prototype.above=function(e){return null==e?tW(this,ty):new this.Collection(this,function(){return tG(e,void 0,!0)})},o.prototype.aboveOrEqual=function(e){return null==e?tW(this,ty):new this.Collection(this,function(){return tG(e,void 0,!1)})},o.prototype.below=function(e){return null==e?tW(this,ty):new this.Collection(this,function(){return tG(void 0,e,!1,!0)})},o.prototype.belowOrEqual=function(e){return null==e?tW(this,ty):new this.Collection(this,function(){return tG(void 0,e)})},o.prototype.startsWith=function(e){return"string"!=typeof e?tW(this,t_):this.between(e,e+tg,!0,!0)},o.prototype.startsWithIgnoreCase=function(e){return""===e?this.startsWith(e):tX(this,function(e,t){return 0===e.indexOf(t[0])},[e],tg)},o.prototype.equalsIgnoreCase=function(e){return tX(this,function(e,t){return e===t[0]},[e],"")},o.prototype.anyOfIgnoreCase=function(){var e=$.apply(G,arguments);return 0===e.length?tK(this):tX(this,function(e,t){return -1!==t.indexOf(e)},e,"")},o.prototype.startsWithAnyOfIgnoreCase=function(){var e=$.apply(G,arguments);return 0===e.length?tK(this):tX(this,function(e,t){return t.some(function(t){return 0===e.indexOf(t)})},e,tg)},o.prototype.anyOf=function(){var e=this,t=$.apply(G,arguments),n=this._cmp;try{t.sort(n)}catch(e){return tW(this,ty)}if(0===t.length)return tK(this);var r=new this.Collection(this,function(){return tG(t[0],t[t.length-1])});r._ondirectionchange=function(r){n="next"===r?e._ascending:e._descending,t.sort(n)};var i=0;return r._addAlgorithm(function(e,r,o){for(var a=e.key;n(a,t[i])>0;)if(++i===t.length)return r(o),!1;return 0===n(a,t[i])||(r(function(){e.continue(t[i])}),!1)}),r},o.prototype.notEqual=function(e){return this.inAnyRange([[tm,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},o.prototype.noneOf=function(){var e=$.apply(G,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return tW(this,ty)}var t=e.reduce(function(e,t){return e?e.concat([[e[e.length-1][1],t]]):[[tm,t]]},null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})},o.prototype.inAnyRange=function(e,t){var n,r=function(e,t){return f(e[0],t[0])},i=this,o=this._cmp,a=this._ascending,l=this._descending,u=this._min,s=this._max;if(0===e.length)return tK(this);if(!e.every(function(e){return void 0!==e[0]&&void 0!==e[1]&&0>=a(e[0],e[1])}))return tW(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ed.InvalidArgument);var c=!t||!1!==t.includeLowers,d=t&&!0===t.includeUppers,f=a;try{(n=e.reduce(function(e,t){for(var n=0,r=e.length;no(t[0],i[1])&&o(t[1],i[0])>0){i[0]=u(i[0],t[0]),i[1]=s(i[1],t[1]);break}}return n===r&&e.push(t),e},[])).sort(r)}catch(e){return tW(this,ty)}var h=0,p=d?function(e){return a(e,n[h][1])>0}:function(e){return a(e,n[h][1])>=0},g=c?function(e){return l(e,n[h][0])>0}:function(e){return l(e,n[h][0])>=0},m=p,y=new this.Collection(this,function(){return tG(n[0][0],n[n.length-1][1],!c,!d)});return y._ondirectionchange=function(e){"next"===e?(m=p,f=a):(m=g,f=l),n.sort(r)},y._addAlgorithm(function(e,t,r){for(var o=e.key;m(o);)if(++h===n.length)return t(r),!1;return!(p(o)||g(o))||0!==i._cmp(o,n[h][1])&&0!==i._cmp(o,n[h][0])&&(t(function(){f===a?e.continue(n[h][0]):e.continue(n[h][1])}),!1)}),y},o.prototype.startsWithAnyOf=function(){var e=$.apply(G,arguments);return e.every(function(e){return"string"==typeof e})?0===e.length?tK(this):this.inAnyRange(e.map(function(e){return[e,e+tg]})):tW(this,"startsWithAnyOf() only works with strings")},o);function tZ(e){return e4(function(t){return tQ(t),e(t.target.error),!1})}function tQ(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var t0="storagemutated",t1="x-storagemutated-1",t2=tA(null,t0),t3=((a=function(){}).prototype._lock=function(){return O(!eU.global),++this._reculock,1!==this._reculock||eU.global||(eU.lockOwnerFor=this),this},a.prototype._unlock=function(){if(O(!eU.global),0==--this._reculock)for(eU.global||(eU.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{ts(e[1],e[0])}catch(e){}}return this},a.prototype._locked=function(){return this._reculock&&eU.lockOwnerFor!==this},a.prototype.create=function(e){var t=this;if(!this.mode)return this;var n=this.db.idbdb,r=this.db._state.dbOpenError;if(O(!this.idbtrans),!e&&!n)switch(r&&r.name){case"DatabaseClosedError":throw new ed.DatabaseClosed(r);case"MissingAPIError":throw new ed.MissingAPI(r.message,r);default:throw new ed.OpenFailed(r)}if(!this.active)throw new ed.TransactionInactive;return O(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):n.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=e4(function(n){tQ(n),t._reject(e.error)}),e.onabort=e4(function(n){tQ(n),t.active&&t._reject(new ed.Abort(e.error)),t.active=!1,t.on("abort").fire(n)}),e.oncomplete=e4(function(){t.active=!1,t._resolve(),"mutatedParts"in e&&t2.storagemutated.fire(e.mutatedParts)}),this},a.prototype._promise=function(e,t,n){var r=this;if("readwrite"===e&&"readwrite"!==this.mode)return tv(new ed.ReadOnly("Transaction is readonly"));if(!this.active)return tv(new ed.TransactionInactive);if(this._locked())return new eq(function(i,o){r._blockedFuncs.push([function(){r._promise(e,t,n).then(i,o)},eU])});if(n)return tt(function(){var e=new eq(function(e,n){r._lock();var i=t(e,n,r);i&&i.then&&i.then(e,n)});return e.finally(function(){return r._unlock()}),e._lib=!0,e});var i=new eq(function(e,n){var i=t(e,n,r);i&&i.then&&i.then(e,n)});return i._lib=!0,i},a.prototype._root=function(){return this.parent?this.parent._root():this},a.prototype.waitFor=function(e){var t=this._root(),n=eq.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then(function(){return n});else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var i=t._waitingFor;return new eq(function(e,r){n.then(function(n){return t._waitingQueue.push(e4(e.bind(null,n)))},function(e){return t._waitingQueue.push(e4(r.bind(null,e)))}).finally(function(){t._waitingFor===i&&(t._waitingFor=null)})})},a.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ed.Abort))},a.prototype.table=function(e){var t=this._memoizedTables||(this._memoizedTables={});if(k(t,e))return t[e];var n=this.schema[e];if(!n)throw new ed.NotFound("Table "+e+" not part of transaction");var r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r},a);function t4(e,t,n,r,i,o,a){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:o,src:(n&&!a?"&":"")+(r?"*":"")+(i?"++":"")+t5(t)}}function t5(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function t6(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:B(n,function(e){return[e.name,e]})}}var t8=function(e){try{return e.only([[]]),t8=function(){return[[]]},[[]]}catch(e){return t8=function(){return tg},tg}};function t7(e){return null==e?function(){}:"string"==typeof e?1===e.split(".").length?function(t){return t[e]}:function(t){return P(t,e)}:function(t){return P(t,e)}}function t9(e){return[].slice.call(e)}var ne=0;function nt(e){return null==e?":id":"string"==typeof e?e:"["+e.join("+")+"]"}function nn(e,t){var n,r,i,o,a,l,u,s,c,d,f,h,g=e._novip,m=t.db,y=(n=g._middlewares,i=(r=g._deps).IDBKeyRange,r.indexedDB,{dbcore:(o=function(e){if(3===e.type)return null;if(4===e.type)throw Error("Cannot convert never type to IDBKeyRange");var t=e.lower,n=e.upper,r=e.lowerOpen,o=e.upperOpen;return void 0===t?void 0===n?null:i.upperBound(n,!!o):void 0===n?i.lowerBound(t,!!r):i.bound(t,n,!!r,!!o)},a=function(e){var t,n=e.name;return{name:n,schema:e,mutate:function(e){var t=e.trans,r=e.type,i=e.keys,a=e.values,l=e.range;return new Promise(function(e,u){e=e4(e);var s,c=t.objectStore(n),d=null==c.keyPath,f="put"===r||"add"===r;if(!f&&"delete"!==r&&"deleteRange"!==r)throw Error("Invalid operation type: "+r);var h=(i||a||{length:1}).length;if(i&&a&&i.length!==a.length)throw Error("Given keys array must have same length as given values array.");if(0===h)return e({numFailures:0,failures:{},results:[],lastResult:void 0});var p=[],g=[],m=0,y=function(e){++m,tQ(e)};if("deleteRange"===r){if(4===l.type)return e({numFailures:m,failures:g,results:[],lastResult:void 0});3===l.type?p.push(s=c.clear()):p.push(s=c.delete(o(l)))}else{var _=f?d?[a,i]:[a,null]:[i,null],b=_[0],w=_[1];if(f)for(var x=0;x0&&"getAll"in t.objectStore(l[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}).schema,c=u.hasGetAll,d=s.tables.map(function(e){return a(e)}),f={},d.forEach(function(e){return f[e.name]=e}),h={stack:"dbcore",transaction:m.transaction.bind(m),table:function(e){if(!f[e])throw Error("Table '"+e+"' not found");return f[e]},MIN_KEY:-1/0,MAX_KEY:t8(i),schema:s},n.dbcore.reduce(function(e,t){var n=t.create;return p(p({},e),n(e))},h))});g.core=y.dbcore,g.tables.forEach(function(e){var t=e.name;g.core.schema.tables.some(function(e){return e.name===t})&&(e.core=g.core.table(t),g[t]instanceof g.Table&&(g[t].core=e.core))})}function nr(e,t,n,r){var i=e._novip;n.forEach(function(e){var n=r[e];t.forEach(function(t){var r=T(t,e);(!r||"value"in r&&void 0===r.value)&&(t===i.Transaction.prototype||t instanceof i.Transaction?E(t,e,{get:function(){return this.table(e)},set:function(t){C(this,e,{value:t,writable:!0,configurable:!0,enumerable:!0})}}):t[e]=new i.Table(e,n))})})}function ni(e,t){var n=e._novip;t.forEach(function(e){for(var t in e)e[t]instanceof n.Table&&delete e[t]})}function no(e,t){return e._cfg.version-t._cfg.version}function na(e,t){var n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){var i=e[n],o=t[n];if(i){var a={name:n,def:o,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")==""+(o.primKey.keyPath||"")&&(i.primKey.auto===o.primKey.auto||tw)){var l=i.idxByName,u=o.idxByName,s=void 0;for(s in l)u[s]||a.del.push(s);for(s in u){var c=l[s],d=u[s];c?c.src!==d.src&&a.change.push(d):a.add.push(d)}(a.del.length>0||a.add.length>0||a.change.length>0)&&r.change.push(a)}else a.recreate=!0,r.change.push(a)}else r.add.push([n,o])}return r}function nl(e,t,n,r){var i=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach(function(e){return nu(i,e)}),i}function nu(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function ns(e,t,n){var r={};return D(t.objectStoreNames,0).forEach(function(e){for(var t=n.objectStore(e),i=t.keyPath,o=t4(t5(i),i||"",!1,!1,!!t.autoIncrement,i&&"string"!=typeof i,!0),a=[],l=0;l0,c=p(p({},n),{isVirtual:s,keyTail:t,keyLength:u,extractKey:t7(e),unique:!s&&n.unique});return i.push(c),c.isPrimaryKey||a.push(c),u>1&&l(2===u?e[0]:e.slice(0,u-1),t+1,n),i.sort(function(e,t){return e.keyTail-t.keyTail}),c}var u=l(i.primaryKey.keyPath,0,i.primaryKey);o[":id"]=[u];for(var s=0,c=i.indexes;s0?Promise.reject(n.failures[0]):r.length1?t:e}:{d:0});else{var n=new nS;return e&&"d"in e&&b(n,e),n}};function nC(e,t,n){var r=tj(t,n);if(!isNaN(r)){if(r>0)throw RangeError();if(nk(e))return b(e,{from:t,to:n,d:1});var i=e.l,o=e.r;if(0>tj(n,e.from))return i?nC(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},nN(e);if(tj(t,e.to)>0)return o?nC(o,t,n):e.r={from:t,to:n,d:1,l:null,r:null},nN(e);0>tj(t,e.from)&&(e.from=t,e.l=null,e.d=o?o.d+1:1),tj(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);var a=!e.r;i&&!e.l&&nE(e,i),o&&a&&nE(e,o)}}function nE(e,t){nk(t)||function e(t,n){var r=n.from,i=n.to,o=n.l,a=n.r;nC(t,r,i),o&&e(t,o),a&&e(t,a)}(e,t)}function nV(e){var t=nk(e)?null:{s:0,n:e};return{next:function(e){for(var n=arguments.length>0;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&0>tj(e,t.n.from);)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||0>=tj(e,t.n.to))return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function nN(e){var t,n,r=((null===(t=e.r)||void 0===t?void 0:t.d)||0)-((null===(n=e.l)||void 0===n?void 0:n.d)||0),i=r>1?"r":r<-1?"l":"";if(i){var o="r"===i?"l":"r",a=p({},e),l=e[i];e.from=l.from,e.to=l.to,e[i]=l[i],a[i]=l[o],e[o]=a,a.d=nT(a)}e.d=nT(e)}function nT(e){var t=e.r,n=e.l;return(t?n?Math.max(t.d,n.d):t.d:n?n.d:0)+1}S(nS.prototype,((c={add:function(e){return nE(this,e),this},addKey:function(e){return nC(this,e,e),this},addKeys:function(e){var t=this;return e.forEach(function(e){return nC(t,e,e)}),this}})[K]=function(){return nV(this)},c));var nA={stack:"dbcore",level:0,create:function(e){var t=e.schema.name,n=new nS(e.MIN_KEY,e.MAX_KEY);return p(p({},e),{table:function(r){var i=e.table(r),o=i.schema,a=o.primaryKey,l=a.extractKey,u=a.outbound,s=p(p({},i),{mutate:function(e){var a=e.trans,l=a.mutatedParts||(a.mutatedParts={}),u=function(e){var n="idb://"+t+"/"+r+"/"+e;return l[n]||(l[n]=new nS)},s=u(""),c=u(":dels"),d=e.type,f="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[],h=f[0],p=f[1],g=e.trans._cache;return i.mutate(e).then(function(e){if(_(h)){"delete"!==d&&(h=e.results),s.addKeys(h);var t=nw(h,g);t||"add"===d||c.addKeys(h),(t||p)&&function(e,t,n,r){t.indexes.forEach(function(t){var i=e(t.name||"");function o(e){return null!=e?t.extractKey(e):null}var a=function(e){return t.multiEntry&&_(e)?e.forEach(function(e){return i.addKey(e)}):i.addKey(e)};(n||r).forEach(function(e,t){var i=n&&o(n[t]),l=r&&o(r[t]);0!==tj(i,l)&&(null!=i&&a(i),null!=l&&a(l))})})}(u,o,t,p)}else if(h){var r={from:h.lower,to:h.upper};c.add(r),s.add(r)}else s.add(n),c.add(n),o.indexes.forEach(function(e){return u(e.name).add(n)});return e})}}),c=function(t){var n,r,i=t.query,o=i.index,a=i.range;return[o,new nS(null!==(n=a.lower)&&void 0!==n?n:e.MIN_KEY,null!==(r=a.upper)&&void 0!==r?r:e.MAX_KEY)]},d={get:function(e){return[a,new nS(e.key)]},getMany:function(e){return[a,new nS().addKeys(e.keys)]},count:c,query:c,openCursor:c};return y(d).forEach(function(e){s[e]=function(o){var a=eU.subscr;if(a){var s=function(e){var n="idb://"+t+"/"+r+"/"+e;return a[n]||(a[n]=new nS)},c=s(""),f=s(":dels"),h=d[e](o),g=h[0],m=h[1];if(s(g.name||"").add(m),!g.isPrimaryKey){if("count"===e)f.add(n);else{var y="query"===e&&u&&o.values&&i.query(p(p({},o),{values:!1}));return i[e].apply(this,arguments).then(function(t){if("query"===e){if(u&&o.values)return y.then(function(e){var n=e.result;return c.addKeys(n),t});var n=o.values?t.result.map(l):t.result;o.values?c.addKeys(n):f.addKeys(n)}else if("openCursor"===e){var r=o.values;return t&&Object.create(t,{key:{get:function(){return f.addKey(t.primaryKey),t.key}},primaryKey:{get:function(){var e=t.primaryKey;return f.addKey(e),e}},value:{get:function(){return r&&c.addKey(t.primaryKey),t.value}}})}return t})}}}return i[e].apply(this,arguments)}}),s}})}},nD=function(){function e(t,n){var r,i,o,a,l,u=this;this._middlewares={},this.verno=0;var s=e.dependencies;this._options=n=p({addons:e.addons,autoOpen:!0,indexedDB:s.indexedDB,IDBKeyRange:s.IDBKeyRange},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange};var c=n.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var d={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:ev,dbReadyPromise:null,cancelOpen:ev,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};d.dbReadyPromise=new eq(function(e){d.dbReadyResolve=e}),d.openCanceller=new eq(function(e,t){d.cancelOpen=t}),this._state=d,this.name=t,this.on=tA(this,"populate","blocked","versionchange","close",{ready:[ex,ev]}),this.on.ready.subscribe=R(this.on.ready.subscribe,function(t){return function(n,r){e.vip(function(){var e=u._state;e.openComplete?(e.dbOpenError||eq.resolve().then(n),r&&t(n)):e.onReadyBeingFired?(e.onReadyBeingFired.push(n),r&&t(n)):(t(n),r||t(function e(){u.on.ready.unsubscribe(n),u.on.ready.unsubscribe(e)}))})}}),this.Collection=(r=this,tD(tz.prototype,function(e,t){this.db=r;var n=tV,i=null;if(t)try{n=t()}catch(e){i=e}var o=e._ctx,a=o.table,l=a.hook.reading.fire;this._ctx={table:a,index:o.index,isPrimKey:!o.index||a.schema.primKey.keyPath&&o.index===a.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:i,or:o.or,valueMapper:l!==ep?l:null}})),this.Table=(i=this,tD(tT.prototype,function(e,t,n){this.db=i,this._tx=n,this.name=e,this.schema=t,this.hook=i._allTables[e]?i._allTables[e].hook:tA(null,{creating:[ey,ev],reading:[eg,ep],updating:[eb,ev],deleting:[e_,ev]})})),this.Transaction=(o=this,tD(t3.prototype,function(e,t,n,r,i){var a=this;this.db=o,this.mode=e,this.storeNames=t,this.schema=n,this.chromeTransactionDurability=r,this.idbtrans=null,this.on=tA(this,"complete","error","abort"),this.parent=i||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new eq(function(e,t){a._resolve=e,a._reject=t}),this._completion.then(function(){a.active=!1,a.on.complete.fire()},function(e){var t=a.active;return a.active=!1,a.on.error.fire(e),a.parent?a.parent._reject(e):t&&a.idbtrans&&a.idbtrans.abort(),tv(e)})})),this.Version=(a=this,tD(nd.prototype,function(e){this.db=a,this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(l=this,tD(tJ.prototype,function(e,t,n){this.db=l,this._ctx={table:e,index:":id"===t?null:t,or:n};var r=l._deps.indexedDB;if(!r)throw new ed.MissingAPI;this._cmp=this._ascending=r.cmp.bind(r),this._descending=function(e,t){return r.cmp(t,e)},this._max=function(e,t){return r.cmp(e,t)>0?e:t},this._min=function(e,t){return 0>r.cmp(e,t)?e:t},this._IDBKeyRange=l._deps.IDBKeyRange})),this.on("versionchange",function(e){e.newVersion>0?console.warn("Another connection wants to upgrade database '"+u.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+u.name+"'. Closing db now to resume the delete request."),u.close()}),this.on("blocked",function(e){!e.newVersion||e.newVersion0x4000000000000000?0:t.oldVersion;u=m<1,e._novip.idbdb=s.result,c=m/10,d=l,f=e._dbSchema,(h=e._createTransaction("readwrite",e._storeNames,f)).create(d),h._completion.catch(o),p=h._reject.bind(h),g=eU.transless||eU,tt(function(){var t,n,r,i,o;eU.trans=h,eU.transless=g,0===c?(y(f).forEach(function(e){nl(d,e,f[e].primKey,f[e].indexes)}),nn(e,d),eq.follow(function(){return e.on.populate.fire(h)}).catch(p)):(t=e._novip,n=[],r=t._versions,i=t._dbSchema=ns(t,t.idbdb,d),o=!1,r.filter(function(e){return e._cfg.version>=c}).forEach(function(e){n.push(function(){var n=i,r=e._cfg.dbschema;nc(t,n,d),nc(t,r,d),i=t._dbSchema=r;var a=na(n,r);a.add.forEach(function(e){nl(d,e[0],e[1].primKey,e[1].indexes)}),a.change.forEach(function(e){if(e.recreate)throw new ed.Upgrade("Not yet support for changing primary key");var t=d.objectStore(e.name);e.add.forEach(function(e){return nu(t,e)}),e.change.forEach(function(e){t.deleteIndex(e.name),nu(t,e)}),e.del.forEach(function(e){return t.deleteIndex(e)})});var l=e._cfg.contentUpgrade;if(l&&e._cfg.version>c){nn(t,d),h._memoizedTables={},o=!0;var u,s=L(r);a.del.forEach(function(e){s[e]=n[e]}),ni(t,[t.Transaction.prototype]),nr(t,[t.Transaction.prototype],y(s),s),h.schema=s;var f=J(l);f&&tn();var p=eq.follow(function(){if((u=l(h))&&f){var e=tr.bind(null,null);u.then(e,e)}});return u&&"function"==typeof u.then?eq.resolve(u):p.then(function(){return u})}}),n.push(function(n){o&&tw||function(e,t){[].slice.call(t.db.objectStoreNames).forEach(function(n){return null==e[n]&&t.db.deleteObjectStore(n)})}(e._cfg.dbschema,n),ni(t,[t.Transaction.prototype]),nr(t,[t.Transaction.prototype],t._storeNames,t._dbSchema),h.schema=t._dbSchema})}),(function e(){return n.length?eq.resolve(n.shift()(h.idbtrans)).then(e):eq.resolve()})().then(function(){(function(e,t){y(e).forEach(function(n){t.db.objectStoreNames.contains(n)||nl(t,n,e[n].primKey,e[n].indexes)})})(i,d)})).catch(p)})}},o),s.onsuccess=e4(function(){l=null;var n,i,o,c=e._novip.idbdb=s.result,d=D(c.objectStoreNames);if(d.length>0)try{var f,h,p,g=c.transaction(1===d.length?d[0]:d,"readonly");r.autoSchema?((f=e._novip).verno=c.version/10,h=f._dbSchema=ns(f,c,g),f._storeNames=D(c.objectStoreNames,0),nr(f,[f._allTables],y(h),h)):(nc(e,e._dbSchema,g),((p=na(ns(e,e.idbdb,g),e._dbSchema)).add.length||p.change.some(function(e){return e.add.length||e.change.length}))&&console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),nn(e,g)}catch(e){}tb.push(e),c.onversionchange=e4(function(t){r.vcFired=!0,e.on("versionchange").fire(t)}),c.onclose=e4(function(t){e.on("close").fire(t)}),u&&(i=(n=e._deps).indexedDB,o=n.IDBKeyRange,nh(i)||a===tk||nf(i,o).put({name:a}).catch(ev)),t()},o)})})]).then(function(){return n(),r.onReadyBeingFired=[],eq.resolve(nv(function(){return e.on.ready.fire(e.vip)})).then(function t(){if(r.onReadyBeingFired.length>0){var n=r.onReadyBeingFired.reduce(ex,ev);return r.onReadyBeingFired=[],eq.resolve(nv(function(){return n(e.vip)})).then(t)}})}).finally(function(){r.onReadyBeingFired=null,r.isBeingOpened=!1}).then(function(){return e}).catch(function(t){r.dbOpenError=t;try{l&&l.abort()}catch(e){}return o===r.openCanceller&&e._close(),tv(t)}).finally(function(){r.openComplete=!0,a()})}(this)},e.prototype._close=function(){var e=this._state,t=tb.indexOf(this);if(t>=0&&tb.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new eq(function(t){e.dbReadyResolve=t}),e.openCanceller=new eq(function(t,n){e.cancelOpen=n})},e.prototype.close=function(){this._close();var e=this._state;this._options.autoOpen=!1,e.dbOpenError=new ed.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)},e.prototype.delete=function(){var e=this,t=arguments.length>0,n=this._state;return new eq(function(r,i){var o=function(){e.close();var t=e._deps.indexedDB.deleteDatabase(e.name);t.onsuccess=e4(function(){var t,n,i,o;t=e._deps,n=e.name,i=t.indexedDB,o=t.IDBKeyRange,nh(i)||n===tk||nf(i,o).delete(n).catch(ev),r()}),t.onerror=tZ(i),t.onblocked=e._fireOnBlocked};if(t)throw new ed.InvalidArgument("Arguments not allowed in db.delete()");n.isBeingOpened?n.dbReadyPromise.then(o):o()})},e.prototype.backendDB=function(){return this.idbdb},e.prototype.isOpen=function(){return null!==this.idbdb},e.prototype.hasBeenClosed=function(){var e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name},e.prototype.hasFailed=function(){return null!==this._state.dbOpenError},e.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(e.prototype,"tables",{get:function(){var e=this;return y(this._allTables).map(function(t){return e._allTables[t]})},enumerable:!1,configurable:!0}),e.prototype.transaction=function(){var e=ng.apply(this,arguments);return this._transaction.apply(this,e)},e.prototype._transaction=function(e,t,n){var r,i,o=this,a=eU.trans;a&&a.db===this&&-1===e.indexOf("!")||(a=null);var l=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{if(i=t.map(function(e){var t=e instanceof o.Table?e.name:e;if("string"!=typeof t)throw TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t}),"r"==e||e===tS)r=tS;else if("rw"==e||e==tC)r=tC;else throw new ed.InvalidArgument("Invalid transaction mode: "+e);if(a){if(a.mode===tS&&r===tC){if(l)a=null;else throw new ed.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY")}a&&i.forEach(function(e){if(a&&-1===a.storeNames.indexOf(e)){if(l)a=null;else throw new ed.SubTransaction("Table "+e+" not included in parent transaction.")}}),l&&a&&!a.active&&(a=null)}}catch(e){return a?a._promise(null,function(t,n){n(e)}):tv(e)}var u=(function e(t,n,r,i,o){return eq.resolve().then(function(){var a,l=eU.transless||eU,u=t._createTransaction(n,r,t._dbSchema,i);if(i)u.idbtrans=i.idbtrans;else try{u.create(),t._state.PR1398_maxLoop=3}catch(i){if(i.name===ec.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0)return console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(function(){return e(t,n,r,null,o)});return tv(i)}var s=J(o);s&&tn();var c=eq.follow(function(){if(a=o.call(u,u)){if(s){var e=tr.bind(null,null);a.then(e,e)}else"function"==typeof a.next&&"function"==typeof a.throw&&(a=np(a))}},{trans:u,transless:l});return(a&&"function"==typeof a.then?eq.resolve(a).then(function(e){return u.active?e:tv(new ed.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):c.then(function(){return a})).then(function(e){return i&&u._resolve(),u._completion.then(function(){return e})}).catch(function(e){return u._reject(e),tv(e)})})}).bind(null,this,r,i,a,n);return a?a._promise(r,u,"lock"):eU.trans?ts(eU.transless,function(){return o._whenReady(u)}):this._whenReady(u)},e.prototype.table=function(e){if(!k(this._allTables,e))throw new ed.InvalidTable("Table "+e+" does not exist");return this._allTables[e]},e}(),nR="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable",nO=((s=function(e){this._subscribe=e}).prototype.subscribe=function(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})},s.prototype[nR]=function(){return this},s);function nI(e,t){return y(t).forEach(function(n){nE(e[n]||(e[n]=new nS),t[n])}),e}function nB(e){var t=!1,n=void 0,r=new nO(function(r){var i=function(t){a&&tn();var n=function(){return tt(e,{subscr:t,trans:null})},r=eU.trans?ts(eU.transless,n):n();return a&&r.then(tr,tr),r},o=function(){return y(s).some(function(e){return u[e]&&function(e,t){var n=nV(t),r=n.next();if(r.done)return!1;for(var i=r.value,o=nV(e),a=o.next(i.from),l=a.value;!r.done&&!a.done;){if(0>=tj(l.from,i.to)&&tj(l.to,i.from)>=0)return!0;0>tj(i.from,l.from)?i=(r=n.next(l.from)).value:l=(a=o.next(i.from)).value}return!1}(u[e],s[e])})},a=J(e),l=!1,u={},s={},c={get closed(){return l},unsubscribe:function(){l=!0,t2.storagemutated.unsubscribe(h)}};r.start&&r.start(c);var d=!1,f=!1,h=function(e){nI(u,e),o()&&p()},p=function(){if(!d&&!l){u={};var e={},a=i(e);f||(t2(t0,h),f=!0),d=!0,Promise.resolve(a).then(function(i){t=!0,n=i,d=!1,!l&&(o()?p():(u={},s=e,r.next&&r.next(i)))},function(e){d=!1,t=!1,r.error&&r.error(e),c.unsubscribe()})}};return p(),c});return r.hasValue=function(){return t},r.getValue=function(){return n},r}try{d={indexedDB:m.indexedDB||m.mozIndexedDB||m.webkitIndexedDB||m.msIndexedDB,IDBKeyRange:m.IDBKeyRange||m.webkitIDBKeyRange}}catch(e){d={indexedDB:null,IDBKeyRange:null}}function nP(e){var t=nM;try{nM=!0,t2.storagemutated.fire(e)}finally{nM=t}}S(nD,p(p({},eh),{delete:function(e){return new nD(e,{addons:[]}).delete()},exists:function(e){return new nD(e,{addons:[]}).open().then(function(e){return e.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(e){try{var t,n,r;return(n=(t=nD.dependencies).indexedDB,r=t.IDBKeyRange,nh(n)?Promise.resolve(n.databases()).then(function(e){return e.map(function(e){return e.name}).filter(function(e){return e!==tk})}):nf(n,r).toCollection().primaryKeys()).then(e)}catch(e){return tv(new ed.MissingAPI)}},defineClass:function(){return function(e){b(this,e)}},ignoreTransaction:function(e){return eU.trans?ts(eU.transless,e):e()},vip:nv,async:function(e){return function(){try{var t=np(e.apply(this,arguments));if(!t||"function"!=typeof t.then)return eq.resolve(t);return t}catch(e){return tv(e)}}},spawn:function(e,t,n){try{var r=np(e.apply(n,t||[]));if(!r||"function"!=typeof r.then)return eq.resolve(r);return r}catch(e){return tv(e)}},currentTransaction:{get:function(){return eU.trans||null}},waitFor:function(e,t){var n=eq.resolve("function"==typeof e?nD.ignoreTransaction(e):e).timeout(t||6e4);return eU.trans?eU.trans.waitFor(n):n},Promise:eq,debug:{get:function(){return Z},set:function(e){Z=e,Q="dexie"===e?function(){return!0}:tx}},derive:V,extend:b,props:S,override:R,Events:tA,on:t2,liveQuery:nB,extendObservabilitySet:nI,getByKeyPath:P,setByKeyPath:M,delByKeyPath:function(e,t){"string"==typeof t?M(e,t,void 0):"length"in t&&[].map.call(t,function(t){M(e,t,void 0)})},shallowClone:L,deepClone:H,getObjectDiff:n_,cmp:tj,asap:I,minKey:tm,addons:[],connections:tb,errnames:ec,dependencies:d,semVer:tp,version:tp.split(".").map(function(e){return parseInt(e)}).reduce(function(e,t,n){return e+t/Math.pow(10,2*n)})})),nD.maxKey=t8(nD.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(t2(t0,function(e){if(!nM){var t;tw?(t=document.createEvent("CustomEvent")).initCustomEvent(t1,!0,!0,e):t=new CustomEvent(t1,{detail:e}),nM=!0,dispatchEvent(t),nM=!1}}),addEventListener(t1,function(e){var t=e.detail;nM||nP(t)}));var nM=!1;if("undefined"!=typeof BroadcastChannel){var nL=new BroadcastChannel(t1);"function"==typeof nL.unref&&nL.unref(),t2(t0,function(e){nM||nL.postMessage(e)}),nL.onmessage=function(e){e.data&&nP(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){t2(t0,function(e){try{nM||("undefined"!=typeof localStorage&&localStorage.setItem(t1,JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&g([],self.clients.matchAll({includeUncontrolled:!0}),!0).forEach(function(t){return t.postMessage({type:t1,changedParts:e})}))}catch(e){}}),"undefined"!=typeof addEventListener&&addEventListener("storage",function(e){if(e.key===t1){var t=JSON.parse(e.newValue);t&&nP(t.changedParts)}});var nj=self.document&&navigator.serviceWorker;nj&&nj.addEventListener("message",function(e){var t=e.data;t&&t.type===t1&&nP(t.changedParts)})}eq.rejectionMapper=function(e,t){if(!e||e instanceof ea||e instanceof TypeError||e instanceof SyntaxError||!e.name||!ef[e.name])return e;var n=new ef[e.name](t||e.message,e);return"stack"in e&&E(n,"stack",{get:function(){return this.inner.stack}}),n},Q=tx}),f.register("9BzA6",function(e,n){t(e.exports,"copyToClipboard",function(){return s}),t(e.exports,"parseClassroom",function(){return c}),t(e.exports,"parse",function(){return d}),t(e.exports,"stringify",function(){return h}),t(e.exports,"scrapeModule",function(){return p}),t(e.exports,"validateUrl",function(){return m}),t(e.exports,"infoHash",function(){return y}),t(e.exports,"getPeerID",function(){return _}),t(e.exports,"clone",function(){return b});var r=f("xJRWs"),i=f("a42Vg"),o=f("9zFRg"),a=f("3XT9C"),l=f("i1Uxe");function u(e,t,n){if(t.match(/(https?)?:\/\//i))return"script"===e?''):'');var r=new URL(t,n).toString();return'\n ')}function s(e){navigator.clipboard.writeText(e)}function c(e){var t;console.warn("parse Classroom",e);try{if(t=d(e))for(var n=0;n').concat(s.style||"","\n \n \n \n ").concat(s.body||"","\n \n \n "),[2,(0,o._)((0,i._)({},e),{name:s.name,description:s.description,icon:s.icon||"mdi-package",shownIn:s["show-in"]||["*"],srcdoc:"data:text/html,"+escape(f),origin:"*"})]}catch(e){throw console.warn("loading yaml:",e),Error("Could not load the YAML-declaration: "+e.message)}else{if((h=document.createElement("html")).innerHTML=t,(p=Object.fromEntries(Object.values(h.getElementsByTagName("meta")).map(function(e){return[e.name,e.content]}))).fetch&&"false"!==p.fetch)return[2,(0,o._)((0,i._)({},e),{name:h.getElementsByTagName("title")[0].innerText||p.name,description:p.description,icon:p.icon||"mdi-package",shownIn:(p["show-in"]||"*").replace(/\s+/g,"").split(","),srcdoc:"data:text/html,"+escape(function(e,t){try{var n=e.match(RegExp(".*?<\\/head>","is"))[0];return n=(n=n.replace(RegExp(".*?<\\/script>","gims"),function(e){var n=e.match(RegExp("src=(?:'|\")([^\"']+)(?:'|\")","is"));return n&&!((n=n[1]).startsWith("https://")||n.startsWith("http://"))?u("script",n,t):e})).replace(RegExp("","gims"),function(e){var n=e.match(RegExp("href=(?:'|\")([^\"']+)(?:'|\")","is"));return n&&!((n=n[1]).startsWith("https://")||n.startsWith("http://"))?u("css",n,t):e}),e.replace(RegExp(".*?<\\/head>","is"),n)}catch(e){console.warn("problems parsing html:",e)}}(t,e.url)),origin:"*"})];try{return[2,(0,o._)((0,i._)({},e),{name:h.getElementsByTagName("title")[0].innerText||p.name,description:p.description,icon:p.icon||"mdi-package",shownIn:(p["show-in"]||"*").replace(/\s+/g,"").split(",")})]}catch(e){throw Error("This does not seem to be a valid module declaration, check the URL manually.")}}return[3,4];case 3:return g=a.sent(),[2,(0,o._)((0,i._)({},e),{name:"",description:g,icon:"mdi-alert",shownIn:""})];case 4:return[2]}})})).apply(this,arguments)}function m(e){try{var t=new URL(e);if(["http:","https:","file:","ipfs:","ipns:","blob:","dat:","hyper:"].includes(t.protocol))return!0}catch(e){}return!1}function y(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:40,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="",r=0;rl&&(t=r-l+(o=" ... ").length),n-r>l&&(n=r+l-(a=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+o.length// relative position @@ -767,7 +767,7 @@ eU.utils={on:y,off:_,css:S,find:E,is:function(e,t){return!!w(e,t,e,!1)},extend:f if(t.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,u=t.scrollSpeed,s=V(),c=!1;eX!==n&&(eX=n,e1(),eK=t.scroll,i=t.scrollFn,!0===eK&&(eK=I(n,!0)));var d=0,f=eK;do{var h=f,p=N(h),g=p.top,m=p.bottom,y=p.left,_=p.right,b=p.width,w=p.height,x=void 0,k=void 0,C=h.scrollWidth,E=h.scrollHeight,T=S(h),A=h.scrollLeft,D=h.scrollTop;h===s?(x=b"},lineNumbersCount:function(){return this.codeData.split(/\r\n|\n/).length}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(this.lineNumbers&&this.autoStyleLineNumbers){var e=this.$refs.pre,t=this.$el.querySelector(".prism-editor__line-numbers"),n=window.getComputedStyle(e);this.$nextTick(function(){var r="border-top-left-radius",i="border-bottom-left-radius";t&&(t.style[r]=n[r],t.style[i]=n[i],e.style[r]="0",e.style[i]="0",["background-color","margin-top","padding-top","font-family","font-size","line-height"].forEach(function(e){t.style[e]=n[e]}),t.style["margin-bottom"]="-"+n["padding-top"])})}},_recordCurrentState:function(){var e=this.$refs.textarea;if(e){var t=e.value,n=e.selectionStart,r=e.selectionEnd;this._recordChange({value:t,selectionStart:n,selectionEnd:r})}// Save current state of the input },_getLines:function(e,t){return e.substring(0,t).split("\n")},_applyEdits:function(e){// Save last selection state @@ -1382,11 +1382,11 @@ Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/ * @param {string} value * @param {string} [flags] * @returns {RegExp} - */function(e,t){return t=(t||"").replace(/m/g,"")+"m",RegExp(/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return a}).replace(/<>/g,function(){return e}),t)},i=/[*&][^\s[\]{},]+/,a="(?:"+(o=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/).source+"(?:[ ]+"+i.source+")?|"+i.source+"(?:[ ]+"+o.source+")?)",l=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),u=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source,n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return a}).replace(/<>/g,function(){return"(?:"+l+"|"+u+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:r(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:r(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:r(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:r(u),lookbehind:!0,greedy:!0},number:{pattern:r(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:o,important:i,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml}),f.register("8ussG",function(e,n){t(e.exports,"render",function(){return o}),f("7DTtY");var r=f("5BxzC"),i=f("9Nw75");function o(e,t,n,o,a,l){var u=(0,r.resolveComponent)("v-icon"),s=(0,r.resolveComponent)("v-expansion-panel-title"),c=(0,r.resolveComponent)("v-divider"),d=(0,r.resolveComponent)("prism-editor"),f=(0,r.resolveComponent)("v-expansion-panel-text"),h=(0,r.resolveComponent)("v-expansion-panel");return(0,r.openBlock)(),(0,r.createBlock)(h,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,null,{actions:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{style:(0,i.normalizeStyle)(a.errorMessage?"color: red;":"")},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,i.toDisplayString)(n.icon),1)]}),_:1},8,["style"])]}),default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,i.toDisplayString)(n.title)+" ",1)]}),_:1}),(0,r.createVNode)(f,null,{default:(0,r.withCtx)(function(){return[(0,r.createElementVNode)("div",{style:(0,i.normalizeStyle)([{"font-size":"small","margin-bottom":"0.25rem"},a.errorMessage?"color: red;":"color: gray;"])},(0,i.toDisplayString)(a.errorMessage||"Valid YAML or JSON configuration"),5),(0,r.createVNode)(c,{style:{"margin-bottom":"0.5rem"}}),(0,r.createVNode)(d,{modelValue:a.code,"onUpdate:modelValue":t[0]||(t[0]=function(e){return a.code=e}),highlight:l.highlighter,"line-numbers":""},null,8,["modelValue","highlight"])]}),_:1})]}),_:1})}}),f.register("6INDR",function(e,n){t(e.exports,"default",function(){return r});var r=function(e){}}),f.register("atDkO",function(e,n){t(e.exports,"render",function(){return a}),f("7DTtY");var r=f("5BxzC"),i=/*#__PURE__*/(0,r.createElementVNode)("p",null,"Width",-1),o=/*#__PURE__*/(0,r.createElementVNode)("p",null,"Height",-1);function a(e,t,n,a,l,u){var s=(0,r.resolveComponent)("v-icon"),c=(0,r.resolveComponent)("v-expansion-panel-title"),d=(0,r.resolveComponent)("v-text-field"),f=(0,r.resolveComponent)("v-expansion-panel-text"),h=(0,r.resolveComponent)("v-expansion-panel"),p=(0,r.resolveComponent)("v-radio"),g=(0,r.resolveComponent)("v-radio-group"),m=(0,r.resolveComponent)("v-container"),y=(0,r.resolveComponent)("v-col"),_=(0,r.resolveComponent)("v-row"),b=(0,r.resolveComponent)("Editor"),w=(0,r.resolveComponent)("v-expansion-panels");return(0,r.openBlock)(),(0,r.createBlock)(w,{variant:"accordion",style:{"min-width":"400px"}},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(h,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(c,null,{actions:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,null,{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-link ")]}),_:1})]}),default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" URL ")]}),_:1}),(0,r.createVNode)(f,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(d,{variant:"underlined",label:"Module URL",modelValue:n.module.url,"onUpdate:modelValue":t[0]||(t[0]=function(e){return n.module.url=e})},null,8,["modelValue"])]}),_:1})]}),_:1}),(0,r.createVNode)(h,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(c,null,{actions:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,null,{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-pencil-ruler ")]}),_:1})]}),default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" Design ")]}),_:1}),(0,r.createVNode)(f,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(_,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(y,{cols:"6"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(m,{fluid:""},{default:(0,r.withCtx)(function(){return[i,(0,r.createVNode)(g,{modelValue:n.module.width,"onUpdate:modelValue":t[1]||(t[1]=function(e){return n.module.width=e})},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(p,{label:"Full (1000px)",value:"full"}),(0,r.createVNode)(p,{label:"Half (500px)",value:"half"}),(0,r.createVNode)(p,{label:"Quarter (250px)",value:"third"})]}),_:1},8,["modelValue"])]}),_:1})]}),_:1}),(0,r.createVNode)(y,{cols:"6"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(m,{fluid:""},{default:(0,r.withCtx)(function(){return[o,(0,r.createVNode)(g,{modelValue:n.module.height,"onUpdate:modelValue":t[2]||(t[2]=function(e){return n.module.height=e})},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(p,{label:"HUGE (830px)",value:"huge"}),(0,r.createVNode)(p,{label:"Tall (720x)",value:"tall"}),(0,r.createVNode)(p,{label:"Medium (410px)",value:"medium"}),(0,r.createVNode)(p,{label:"Short (200px)",value:"short"})]}),_:1},8,["modelValue"])]}),_:1})]}),_:1})]}),_:1})]}),_:1})]}),_:1}),(0,r.createVNode)(b,{title:"General settings",icon:"mdi-script-text",config:n.module.config,"onUpdate:config":t[3]||(t[3]=function(e){return n.module.config=e}),error:n.error.config,"onUpdate:error":t[4]||(t[4]=function(e){return n.error.config=e})},null,8,["config","error"]),(0,r.createVNode)(b,{title:"Student settings",icon:"mdi-account-circle-outline",config:n.module.studentConfig,"onUpdate:config":t[5]||(t[5]=function(e){return n.module.studentConfig=e}),error:n.error.studentConfig,"onUpdate:error":t[6]||(t[6]=function(e){return n.error.studentConfig=e})},null,8,["config","error"]),(0,r.createVNode)(b,{title:"Teacher settings",icon:"mdi-clipboard-account-outline",config:n.module.teacherConfig,"onUpdate:config":t[7]||(t[7]=function(e){return n.module.teacherConfig=e}),error:n.error.teacherConfig,"onUpdate:error":t[8]||(t[8]=function(e){return n.error.teacherConfig=e})},null,8,["config","error"]),(0,r.createVNode)(b,{title:"Station settings",icon:"mdi-router-wireless",config:n.module.stationConfig,"onUpdate:config":t[9]||(t[9]=function(e){return n.module.stationConfig=e}),error:n.error.stationConfig,"onUpdate:error":t[10]||(t[10]=function(e){return n.error.stationConfig=e})},null,8,["config","error"]),(0,r.createVNode)(h,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(c,null,{actions:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,null,{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-eye ")]}),_:1})]}),default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" Show in ")]}),_:1}),(0,r.createVNode)(f,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(d,{variant:"underlined",label:"Comma separated list of rooms, or: lobby, * for all, teacher-only, station",modelValue:n.module.showInCustom,"onUpdate:modelValue":t[11]||(t[11]=function(e){return n.module.showInCustom=e})},null,8,["modelValue"])]}),_:1})]}),_:1})]}),_:1})}}),f.register("czxFg",function(e,n){t(e.exports,"default",function(){return r});var r=function(e){}}),f.register("b2vdk",function(e,n){t(e.exports,"render",function(){return o}),f("7DTtY");var r=f("5BxzC"),i=f("9Nw75");function o(e,t,n,o,a,l){var u=(0,r.resolveComponent)("v-icon"),s=(0,r.resolveComponent)("v-chip"),c=(0,r.resolveComponent)("v-list-item-title"),d=(0,r.resolveComponent)("v-list-item-subtitle"),f=(0,r.resolveComponent)("v-btn"),h=(0,r.resolveComponent)("Module"),p=(0,r.resolveComponent)("v-menu"),g=(0,r.resolveComponent)("v-list-item"),m=(0,r.resolveComponent)("v-list"),y=(0,r.resolveComponent)("draggable"),_=(0,r.resolveComponent)("v-text-field"),b=(0,r.resolveComponent)("v-divider");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(m,{lines:"three"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(y,{list:n.config.modules,"item-key":"id",onEnd:l.move,class:"list-group"},{item:(0,r.withCtx)(function(e){var t=e.element,o=e.index;return[((0,r.openBlock)(),(0,r.createBlock)(g,{key:o,class:"list-group-item"},{prepend:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{icon:n.scrapedModules[o].icon||"mdi-package"},null,8,["icon"])]}),append:(0,r.withCtx)(function(){return[(0,r.createVNode)(p,{"close-on-content-click":!1},{activator:(0,r.withCtx)(function(e){var t=e.props;return[(0,r.createVNode)(f,(0,r.mergeProps)({icon:"mdi-cog",variant:"text"},t,{style:l.validate_config(o)?"":"color: red"}),null,16,["style"])]}),default:(0,r.withCtx)(function(){return[(0,r.createVNode)(h,{module:n.config.modules[o],"onUpdate:module":function(e){return n.config.modules[o]=e},error:a.errors[o],"onUpdate:error":function(e){return a.errors[o]=e}},null,8,["module","onUpdate:module","error","onUpdate:error"])]}),_:2},1024),(0,r.createVNode)(p,null,{activator:(0,r.withCtx)(function(e){var t=e.props;return[(0,r.createVNode)(f,(0,r.mergeProps)(t,{icon:"mdi-delete",variant:"text"}),null,16)]}),default:(0,r.withCtx)(function(){return[(0,r.createVNode)(m,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(g,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(c,null,{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" Delete the module and its configuration? ")]}),_:1}),(0,r.createVNode)(f,{color:"red",depressed:"",onClick:function(e){return l.deleteModule(o)},class:"float-right",style:{"margin-top":"10px"}},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" Yes ")]}),_:2},1032,["onClick"])]}),_:2},1024)]}),_:2},1024)]}),_:2},1024)]}),default:(0,r.withCtx)(function(){var e;return[(0,r.createVNode)(c,null,{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,i.toDisplayString)(n.scrapedModules[o].name)+" ",1),(0,r.createVNode)(s,{size:"x-small"},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,i.toDisplayString)(t.showInCustom||"*"),1)]}),_:2},1024)]}),_:2},1024),(0,r.createVNode)(d,{innerHTML:(null===(e=n.scrapedModules[o])||void 0===e?void 0:e.description)||"No description",style:{"white-space":"break-spaces"}},null,8,["innerHTML"])]}),_:2},1024))]}),_:1},8,["list","onEnd"]),(0,r.createVNode)(g,null,{prepend:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{icon:"mdi-link"})]}),append:(0,r.withCtx)(function(){return[(0,r.createVNode)(f,{onClick:l.loadURL,disabled:!l.validate_url(a.moduleImportUrl)},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{left:""},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-view-grid-plus ")]}),_:1}),(0,r.createTextVNode)(" Add ")]}),_:1},8,["onClick","disabled"])]}),default:(0,r.withCtx)(function(){return[(0,r.createVNode)(_,{modelValue:a.moduleImportUrl,"onUpdate:modelValue":t[0]||(t[0]=function(e){return a.moduleImportUrl=e}),label:"Module URL",variant:"underlined",required:"",style:{width:"calc(100% - 40px)"}},null,8,["modelValue"])]}),_:1})]}),_:1}),(0,r.createVNode)(b,{class:"pb-2"}),(0,r.createVNode)(f,{href:"https://github.com/topics/edrys-module",target:"_blank"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{left:""},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-github ")]}),_:1}),(0,r.createTextVNode)(" Explore on GitHub ")]}),_:1})],64)}}),f.register("3XaP9",function(e,n){t(e.exports,"default",function(){return r});var r=function(e){}}),f.register("aj2m5",function(e,n){t(e.exports,"default",function(){return i}),(r=f("ge8Ut")).__esModule&&(r=r.default),r.render=f("ch5tX").render,f("3nSv6").default(r),r.__scopeId="data-v-af4199",r.__file="Stations.vue";var r,i=r}),f.register("ge8Ut",function(e,n){u(e.exports),t(e.exports,"default",function(){return i});var r=f("9BzA6"),i={name:"Settings-Stations",props:{config:{type:Object,required:!0}},data:function(){return{url:window.location.toString().replace("classroom","station")}},methods:{copyUrl:function(){(0,r.copyToClipboard)(this.url)}}}}),f.register("ch5tX",function(e,n){t(e.exports,"render",function(){return a}),f("7DTtY");var r=f("5BxzC"),i=f("9Nw75"),o=["href"];function a(e,t,n,a,l,u){var s=(0,r.resolveComponent)("v-container"),c=(0,r.resolveComponent)("v-btn"),d=(0,r.resolveComponent)("v-alert");return(0,r.openBlock)(),(0,r.createBlock)(d,{outlined:"",dense:"",type:"info",text:"To add a new station, simply open this link on the client device: "},{append:(0,r.withCtx)(function(){return[(0,r.createVNode)(c,{icon:"mdi-content-copy",onClick:u.copyUrl,variant:"text"},null,8,["onClick"])]}),default:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,null,{default:(0,r.withCtx)(function(){return[(0,r.createElementVNode)("a",{href:l.url,target:"_blank"},(0,i.toDisplayString)(l.url),9,o)]}),_:1})]}),_:1})}}),f.register("3nSv6",function(e,n){t(e.exports,"default",function(){return r});var r=function(e){}}),f.register("54yBi",function(e,n){t(e.exports,"default",function(){return i}),(r=f("bmM2m")).__esModule&&(r=r.default),r.render=f("bS67F").render,f("3CRKo").default(r),r.__scopeId="data-v-8b8f43",r.__file="Share.vue";var r,i=r}),f.register("bmM2m",function(e,n){u(e.exports),t(e.exports,"default",function(){return l});var r=f("xJRWs"),i=f("3XT9C"),o=f("i1Uxe"),a=f("9BzA6"),l={name:"Settings-Share",props:{config:{type:Object,required:!0}},data:function(){return console.log("Classroom config",JSON.stringify(this.config,null,2)),{url:window.location.toString(),selectedURL:"",selectedFile:[],showTemplate:!1,restoreSuccess:!1,saveError:!1,errorMessage:"",restoreFileRules:[function(e){return!e||e.size<2e6||"File should be less than 2 MB!"}]}},methods:{updateConfig:function(e){e.meta||(e.meta={logo:"",description:"",selfAssign:!1,defaultNumberOfRooms:0}),this.config.name=e.name,this.config.meta=e.meta,this.config.createdBy=(0,a.getPeerID)(),this.config.dateCreated=e.dateCreated,this.config.members=e.members,this.config.modules=e.modules},updateModules:function(){console.warn("updateModules",this.scrapedModules)},downloadClass:function(e){var t="yaml"===e?o.dump(this.config):JSON.stringify(this.config,null,2),n="class-"+this.config.id+("yaml"===e?".yml":".json"),r=new Blob([t],{type:"text/"+e}),i=URL.createObjectURL(r),a=document.createElement("a");a.href=i,a.download=n,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)},restoreURL:function(){return(0,r._)(function(){var e,t,n;return(0,i.__generator)(this,function(r){switch(r.label){case 0:return this.restoreSuccess=!1,this.saveError=!1,[4,fetch(this.selectedURL)];case 1:if(!(e=r.sent()).ok)return[3,3];return[4,e.text()];case 2:if(t=r.sent(),n=(0,a.parseClassroom)(t))return this.updateConfig(n),this.restoreSuccess=!0,[2];r.label=3;case 3:return this.saveError=!0,this.errorMessage="Could not parse the content within the URL: ".concat(this.selectedURL),console.warn("Could not parse the content within the URL:",this.selectedURL),[2]}})}).apply(this)},restoreFile:function(){var e=this;this.restoreSuccess=!1,this.saveError=!1;var t=new FileReader;t.readAsText(this.selectedFile[0]),t.onload=function(n){// will load yaml and json as well + */function(e,t){return t=(t||"").replace(/m/g,"")+"m",RegExp(/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return a}).replace(/<>/g,function(){return e}),t)},i=/[*&][^\s[\]{},]+/,a="(?:"+(o=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/).source+"(?:[ ]+"+i.source+")?|"+i.source+"(?:[ ]+"+o.source+")?)",l=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),u=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source,n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return a}).replace(/<>/g,function(){return"(?:"+l+"|"+u+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:r(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:r(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:r(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:r(u),lookbehind:!0,greedy:!0},number:{pattern:r(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:o,important:i,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml}),f.register("8ussG",function(e,n){t(e.exports,"render",function(){return o}),f("7DTtY");var r=f("5BxzC"),i=f("9Nw75");function o(e,t,n,o,a,l){var u=(0,r.resolveComponent)("v-icon"),s=(0,r.resolveComponent)("v-expansion-panel-title"),c=(0,r.resolveComponent)("v-divider"),d=(0,r.resolveComponent)("prism-editor"),f=(0,r.resolveComponent)("v-expansion-panel-text"),h=(0,r.resolveComponent)("v-expansion-panel");return(0,r.openBlock)(),(0,r.createBlock)(h,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,null,{actions:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{style:(0,i.normalizeStyle)(a.errorMessage?"color: red;":"")},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,i.toDisplayString)(n.icon),1)]}),_:1},8,["style"])]}),default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,i.toDisplayString)(n.title)+" ",1)]}),_:1}),(0,r.createVNode)(f,{style:{"max-height":"60vh"}},{default:(0,r.withCtx)(function(){return[(0,r.createElementVNode)("div",{style:(0,i.normalizeStyle)([{"font-size":"small","margin-bottom":"0.25rem"},a.errorMessage?"color: red;":"color: gray;"])},(0,i.toDisplayString)(a.errorMessage||"Valid YAML or JSON configuration"),5),(0,r.createVNode)(c,{style:{"margin-bottom":"0.5rem"}}),(0,r.createVNode)(d,{modelValue:a.code,"onUpdate:modelValue":t[0]||(t[0]=function(e){return a.code=e}),highlight:l.highlighter,"line-numbers":""},null,8,["modelValue","highlight"])]}),_:1})]}),_:1})}}),f.register("6INDR",function(e,n){t(e.exports,"default",function(){return r});var r=function(e){}}),f.register("atDkO",function(e,n){t(e.exports,"render",function(){return a}),f("7DTtY");var r=f("5BxzC"),i=/*#__PURE__*/(0,r.createElementVNode)("p",null,"Width",-1),o=/*#__PURE__*/(0,r.createElementVNode)("p",null,"Height",-1);function a(e,t,n,a,l,u){var s=(0,r.resolveComponent)("v-icon"),c=(0,r.resolveComponent)("v-expansion-panel-title"),d=(0,r.resolveComponent)("v-text-field"),f=(0,r.resolveComponent)("v-expansion-panel-text"),h=(0,r.resolveComponent)("v-expansion-panel"),p=(0,r.resolveComponent)("v-radio"),g=(0,r.resolveComponent)("v-radio-group"),m=(0,r.resolveComponent)("v-container"),y=(0,r.resolveComponent)("v-col"),_=(0,r.resolveComponent)("v-row"),b=(0,r.resolveComponent)("Editor"),w=(0,r.resolveComponent)("v-expansion-panels");return(0,r.openBlock)(),(0,r.createBlock)(w,{variant:"accordion",style:{"min-width":"400px"}},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(h,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(c,null,{actions:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,null,{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-link ")]}),_:1})]}),default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" URL ")]}),_:1}),(0,r.createVNode)(f,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(d,{variant:"underlined",label:"Module URL",modelValue:n.module.url,"onUpdate:modelValue":t[0]||(t[0]=function(e){return n.module.url=e})},null,8,["modelValue"])]}),_:1})]}),_:1}),(0,r.createVNode)(h,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(c,null,{actions:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,null,{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-pencil-ruler ")]}),_:1})]}),default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" Design ")]}),_:1}),(0,r.createVNode)(f,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(_,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(y,{cols:"6"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(m,{fluid:""},{default:(0,r.withCtx)(function(){return[i,(0,r.createVNode)(g,{modelValue:n.module.width,"onUpdate:modelValue":t[1]||(t[1]=function(e){return n.module.width=e})},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(p,{label:"Full (1000px)",value:"full"}),(0,r.createVNode)(p,{label:"Half (500px)",value:"half"}),(0,r.createVNode)(p,{label:"Quarter (250px)",value:"third"})]}),_:1},8,["modelValue"])]}),_:1})]}),_:1}),(0,r.createVNode)(y,{cols:"6"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(m,{fluid:""},{default:(0,r.withCtx)(function(){return[o,(0,r.createVNode)(g,{modelValue:n.module.height,"onUpdate:modelValue":t[2]||(t[2]=function(e){return n.module.height=e})},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(p,{label:"HUGE (830px)",value:"huge"}),(0,r.createVNode)(p,{label:"Tall (720x)",value:"tall"}),(0,r.createVNode)(p,{label:"Medium (410px)",value:"medium"}),(0,r.createVNode)(p,{label:"Short (200px)",value:"short"})]}),_:1},8,["modelValue"])]}),_:1})]}),_:1})]}),_:1})]}),_:1})]}),_:1}),(0,r.createVNode)(b,{title:"General settings",icon:"mdi-script-text",config:n.module.config,"onUpdate:config":t[3]||(t[3]=function(e){return n.module.config=e}),error:n.error.config,"onUpdate:error":t[4]||(t[4]=function(e){return n.error.config=e})},null,8,["config","error"]),(0,r.createVNode)(b,{title:"Student settings",icon:"mdi-account-circle-outline",config:n.module.studentConfig,"onUpdate:config":t[5]||(t[5]=function(e){return n.module.studentConfig=e}),error:n.error.studentConfig,"onUpdate:error":t[6]||(t[6]=function(e){return n.error.studentConfig=e})},null,8,["config","error"]),(0,r.createVNode)(b,{title:"Teacher settings",icon:"mdi-clipboard-account-outline",config:n.module.teacherConfig,"onUpdate:config":t[7]||(t[7]=function(e){return n.module.teacherConfig=e}),error:n.error.teacherConfig,"onUpdate:error":t[8]||(t[8]=function(e){return n.error.teacherConfig=e})},null,8,["config","error"]),(0,r.createVNode)(b,{title:"Station settings",icon:"mdi-router-wireless",config:n.module.stationConfig,"onUpdate:config":t[9]||(t[9]=function(e){return n.module.stationConfig=e}),error:n.error.stationConfig,"onUpdate:error":t[10]||(t[10]=function(e){return n.error.stationConfig=e})},null,8,["config","error"]),(0,r.createVNode)(h,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(c,null,{actions:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,null,{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-eye ")]}),_:1})]}),default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" Show in ")]}),_:1}),(0,r.createVNode)(f,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(d,{variant:"underlined",label:"Comma separated list of rooms, or: lobby, * for all, teacher-only, station",modelValue:n.module.showInCustom,"onUpdate:modelValue":t[11]||(t[11]=function(e){return n.module.showInCustom=e})},null,8,["modelValue"])]}),_:1})]}),_:1})]}),_:1})}}),f.register("czxFg",function(e,n){t(e.exports,"default",function(){return r});var r=function(e){}}),f.register("b2vdk",function(e,n){t(e.exports,"render",function(){return o}),f("7DTtY");var r=f("5BxzC"),i=f("9Nw75");function o(e,t,n,o,a,l){var u=(0,r.resolveComponent)("v-icon"),s=(0,r.resolveComponent)("v-chip"),c=(0,r.resolveComponent)("v-list-item-title"),d=(0,r.resolveComponent)("v-list-item-subtitle"),f=(0,r.resolveComponent)("v-btn"),h=(0,r.resolveComponent)("Module"),p=(0,r.resolveComponent)("v-menu"),g=(0,r.resolveComponent)("v-list-item"),m=(0,r.resolveComponent)("v-list"),y=(0,r.resolveComponent)("draggable"),_=(0,r.resolveComponent)("v-text-field"),b=(0,r.resolveComponent)("v-divider");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(m,{lines:"three"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(y,{list:n.config.modules,"item-key":"id",onEnd:l.move,class:"list-group"},{item:(0,r.withCtx)(function(e){var t=e.element,o=e.index;return[((0,r.openBlock)(),(0,r.createBlock)(g,{key:o,class:"list-group-item"},{prepend:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{icon:n.scrapedModules[o].icon||"mdi-package"},null,8,["icon"])]}),append:(0,r.withCtx)(function(){return[(0,r.createVNode)(p,{"close-on-content-click":!1},{activator:(0,r.withCtx)(function(e){var t=e.props;return[(0,r.createVNode)(f,(0,r.mergeProps)({icon:"mdi-cog",variant:"text"},t,{style:l.validate_config(o)?"":"color: red"}),null,16,["style"])]}),default:(0,r.withCtx)(function(){return[(0,r.createVNode)(h,{module:n.config.modules[o],"onUpdate:module":function(e){return n.config.modules[o]=e},error:a.errors[o],"onUpdate:error":function(e){return a.errors[o]=e}},null,8,["module","onUpdate:module","error","onUpdate:error"])]}),_:2},1024),(0,r.createVNode)(p,null,{activator:(0,r.withCtx)(function(e){var t=e.props;return[(0,r.createVNode)(f,(0,r.mergeProps)(t,{icon:"mdi-delete",variant:"text"}),null,16)]}),default:(0,r.withCtx)(function(){return[(0,r.createVNode)(m,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(g,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(c,null,{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" Delete the module and its configuration? ")]}),_:1}),(0,r.createVNode)(f,{color:"red",depressed:"",onClick:function(e){return l.deleteModule(o)},class:"float-right",style:{"margin-top":"10px"}},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" Yes ")]}),_:2},1032,["onClick"])]}),_:2},1024)]}),_:2},1024)]}),_:2},1024)]}),default:(0,r.withCtx)(function(){var e;return[(0,r.createVNode)(c,null,{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,i.toDisplayString)(n.scrapedModules[o].name)+" ",1),(0,r.createVNode)(s,{size:"x-small"},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,i.toDisplayString)(t.showInCustom||"*"),1)]}),_:2},1024)]}),_:2},1024),(0,r.createVNode)(d,{innerHTML:(null===(e=n.scrapedModules[o])||void 0===e?void 0:e.description)||"No description",style:{"white-space":"break-spaces"}},null,8,["innerHTML"])]}),_:2},1024))]}),_:1},8,["list","onEnd"]),(0,r.createVNode)(g,null,{prepend:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{icon:"mdi-link"})]}),append:(0,r.withCtx)(function(){return[(0,r.createVNode)(f,{onClick:l.loadURL,disabled:!l.validate_url(a.moduleImportUrl)},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{left:""},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-view-grid-plus ")]}),_:1}),(0,r.createTextVNode)(" Add ")]}),_:1},8,["onClick","disabled"])]}),default:(0,r.withCtx)(function(){return[(0,r.createVNode)(_,{modelValue:a.moduleImportUrl,"onUpdate:modelValue":t[0]||(t[0]=function(e){return a.moduleImportUrl=e}),label:"Module URL",variant:"underlined",required:"",style:{width:"calc(100% - 40px)"}},null,8,["modelValue"])]}),_:1})]}),_:1}),(0,r.createVNode)(b,{class:"pb-2"}),(0,r.createVNode)(f,{href:"https://github.com/topics/edrys-module",target:"_blank"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{left:""},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-github ")]}),_:1}),(0,r.createTextVNode)(" Explore on GitHub ")]}),_:1})],64)}}),f.register("3XaP9",function(e,n){t(e.exports,"default",function(){return r});var r=function(e){}}),f.register("aj2m5",function(e,n){t(e.exports,"default",function(){return i}),(r=f("ge8Ut")).__esModule&&(r=r.default),r.render=f("ch5tX").render,f("3nSv6").default(r),r.__scopeId="data-v-af4199",r.__file="Stations.vue";var r,i=r}),f.register("ge8Ut",function(e,n){u(e.exports),t(e.exports,"default",function(){return i});var r=f("9BzA6"),i={name:"Settings-Stations",props:{config:{type:Object,required:!0}},data:function(){return{url:window.location.toString().replace("classroom","station")}},methods:{copyUrl:function(){(0,r.copyToClipboard)(this.url)}}}}),f.register("ch5tX",function(e,n){t(e.exports,"render",function(){return a}),f("7DTtY");var r=f("5BxzC"),i=f("9Nw75"),o=["href"];function a(e,t,n,a,l,u){var s=(0,r.resolveComponent)("v-container"),c=(0,r.resolveComponent)("v-btn"),d=(0,r.resolveComponent)("v-alert");return(0,r.openBlock)(),(0,r.createBlock)(d,{outlined:"",dense:"",type:"info",text:"To add a new station, simply open this link on the client device: "},{append:(0,r.withCtx)(function(){return[(0,r.createVNode)(c,{icon:"mdi-content-copy",onClick:u.copyUrl,variant:"text"},null,8,["onClick"])]}),default:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,null,{default:(0,r.withCtx)(function(){return[(0,r.createElementVNode)("a",{href:l.url,target:"_blank"},(0,i.toDisplayString)(l.url),9,o)]}),_:1})]}),_:1})}}),f.register("3nSv6",function(e,n){t(e.exports,"default",function(){return r});var r=function(e){}}),f.register("54yBi",function(e,n){t(e.exports,"default",function(){return i}),(r=f("bmM2m")).__esModule&&(r=r.default),r.render=f("bS67F").render,f("3CRKo").default(r),r.__scopeId="data-v-8b8f43",r.__file="Share.vue";var r,i=r}),f.register("bmM2m",function(e,n){u(e.exports),t(e.exports,"default",function(){return l});var r=f("xJRWs"),i=f("3XT9C"),o=f("i1Uxe"),a=f("9BzA6"),l={name:"Settings-Share",props:{config:{type:Object,required:!0}},data:function(){return console.log("Classroom config",JSON.stringify(this.config,null,2)),{url:window.location.toString(),selectedURL:"",selectedFile:[],showTemplate:!1,restoreSuccess:!1,saveError:!1,errorMessage:"",restoreFileRules:[function(e){return!e||e.size<2e6||"File should be less than 2 MB!"}]}},methods:{updateConfig:function(e){e.meta||(e.meta={logo:"",description:"",selfAssign:!1,defaultNumberOfRooms:0}),this.config.name=e.name,this.config.meta=e.meta,this.config.createdBy=(0,a.getPeerID)(),this.config.dateCreated=e.dateCreated,this.config.members=e.members,this.config.modules=e.modules},updateModules:function(){console.warn("updateModules",this.scrapedModules)},downloadClass:function(e){var t="yaml"===e?o.dump(this.config):JSON.stringify(this.config,null,2),n="class-"+this.config.id+("yaml"===e?".yml":".json"),r=new Blob([t],{type:"text/"+e}),i=URL.createObjectURL(r),a=document.createElement("a");a.href=i,a.download=n,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)},restoreURL:function(){return(0,r._)(function(){var e,t,n;return(0,i.__generator)(this,function(r){switch(r.label){case 0:return this.restoreSuccess=!1,this.saveError=!1,[4,fetch(this.selectedURL)];case 1:if(!(e=r.sent()).ok)return[3,3];return[4,e.text()];case 2:if(t=r.sent(),n=(0,a.parseClassroom)(t))return this.updateConfig(n),this.restoreSuccess=!0,[2];r.label=3;case 3:return this.saveError=!0,this.errorMessage="Could not parse the content within the URL: ".concat(this.selectedURL),console.warn("Could not parse the content within the URL:",this.selectedURL),[2]}})}).apply(this)},restoreFile:function(){var e=this;this.restoreSuccess=!1,this.saveError=!1;var t=new FileReader;t.readAsText(this.selectedFile[0]),t.onload=function(n){// will load yaml and json as well var r,i=(0,a.parseClassroom)((null===(r=t.result)||void 0===r?void 0:r.toString())||"");i?(//this.updateState(newClass); e.updateConfig(i),e.restoreSuccess=!0,console.log("restoreFile: loaded class",i)):(e.restoreSuccess=!1,e.saveError=!0,e.errorMessage="Failed to restore classroom configuration from file.",console.warn("restoreFile: failed to load class",i))},t.onerror=function(t){e.restoreSuccess=!1,e.saveError=!0,console.warn("restoreFile",t)}}},computed:{selectedURLIcon:function(){return this.selectedURL?"mdi-upload":""},selectedFileIcon:function(){return void 0!==this.selectedFile[0]?"mdi-upload":""}}}}),f.register("bS67F",function(e,n){t(e.exports,"render",function(){return o}),f("7DTtY");var r=f("5BxzC"),i=f("jo4gN");function o(e,t,n,o,a,l){var u=(0,r.resolveComponent)("v-icon"),s=(0,r.resolveComponent)("v-btn"),c=(0,r.resolveComponent)("v-col"),d=(0,r.resolveComponent)("v-row"),f=(0,r.resolveComponent)("v-file-input"),h=(0,r.resolveComponent)("v-text-field"),p=(0,r.resolveComponent)("v-divider");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(d,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(c,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,{depressed:"",block:"",onClick:t[0]||(t[0]=function(e){return l.downloadClass("yaml")})},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{left:""},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-download ")]}),_:1}),(0,r.createTextVNode)(" Download class file (.yml) ")]}),_:1})]}),_:1}),(0,r.createVNode)(c,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,{depressed:"",block:"",onClick:t[1]||(t[1]=function(e){return l.downloadClass("json")})},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{left:""},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-download ")]}),_:1}),(0,r.createTextVNode)(" Download class file (.json) ")]}),_:1})]}),_:1})]}),_:1}),(0,r.createVNode)(d,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(c,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(f,{dense:"",accept:".yml,.yaml,.json,application/yaml,application/json",label:"Restore class from file (yaml, json)",modelValue:a.selectedFile,"onUpdate:modelValue":t[2]||(t[2]=function(e){return a.selectedFile=e}),"append-icon":l.selectedFileIcon,"onClick:append":(0,i.withModifiers)(l.restoreFile,["self"])},null,8,["modelValue","append-icon","onClick:append"])]}),_:1}),(0,r.createVNode)(c,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(h,{dense:"",label:"Restore class from URL (http, https)",modelValue:a.selectedURL,"onUpdate:modelValue":t[6]||(t[6]=function(e){return a.selectedURL=e}),"prepend-icon":"mdi-link","append-icon":l.selectedURLIcon,"onClick:append":(0,i.withModifiers)(l.restoreURL,["self"]),onMouseover:t[7]||(t[7]=function(e){return a.showTemplate=!0}),onMouseleave:t[8]||(t[8]=function(e){return a.showTemplate=!1})},{"append-inner":(0,r.withCtx)(function(){return[a.selectedURL.length>0&&a.showTemplate?((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,onMouseover:t[3]||(t[3]=function(e){return a.showTemplate=!0}),onMouseleave:t[4]||(t[4]=function(e){return a.showTemplate=!1}),onClick:t[5]||(t[5]=function(e){return a.selectedURL=""})},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)("mdi-close-circle")]}),_:1})):(0,r.createCommentVNode)("",!0)]}),_:1},8,["modelValue","append-icon","onClick:append"])]}),_:1})]}),_:1}),(0,r.createVNode)(p,{class:"pb-2"}),(0,r.createVNode)(s,{href:"https://github.com/topics/edrys-classroom",target:"_blank"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(u,{left:""},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-github ")]}),_:1}),(0,r.createTextVNode)(" Explore on GitHub ")]}),_:1})],64)}}),f.register("3CRKo",function(e,n){t(e.exports,"default",function(){return r});var r=function(e){}}),f.register("gQjAn",function(e,n){t(e.exports,"render",function(){return i}),f("7DTtY");var r=f("5BxzC");function i(e,t,n,i,o,a){var l=(0,r.resolveComponent)("v-toolbar-title"),u=(0,r.resolveComponent)("v-spacer"),s=(0,r.resolveComponent)("v-icon"),c=(0,r.resolveComponent)("v-btn"),d=(0,r.resolveComponent)("v-tab"),f=(0,r.resolveComponent)("v-tabs"),h=(0,r.resolveComponent)("v-toolbar"),p=(0,r.resolveComponent)("Main"),g=(0,r.resolveComponent)("v-window-item"),m=(0,r.resolveComponent)("Members"),y=(0,r.resolveComponent)("Modules"),_=(0,r.resolveComponent)("Stations"),b=(0,r.resolveComponent)("Share"),w=(0,r.resolveComponent)("v-window"),x=(0,r.resolveComponent)("v-card-text"),k=(0,r.resolveComponent)("v-badge"),S=(0,r.resolveComponent)("v-list-item-title"),C=(0,r.resolveComponent)("v-list-item"),E=(0,r.resolveComponent)("v-list"),V=(0,r.resolveComponent)("v-menu"),N=(0,r.resolveComponent)("v-card-actions"),T=(0,r.resolveComponent)("v-card");return(0,r.openBlock)(),(0,r.createBlock)(T,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(h,{dark:"",flat:""},{extension:(0,r.withCtx)(function(){return[(0,r.createVNode)(f,{modelValue:o.tab,"onUpdate:modelValue":t[1]||(t[1]=function(e){return o.tab=e}),"fixed-tabs":"","center-active":"","show-arrows":""},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(d,{active:""},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,{left:""},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-book-open-outline ")]}),_:1}),(0,r.createTextVNode)(" Settings ")]}),_:1}),(0,r.createVNode)(d,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,{left:""},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-account-group ")]}),_:1}),(0,r.createTextVNode)(" Members ")]}),_:1}),(0,r.createVNode)(d,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,{left:""},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-view-dashboard ")]}),_:1}),(0,r.createTextVNode)(" Modules ")]}),_:1}),(0,r.createVNode)(d,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,{left:""},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-router-wireless ")]}),_:1}),(0,r.createTextVNode)(" Stations ")]}),_:1}),(0,r.createVNode)(d,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,{left:""},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-share-variant ")]}),_:1}),(0,r.createTextVNode)(" Share ")]}),_:1})]}),_:1},8,["modelValue"])]}),default:(0,r.withCtx)(function(){return[(0,r.createVNode)(l,null,{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)("Class Settings")]}),_:1}),(0,r.createVNode)(u),(0,r.createVNode)(c,{icon:"",onClick:t[0]||(t[0]=function(t){return e.$emit("close")})},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,null,{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)("mdi-close")]}),_:1})]}),_:1})]}),_:1}),(0,r.createVNode)(x,{style:{height:"565px"}},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(w,{modelValue:o.tab,"onUpdate:modelValue":t[2]||(t[2]=function(e){return o.tab=e}),class:"pt-5"},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(g,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(p,{config:n.config},null,8,["config"])]}),_:1}),(0,r.createVNode)(g,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(m,{members:n.config.members,onUpdateMembers:a.updateMembers},null,8,["members","onUpdateMembers"])]}),_:1}),(0,r.createVNode)(g,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(y,{config:n.config,"scraped-modules":n.scrapedModules},null,8,["config","scraped-modules"])]}),_:1}),(0,r.createVNode)(g,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(_,{config:n.config},null,8,["config"])]}),_:1}),(0,r.createVNode)(g,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(b,{config:n.config},null,8,["config"])]}),_:1})]}),_:1},8,["modelValue"])]}),_:1}),(0,r.createVNode)(N,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(c,{onClick:a.saveClass,color:"primary",style:{"margin-top":"30px"}},{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(s,{left:""},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" mdi-upload ")]}),_:1}),(0,r.createTextVNode)(" Save "),o.configChanged?((0,r.openBlock)(),(0,r.createBlock)(k,{key:0,overlap:"",dot:"",color:"red",style:{position:"relative",bottom:"12px",left:"6px"}})):(0,r.createCommentVNode)("",!0)]}),_:1},8,["onClick"]),(0,r.createVNode)(V,null,{activator:(0,r.withCtx)(function(e){var t=e.props;return[(0,r.createVNode)(c,(0,r.mergeProps)({color:""},t,{style:{"margin-top":"30px","margin-right":"10px","margin-left":"30px"},class:"float-right"}),{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" Delete Class ")]}),_:2},1040)]}),default:(0,r.withCtx)(function(){return[(0,r.createVNode)(E,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(C,null,{default:(0,r.withCtx)(function(){return[(0,r.createVNode)(S,null,{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" Are you sure? ")]}),_:1}),(0,r.createVNode)(c,{color:"red",depressed:"",onClick:a.deleteClass,class:"float-right",style:{"margin-top":"10px"}},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)(" Yes, delete forever")]}),_:1},8,["onClick"])]}),_:1})]}),_:1})]}),_:1})]}),_:1})]}),_:1})}}),f.register("4jdFA",function(e,n){t(e.exports,"default",function(){return r});var r=function(e){}}),f.register("gUtJX",function(e,n){t(e.exports,"default",function(){return i}),(r=f("giAxm")).__esModule&&(r=r.default),r.render=f("8fSY0").render,r.__cssModules={},f("2F8S7").default(r),r.__scopeId="data-v-0961a5",r.__file="Modules.vue";var r,i=r}),f.register("giAxm",function(e,n){u(e.exports),t(e.exports,"default",function(){return s});var r=f("xJRWs"),i=f("a42Vg"),o=f("3XT9C"),a=f("cDaaW"),l=f("4qftf"),s={components:{Module:a.default},name:"Modules",props:["role","username_","liveClassProxy","scrapedModules_","communication","class_id"],data:function(){return{username:this.username_,grid:null,//scrapedModules: JSON.parse(JSON.stringify(this.scrapedModules_)), count:0}},computed:{roomName:function(){var e,t=this;return setTimeout(function(){t.gridUpdate()},1e3),(null===(e=this.liveClassProxy.users[this.username])||void 0===e?void 0:e.room)||"Station "+this.username},modulesType:function(){return this.roomName.startsWith("Station ")?"station":"chat"},scrapedModulesFilter:function(){var e=this;return this.scrapedModules_.filter(function(t){var n=t.showInCustom?t.showInCustom.split(",").map(function(e){return e.trim()}):t.shownIn;return(n.includes(e.modulesType)||n.map(function(e){return e.toLowerCase().replace(/\*/g,".*")}).map(function(e){return new RegExp(e)}).map(function(t){return null!==e.roomName.toLowerCase().match(t)}).includes(!0)||"*"==n)&&!n.includes("teacher-only")})}},created:function(){window.addEventListener("message",this.messageHandler);var e=document.getElementsByTagName("iframe");this.communication.on("message",function(t){for(var n=0;n