PageSourceSearch

https://aimchess.com/static/aimchess-assets/7259.e94bc9ec.bundle.js

js aimchess.com collected 2026-10-01 15:22:29 UTC 11,812 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkaimchess=self.webpackChunkaimchess||[]).push([[7259],{64222:(e,t,n)=>{n.d(t,{Ln:()=>w,hb:()=>g,j1:()=>y});var r=n(3582),a=n(89395),i=n(4438),s=n(94768),o=n(63808),u=n(64772),l=n(69615);function c(e,t,n,r,a,i,s){try{var o=e[i](s),u=o.value}catch(e){n(e);return}o.done?t(u):Promise.resolve(u).then(r,a)}function f(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function s(e){c(i,r,a,s,o,"next",e)}function o(e){c(i,r,a,s,o,"throw",e)}s(void 0)})}}function h(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){d(e,t,n[t])})}return e}function v(e,t){if(null==e)return{};var n,r,a=m(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function m(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function b(e,t){var n,r,a,i,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(a=(a=s.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){s.label=i[1];break}if(6===i[0]&&s.label<a[1]){s.label=a[1],a=i;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(i);break}a[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}}var y=new function e(){var t,n,a,c=this;h(this,e),d(this,"statData",void 0),d(this,"aspectData",void 0),d(this,"fullReport",void 0),d(this,"requestData",void 0),d(this,"requestState",void 0),d(this,"widgetItems",void 0),d(this,"doneItems",void 0),d(this,"period",void 0),d(this,"timeClass",void 0),d(this,"service",void 0),d(this,"username",void 0),d(this,"reset",function(){c.period=14,c.username=null,c.service=null,c.timeClass=null,c.widgetItems=null,c.doneItems=null,c.statData=null,c.aspectData=null,c.requestState=null}),d(this,"setRequestData",function(e){c.requestData=e});var m=this;d(this,"getOverviewStatAction",(t=f(function(e){var t,n;return b(this,function(a){switch(a.label){case 0:m.requestState="pending",m.username=e.username,m.service=e.service,m.timeClass=e.time_class,m.period=e.days,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,(0,i.$o)(e)];case 2:return 200===(t=a.sent()).status&&(0,r.z)(function(){m.requestState="done",m.statData=t.data}),[2,t];case 3:return n=a.sent(),m.requestState="error",(0,s.Po)(n),[3,4];case 4:return[2]}})}),function(e){return t.apply(this,arguments)}));var y=this;d(this,"getDashboardSetting",f(function(){var e,t=arguments;return b(this,function(n){return e=t.length>0&&void 0!==t[0]?t[0]:null,[2,(0,o.N4)(function(){return(0,i.vk)(e)},function(e){var t=e.data;y.widgetItems=t.data.filter(function(e){return["games_not_found","processing"].includes(e.status)});var n=[];t.data.filter(function(e){return"completed"===e.status}).forEach(function(e){if(e.isDefault){var t=e.timeClasses.includes(e.defaultTimeClass)?e.defaultTimeClass:e.timeClasses[0];y.username=e.username,y.service=e.service,y.timeClass=t}
1e.timeClasses.forEach(function(t){n.push({service:e.service,username:e.username,timeClass:t})})}),y.doneItems=n})]})}));var g=this;d(this,"getAspectDetailsAction",(n=f(function(e){var t,n;return b(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,(0,i.TE)(e)];case 1:return 200===(t=a.sent()).status&&(0,r.z)(function(){var e=t.data;g.aspectData={block:e.block,data:e.data,interpretation:e.interpretation,howToImprove:e.how_to_improve,gameCollectionId:e.gameCollectionId}}),[2,t];case 2:return n=a.sent(),(0,s.Po)(n),[3,3];case 3:return[2]}})}),function(e){return n.apply(this,arguments)}));var w=this;d(this,"getFullReportAction",(a=f(function(e){var t,n;return b(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,(0,i.aP)(e)];case 1:return 200===(t=a.sent()).status&&(0,r.z)(function(){var e=t.data,n=e.status,r=e.version,a=e.total_games,i=e.username,s=e.service,o=e.created_at,l=e.error_code,c=e.time_class,f=e.id,h=e.gameCollectionId,d=[];t.data.data&&t.data.data.blocks.forEach(function(e){var t=e.how_to_improve,n=v(e,["how_to_improve"]);d.push(p({howToImprove:t},n))}),w.fullReport={blocks:d,totalGames:a,timeClass:c,createdAt:o,errorCore:l,status:n,version:r,username:i,gameCollectionId:h,service:s,id:f},u.z4.cleanScroll()}),[2,t];case 2:return n=a.sent(),(0,s.Po)(n),[3,3];case 3:return[2]}})}),function(e){return a.apply(this,arguments)})),this.reset(),l.nL.resetCallback(this.reset),(0,r.ky)(this)},g=(0,a.createContext)(y),w=function(){return(0,a.useContext)(g)}},67259:(e,t,n)=>{n.d(t,{tc:()=>A});var r=n(3582),a=n(89395),i=n(87839),s=n(81871),o=n(94768),u=n(63808),l=n(69615),c=n(84103),f=n(50651),h=n(64222),d=n(93210),p=n(39120),v=n(82061);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function b(e){if(Array.isArray(e))return m(e)}function y(e,t,n,r,a,i,s){try{var o=e[i](s),u=o.value}catch(e){n(e);return}o.done?t(u):Promise.resolve(u).then(r,a)}function g(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function s(e){y(i,r,a,s,o,"next",e)}function o(e){y(i,r,a,s,o,"throw",e)}s(void 0)})}}function w(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t,n){return t&&k(e.prototype,t),n&&k(e,n),e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(e){return b(e)||S(e)||P(e)||_()}function P(e,t){if(e){if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}}function j(e,t){var n,r,a,i,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(a=(a=s.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){s.label=i[1];break}if(6===i[0]&&s.label<a[1]){s.label=a[1],a=i;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(i);break}a[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}}var x=new(function(){function e(){var t,n,a=this;w(this,e),O(this,"_pgn",void 0),O(this,"games",void 0),O(this,"filters",void 0),O(this,"selectedOptions",void 0),O(this,"seenGames",void 0),O(this,"game",void 0),O(this,"whiteUser",void 0),O(this,"blackUser",void 0),O(this,"timeControl",void 0),O(this,"score",void 0),O(this,"onTime",void 0),O(this,"analysisData",void 0),O(this,"reset",function(){a.games=null,a.filters=null,a.game=null,a.score=null,a.timeControl="",a.whiteUser=null,a.blackUser=null,a.selectedOptions=new Map,a.seenGames=new Set,a.analysisData=null,a.onTime=!1,a._pgn=null}),O(this,"setAnalysis",function(){a.analysisData={currentMove:a.game.game.currentMoveIndex,orientation:a.game.orientation,pgn:a._pgn,fen:"start"}}),O(this,"setOption",function(e,t){a.selectedOptions.set(e,t);var n=(0,u.Wz)(e,t.id);f.i.replace("".concat(window.location.pathname).concat(n))}),O(this,"setSeenGame",function(e){a.seenGames.add(e)});var m=this;O(this,"getExportGamesAction",g(function(){var e,t;return j(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e=m.filteredGames.map(function(e){return e.id}),[4,(0,i.lA)(e)];case 1:return[2,n.sent()];case 2:return t=n.sent(),(0,o.Po)(t),[3,3];case 3:return[2]}})}));var b=this;O(this,"getReviewGamesAction",(t=g(function(e){var t,n;return j(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,(0,i.j_)(e)];case 1:return 200===(t=a.sent()).status&&(0,r.z)(function(){b.games=t.data.games,b.filters=t.data.filters,b.selectedOptions.clear();var e=(0,u.mB)(window.location.search)||{};
1b.filters.forEach(function(t){var n=e[t.id],r=t.options.find(function(e){return e.id===n}),a=void 0===r?t.options[0]:r;b.selectedOptions.set(t.id,a)})}),[2,t];case 2:return n=a.sent(),(0,o.Po)(n),[3,3];case 3:return[2]}})}),function(e){return t.apply(this,arguments)}));var y=this;O(this,"getReviewGameAction",(n=g(function(e){var t,n;return j(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,(0,i.ZY)(e)];case 1:return 200===(t=a.sent()).status&&(0,r.z)(function(){y._pgn=t.data.pgn;var e,n=new p.d(t.data.pgn);y.whiteUser={name:n.headers.White,result:"1-0"===n.headers.Result?"won":"0-1"===n.headers.Result?"lost":"draw",elo:n.headers.WhiteElo},y.blackUser={name:n.headers.Black,result:"1-0"===n.headers.Result?"lost":"0-1"===n.headers.Result?"won":"draw",elo:n.headers.BlackElo},y.game=new v.b(n),y.game.selectMove(0),y.game.isBlockedBoard=!0,y.score=t.data.scoreHistory,y.onTime=null===(e=n.headers.Termination)||void 0===e?void 0:e.toLowerCase().includes("time"),y.timeControl=(0,s.oU)(y.game.game.getCurrentMove);var r=d.__.report?d.__.report.username:h.j1.fullReport?h.j1.fullReport.username:null;y.game.orientation=null!==r&&y.blackUser.name.toLowerCase()===r.toLowerCase()?c.KN.Black:c.KN.White}),[2,t];case 2:return n=a.sent(),(0,o.Po)(n),[3,3];case 3:return[2]}})}),function(e){return n.apply(this,arguments)})),this.reset(),l.nL.resetCallback(this.reset),(0,r.ky)(this)}return C(e,[{key:"currentScore",get:function(){return null===this.game||null===this.game.currentMoveIndex?0:this.score[this.game.currentMoveIndex]}},{key:"filteredGames",get:function(){var e=I(this.games);return this.selectedOptions.forEach(function(t){e=e.filter(function(e){return null===t.value||e[t.fieldName]===t.value})}),e}}]),e}()),A=(0,a.createContext)(x)}}]);
2//# sourceMappingURL=7259.e94bc9ec.bundle.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.