-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbundle.js
1 lines (1 loc) · 42.4 KB
/
bundle.js
1
!function(){"use strict";var t={7017:function(t,n,e){var r=e(1601),o=e.n(r),i=e(6314),u=e.n(i)()(o());u.push([t.id,'* {\n margin: 0;\n padding: 0;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\ndiv {\n cursor: none;\n}\nbody {\n font: bold 20px "courier";\n}\n#main {\n width: 360px;\n height: 420px;\n background-color: #b7d4a8;\n margin: 100px auto;\n border: 10px solid black;\n border-radius: 40px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-flow: column;\n flex-flow: column;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-pack: distribute;\n justify-content: space-around;\n}\n#main #stage {\n width: 304px;\n height: 304px;\n border: 2px solid black;\n position: relative;\n}\n#main #stage #snake > div {\n width: 10px;\n height: 10px;\n background-color: #000;\n border: 1px solid #b7d4a8;\n position: absolute;\n}\n#main #stage > #food {\n width: 10px;\n height: 10px;\n position: absolute;\n left: 40px;\n top: 100px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n#main #stage > #food > div {\n width: 4px;\n height: 4px;\n background-color: black;\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n}\n#main #score-panel {\n width: 300px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: distribute;\n justify-content: space-around;\n}\n',""]),n.A=u},6314:function(t){t.exports=function(t){var n=[];return n.toString=function(){return this.map((function(n){var e="",r=void 0!==n[5];return n[4]&&(e+="@supports (".concat(n[4],") {")),n[2]&&(e+="@media ".concat(n[2]," {")),r&&(e+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),e+=t(n),r&&(e+="}"),n[2]&&(e+="}"),n[4]&&(e+="}"),e})).join("")},n.i=function(t,e,r,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var u={};if(r)for(var c=0;c<this.length;c++){var a=this[c][0];null!=a&&(u[a]=!0)}for(var f=0;f<t.length;f++){var s=[].concat(t[f]);r&&u[s[0]]||(void 0!==i&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=i),e&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=e):s[2]=e),o&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=o):s[4]="".concat(o)),n.push(s))}},n}},1601:function(t){t.exports=function(t){return t[1]}},5072:function(t){var n=[];function e(t){for(var e=-1,r=0;r<n.length;r++)if(n[r].identifier===t){e=r;break}return e}function r(t,r){for(var i={},u=[],c=0;c<t.length;c++){var a=t[c],f=r.base?a[0]+r.base:a[0],s=i[f]||0,l="".concat(f," ").concat(s);i[f]=s+1;var p=e(l),v={css:a[1],media:a[2],sourceMap:a[3],supports:a[4],layer:a[5]};if(-1!==p)n[p].references++,n[p].updater(v);else{var y=o(v,r);r.byIndex=c,n.splice(c,0,{identifier:l,updater:y,references:1})}u.push(l)}return u}function o(t,n){var e=n.domAPI(n);return e.update(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap&&n.supports===t.supports&&n.layer===t.layer)return;e.update(t=n)}else e.remove()}}t.exports=function(t,o){var i=r(t=t||[],o=o||{});return function(t){t=t||[];for(var u=0;u<i.length;u++){var c=e(i[u]);n[c].references--}for(var a=r(t,o),f=0;f<i.length;f++){var s=e(i[f]);0===n[s].references&&(n[s].updater(),n.splice(s,1))}i=a}}},7659:function(t){var n={};t.exports=function(t,e){var r=function(t){if(void 0===n[t]){var e=document.querySelector(t);if(window.HTMLIFrameElement&&e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}n[t]=e}return n[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(e)}},540:function(t){t.exports=function(t){var n=document.createElement("style");return t.setAttributes(n,t.attributes),t.insert(n,t.options),n}},5056:function(t,n,e){t.exports=function(t){var n=e.nc;n&&t.setAttribute("nonce",n)}},7825:function(t){t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=t.insertStyleElement(t);return{update:function(e){!function(t,n,e){var r="";e.supports&&(r+="@supports (".concat(e.supports,") {")),e.media&&(r+="@media ".concat(e.media," {"));var o=void 0!==e.layer;o&&(r+="@layer".concat(e.layer.length>0?" ".concat(e.layer):""," {")),r+=e.css,o&&(r+="}"),e.media&&(r+="}"),e.supports&&(r+="}");var i=e.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),n.styleTagTransform(r,t,n.options)}(n,t,e)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)}}}},1113:function(t){t.exports=function(t,n){if(n.styleSheet)n.styleSheet.cssText=t;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(t))}}},9306:function(t,n,e){var r=e(4901),o=e(6823),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")}},3506:function(t,n,e){var r=e(3925),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},6469:function(t,n,e){var r=e(8227),o=e(2360),i=e(4913).f,u=r("unscopables"),c=Array.prototype;void 0===c[u]&&i(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},8551:function(t,n,e){var r=e(34),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},9617:function(t,n,e){var r=e(5397),o=e(5610),i=e(6198),u=function(t){return function(n,e,u){var c=r(n),a=i(c);if(0===a)return!t&&-1;var f,s=o(u,a);if(t&&e!=e){for(;a>s;)if((f=c[s++])!=f)return!0}else for(;a>s;s++)if((t||s in c)&&c[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},9213:function(t,n,e){var r=e(6080),o=e(9504),i=e(7055),u=e(8981),c=e(6198),a=e(1469),f=o([].push),s=function(t){var n=1===t,e=2===t,o=3===t,s=4===t,l=6===t,p=7===t,v=5===t||l;return function(y,d,h,b){for(var m,g,x=u(y),w=i(x),S=c(w),O=r(d,h),j=0,k=b||a,E=n?k(y,S):e||p?k(y,0):void 0;S>j;j++)if((v||j in w)&&(g=O(m=w[j],j,x),t))if(n)E[j]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return j;case 2:f(E,m)}else switch(t){case 4:return!1;case 7:f(E,m)}return l?-1:o||s?s:E}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},7680:function(t,n,e){var r=e(9504);t.exports=r([].slice)},7433:function(t,n,e){var r=e(4376),o=e(3517),i=e(34),u=e(8227)("species"),c=Array;t.exports=function(t){var n;return r(t)&&(n=t.constructor,(o(n)&&(n===c||r(n.prototype))||i(n)&&null===(n=n[u]))&&(n=void 0)),void 0===n?c:n}},1469:function(t,n,e){var r=e(7433);t.exports=function(t,n){return new(r(t))(0===n?0:n)}},4576:function(t,n,e){var r=e(9504),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},6955:function(t,n,e){var r=e(2140),o=e(4901),i=e(4576),u=e(8227)("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}());t.exports=r?i:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=c(t),u))?e:a?i(n):"Object"===(r=i(n))&&o(n.callee)?"Arguments":r}},7740:function(t,n,e){var r=e(9297),o=e(5031),i=e(7347),u=e(4913);t.exports=function(t,n,e){for(var c=o(n),a=u.f,f=i.f,s=0;s<c.length;s++){var l=c[s];r(t,l)||e&&r(e,l)||a(t,l,f(n,l))}}},2211:function(t,n,e){var r=e(9039);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},2529:function(t){t.exports=function(t,n){return{value:t,done:n}}},6699:function(t,n,e){var r=e(3724),o=e(4913),i=e(6980);t.exports=r?function(t,n,e){return o.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},6980:function(t){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},3640:function(t,n,e){var r=e(8551),o=e(4270),i=TypeError;t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new i("Incorrect hint");return o(this,t)}},2106:function(t,n,e){var r=e(283),o=e(4913);t.exports=function(t,n,e){return e.get&&r(e.get,n,{getter:!0}),e.set&&r(e.set,n,{setter:!0}),o.f(t,n,e)}},6840:function(t,n,e){var r=e(4901),o=e(4913),i=e(283),u=e(9433);t.exports=function(t,n,e,c){c||(c={});var a=c.enumerable,f=void 0!==c.name?c.name:n;if(r(e)&&i(e,f,c),c.global)a?t[n]=e:u(n,e);else{try{c.unsafe?t[n]&&(a=!0):delete t[n]}catch(t){}a?t[n]=e:o.f(t,n,{value:e,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},9433:function(t,n,e){var r=e(4475),o=Object.defineProperty;t.exports=function(t,n){try{o(r,t,{value:n,configurable:!0,writable:!0})}catch(e){r[t]=n}return n}},3724:function(t,n,e){var r=e(9039);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:function(t,n,e){var r=e(4475),o=e(34),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},7400:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9296:function(t,n,e){var r=e(4055)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},9392:function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7388:function(t,n,e){var r,o,i=e(4475),u=e(9392),c=i.process,a=i.Deno,f=c&&c.versions||a&&a.version,s=f&&f.v8;s&&(o=(r=s.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6518:function(t,n,e){var r=e(4475),o=e(7347).f,i=e(6699),u=e(6840),c=e(9433),a=e(7740),f=e(2796);t.exports=function(t,n){var e,s,l,p,v,y=t.target,d=t.global,h=t.stat;if(e=d?r:h?r[y]||c(y,{}):r[y]&&r[y].prototype)for(s in n){if(p=n[s],l=t.dontCallGetSet?(v=o(e,s))&&v.value:e[s],!f(d?s:y+(h?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(e,s,p,t)}}},9039:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},8745:function(t,n,e){var r=e(616),o=Function.prototype,i=o.apply,u=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?u.bind(i):function(){return u.apply(i,arguments)})},6080:function(t,n,e){var r=e(7476),o=e(9306),i=e(616),u=r(r.bind);t.exports=function(t,n){return o(t),void 0===n?t:i?u(t,n):function(){return t.apply(n,arguments)}}},616:function(t,n,e){var r=e(9039);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:function(t,n,e){var r=e(616),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},350:function(t,n,e){var r=e(3724),o=e(9297),i=Function.prototype,u=r&&Object.getOwnPropertyDescriptor,c=o(i,"name"),a=c&&"something"===function(){}.name,f=c&&(!r||r&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:a,CONFIGURABLE:f}},6706:function(t,n,e){var r=e(9504),o=e(9306);t.exports=function(t,n,e){try{return r(o(Object.getOwnPropertyDescriptor(t,n)[e]))}catch(t){}}},7476:function(t,n,e){var r=e(4576),o=e(9504);t.exports=function(t){if("Function"===r(t))return o(t)}},9504:function(t,n,e){var r=e(616),o=Function.prototype,i=o.call,u=r&&o.bind.bind(i,i);t.exports=r?u:function(t){return function(){return i.apply(t,arguments)}}},7751:function(t,n,e){var r=e(4475),o=e(4901);t.exports=function(t,n){return arguments.length<2?(e=r[t],o(e)?e:void 0):r[t]&&r[t][n];var e}},6933:function(t,n,e){var r=e(9504),o=e(4376),i=e(4901),u=e(4576),c=e(655),a=r([].push);t.exports=function(t){if(i(t))return t;if(o(t)){for(var n=t.length,e=[],r=0;r<n;r++){var f=t[r];"string"==typeof f?a(e,f):"number"!=typeof f&&"Number"!==u(f)&&"String"!==u(f)||a(e,c(f))}var s=e.length,l=!0;return function(t,n){if(l)return l=!1,n;if(o(this))return n;for(var r=0;r<s;r++)if(e[r]===t)return n}}}},5966:function(t,n,e){var r=e(9306),o=e(4117);t.exports=function(t,n){var e=t[n];return o(e)?void 0:r(e)}},4475:function(t,n,e){var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e.g&&e.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,n,e){var r=e(9504),o=e(8981),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,n){return i(o(t),n)}},421:function(t){t.exports={}},397:function(t,n,e){var r=e(7751);t.exports=r("document","documentElement")},5917:function(t,n,e){var r=e(3724),o=e(9039),i=e(4055);t.exports=!r&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7055:function(t,n,e){var r=e(9504),o=e(9039),i=e(4576),u=Object,c=r("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?c(t,""):u(t)}:u},3167:function(t,n,e){var r=e(4901),o=e(34),i=e(2967);t.exports=function(t,n,e){var u,c;return i&&r(u=n.constructor)&&u!==e&&o(c=u.prototype)&&c!==e.prototype&&i(t,c),t}},3706:function(t,n,e){var r=e(9504),o=e(4901),i=e(7629),u=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},1181:function(t,n,e){var r,o,i,u=e(8622),c=e(4475),a=e(34),f=e(6699),s=e(9297),l=e(7629),p=e(6119),v=e(421),y="Object already initialized",d=c.TypeError,h=c.WeakMap;if(u||l.state){var b=l.state||(l.state=new h);b.get=b.get,b.has=b.has,b.set=b.set,r=function(t,n){if(b.has(t))throw new d(y);return n.facade=t,b.set(t,n),n},o=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var m=p("state");v[m]=!0,r=function(t,n){if(s(t,m))throw new d(y);return n.facade=t,f(t,m,n),n},o=function(t){return s(t,m)?t[m]:{}},i=function(t){return s(t,m)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(n){var e;if(!a(n)||(e=o(n)).type!==t)throw new d("Incompatible receiver, "+t+" required");return e}}}},4376:function(t,n,e){var r=e(4576);t.exports=Array.isArray||function(t){return"Array"===r(t)}},4901:function(t){var n="object"==typeof document&&document.all;t.exports=void 0===n&&void 0!==n?function(t){return"function"==typeof t||t===n}:function(t){return"function"==typeof t}},3517:function(t,n,e){var r=e(9504),o=e(9039),i=e(4901),u=e(6955),c=e(7751),a=e(3706),f=function(){},s=c("Reflect","construct"),l=/^\s*(?:class|function)\b/,p=r(l.exec),v=!l.test(f),y=function(t){if(!i(t))return!1;try{return s(f,[],t),!0}catch(t){return!1}},d=function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!p(l,a(t))}catch(t){return!0}};d.sham=!0,t.exports=!s||o((function(){var t;return y(y.call)||!y(Object)||!y((function(){t=!0}))||t}))?d:y},2796:function(t,n,e){var r=e(9039),o=e(4901),i=/#|\.prototype\./,u=function(t,n){var e=a[c(t)];return e===s||e!==f&&(o(n)?r(n):!!n)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=u.data={},f=u.NATIVE="N",s=u.POLYFILL="P";t.exports=u},4117:function(t){t.exports=function(t){return null==t}},34:function(t,n,e){var r=e(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},3925:function(t,n,e){var r=e(34);t.exports=function(t){return r(t)||null===t}},6395:function(t){t.exports=!1},757:function(t,n,e){var r=e(7751),o=e(4901),i=e(1625),u=e(7040),c=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var n=r("Symbol");return o(n)&&i(n.prototype,c(t))}},3994:function(t,n,e){var r=e(7657).IteratorPrototype,o=e(2360),i=e(6980),u=e(687),c=e(6269),a=function(){return this};t.exports=function(t,n,e,f){var s=n+" Iterator";return t.prototype=o(r,{next:i(+!f,e)}),u(t,s,!1,!0),c[s]=a,t}},1088:function(t,n,e){var r=e(6518),o=e(9565),i=e(6395),u=e(350),c=e(4901),a=e(3994),f=e(2787),s=e(2967),l=e(687),p=e(6699),v=e(6840),y=e(8227),d=e(6269),h=e(7657),b=u.PROPER,m=u.CONFIGURABLE,g=h.IteratorPrototype,x=h.BUGGY_SAFARI_ITERATORS,w=y("iterator"),S="keys",O="values",j="entries",k=function(){return this};t.exports=function(t,n,e,u,y,h,E){a(e,n,u);var P,T,A,L=function(t){if(t===y&&C)return C;if(!x&&t&&t in N)return N[t];switch(t){case S:case O:case j:return function(){return new e(this,t)}}return function(){return new e(this)}},I=n+" Iterator",F=!1,N=t.prototype,M=N[w]||N["@@iterator"]||y&&N[y],C=!x&&M||L(y),R="Array"===n&&N.entries||M;if(R&&(P=f(R.call(new t)))!==Object.prototype&&P.next&&(i||f(P)===g||(s?s(P,g):c(P[w])||v(P,w,k)),l(P,I,!0,!0),i&&(d[I]=k)),b&&y===O&&M&&M.name!==O&&(!i&&m?p(N,"name",O):(F=!0,C=function(){return o(M,this)})),y)if(T={values:L(O),keys:h?C:L(S),entries:L(j)},E)for(A in T)(x||F||!(A in N))&&v(N,A,T[A]);else r({target:n,proto:!0,forced:x||F},T);return i&&!E||N[w]===C||v(N,w,C,{name:y}),d[n]=C,T}},7657:function(t,n,e){var r,o,i,u=e(9039),c=e(4901),a=e(34),f=e(2360),s=e(2787),l=e(6840),p=e(8227),v=e(6395),y=p("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(r=o):d=!0),!a(r)||u((function(){var t={};return r[y].call(t)!==t}))?r={}:v&&(r=f(r)),c(r[y])||l(r,y,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},6269:function(t){t.exports={}},6198:function(t,n,e){var r=e(8014);t.exports=function(t){return r(t.length)}},283:function(t,n,e){var r=e(9504),o=e(9039),i=e(4901),u=e(9297),c=e(3724),a=e(350).CONFIGURABLE,f=e(3706),s=e(1181),l=s.enforce,p=s.get,v=String,y=Object.defineProperty,d=r("".slice),h=r("".replace),b=r([].join),m=c&&!o((function(){return 8!==y((function(){}),"length",{value:8}).length})),g=String(String).split("String"),x=t.exports=function(t,n,e){"Symbol("===d(v(n),0,7)&&(n="["+h(v(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(n="get "+n),e&&e.setter&&(n="set "+n),(!u(t,"name")||a&&t.name!==n)&&(c?y(t,"name",{value:n,configurable:!0}):t.name=n),m&&e&&u(e,"arity")&&t.length!==e.arity&&y(t,"length",{value:e.arity});try{e&&u(e,"constructor")&&e.constructor?c&&y(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=l(t);return u(r,"source")||(r.source=b(g,"string"==typeof n?n:"")),t};Function.prototype.toString=x((function(){return i(this)&&p(this).source||f(this)}),"toString")},741:function(t){var n=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?e:n)(r)}},2360:function(t,n,e){var r,o=e(8551),i=e(6801),u=e(8727),c=e(421),a=e(397),f=e(4055),s=e(6119),l="prototype",p="script",v=s("IE_PROTO"),y=function(){},d=function(t){return"<"+p+">"+t+"</"+p+">"},h=function(t){t.write(d("")),t.close();var n=t.parentWindow.Object;return t=null,n},b=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,n,e;b="undefined"!=typeof document?document.domain&&r?h(r):(n=f("iframe"),e="java"+p+":",n.style.display="none",a.appendChild(n),n.src=String(e),(t=n.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):h(r);for(var o=u.length;o--;)delete b[l][u[o]];return b()};c[v]=!0,t.exports=Object.create||function(t,n){var e;return null!==t?(y[l]=o(t),e=new y,y[l]=null,e[v]=t):e=b(),void 0===n?e:i.f(e,n)}},6801:function(t,n,e){var r=e(3724),o=e(8686),i=e(4913),u=e(8551),c=e(5397),a=e(1072);n.f=r&&!o?Object.defineProperties:function(t,n){u(t);for(var e,r=c(n),o=a(n),f=o.length,s=0;f>s;)i.f(t,e=o[s++],r[e]);return t}},4913:function(t,n,e){var r=e(3724),o=e(5917),i=e(8686),u=e(8551),c=e(6969),a=TypeError,f=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",v="writable";n.f=r?i?function(t,n,e){if(u(t),n=c(n),u(e),"function"==typeof t&&"prototype"===n&&"value"in e&&v in e&&!e[v]){var r=s(t,n);r&&r[v]&&(t[n]=e.value,e={configurable:p in e?e[p]:r[p],enumerable:l in e?e[l]:r[l],writable:!1})}return f(t,n,e)}:f:function(t,n,e){if(u(t),n=c(n),u(e),o)try{return f(t,n,e)}catch(t){}if("get"in e||"set"in e)throw new a("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},7347:function(t,n,e){var r=e(3724),o=e(9565),i=e(8773),u=e(6980),c=e(5397),a=e(6969),f=e(9297),s=e(5917),l=Object.getOwnPropertyDescriptor;n.f=r?l:function(t,n){if(t=c(t),n=a(n),s)try{return l(t,n)}catch(t){}if(f(t,n))return u(!o(i.f,t,n),t[n])}},298:function(t,n,e){var r=e(4576),o=e(5397),i=e(8480).f,u=e(7680),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"Window"===r(t)?function(t){try{return i(t)}catch(t){return u(c)}}(t):i(o(t))}},8480:function(t,n,e){var r=e(1828),o=e(8727).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},3717:function(t,n){n.f=Object.getOwnPropertySymbols},2787:function(t,n,e){var r=e(9297),o=e(4901),i=e(8981),u=e(6119),c=e(2211),a=u("IE_PROTO"),f=Object,s=f.prototype;t.exports=c?f.getPrototypeOf:function(t){var n=i(t);if(r(n,a))return n[a];var e=n.constructor;return o(e)&&n instanceof e?e.prototype:n instanceof f?s:null}},1625:function(t,n,e){var r=e(9504);t.exports=r({}.isPrototypeOf)},1828:function(t,n,e){var r=e(9504),o=e(9297),i=e(5397),u=e(9617).indexOf,c=e(421),a=r([].push);t.exports=function(t,n){var e,r=i(t),f=0,s=[];for(e in r)!o(c,e)&&o(r,e)&&a(s,e);for(;n.length>f;)o(r,e=n[f++])&&(~u(s,e)||a(s,e));return s}},1072:function(t,n,e){var r=e(1828),o=e(8727);t.exports=Object.keys||function(t){return r(t,o)}},8773:function(t,n){var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!e.call({1:2},1);n.f=o?function(t){var n=r(this,t);return!!n&&n.enumerable}:e},2967:function(t,n,e){var r=e(6706),o=e(34),i=e(7750),u=e(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,e={};try{(t=r(Object.prototype,"__proto__","set"))(e,[]),n=e instanceof Array}catch(t){}return function(e,r){return i(e),u(r),o(e)?(n?t(e,r):e.__proto__=r,e):e}}():void 0)},3179:function(t,n,e){var r=e(2140),o=e(6955);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},4270:function(t,n,e){var r=e(9565),o=e(4901),i=e(34),u=TypeError;t.exports=function(t,n){var e,c;if("string"===n&&o(e=t.toString)&&!i(c=r(e,t)))return c;if(o(e=t.valueOf)&&!i(c=r(e,t)))return c;if("string"!==n&&o(e=t.toString)&&!i(c=r(e,t)))return c;throw new u("Can't convert object to primitive value")}},5031:function(t,n,e){var r=e(7751),o=e(9504),i=e(8480),u=e(3717),c=e(8551),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var n=i.f(c(t)),e=u.f;return e?a(n,e(t)):n}},9167:function(t,n,e){var r=e(4475);t.exports=r},7750:function(t,n,e){var r=e(4117),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},687:function(t,n,e){var r=e(4913).f,o=e(9297),i=e(8227)("toStringTag");t.exports=function(t,n,e){t&&!e&&(t=t.prototype),t&&!o(t,i)&&r(t,i,{configurable:!0,value:n})}},6119:function(t,n,e){var r=e(5745),o=e(3392),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629:function(t,n,e){var r=e(6395),o=e(4475),i=e(9433),u="__core-js_shared__",c=t.exports=o[u]||i(u,{});(c.versions||(c.versions=[])).push({version:"3.37.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,n,e){var r=e(7629);t.exports=function(t,n){return r[t]||(r[t]=n||{})}},8183:function(t,n,e){var r=e(9504),o=e(1291),i=e(655),u=e(7750),c=r("".charAt),a=r("".charCodeAt),f=r("".slice),s=function(t){return function(n,e){var r,s,l=i(u(n)),p=o(e),v=l.length;return p<0||p>=v?t?"":void 0:(r=a(l,p))<55296||r>56319||p+1===v||(s=a(l,p+1))<56320||s>57343?t?c(l,p):r:t?f(l,p,p+2):s-56320+(r-55296<<10)+65536}};t.exports={codeAt:s(!1),charAt:s(!0)}},3802:function(t,n,e){var r=e(9504),o=e(7750),i=e(655),u=e(7452),c=r("".replace),a=RegExp("^["+u+"]+"),f=RegExp("(^|[^"+u+"])["+u+"]+$"),s=function(t){return function(n){var e=i(o(n));return 1&t&&(e=c(e,a,"")),2&t&&(e=c(e,f,"$1")),e}};t.exports={start:s(1),end:s(2),trim:s(3)}},4495:function(t,n,e){var r=e(7388),o=e(9039),i=e(4475).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8242:function(t,n,e){var r=e(9565),o=e(7751),i=e(8227),u=e(6840);t.exports=function(){var t=o("Symbol"),n=t&&t.prototype,e=n&&n.valueOf,c=i("toPrimitive");n&&!n[c]&&u(n,c,(function(t){return r(e,this)}),{arity:1})}},1296:function(t,n,e){var r=e(4495);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},1240:function(t,n,e){var r=e(9504);t.exports=r(1..valueOf)},5610:function(t,n,e){var r=e(1291),o=Math.max,i=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):i(e,n)}},5397:function(t,n,e){var r=e(7055),o=e(7750);t.exports=function(t){return r(o(t))}},1291:function(t,n,e){var r=e(741);t.exports=function(t){var n=+t;return n!=n||0===n?0:r(n)}},8014:function(t,n,e){var r=e(1291),o=Math.min;t.exports=function(t){var n=r(t);return n>0?o(n,9007199254740991):0}},8981:function(t,n,e){var r=e(7750),o=Object;t.exports=function(t){return o(r(t))}},2777:function(t,n,e){var r=e(9565),o=e(34),i=e(757),u=e(5966),c=e(4270),a=e(8227),f=TypeError,s=a("toPrimitive");t.exports=function(t,n){if(!o(t)||i(t))return t;var e,a=u(t,s);if(a){if(void 0===n&&(n="default"),e=r(a,t,n),!o(e)||i(e))return e;throw new f("Can't convert object to primitive value")}return void 0===n&&(n="number"),c(t,n)}},6969:function(t,n,e){var r=e(2777),o=e(757);t.exports=function(t){var n=r(t,"string");return o(n)?n:n+""}},2140:function(t,n,e){var r={};r[e(8227)("toStringTag")]="z",t.exports="[object z]"===String(r)},655:function(t,n,e){var r=e(6955),o=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},6823:function(t){var n=String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},3392:function(t,n,e){var r=e(9504),o=0,i=Math.random(),u=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},7040:function(t,n,e){var r=e(4495);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,n,e){var r=e(3724),o=e(9039);t.exports=r&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8622:function(t,n,e){var r=e(4475),o=e(4901),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},511:function(t,n,e){var r=e(9167),o=e(9297),i=e(1951),u=e(4913).f;t.exports=function(t){var n=r.Symbol||(r.Symbol={});o(n,t)||u(n,t,{value:i.f(t)})}},1951:function(t,n,e){var r=e(8227);n.f=r},8227:function(t,n,e){var r=e(4475),o=e(5745),i=e(9297),u=e(3392),c=e(4495),a=e(7040),f=r.Symbol,s=o("wks"),l=a?f.for||f:f&&f.withoutSetter||u;t.exports=function(t){return i(s,t)||(s[t]=c&&i(f,t)?f[t]:l("Symbol."+t)),s[t]}},7452:function(t){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},3792:function(t,n,e){var r=e(5397),o=e(6469),i=e(6269),u=e(1181),c=e(4913).f,a=e(1088),f=e(2529),s=e(6395),l=e(3724),p="Array Iterator",v=u.set,y=u.getterFor(p);t.exports=a(Array,"Array",(function(t,n){v(this,{type:p,target:r(t),index:0,kind:n})}),(function(){var t=y(this),n=t.target,e=t.index++;if(!n||e>=n.length)return t.target=void 0,f(void 0,!0);switch(t.kind){case"keys":return f(e,!1);case"values":return f(n[e],!1)}return f([e,n[e]],!1)}),"values");var d=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!s&&l&&"values"!==d.name)try{c(d,"name",{value:"values"})}catch(t){}},9572:function(t,n,e){var r=e(9297),o=e(6840),i=e(3640),u=e(8227)("toPrimitive"),c=Date.prototype;r(c,u)||o(c,u,i)},3110:function(t,n,e){var r=e(6518),o=e(7751),i=e(8745),u=e(9565),c=e(9504),a=e(9039),f=e(4901),s=e(757),l=e(7680),p=e(6933),v=e(4495),y=String,d=o("JSON","stringify"),h=c(/./.exec),b=c("".charAt),m=c("".charCodeAt),g=c("".replace),x=c(1..toString),w=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,j=!v||a((function(){var t=o("Symbol")("stringify detection");return"[null]"!==d([t])||"{}"!==d({a:t})||"{}"!==d(Object(t))})),k=a((function(){return'"\\udf06\\ud834"'!==d("\udf06\ud834")||'"\\udead"'!==d("\udead")})),E=function(t,n){var e=l(arguments),r=p(n);if(f(r)||void 0!==t&&!s(t))return e[1]=function(t,n){if(f(r)&&(n=u(r,this,y(t),n)),!s(n))return n},i(d,null,e)},P=function(t,n,e){var r=b(e,n-1),o=b(e,n+1);return h(S,t)&&!h(O,o)||h(O,t)&&!h(S,r)?"\\u"+x(m(t,0),16):t};d&&r({target:"JSON",stat:!0,arity:3,forced:j||k},{stringify:function(t,n,e){var r=l(arguments),o=i(j?E:d,null,r);return k&&"string"==typeof o?g(o,w,P):o}})},2892:function(t,n,e){var r=e(6518),o=e(6395),i=e(3724),u=e(4475),c=e(9167),a=e(9504),f=e(2796),s=e(9297),l=e(3167),p=e(1625),v=e(757),y=e(2777),d=e(9039),h=e(8480).f,b=e(7347).f,m=e(4913).f,g=e(1240),x=e(3802).trim,w="Number",S=u[w],O=c[w],j=S.prototype,k=u.TypeError,E=a("".slice),P=a("".charCodeAt),T=f(w,!S(" 0o1")||!S("0b1")||S("+0x1")),A=function(t){var n,e=arguments.length<1?0:S(function(t){var n=y(t,"number");return"bigint"==typeof n?n:function(t){var n,e,r,o,i,u,c,a,f=y(t,"number");if(v(f))throw new k("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=x(f),43===(n=P(f,0))||45===n){if(88===(e=P(f,2))||120===e)return NaN}else if(48===n){switch(P(f,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(u=(i=E(f,2)).length,c=0;c<u;c++)if((a=P(i,c))<48||a>o)return NaN;return parseInt(i,r)}return+f}(n)}(t));return p(j,n=this)&&d((function(){g(n)}))?l(Object(e),this,A):e};A.prototype=j,T&&!o&&(j.constructor=A),r({global:!0,constructor:!0,wrap:!0,forced:T},{Number:A});var L=function(t,n){for(var e,r=i?h(n):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)s(n,e=r[o])&&!s(t,e)&&m(t,e,b(n,e))};o&&O&&L(c[w],O),(T||o)&&L(c[w],S)},9773:function(t,n,e){var r=e(6518),o=e(4495),i=e(9039),u=e(3717),c=e(8981);r({target:"Object",stat:!0,forced:!o||i((function(){u.f(1)}))},{getOwnPropertySymbols:function(t){var n=u.f;return n?n(c(t)):[]}})},6099:function(t,n,e){var r=e(2140),o=e(6840),i=e(3179);r||o(Object.prototype,"toString",i,{unsafe:!0})},7764:function(t,n,e){var r=e(8183).charAt,o=e(655),i=e(1181),u=e(1088),c=e(2529),a="String Iterator",f=i.set,s=i.getterFor(a);u(String,"String",(function(t){f(this,{type:a,string:o(t),index:0})}),(function(){var t,n=s(this),e=n.string,o=n.index;return o>=e.length?c(void 0,!0):(t=r(e,o),n.index+=t.length,c(t,!1))}))},6761:function(t,n,e){var r=e(6518),o=e(4475),i=e(9565),u=e(9504),c=e(6395),a=e(3724),f=e(4495),s=e(9039),l=e(9297),p=e(1625),v=e(8551),y=e(5397),d=e(6969),h=e(655),b=e(6980),m=e(2360),g=e(1072),x=e(8480),w=e(298),S=e(3717),O=e(7347),j=e(4913),k=e(6801),E=e(8773),P=e(6840),T=e(2106),A=e(5745),L=e(6119),I=e(421),F=e(3392),N=e(8227),M=e(1951),C=e(511),R=e(8242),_=e(687),D=e(1181),G=e(9213).forEach,B=L("hidden"),Y="Symbol",H="prototype",U=D.set,X=D.getterFor(Y),V=Object[H],z=o.Symbol,q=z&&z[H],$=o.RangeError,W=o.TypeError,J=o.QObject,K=O.f,Q=j.f,Z=w.f,tt=E.f,nt=u([].push),et=A("symbols"),rt=A("op-symbols"),ot=A("wks"),it=!J||!J[H]||!J[H].findChild,ut=function(t,n,e){var r=K(V,n);r&&delete V[n],Q(t,n,e),r&&t!==V&&Q(V,n,r)},ct=a&&s((function(){return 7!==m(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?ut:Q,at=function(t,n){var e=et[t]=m(q);return U(e,{type:Y,tag:t,description:n}),a||(e.description=n),e},ft=function(t,n,e){t===V&&ft(rt,n,e),v(t);var r=d(n);return v(e),l(et,r)?(e.enumerable?(l(t,B)&&t[B][r]&&(t[B][r]=!1),e=m(e,{enumerable:b(0,!1)})):(l(t,B)||Q(t,B,b(1,m(null))),t[B][r]=!0),ct(t,r,e)):Q(t,r,e)},st=function(t,n){v(t);var e=y(n),r=g(e).concat(yt(e));return G(r,(function(n){a&&!i(lt,e,n)||ft(t,n,e[n])})),t},lt=function(t){var n=d(t),e=i(tt,this,n);return!(this===V&&l(et,n)&&!l(rt,n))&&(!(e||!l(this,n)||!l(et,n)||l(this,B)&&this[B][n])||e)},pt=function(t,n){var e=y(t),r=d(n);if(e!==V||!l(et,r)||l(rt,r)){var o=K(e,r);return!o||!l(et,r)||l(e,B)&&e[B][r]||(o.enumerable=!0),o}},vt=function(t){var n=Z(y(t)),e=[];return G(n,(function(t){l(et,t)||l(I,t)||nt(e,t)})),e},yt=function(t){var n=t===V,e=Z(n?rt:y(t)),r=[];return G(e,(function(t){!l(et,t)||n&&!l(V,t)||nt(r,et[t])})),r};f||(z=function(){if(p(q,this))throw new W("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?h(arguments[0]):void 0,n=F(t),e=function(t){var r=void 0===this?o:this;r===V&&i(e,rt,t),l(r,B)&&l(r[B],n)&&(r[B][n]=!1);var u=b(1,t);try{ct(r,n,u)}catch(t){if(!(t instanceof $))throw t;ut(r,n,u)}};return a&&it&&ct(V,n,{configurable:!0,set:e}),at(n,t)},P(q=z[H],"toString",(function(){return X(this).tag})),P(z,"withoutSetter",(function(t){return at(F(t),t)})),E.f=lt,j.f=ft,k.f=st,O.f=pt,x.f=w.f=vt,S.f=yt,M.f=function(t){return at(N(t),t)},a&&(T(q,"description",{configurable:!0,get:function(){return X(this).description}}),c||P(V,"propertyIsEnumerable",lt,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!f,sham:!f},{Symbol:z}),G(g(ot),(function(t){C(t)})),r({target:Y,stat:!0,forced:!f},{useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!f,sham:!a},{create:function(t,n){return void 0===n?m(t):st(m(t),n)},defineProperty:ft,defineProperties:st,getOwnPropertyDescriptor:pt}),r({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:vt}),R(),_(z,Y),I[B]=!0},9463:function(t,n,e){var r=e(6518),o=e(3724),i=e(4475),u=e(9504),c=e(9297),a=e(4901),f=e(1625),s=e(655),l=e(2106),p=e(7740),v=i.Symbol,y=v&&v.prototype;if(o&&a(v)&&(!("description"in y)||void 0!==v().description)){var d={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),n=f(y,this)?new v(t):void 0===t?v():v(t);return""===t&&(d[n]=!0),n};p(h,v),h.prototype=y,y.constructor=h;var b="Symbol(description detection)"===String(v("description detection")),m=u(y.valueOf),g=u(y.toString),x=/^Symbol\((.*)\)[^)]+$/,w=u("".replace),S=u("".slice);l(y,"description",{configurable:!0,get:function(){var t=m(this);if(c(d,t))return"";var n=g(t),e=b?S(n,7,-1):w(n,x,"$1");return""===e?void 0:e}}),r({global:!0,constructor:!0,forced:!0},{Symbol:h})}},1510:function(t,n,e){var r=e(6518),o=e(7751),i=e(9297),u=e(655),c=e(5745),a=e(1296),f=c("string-to-symbol-registry"),s=c("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!a},{for:function(t){var n=u(t);if(i(f,n))return f[n];var e=o("Symbol")(n);return f[n]=e,s[e]=n,e}})},2259:function(t,n,e){e(511)("iterator")},2675:function(t,n,e){e(6761),e(1510),e(7812),e(3110),e(9773)},7812:function(t,n,e){var r=e(6518),o=e(9297),i=e(757),u=e(6823),c=e(5745),a=e(1296),f=c("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!a},{keyFor:function(t){if(!i(t))throw new TypeError(u(t)+" is not a symbol");if(o(f,t))return f[t]}})},5700:function(t,n,e){var r=e(511),o=e(8242);r("toPrimitive"),o()},2953:function(t,n,e){var r=e(4475),o=e(7400),i=e(9296),u=e(3792),c=e(6699),a=e(687),f=e(8227)("iterator"),s=u.values,l=function(t,n){if(t){if(t[f]!==s)try{c(t,f,s)}catch(n){t[f]=s}if(a(t,n,!0),o[n])for(var e in u)if(t[e]!==u[e])try{c(t,e,u[e])}catch(n){t[e]=u[e]}}};for(var p in o)l(r[p]&&r[p].prototype,p);l(i,"DOMTokenList")}},n={};function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={id:r,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.exports}e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.nc=void 0,function(){var t=e(5072),n=e.n(t),r=e(7825),o=e.n(r),i=e(7659),u=e.n(i),c=e(5056),a=e.n(c),f=e(540),s=e.n(f),l=e(1113),p=e.n(l),v=e(7017),y={};function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function h(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,b(r.key),r)}}function b(t){var n=function(t,n){if("object"!=d(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==d(n)?n:n+""}y.styleTagTransform=p(),y.setAttributes=a(),y.insert=u().bind(null,"head"),y.domAPI=o(),y.insertStyleElement=s(),n()(v.A,y),v.A&&v.A.locals&&v.A.locals,e(2675),e(9463),e(2259),e(5700),e(3792),e(9572),e(2892),e(6099),e(7764),e(2953);var m=function(){return t=function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.element=document.querySelector("#snake"),this.head=document.querySelector("#snake > div"),this.bodies=this.element.getElementsByTagName("div")},(n=[{key:"X",get:function(){return this.head.offsetLeft},set:function(t){if(this.X!==t){if(t<0||t>290)throw new Error("撞墙了");this.bodies[1]&&this.bodies[1].offsetLeft===t&&(t=t>this.X?this.X-10:this.X+10),this.moveBody(),this.head.style.left=t+"px",this.checkHeadBody()}}},{key:"Y",get:function(){return this.head.offsetTop},set:function(t){if(this.Y!==t){if(t<0||t>290)throw new Error("撞墙了");this.bodies[1]&&this.bodies[1].offsetTop===t&&(t=t>this.Y?this.Y-10:this.Y+10),this.moveBody(),this.head.style.top=t+"px",this.checkHeadBody()}}},{key:"addBody",value:function(){this.element.insertAdjacentHTML("beforeend","<div></div>")}},{key:"moveBody",value:function(){for(var t=this.bodies.length-1;t>0;t--){var n=this.bodies[t-1].offsetLeft,e=this.bodies[t-1].offsetTop;this.bodies[t].style.left=n+"px",this.bodies[t].style.top=e+"px"}}},{key:"checkHeadBody",value:function(){for(var t=1;t<this.bodies.length;t++){var n=this.bodies[t];if(this.X===n.offsetLeft&&this.Y===n.offsetTop)throw new Error("撞到自己了,菜鸡")}}}])&&h(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}();function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function x(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,w(r.key),r)}}function w(t){var n=function(t,n){if("object"!=g(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==g(n)?n:n+""}var S=function(){return t=function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.element=document.querySelector("#food")},(n=[{key:"X",get:function(){return this.element.offsetLeft}},{key:"Y",get:function(){return this.element.offsetTop}},{key:"change",value:function(){var t=10*Math.round(29*Math.random()),n=10*Math.round(29*Math.random());this.element.style.left=n+"px",this.element.style.top=t+"px"}}])&&x(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}();function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function j(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,k(r.key),r)}}function k(t){var n=function(t,n){if("object"!=O(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==O(n)?n:n+""}var E=function(){return t=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.score=0,this.level=1,this.scoreEle=document.querySelector("#score"),this.levelEle=document.querySelector("#level"),this.maxLevel=n,this.upScore=e},(n=[{key:"addScore",value:function(){this.scoreEle.innerHTML=++this.score+"",this.score%this.upScore==0&&this.levelUp()}},{key:"levelUp",value:function(){this.level<this.maxLevel&&(this.levelEle.innerHTML=++this.level+"")}}])&&j(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}();function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function T(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,A(r.key),r)}}function A(t){var n=function(t,n){if("object"!=P(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==P(n)?n:n+""}new(function(){return t=function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.direction="Right",this.isLive=!0,this.snake=new m,this.food=new S,this.scorePanel=new E(10,2),this.init()},(n=[{key:"init",value:function(){document.addEventListener("keydown",this.keydownHandler.bind(this)),this.run()}},{key:"keydownHandler",value:function(t){this.direction=t.key}},{key:"run",value:function(){var t=this.snake.X,n=this.snake.Y;switch(this.direction){case"ArrowUp":case"Up":n-=10;break;case"ArrowDown":case"Down":n+=10;break;case"ArrowLeft":case"Left":t-=10;break;case"ArrowRight":case"Right":t+=10}this.checkEat(t,n);try{this.snake.X=t,this.snake.Y=n}catch(t){alert(t.message+" 菜鸡"),window.location.reload()}this.isLive&&setTimeout(this.run.bind(this),300-30*(this.scorePanel.level-1))}},{key:"checkEat",value:function(t,n){t===this.food.X&&n===this.food.Y&&(this.food.change(),this.scorePanel.addScore(),this.snake.addBody())}}])&&T(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}())}()}();