diff --git a/.courseignore b/.courseignore index 1d8374b9..4864b0a9 100644 --- a/.courseignore +++ b/.courseignore @@ -1,5 +1,5 @@ README.md aliasFrontend -cardTrainerFrontend +memoryTrainerFrontend codenamesFrontend wordsGeneratorFrontend \ No newline at end of file diff --git a/cardTrainerServer/cardTrainerServerCardModel/src/main/resources/static/static/js/main.d2e844a0.js b/cardTrainerServer/cardTrainerServerCardModel/src/main/resources/static/static/js/main.d2e844a0.js deleted file mode 100644 index f6742866..00000000 --- a/cardTrainerServer/cardTrainerServerCardModel/src/main/resources/static/static/js/main.d2e844a0.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see main.d2e844a0.js.LICENSE.txt */ -!function(){var e={569:function(e,t,n){e.exports=n(36)},381:function(e,t,n){"use strict";var r=n(589),o=n(297),a=n(301),l=n(774),i=n(804),u=n(145),s=n(411),c=n(789),f=n(531),d=n(795),p=n(261);e.exports=function(e){return new Promise((function(t,n){var h,m=e.data,y=e.headers,v=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete y["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",k=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(w+":"+k)}var S=i(e.baseURL,e.url);function _(){if(b){var r="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,a={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};o((function(e){t(e),g()}),(function(e){n(e),g()}),a),b=null}}if(b.open(e.method.toUpperCase(),l(S,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=_:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(_)},b.onabort=function(){b&&(n(new f("Request aborted",f.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var x=(e.withCredentials||s(S))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;x&&(y[e.xsrfHeaderName]=x)}"setRequestHeader"in b&&r.forEach(y,(function(e,t){"undefined"===typeof m&&"content-type"===t.toLowerCase()?delete y[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){b&&(n(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),m||(m=null);var E=p(S);E&&-1===["http","https","file"].indexOf(E)?n(new f("Unsupported protocol "+E+":",f.ERR_BAD_REQUEST,e)):b.send(m)}))}},36:function(e,t,n){"use strict";var r=n(589),o=n(49),a=n(773),l=n(777);var i=function e(t){var n=new a(t),i=o(a.prototype.request,n);return r.extend(i,a.prototype,n),r.extend(i,n),i.create=function(n){return e(l(t,n))},i}(n(709));i.Axios=a,i.CanceledError=n(795),i.CancelToken=n(857),i.isCancel=n(517),i.VERSION=n(600).version,i.toFormData=n(397),i.AxiosError=n(531),i.Cancel=i.CanceledError,i.all=function(e){return Promise.all(e)},i.spread=n(89),i.isAxiosError=n(580),e.exports=i,e.exports.default=i},857:function(e,t,n){"use strict";var r=n(795);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(u)})),e.exports=c},789:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},600:function(e){e.exports={version:"0.27.2"}},49:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;l[t]="set-cookie"===t?(l[t]?l[t]:[]).concat([n]):l[t]?l[t]+", "+n:n}})),l):l}},261:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},89:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},397:function(e,t,n){"use strict";var r=n(589);e.exports=function(e,t){t=t||new FormData;var n=[];function o(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(a,l){if(r.isPlainObject(a)||r.isArray(a)){if(-1!==n.indexOf(a))throw Error("Circular reference detected in "+l);n.push(a),r.forEach(a,(function(n,a){if(!r.isUndefined(n)){var i,u=l?l+"."+a:a;if(n&&!l&&"object"===typeof n)if(r.endsWith(a,"{}"))n=JSON.stringify(n);else if(r.endsWith(a,"[]")&&(i=r.toArray(n)))return void i.forEach((function(e){!r.isUndefined(e)&&t.append(u,o(e))}));e(n,u)}})),n.pop()}else t.append(l,o(a))}(e),t}},835:function(e,t,n){"use strict";var r=n(600).version,o=n(531),a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var l={};a.transitional=function(e,t,n){function a(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,i){if(!1===e)throw new o(a(r," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!l[r]&&(l[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),a=r.length;a-- >0;){var l=r[a],i=t[l];if(i){var u=e[l],s=void 0===u||i(u,l,e);if(!0!==s)throw new o("option "+l+" must be "+s,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+l,o.ERR_BAD_OPTION)}},validators:a}},589:function(e,t,n){"use strict";var r,o=n(49),a=Object.prototype.toString,l=(r=Object.create(null),function(e){var t=a.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function i(e){return e=e.toLowerCase(),function(t){return l(t)===e}}function u(e){return Array.isArray(e)}function s(e){return"undefined"===typeof e}var c=i("ArrayBuffer");function f(e){return null!==e&&"object"===typeof e}function d(e){if("object"!==l(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=i("Date"),h=i("File"),m=i("Blob"),y=i("FileList");function v(e){return"[object Function]"===a.call(e)}var g=i("URLSearchParams");function b(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n0;)l[a=r[o]]||(t[a]=e[a],l[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:l,kindOfTest:i,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(s(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:k,isFileList:y}},295:function(e,t,n){var r,o,a;o=[t,n(833)],void 0===(a="function"===typeof(r=function(e,t){"use strict";var n=Math.imul,r=t.$_$.a,o=t.$_$.g,a=t.$_$.b,l=t.$_$.c,i=t.$_$.f,u=t.$_$.d,s=t.$_$.e;function c(e,t){this.c2_1=e,this.d2_1=t}function f(e,t,n){var r=void 0===t?0:t;this.i2_1=e,this.j2_1=r,this.k2_1=n}function d(e,t,n){this.q2_1=e,this.r2_1=t,this.s2_1=n}function p(e,t){this.x2_1=e,this.y2_1=t}function h(e){(e.alias||(e.alias={})).JsCard=c,(e.alias||(e.alias={})).JsTeam=f;var t=e.card||(e.card={});(t.trainer||(t.trainer={})).JsCardTrainerModel=d,(e.codenames||(e.codenames={})).JsCodeNamesCard=p}return c.prototype.e2=function(){return this.c2_1},c.prototype.f2=function(){return this.d2_1},c.prototype.equals=function(e){return this===e||!(null==e||!r(this).equals(r(e)))&&(e instanceof c||o(),this.c2_1===e.c2_1&&!!a(this.d2_1,e.d2_1))},c.prototype.hashCode=function(){var e=this.c2_1;return e=n(31,e)+l(this.d2_1)|0},c.prototype.component1=function(){return this.c2_1},c.prototype.component2=function(){return this.d2_1},c.prototype.copy=function(e,t){return this.g2(void 0===e?this.c2_1:e,void 0===t?this.d2_1:t)},c.prototype.g2=function(e,t){return new c(e,t)},c.prototype.h2=function(e,t,n,r){return 0!==(1&n)&&(e=this.c2_1),0!==(2&n)&&(t=this.d2_1),this.g2(e,t)},c.prototype.toString=function(){return"JsCard(id="+this.c2_1+", words="+i(this.d2_1)+")"},c.$metadata$=u("JsCard"),Object.defineProperty(c.prototype,"id",{configurable:!0,get:c.prototype.e2}),Object.defineProperty(c.prototype,"words",{configurable:!0,get:c.prototype.f2}),f.prototype.e2=function(){return this.i2_1},f.prototype.l2=function(e){this.j2_1=e},f.prototype.m2=function(){return this.j2_1},f.prototype.n2=function(){return this.k2_1},f.prototype.component1=function(){return this.i2_1},f.prototype.component2=function(){return this.j2_1},f.prototype.component3=function(){return this.k2_1},f.prototype.copy=function(e,t,n){return this.o2(void 0===e?this.i2_1:e,void 0===t?this.j2_1:t,void 0===n?this.k2_1:n)},f.prototype.o2=function(e,t,n){return new f(e,t,n)},f.prototype.p2=function(e,t,n,r,o){return 0!==(1&r)&&(e=this.i2_1),0!==(2&r)&&(t=this.j2_1),0!==(4&r)&&(n=this.k2_1),this.o2(e,t,n)},f.prototype.toString=function(){return"JsTeam(id="+this.i2_1+", points="+this.j2_1+", name="+this.k2_1+")"},f.prototype.hashCode=function(){var e=this.i2_1;return e=n(e,31)+this.j2_1|0,e=n(e,31)+s(this.k2_1)|0},f.prototype.equals=function(e){if(this===e)return!0;if(!(e instanceof f))return!1;var t=e instanceof f?e:o();return this.i2_1===t.i2_1&&this.j2_1===t.j2_1&&this.k2_1===t.k2_1},f.$metadata$=u("JsTeam"),Object.defineProperty(f.prototype,"id",{configurable:!0,get:f.prototype.e2}),Object.defineProperty(f.prototype,"points",{configurable:!0,get:f.prototype.m2,set:f.prototype.l2}),Object.defineProperty(f.prototype,"name",{configurable:!0,get:f.prototype.n2}),d.prototype.e2=function(){return this.q2_1},d.prototype.t2=function(){return this.r2_1},d.prototype.u2=function(){return this.s2_1},d.prototype.component1=function(){return this.q2_1},d.prototype.component2=function(){return this.r2_1},d.prototype.component3=function(){return this.s2_1},d.prototype.copy=function(e,t,n){return this.v2(void 0===e?this.q2_1:e,void 0===t?this.r2_1:t,void 0===n?this.s2_1:n)},d.prototype.v2=function(e,t,n){return new d(e,t,n)},d.prototype.w2=function(e,t,n,r,o){return 0!==(1&r)&&(e=this.q2_1),0!==(2&r)&&(t=this.r2_1),0!==(4&r)&&(n=this.s2_1),this.v2(e,t,n)},d.prototype.toString=function(){return"JsCardTrainerModel(id="+this.q2_1+", front="+this.r2_1+", back="+this.s2_1+")"},d.prototype.hashCode=function(){var e=this.q2_1;return e=n(e,31)+s(this.r2_1)|0,e=n(e,31)+s(this.s2_1)|0},d.prototype.equals=function(e){if(this===e)return!0;if(!(e instanceof d))return!1;var t=e instanceof d?e:o();return this.q2_1===t.q2_1&&this.r2_1===t.r2_1&&this.s2_1===t.s2_1},d.$metadata$=u("JsCardTrainerModel"),Object.defineProperty(d.prototype,"id",{configurable:!0,get:d.prototype.e2}),Object.defineProperty(d.prototype,"front",{configurable:!0,get:d.prototype.t2}),Object.defineProperty(d.prototype,"back",{configurable:!0,get:d.prototype.u2}),p.prototype.e2=function(){return this.x2_1},p.prototype.z2=function(){return this.y2_1},p.prototype.component1=function(){return this.x2_1},p.prototype.component2=function(){return this.y2_1},p.prototype.copy=function(e,t){return this.a3(void 0===e?this.x2_1:e,void 0===t?this.y2_1:t)},p.prototype.a3=function(e,t){return new p(e,t)},p.prototype.b3=function(e,t,n,r){return 0!==(1&n)&&(e=this.x2_1),0!==(2&n)&&(t=this.y2_1),this.a3(e,t)},p.prototype.toString=function(){return"JsCodeNamesCard(id="+this.x2_1+", word="+this.y2_1+")"},p.prototype.hashCode=function(){var e=this.x2_1;return e=n(e,31)+s(this.y2_1)|0},p.prototype.equals=function(e){if(this===e)return!0;if(!(e instanceof p))return!1;var t=e instanceof p?e:o();return this.x2_1===t.x2_1&&this.y2_1===t.y2_1},p.$metadata$=u("JsCodeNamesCard"),Object.defineProperty(p.prototype,"id",{configurable:!0,get:p.prototype.e2}),Object.defineProperty(p.prototype,"word",{configurable:!0,get:p.prototype.z2}),h(e),e})?r.apply(t,o):r)||(e.exports=a)},833:function(e,t){var n,r,o;"undefined"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView=function(e){return null!=e&&null!=e.__proto__&&e.__proto__.__proto__===Int8Array.prototype.__proto__}),"undefined"===typeof Math.imul&&(Math.imul=function(e,t){return(4294901760&e)*(65535&t)+(65535&e)*(0|t)|0}),r=[t],void 0===(o="function"===typeof(n=function(e){"use strict";var t,n,r,o,a,l,i,u,s,c,f,d,p=Math.imul,h=ArrayBuffer.isView;function m(){}function y(){}function v(){}function g(){t=this}function b(){return null==t&&new g,t}function w(){}function k(e){this.a_1=e}function S(e,t,n){k.call(this,e),this.e_1=t,this.f_1=n}function _(){n=this,k.call(this,Object),this.h_1="Nothing"}function x(){return null==n&&new _,n}function E(){}function C(e){k.call(this,e);var t,n=this,r=e.$metadata$;t=null==r?null:r.simpleName,n.j_1=t}function N(){return G(),r}function P(){return function(e){return De(e)}}function O(){return function(e){return $e(e)}}function T(){return function(e){return null!=e&&"boolean"===typeof e}}function A(){return function(e){return null!=e&&"number"===typeof e}}function R(){return function(e){return null!=e&&"number"===typeof e}}function j(){return function(e){return null!=e&&"number"===typeof e}}function z(){return function(e){return null!=e&&"number"===typeof e}}function L(){return function(e){return null!=e&&"number"===typeof e}}function M(){return function(e){return null!=e&&Fe(e)}}function F(){return function(e){return null!=e&&"string"===typeof e}}function D(){return function(e){return e instanceof Error}}function $(){return function(e){return null!=e&&Ie(e)}}function I(){return function(e){return null!=e&&Ve(e)}}function U(){return function(e){return null!=e&&Ue(e)}}function B(){return function(e){return null!=e&&Be(e)}}function V(){return function(e){return null!=e&&We(e)}}function W(){return function(e){return null!=e&&qe(e)}}function H(){return function(e){return null!=e&&He(e)}}function q(){return function(e){return null!=e&&Qe(e)}}function Q(e){return function(t){return"function"===typeof t&&t.length===e}}function K(){o=this;var e=Object;this.k_1=new S(e,"Any",P());var t=Number;this.l_1=new S(t,"Number",O()),this.m_1=x();var n=Boolean;this.n_1=new S(n,"Boolean",T());var r=Number;this.o_1=new S(r,"Byte",A());var a=Number;this.p_1=new S(a,"Short",R());var l=Number;this.q_1=new S(l,"Int",j());var i=Number;this.r_1=new S(i,"Float",z());var u=Number;this.s_1=new S(u,"Double",L());var s=Array;this.t_1=new S(s,"Array",M());var c=String;this.u_1=new S(c,"String",F());var f=Error;this.v_1=new S(f,"Throwable",D());var d=Array;this.w_1=new S(d,"BooleanArray",$());var p=Uint16Array;this.x_1=new S(p,"CharArray",I());var h=Int8Array;this.y_1=new S(h,"ByteArray",U());var m=Int16Array;this.z_1=new S(m,"ShortArray",B());var y=Int32Array;this.a1_1=new S(y,"IntArray",V());var v=Array;this.b1_1=new S(v,"LongArray",W());var g=Float32Array;this.c1_1=new S(g,"FloatArray",H());var b=Float64Array;this.d1_1=new S(b,"DoubleArray",q())}function J(){return null==o&&new K,o}function G(){var e;a||(a=!0,e=te(Array(0),null),r=e)}function Y(e){return Array.isArray(e)?X(e):Z(e)}function X(e){var t;switch(e.length){case 1:t=Z(e[0]);break;case 0:t=x();break;default:t=new E}return t}function Z(e){if(e===String)return J().u_1;var t,n=e.$metadata$;if(null!=n){var r;if(null==n.$kClass$){var o=new C(e);n.$kClass$=o,r=o}else r=n.$kClass$;t=r}else t=new C(e);return t}function ee(e){var t;switch(typeof e){case"string":t=J().u_1;break;case"number":t=ft(e,0)===e?J().q_1:J().s_1;break;case"boolean":t=J().n_1;break;case"function":var n;n=e,t=J().functionClass(n.length);break;default:var r;if(Ie(e))r=J().w_1;else if(Ve(e))r=J().x_1;else if(Ue(e))r=J().y_1;else if(Be(e))r=J().z_1;else if(We(e))r=J().a1_1;else if(qe(e))r=J().b1_1;else if(He(e))r=J().c1_1;else if(Qe(e))r=J().d1_1;else if(Pe(e,w))r=Y(w);else if(Fe(e))r=J().t_1;else{var o=Object.getPrototypeOf(e).constructor;r=o===Object?J().k_1:o===Error?J().v_1:Z(o)}t=r}return t}function te(e,t){var n=0,r=e.length-1|0;if(n<=r)do{var o=n;n=n+1|0,e[o]=t}while(o!==r);return e}function ne(){return ue(),l}function re(){return ue(),i}function oe(){return ue(),u}function ae(){return ue(),s}function le(){return ue(),c}function ie(e){return ue(),ft(e,0)===e?Se(e):(re()[0]=e,p(oe()[le()],31)+oe()[ae()]|0)}function ue(){var e,t,n;f||(f=!0,l=new ArrayBuffer(8),e=new Float64Array(ne()),i=e,new Float32Array(ne()),t=new Int32Array(ne()),u=t,re()[0]=-1,n=0!==oe()[0]?1:0,s=n,c=1-ae()|0)}function se(e,t){var n=e,r=t;if(n===r)return!0;if(null==n||null==r||!Ce(r)||n.length!=r.length)return!1;var o=0,a=n.length;if(o2147483647?2147483647:e<-2147483648?-2147483648:ft(e,0)}function xe(e,t,n,r,o,a){return Ee("class",e,t,n,r,o,a)}function Ee(e,t,n,r,o,a,l){return{kind:e,simpleName:t,interfaceId:"interface"===e?-1:void 0,interfaces:n||[],associatedObjectKey:r,associatedObjects:o,suspendArity:a,fastPrototype:l,$kClass$:void 0,interfacesCache:{isComplete:void 0===l&&(void 0===n||0===n.length),implementInterfaceMemo:{}}}}function Ce(e){return!!Ne(e)||h(e)}function Ne(e){return Array.isArray(e)}function Pe(e,t){var n=e.constructor;return null!=n&&Oe(n,t)}function Oe(e,t){if(e===t)return!0;var n=e.$metadata$;null!=n&&null==n.interfacesCache&&(n.interfacesCache=Te());var r,o=null==n?null:n.interfacesCache;if(null!=o){o.isComplete||Ae(e);var a=t.$metadata$,l=null==a?null:a.interfaceId;if(null==l)return!1;var i=l;r=!!o.implementInterfaceMemo[i]}else{var u=Re(e),s=null==u?null:u.constructor;if(null==s)return!1;r=Oe(s,t)}return r}function Te(){return{isComplete:!1,implementInterfaceMemo:{}}}function Ae(e){var t=e.$metadata$;null!=t&&null==t.interfacesCache&&(t.interfacesCache=Te());var n=null==t?null:t.interfacesCache;if(null!=n){if(!0===n.isComplete)return n;for(var r=t.interfaces,o=0,a=r.length;o