(()=>{"use strict";var t,e={7138:(t,e,n)=>{n(5666),n(2222),n(1249),n(2707),n(9826),n(3210),n(1539),n(8674);var r=n(9669),o=n.n(r);function a(t){return(a="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})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"";return i(this,o),m(p(t=r.call(this,e)),"name","RuntimeError"),t.message=e,t}return e=o,(n=[{key:"toString",value:function(){return this.message?this.name+": "+this.message:this.name}}])&&l(e.prototype,n),o}(f(Error)));n(9755),n(3734),o().defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var g,w=(g={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},function(t){return String(t).replace(/[&<>"'`=/]/g,(function(t){return g[t]}))});function _(t){return window.linkifyStr(t,{})}function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=/<%(.+?)%>/g,r=/(^( )?(var|if|for|else|switch|case|break|{|}|;))(.*)?/g,o=["with(obj) { var r=[];\n"],a=0,i=function t(e,n){return n?o.push(e.match(r)?e+"\n":"r.push("+e+");\n"):o.push(""!=e?'r.push("'+e.replace(/"/g,'\\"')+'");\n':""),t};for(e.e=w,e.linkifyStr=_;;){var l=n.exec(t);if(!l)break;i(t.slice(a,l.index))(l[1],!0),a=l.index+l[0].length}i(t.substr(a,t.length-a)),o.push('return r.join(""); }');var c=o.join("").replace(/[\r\t\n]/g," ");try{return new Function("obj",c).apply(e,[e])}catch(t){throw console.error("'"+t.message+"'"," in \n\nCode:\n",o,"\n"),t}}function k(t,e){return t?window.pathConfig.root+"/d_pic/"+e:window.pathConfig.sharedIcon+"/"+e}function j(){alert("작업을 실패했습니다.")}String.prototype.format=function(){for(var t=arguments.length,e=new Array(t),n=0;n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){l=!0,a=t},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function D(t,e){if(t){if("string"==typeof t)return M(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(t,e):void 0}}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n

<%name%>

<%leadership%> / <%strength%> / <%intel%>
<%nation%>
<%personalText%>
<%specialText%> / <%special2Text%>

',e));$(".card_holder").append(n),n.find(".select_btn").on("click",U),n.find(".obj_tooltip").tooltip({title:function(){return $.trim($(this).find(".tooltiptext").html())},html:!0})})),H(),X()}function G(t){var e=$("#general_list");t&&(e.empty(),e.data("lastIdx",0),$("#row_print_more").show());var n=window.generalList,r=e.data("lastIdx"),o=Math.min(r+50,n.length);e.data("lastIdx",o);for(var a=r;a <%name%><%nameAux%> <%age%>세 <%personalWithTooltip%> <%specialDomesticWithTooltip%> / <%specialWarWithTooltip%> Lv <%explevel%> <%nation%> <%experience%> <%dedication%> <%officerLevel%> <%total%> <%leadership%> <%strength%> <%intel%> <%killturn%>',i))}o==n.length&&$("#row_print_more").hide(),e.find(".obj_tooltip").tooltip({title:function(){return $.trim($(this).find(".tooltiptext").html())},html:!0}),$("#tb_general_list").show()}$((function(t){window.generalList=[],t.post("j_get_select_npc_token.php").then((function(t){t.result?(console.log(t),z(t)):alert(t.reason)}),j),t("#btn_pick_more").click((function(){var e=t(".keep_select:checked").map((function(){return L(t(this).val())})).toArray();console.log(e),t.post({url:"j_get_select_npc_token.php",dataType:"json",data:{refresh:!0,keep:e}}).then((function(t){t.result||(alert(t.reason),location.reload()),console.log(t),z(t)}),j)})),t("#btn_load_general_list").click((function(){t.post({url:"j_get_general_list.php",dataType:"json",data:{with_token:!0}}).then((function(t){if(!t.result)return alert(t.reason),!1;var e,n,r;n=(e=t).token,(r=e.list.map((function(t){var e={no:t[0],picture:t[1],imgsvr:t[2],npc:t[3],age:t[4],nation:t[5],special:t[6],special2:t[7],personal:t[8],name:t[9],ownerName:t[10],injury:t[11],leadership:t[12],lbonus:t[13],strength:t[14],intel:t[15],explevel:t[16],experience:t[17],dedication:t[18],officerLevel:t[19],killturn:t[20],connect:t[21],reserved:0};return e.npc<2&&(e.reserved=2),e.no in n&&(e.reserved=1),e.userCSS="",e.nameAux="",1==e.reserved?e.userCSS="color:violet":e.npc>=2?e.userCSS="color:cyan":1==e.npc&&(e.userCSS="color:skyblue"),e.ownerName&&(e.nameAux+="
(".concat(e.ownerName,")")),1==e.reserved&&(e.nameAux+="
(".concat(n[e.no],"회)")),e.total=e.leadership+e.strength+e.intel,e.iconPath=k(e.imgsvr,e.picture),e.specialDomesticWithTooltip=x(q,{text:e.special,info:specialInfo[e.special]}),e.specialWarWithTooltip=x(q,{text:e.special2,info:specialInfo[e.special2]}),e.personalWithTooltip=x(q,{text:e.personal,info:characterInfo[e.personal]}),e}))).sort((function(t,e){return t.reserved>e.reserved?-1:t.reservede.name?1:0})),window.generalList=r,G(!0)}),j)})),t("#btn_print_more").click((function(){G()}))}))}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var a=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.m=e,t=[],r.O=(e,n,o,a)=>{if(!n){var i=1/0;for(s=0;s=a)&&Object.keys(r.O).every((t=>r.O[t](n[c])))?n.splice(c--,1):(l=!1,a0&&t[s-1][2]>a;s--)t[s]=t[s-1];t[s]=[n,o,a]},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r.j=520,(()=>{var t={520:0};r.O.j=e=>0===t[e];var e=(e,n)=>{var o,a,[i,l,c]=n,u=0;for(o in l)r.o(l,o)&&(r.m[o]=l[o]);if(c)var s=c(r);for(e&&e(n);ur(7138)));o=r.O(o)})(); //# sourceMappingURL=select_npc.js.map