You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

2 lines
103 KiB

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ClipboardJS=t():e.ClipboardJS=t()}(this,function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){var i,o,r,a;a=function(e,t){"use strict";var n,i=(n=t)&&n.__esModule?n:{default:n};var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return r(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":o(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=a},o=[e,n(7)],void 0===(r="function"==typeof(i=a)?i.apply(t,o):i)||(e.exports=r)},function(e,t,n){var i=n(6),o=n(5);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!i.string(t))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(i.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}(e,t,n);if(i.string(e))return function(e,t,n){return o(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this;function o(){i.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,o=n.length;i<o;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],o=[];if(i&&t)for(var r=0,a=i.length;r<a;r++)i[r].fn!==t&&i[r].fn._!==t&&o.push(i[r]);return o.length?n[e]=o:delete n[e],this}},e.exports=n},function(e,t,n){var i,o,r,a;a=function(e,t,n,i){"use strict";var o=s(t),r=s(n),a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var d=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.resolveOptions(n),i.listenClick(e),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default),d(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===l(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,a.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new o.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return u("action",e)}},{key:"defaultTarget",value:function(e){var t=u("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return u("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}();function u(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=c},o=[e,n(0),n(2),n(1)],void 0===(r="function"==typeof(i=a)?i.apply(t,o):i)||(e.exports=r)},function(e,t){var n=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}e.exports=function(e,t){for(;e&&e.nodeType!==n;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},function(e,t,n){var i=n(4);function o(e,t,n,o,r){var a=function(e,t,n,o){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&o.call(e,n)}}.apply(this,arguments);return e.addEventListener(n,a,r),{destroy:function(){e.removeEventListener(n,a,r)}}}e.exports=function(e,t,n,i,r){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return o(e,t,n,i,r)}))}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),o=document.createRange();o.selectNodeContents(e),i.removeAllRanges(),i.addRange(o),t=i.toString()}return t}}])}),function(e,t){var n,i=e.fn.domManip,o="_tmplitem",r=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,a={},s={},l={key:0,data:{}},d=0,c=0,u=[];function h(t,n,i,o){var r={data:o||0===o||!1===o?o:n?n.data:{},_wrap:n?n._wrap:null,tmpl:null,parent:n||null,nodes:[],calls:b,nest:w,wrap:x,html:_,update:k};return t&&e.extend(r,t,{nodes:[],parent:n}),i&&(r.tmpl=i,r._ctnt=r._ctnt||r.tmpl(e,r),r.key=++d,(u.length?s:a)[d]=r),r}function f(t,n,i){var r,a=i?e.map(i,function(e){return"string"==typeof e?t.key?e.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+o+'="'+t.key+'" $2'):e:f(e,t,e._ctnt)}):t;return n?a:((a=a.join("")).replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(t,n,i,o){y(r=e(i).get()),n&&(r=p(n).concat(r)),o&&(r=r.concat(p(o)))}),r||p(a))}function p(t){var n=document.createElement("div");return n.innerHTML=t,e.makeArray(n.childNodes)}function m(t){return new Function("jQuery","$item","var $=jQuery,call,__=[],$data=$item.data;with($data){__.push('"+e.trim(t).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(t,n,i,o,r,a,s){var l,d,c,u=e.tmpl.tag[i];if(!u)throw"Unknown template tag: "+i;return l=u._default||[],a&&!/\w$/.test(r)&&(r+=a,a=""),r?(r=v(r),s=s?","+v(s)+")":a?")":"",d=a?r.indexOf(".")>-1?r+v(a):"("+r+").call($item"+s:r,c=a?d:"(typeof("+r+")==='function'?("+r+").call($item):("+r+"))"):c=d=l.$1||"null",o=v(o),"');"+u[n?"close":"open"].split("$notnull_1").join(r?"typeof("+r+")!=='undefined' && ("+r+")!=null":"true").split("$1a").join(c).split("$1").join(d).split("$2").join(o||l.$2||"")+"__.push('"})+"');}return __;")}function g(t,n){t._wrap=f(t,!0,e.isArray(n)?n:[r.test(n)?n:e(n).html()]).join("")}function v(e){return e?e.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function y(t){var n,i,r,l,u,f="_"+c,p={};for(r=0,l=t.length;r<l;r++)if(1===(n=t[r]).nodeType){for(u=(i=n.getElementsByTagName("*")).length-1;u>=0;u--)m(i[u]);m(n)}function m(t){var n,i,r,l,u=t;if(l=t.getAttribute(o)){for(;u.parentNode&&1===(u=u.parentNode).nodeType&&!(n=u.getAttribute(o)););n!==l&&(u=u.parentNode?11===u.nodeType?0:u.getAttribute(o)||0:0,(r=a[l])||((r=h(r=s[l],a[u]||s[u])).key=++d,a[d]=r),c&&m(l)),t.removeAttribute(o)}else c&&(r=e.data(t,"tmplItem"))&&(m(r.key),a[r.key]=r,u=(u=e.data(t.parentNode,"tmplItem"))?u.key:0);if(r){for(i=r;i&&i.key!=u;)i.nodes.push(t),i=i.parent;delete r._ctnt,delete r._wrap,e.data(t,"tmplItem",r)}function m(e){r=p[e+=f]=p[e]||h(r,a[r.parent.key+f]||r.parent)}}}function b(e,t,n,i){if(!e)return u.pop();u.push({_:e,tmpl:t,item:this,data:n,options:i})}function w(t,n,i){return e.tmpl(e.template(t),n,i,this)}function x(t,n){var i=t.options||{};return i.wrapped=n,e.tmpl(e.template(t.tmpl),t.data,i,t.item)}function _(t,n){var i=this._wrap;return e.map(e(e.isArray(i)?i.join(""):i).filter(t||"*"),function(e){return n?e.innerText||e.textContent:e.outerHTML||(t=e,(i=document.createElement("div")).appendChild(t.cloneNode(!0)),i.innerHTML);var t,i})}function k(){var t=this.nodes;e.tmpl(null,null,null,this).insertBefore(t[0]),e(t).remove()}e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,i){e.fn[t]=function(o){var r,s,l,d,u=[],h=e(o),f=1===this.length&&this[0].parentNode;if(n=a||{},f&&11===f.nodeType&&1===f.childNodes.length&&1===h.length)h[i](this[0]),u=this;else{for(s=0,l=h.length;s<l;s++)c=s,r=(s>0?this.clone(!0):this).get(),e(h[s])[i](r),u=u.concat(r);c=0,u=this.pushStack(u,t,h.selector)}return d=n,n=null,e.tmpl.complete(d),u}}),e.fn.extend({tmpl:function(t,n,i){return e.tmpl(this[0],t,n,i)},tmplItem:function(){return e.tmplItem(this[0])},template:function(t){return e.template(t,this[0])},domManip:function(t,o,r,s){if(t[0]&&e.isArray(t[0])){for(var l,d=e.makeArray(arguments),u=t[0],h=u.length,f=0;f<h&&!(l=e.data(u[f++],"tmplItem")););l&&c&&(d[2]=function(t){e.tmpl.afterManip(this,t,r)}),i.apply(this,d)}else i.apply(this,arguments);return c=0,n||e.tmpl.complete(a),this}}),e.extend({tmpl:function(t,n,i,o){var r,d=!o;if(d)o=l,t=e.template[t]||e.template(null,t),s={};else if(!t)return t=o.tmpl,a[o.key]=o,o.nodes=[],o.wrapped&&g(o,o.wrapped),e(f(o,null,o.tmpl(e,o)));return t?("function"==typeof n&&(n=n.call(o||{})),i&&i.wrapped&&g(i,i.wrapped),r=e.isArray(n)?e.map(n,function(e){return e?h(i,o,t,e):null}):[h(i,o,t,n)],d?e(f(o,null,r)):r):[]},tmplItem:function(t){var n;for(t instanceof e&&(t=t[0]);t&&1===t.nodeType&&!(n=e.data(t,"tmplItem"))&&(t=t.parentNode););return n||l},template:function(t,n){return n?("string"==typeof n?n=m(n):n instanceof e&&(n=n[0]||{}),n.nodeType&&(n=e.data(n,"tmpl")||e.data(n,"tmpl",m(n.innerHTML))),"string"==typeof t?e.template[t]=n:n):t?"string"!=typeof t?e.template(null,t):e.template[t]||e.template(null,r.test(t)?t:e(t)):null},encode:function(e){return(""+e).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;")}}),e.extend(e.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){__=__.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(__,$1,$2);__=[];",close:"call=$item.calls();__=call._.concat($item.wrap(call,__));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},if:{open:"if(($notnull_1) && $1a){",close:"}"},else:{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){__.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){__.push($.encode($1a));}"},"!":{open:""}},complete:function(e){a={}},afterManip:function(t,n,i){var o=11===n.nodeType?e.makeArray(n.childNodes):1===n.nodeType?[n]:[];i.call(t,n),y(o),c++}})}(jQuery),function(){"use strict";function e(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},n=/MSIE/.test(navigator.userAgent),i=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),o=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){s(window,e)},e.unblockUI=function(e){l(window,e)},e.growlUI=function(t,n,i,o){var r=e('<div class="growlUI"></div>');t&&r.append("<h1>"+t+"</h1>"),n&&r.append("<h2>"+n+"</h2>"),void 0===i&&(i=3e3);var a=function(t){t=t||{},e.blockUI({message:r,fadeIn:void 0!==t.fadeIn?t.fadeIn:700,fadeOut:void 0!==t.fadeOut?t.fadeOut:1e3,timeout:void 0!==t.timeout?t.timeout:i,centerY:!1,showOverlay:!1,onUnblock:o,css:e.blockUI.defaults.growlCSS})};a();r.css("opacity");r.mouseover(function(){a({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var n=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,s(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){l(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var r=null,a=[];function s(s,d){var u,p,m=s==window,g=d&&void 0!==d.message?d.message:void 0;if(!(d=e.extend({},e.blockUI.defaults,d||{})).ignoreIfBlocked||!e(s).data("blockUI.isBlocked")){if(d.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,d.overlayCSS||{}),u=e.extend({},e.blockUI.defaults.css,d.css||{}),d.onOverlayClick&&(d.overlayCSS.cursor="pointer"),p=e.extend({},e.blockUI.defaults.themedCSS,d.themedCSS||{}),g=void 0===g?d.message:g,m&&r&&l(window,{fadeOut:0}),g&&"string"!=typeof g&&(g.parentNode||g.jquery)){var v=g.jquery?g[0]:g,y={};e(s).data("blockUI.history",y),y.el=v,y.parent=v.parentNode,y.display=v.style.display,y.position=v.style.position,y.parent&&y.parent.removeChild(v)}e(s).data("blockUI.onUnblock",d.onUnblock);var b,w,x,_,k=d.baseZ;b=n||d.forceIframe?e('<iframe class="blockUI" style="z-index:'+k+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+d.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),w=d.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+k+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+k+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),d.theme&&m?(_='<div class="blockUI '+d.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(k+10)+';display:none;position:fixed">',d.title&&(_+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(d.title||"&nbsp;")+"</div>"),_+='<div class="ui-widget-content ui-dialog-content"></div>',_+="</div>"):d.theme?(_='<div class="blockUI '+d.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(k+10)+';display:none;position:absolute">',d.title&&(_+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(d.title||"&nbsp;")+"</div>"),_+='<div class="ui-widget-content ui-dialog-content"></div>',_+="</div>"):_=m?'<div class="blockUI '+d.blockMsgClass+' blockPage" style="z-index:'+(k+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+d.blockMsgClass+' blockElement" style="z-index:'+(k+10)+';display:none;position:absolute"></div>',x=e(_),g&&(d.theme?(x.css(p),x.addClass("ui-widget-content")):x.css(u)),d.theme||w.css(d.overlayCSS),w.css("position",m?"fixed":"absolute"),(n||d.forceIframe)&&b.css("opacity",0);var C=[b,w,x],E=e(m?"body":s);e.each(C,function(){this.appendTo(E)}),d.theme&&d.draggable&&e.fn.draggable&&x.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var M=o&&(!e.support.boxModel||e("object,embed",m?null:s).length>0);if(i||M){if(m&&d.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(i||!e.support.boxModel)&&!m)var T=f(s,"borderTopWidth"),A=f(s,"borderLeftWidth"),$=T?"(0 - "+T+")":0,S=A?"(0 - "+A+")":0;e.each(C,function(e,t){var n=t[0].style;if(n.position="absolute",e<2)m?n.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+d.quirksmodeOffsetHack+') + "px"'):n.setExpression("height",'this.parentNode.offsetHeight + "px"'),m?n.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):n.setExpression("width",'this.parentNode.offsetWidth + "px"'),S&&n.setExpression("left",S),$&&n.setExpression("top",$);else if(d.centerY)m&&n.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),n.marginTop=0;else if(!d.centerY&&m){var i="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(d.css&&d.css.top?parseInt(d.css.top,10):0)+') + "px"';n.setExpression("top",i)}})}if(g&&(d.theme?x.find(".ui-widget-content").append(g):x.append(g),(g.jquery||g.nodeType)&&e(g).show()),(n||d.forceIframe)&&d.showOverlay&&b.show(),d.fadeIn){var I=d.onBlock?d.onBlock:t,j=d.showOverlay&&!g?I:t,P=g?I:t;d.showOverlay&&w._fadeIn(d.fadeIn,j),g&&x._fadeIn(d.fadeIn,P)}else d.showOverlay&&w.show(),g&&x.show(),d.onBlock&&d.onBlock.bind(x)();if(c(1,s,d),m?(r=x[0],a=e(d.focusableElements,r),d.focusInput&&setTimeout(h,20)):function(e,t,n){var i=e.parentNode,o=e.style,r=(i.offsetWidth-e.offsetWidth)/2-f(i,"borderLeftWidth"),a=(i.offsetHeight-e.offsetHeight)/2-f(i,"borderTopWidth");t&&(o.left=r>0?r+"px":"0");n&&(o.top=a>0?a+"px":"0")}(x[0],d.centerX,d.centerY),d.timeout){var z=setTimeout(function(){m?e.unblockUI(d):e(s).unblock(d)},d.timeout);e(s).data("blockUI.timeout",z)}}}function l(t,n){var i,o,s=t==window,l=e(t),u=l.data("blockUI.history"),h=l.data("blockUI.timeout");h&&(clearTimeout(h),l.removeData("blockUI.timeout")),n=e.extend({},e.blockUI.defaults,n||{}),c(0,t,n),null===n.onUnblock&&(n.onUnblock=l.data("blockUI.onUnblock"),l.removeData("blockUI.onUnblock")),o=s?e("body").children().filter(".blockUI").add("body > .blockUI"):l.find(">.blockUI"),n.cursorReset&&(o.length>1&&(o[1].style.cursor=n.cursorReset),o.length>2&&(o[2].style.cursor=n.cursorReset)),s&&(r=a=null),n.fadeOut?(i=o.length,o.stop().fadeOut(n.fadeOut,function(){0==--i&&d(o,u,n,t)})):d(o,u,n,t)}function d(t,n,i,o){var r=e(o);if(!r.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),n&&n.el&&(n.el.style.display=n.display,n.el.style.position=n.position,n.el.style.cursor="default",n.parent&&n.parent.appendChild(n.el),r.removeData("blockUI.history")),r.data("blockUI.static")&&r.css("position","static"),"function"==typeof i.onUnblock&&i.onUnblock(o,i);var a=e(document.body),s=a.width(),l=a[0].style.width;a.width(s-1).width(s),a[0].style.width=l}}function c(t,n,i){var o=n==window,a=e(n);if((t||(!o||r)&&(o||a.data("blockUI.isBlocked")))&&(a.data("blockUI.isBlocked",t),o&&i.bindEvents&&(!t||i.showOverlay))){var s="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(s,i,u):e(document).unbind(s,u)}}function u(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&r&&t.data.constrainTabKey){var n=a,i=!t.shiftKey&&t.target===n[n.length-1],o=t.shiftKey&&t.target===n[0];if(i||o)return setTimeout(function(){h(o)},10),!1}var s=t.data,l=e(t.target);return l.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),l.parents("div."+s.blockMsgClass).length>0||0===l.parents().children().filter("div.blockUI").length}function h(e){if(a){var t=a[!0===e?a.length-1:0];t&&t.focus()}}function f(t,n){return parseInt(e.css(t,n),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}(),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){var t=/\+/g;function n(e){return o.raw?e:encodeURIComponent(e)}function i(n,i){var r=o.raw?n:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(t," ")),o.json?JSON.parse(e):e}catch(e){}}(n);return e.isFunction(i)?i(r):r}var o=e.cookie=function(t,r,a){if(arguments.length>1&&!e.isFunction(r)){if("number"==typeof(a=e.extend({},o.defaults,a)).expires){var s=a.expires,l=a.expires=new Date;l.setMilliseconds(l.getMilliseconds()+864e5*s)}return document.cookie=[n(t),"=",function(e){return n(o.json?JSON.stringify(e):String(e))}(r),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}for(var d,c=t?void 0:{},u=document.cookie?document.cookie.split("; "):[],h=0,f=u.length;h<f;h++){var p=u[h].split("="),m=(d=p.shift(),o.raw?d:decodeURIComponent(d)),g=p.join("=");if(t===m){c=i(g,r);break}t||void 0===(g=i(g))||(c[m]=g)}return c};o.defaults={},e.removeCookie=function(t,n){return e.cookie(t,"",e.extend({},n,{expires:-1})),!e.cookie(t)}});var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};(function(){"use strict";var e=this,t=this,n=t?t.document:null,i=(t&&t.document.documentElement,/^(["'](\\.|[^"\\\n\r])*?["']|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/),o=/^-ms-/,r=/[\-_]([\da-z])/gi,a=/([A-Z])/g,s=/\./,l=/[-|+]?[\D]/gi,d=/\D/gi,c=new RegExp("([0-9])([0-9][0-9][0-9][,.])"),u=/&/g,h=/=/,f=/[ ]+/g,p={},m=void 0,g=void 0;p.guid=1,p.getGuid=function(){return p.guid++},p.info=m=function(){var e=arguments,i=function(e,n,i,o,r,a){return t&&t.navigator?(n=-1!=(e=navigator.userAgent.toLowerCase()).search(/mobile/g),-1!=e.search(/iphone/g)?{name:"iphone",version:0,mobile:!0}:-1!=e.search(/ipad/g)?{name:"ipad",version:0,mobile:!0}:-1!=e.search(/android/g)?{name:"android",version:(o=/(android)[ \/]([\w.]+)/.exec(e)||[])[2]||"0",mobile:n}:("","msie"==(r=(o=/(opr)[ \/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[])[1]||"")&&(r="ie"),{name:r,version:o[2]||"0",mobile:n})):{}}(),o=!("undefined"==typeof window||"undefined"==typeof navigator||!t.document),r=t&&/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";return{errorMsg:{},version:"1.4.126",baseUrl:"",onerror:function(){console.error(g.toArray(e).join(":"))},eventKeys:{BACKSPACE:8,TAB:9,RETURN:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,HOME:36,END:35,PAGEUP:33,PAGEDOWN:34,INSERT:45,SPACE:32},weekNames:[{label:"SUN"},{label:"MON"},{label:"TUE"},{label:"WED"},{label:"THU"},{label:"FRI"},{label:"SAT"}],browser:i,isBrowser:o,supportTouch:!!t&&("ontouchstart"in t||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),supportFileApi:!!t&&(t.FileReader&&t.File&&t.FileList&&t.Blob),wheelEnm:r,urlUtil:function(e,i){return i=(e={href:t.location.href,param:t.location.search,referrer:n.referrer,pathname:t.location.pathname,hostname:t.location.hostname,port:t.location.port}).href.split(/[\?#]/),e.param=e.param.replace("?",""),e.url=i[0],e.href.search("#")>-1&&(e.hashdata=g.last(i)),i=null,e.baseUrl=g.left(e.href,"?").replace(e.pathname,""),e},getError:function(e,t,n){return m.errorMsg&&m.errorMsg[e]?{className:e,errorCode:t,methodName:n,msg:m.errorMsg[e][t]}:{className:e,errorCode:t,methodName:n}}}}(),p.util=g=function(){var v=Object.prototype.toString;function y(e,t){if(E(e))return[];var n=void 0,i=0,o=e.length;if(void 0===o||"function"==typeof e){for(n in e)if(void 0!==e[n]&&!1===t.call(e[n],n,e[n]))break}else for(;i<o&&(void 0===e[i]||!1!==t.call(e[i],i,e[i++])););return e}function b(e){var t="";if(p.util.isArray(e)){var n=0,i=e.length;for(t+="[";n<i;n++)n>0&&(t+=","),t+=b(e[n]);t+="]"}else if(p.util.isObject(e)){t+="{";var o=[];y(e,function(e,t){o.push('"'+e+'": '+b(t))}),t+=o.join(", "),t+="}"}else t=p.util.isString(e)?'"'+e+'"':p.util.isNumber(e)?e:p.util.isUndefined(e)?"undefined":p.util.isFunction(e)?'"{Function}"':e;return t}function w(e){return"[object Object]"==v.call(e)}function x(e){return"[object Array]"==v.call(e)}function _(e){return"function"==typeof e}function k(e){return"[object String]"==v.call(e)}function C(e){return"[object Number]"==v.call(e)}function E(e){return null==e||""===e}function M(e,t){return void 0===e||void 0===t?"":k(t)?e.indexOf(t)>-1?e.substr(0,e.indexOf(t)):"":C(t)?e.substr(0,t):""}function T(e,t){return void 0===e||void 0===t?"":(e=""+e,k(t)?e.lastIndexOf(t)>-1?e.substr(e.lastIndexOf(t)+1):"":C(t)?e.substr(e.length-t):"")}function A(e){return e.replace(o,"ms-").replace(r,function(e,t){return t.toUpperCase()})}function $(e){return A(e).replace(a,function(e,t){return"-"+t.toLowerCase()})}function S(e,t){var n,i,o,r=(""+e).split(s);return i=Number(r[0].replace(/,/g,""))<0||"-0"==r[0],o=0,r[0]=r[0].replace(l,""),r[1]?(r[1]=r[1].replace(d,""),o=Number(r[0]+"."+r[1])||0):o=Number(r[0])||0,n=i?-o:o,y(t,function(e,t){var i,o;"round"==e&&(n=C(t)?t<0?+(Math.round(n+"e-"+Math.abs(t))+"e+"+Math.abs(t)):+(Math.round(n+"e+"+t)+"e-"+t):Math.round(n)),"floor"==e&&(n=Math.floor(n)),"ceil"==e?n=Math.ceil(n):"money"==e?n=function(e){var t=""+n;if(isNaN(t)||""==t)return"";var i=t.split(".");i[0]+=".";do{i[0]=i[0].replace(c,"$1,$2")}while(c.test(i[0]));return i.length>1?i.join(""):i[0].split(".")[0]}():"abs"==e?n=Math.abs(Number(n)):"byte"==e&&(i="KB",(o=Number(n)/1024)/1024>1&&(i="MB",o/=1024),o/1024>1&&(i="GB",o/=1024),n=S(o,{round:1})+i)}),n}function I(e,t,n,i,o,r){var a;return new Date,t<0&&(t=0),void 0===i&&(i=12),void 0===o&&(o=0),a=new Date(Date.UTC(e,t,n||1,i,o,r||0)),0==t&&1==n&&a.getUTCHours()+a.getTimezoneOffset()/60<0?a.setUTCHours(0):a.setUTCHours(a.getUTCHours()+a.getTimezoneOffset()/60),a}function j(e,t){var n,i,o,r,a,s,l,d,c,u,h,f,p,g,v,y=void 0,b=void 0,w=void 0,x=void 0,_=void 0,C=void 0,E=void 0,M=void 0,A=void 0,$=void 0;if(k(e))if(0==e.length)e=new Date;else if(e.length>15)/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d+)?(([+-]\d\d:\d\d)|Z)?$/i.test(e)||/^\d{4}(-\d\d(-\d\d(T\d\d:\d\d(:\d\d)?(\.\d+)?(([+-]\d\d:\d\d)|Z)?)?)?)?$/i.test(e)?e=new Date(e):(y=(A=(C=e.split(/ /g))[0].split(/\D/g))[0],b=parseFloat(A[1]),w=parseFloat(A[2]),E=(M=C[1]||"09:00").substring(0,5).split(":"),x=parseFloat(E[0]),_=parseFloat(E[1]),"AM"!==T(M,2)&&"PM"!==T(M,2)||(x+=12),e=I(y,b-1,w,x,_));else if(14==e.length)$=e.replace(/\D/g,""),e=I($.substr(0,4),$.substr(4,2)-1,S($.substr(6,2)),S($.substr(8,2)),S($.substr(10,2)),S($.substr(12,2)));else if(e.length>7)$=e.replace(/\D/g,""),e=I($.substr(0,4),$.substr(4,2)-1,S($.substr(6,2)));else if(e.length>4)$=e.replace(/\D/g,""),e=I($.substr(0,4),$.substr(4,2)-1,1);else{if(e.length>2)return I(($=e.replace(/\D/g,"")).substr(0,4),$.substr(4,2)-1,1);e=new Date}return void 0===t||void 0===e?e:("add"in t&&(e=function(e,t){var n=void 0,i=void 0,o=void 0,r=void 0;return void 0!==t.d?e.setTime(e.getTime()+864e5*t.d):void 0!==t.m?(n=e.getFullYear(),i=e.getMonth(),o=e.getDate(),(r=P(n+=parseInt(t.m/12),i+=t.m%12))<o&&(o=r),e=new Date(n,i,o,12)):void 0!==t.y?e.setTime(e.getTime()+365*t.y*864e5):void 0!==t.h&&e.setTime(e.getTime()+1e3*t.h*60*60),e}(new Date(e),t.add)),"set"in t&&(e=function(e,t){var n=void 0,i=void 0,o=void 0,r={firstDayOfMonth:function(e){return n=e.getFullYear(),i=e.getMonth(),o=1,new Date(n,i,o,12)},lastDayOfMonth:function(e){return n=e.getFullYear(),i=e.getMonth(),o=P(n,i),new Date(n,i,o,12)}};return t in r?r[t](e):e}(new Date(e),t.set)),"return"in t?(p=t.return,g=void 0,v=void 0,n=e.getUTCFullYear(),g=z(e.getMonth()+1,2),v=z(e.getDate(),2),i=z(e.getHours(),2),o=z(e.getMinutes(),2),r=z(e.getSeconds(),2),a=e.getDay(),/[^y]*(yyyy)[^y]*/gi.exec(p),s=RegExp.$1,/[^m]*(MM)[^m]*/g.exec(p),l=RegExp.$1,/[^d]*(dd)[^d]*/gi.exec(p),d=RegExp.$1,/[^h]*(hh)[^h]*/gi.exec(p),c=RegExp.$1,/[^m]*(mm)[^i]*/g.exec(p),u=RegExp.$1,/[^s]*(ss)[^s]*/gi.exec(p),h=RegExp.$1,/[^d]*(dw)[^w]*/gi.exec(p),f=RegExp.$1,"yyyy"===s&&(p=p.replace(s,T(n,s.length))),"MM"===l&&(1==l.length&&(g=e.getMonth()+1),p=p.replace(l,g)),"dd"===d&&(1==d.length&&(v=e.getDate()),p=p.replace(d,v)),"hh"===c&&(p=p.replace(c,i)),"mm"===u&&(p=p.replace(u,o)),"ss"===h&&(p=p.replace(h,r)),"dw"==f&&(p=p.replace(f,m.weekNames[a].label)),p):e)}function P(e,t){return 3==t||5==t||8==t||10==t?30:1==t?e%4==0&&e%100!=0||e%400==0?29:28:31}function z(e,t,n,i){var o=e.toString(i||10);return O(n||"0",t-o.length)+o}function O(e,t){return t<1?"":new Array(t+1).join(e)}var N,D=(N={textRange:{selectAll:function(e,t,n){},arr:function(e,t,n){t.moveStart("character",n[0]),t.collapse(),t.moveEnd("character",n[1])},start:function(e,t,n){t.moveStart("character",0),t.collapse()},end:function(e,t,n){t.moveStart("character",t.text.length),t.collapse()}},range:{selectAll:function(e,t,n){t.selectNodeContents(e)},arr:function(e,t,n){w(n[0])?(t.setStart(n[0].node,n[0].offset),t.setEnd(n[1].node,n[1].offset)):(t.setStart(e.firstChild,n[0]),t.setEnd(e.firstChild,n[1]))},start:function(e,t,n){t.selectNodeContents(e),t.collapse(!0)},end:function(e,t,n){t.selectNodeContents(e),t.collapse(!1)}}},function(e,t){var i,o,r;if(e instanceof jQuery&&(e=e.get(0)),e){if(n.body.createTextRange?((i=document.body.createTextRange()).moveToElementText(e),o="textRange"):window.getSelection&&(r=window.getSelection(),i=document.createRange(),o="range"),void 0===t)N[o].selectAll.call(this,e,i,t);else if(x(t))N[o].arr.call(this,e,i,t);else for(var a in N[o])if(t==a){N[o][a].call(this,e,i,t);break}n.body.createTextRange?(i.select(),e.focus()):window.getSelection&&(e.focus(),r.removeAllRanges(),r.addRange(i))}});function R(e,t,n){var i=void 0,o=void 0,r=void 0,a=void 0,s=void 0,l=void 0,d=0,c=!1,u=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=i,r=o;return i=o=void 0,d=t,a=e.apply(r,n)}function p(e){var n=e-l;return void 0===l||n>=t||n<0||u&&e-d>=r}function m(){var e=Date.now();if(p(e))return g(e);s=setTimeout(m,function(e){var n=e-d,i=t-(e-l);return u?Math.min(i,r-n):i}(e))}function g(e){return s=void 0,h&&i?f(e):(i=o=void 0,a)}function v(){for(var e=Date.now(),n=p(e),r=arguments.length,h=Array(r),g=0;g<r;g++)h[g]=arguments[g];if(i=h,o=this,l=e,n){if(void 0===s)return function(e){return d=e,s=setTimeout(m,t),c?f(e):a}(l);if(u)return s=setTimeout(m,t),f(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=+t||0,w(n)&&(c=!!n.leading,r=(u="maxWait"in n)?Math.max(+n.maxWait||0,t):r,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),d=0,i=l=o=s=void 0},v.flush=function(){return void 0===s?a:g(Date.now())},v}function U(e){return"[object String]"!=v.call(e)?e:e?e.replace(/[\<\>\&\"]/gm,function(e){switch(e){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";case'"':return"&quot;";default:return e}}):""}function F(e){return"[object String]"!=v.call(e)?e:e?e.replace(/(&lt;)|(&gt;)|(&amp;)|(&quot;)/gm,function(e){switch(e){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&quot;":return'"';default:return e}}):""}return{alert:function(e){return t.alert(b(e)),e},each:y,map:function(e,t){if(E(e))return[];var n=void 0,i=0,o=e.length,r=[],a=void 0;if(w(e)){for(n in e)if(void 0!==e[n]){if(a=void 0,!1===(a=t.call(e[n],n,e[n])))break;r.push(a)}}else for(;i<o;)if(void 0!==e[i]){if(a=void 0,!1===(a=t.call(e[i],i,e[i++])))break;r.push(a)}return r},search:function(e,t){if(E(e))return-1;if(w(e))for(var n in e){if(void 0!==e[n]&&_(t)&&t.call(e[n],n,e[n]))return n;if(e[n]==t)return n}else for(var i=0,o=e.length;i<o;i++){if(void 0!==e[i]&&_(t)&&t.call(e[i],i,e[i]))return i;if(e[i]==t)return i}return-1},reduce:function(t,n){var i,o,r;if(x(t)){for(i=0,o=t.length,r=t[i];i<o-1&&(void 0===t[i]||!1!==(r=n.call(e,r,t[++i]))););return r}if(w(t)){for(i in t)if(void 0!==t[i]&&!1===(r=n.call(e,r,t[i])))break;return r}return console.error("argument error : ax5.util.reduce - use Array or Object"),null},reduceRight:function(t,n){for(var i=t.length-1,o=t[i];i>0&&(void 0===t[i]||!1!==(o=n.call(e,o,t[--i]))););return o},filter:function(e,t){if(E(e))return[];var n,i=0,o=e.length,r=[];if(w(e))for(n in e)void 0!==e[n]&&t.call(e[n],n,e[n])&&r.push(e[n]);else for(;i<o;)void 0!==e[i]&&(t.call(e[i],i,e[i])&&r.push(e[i]),i++);return r},sum:function(e,t,n){var i=void 0,o=void 0,r=void 0;if(_(t)&&void 0===n&&(n=t,t=0),void 0===t&&(t=0),x(e)){for(i=0,o=e.length;i<o;i++)if(void 0!==e[i]){if(!1===(r=n.call(e[i],e[i])))break;void 0!==r&&(t+=r)}return t}if(w(e)){for(i in e)if(void 0!==e[i]){if(!1===(r=n.call(e[i],e[i])))break;void 0!==r&&(t+=r)}return t}return console.error("argument error : ax5.util.sum - use Array or Object"),t},avg:function(e,t,n){var i=void 0,o=void 0,r=void 0;if(_(t)&&void 0===n&&(n=t,t=0),void 0===t&&(t=0),x(e)){for(i=0,o=e.length;i<o;i++)if(void 0!==e[i]){if(!1===(r=n.call(e[i],e[i])))break;void 0!==r&&(t+=r)}return t/o}if(w(e)){for(i in o=0,e)if(void 0!==e[i]){if(!1===(r=n.call(e[i],e[i])))break;void 0!==r&&(t+=r),++o}return t/o}return console.error("argument error : ax5.util.sum - use Array or Object"),t},toJson:b,parseJson:function(e,t){if(!t&&!i.test(e))return{error:500,msg:"syntax error"};try{return new Function("","return "+e)()}catch(e){return{error:500,msg:"syntax error"}}},first:function(e){if(w(e)){var t=Object.keys(e),n={};return n[t[0]]=e[t[0]],n}return x(e)?e[0]:void console.error("ax5.util.object.first","argument type error")},last:function(e){if(w(e)){var t=Object.keys(e),n={};return n[t[t.length-1]]=e[t[t.length-1]],n}return x(e)?e[e.length-1]:void console.error("ax5.util.object.last","argument type error")},deepCopy:function e(t){var n,i;if("object"==(void 0===t?"undefined":_typeof(t))){if(g.isArray(t)){i=t.length,n=new Array(i);for(var o=0;o<i;o++)n[o]=e(t[o]);return n}return jQuery.extend({},t)}return t},left:M,right:T,getType:function(e){var t;return null!=e&&e==e.window?t="window":e&&1==e.nodeType?t="element":e&&11==e.nodeType?t="fragment":null===e?t="null":void 0===e?t="undefined":"[object Object]"==v.call(e)?t="object":"[object Array]"==v.call(e)?t="array":"[object String]"==v.call(e)?t="string":"[object Number]"==v.call(e)?t="number":"[object NodeList]"==v.call(e)?t="nodelist":"function"==typeof e&&(t="function"),t},isWindow:function(e){return null!=e&&e==e.window},isElement:function(e){return!(!e||1!=e.nodeType&&11!=e.nodeType)},isObject:w,isArray:x,isFunction:_,isString:k,isNumber:C,isNodelist:function(e){return!!("[object NodeList]"==v.call(e)||void 0!==e&&e&&e[0]&&1==e[0].nodeType)},isUndefined:function(e){return void 0===e},isNothing:E,setCookie:function(e,t,i,o){var r;return"number"==typeof i&&(r=new Date).setDate(r.getDate()+i),o=o||{},n.cookie=[escape(e),"=",escape(t),r?"; expires="+r.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("")},getCookie:function(e){for(var t=e+"=",i=n.cookie.split(";"),o=0,r=i.length;o<r;o++){for(var a=i[o];" "==a.charAt(0);)a=a.substring(1);if(-1!=a.indexOf(t))return unescape(a.substring(t.length,a.length))}return""},camelCase:A,snakeCase:$,number:S,toArray:function(e){return void 0!==e.length?Array.prototype.slice.call(e):[]},merge:function(e,t){var n=t.length,i=e.length,o=0;if("number"==typeof n)for(;o<n;o++)e[i++]=t[o];else for(;void 0!==t[o];)e[i++]=t[o++];return e.length=i,e},param:function(e,t){var n;return k(e)&&void 0!==t&&"param"==t?e:k(e)&&void 0!==t&&"object"==t||k(e)&&void 0===t?(n={},y(e.split(u),function(){var e=this.split(h);n[e[0]]?(k(n[e[0]])&&(n[e[0]]=[n[e[0]]]),n[e[0]].push(e[1])):n[e[0]]=e[1]}),n):(n=[],y(e,function(e,t){n.push(e+"="+escape(t))}),n.join("&"))},error:function(){p.info.onerror.apply(this,arguments)},date:j,dday:function(e,t){var n,i=j(e),o=864e5,r=new Date;function a(e){return Math.floor(e.getTime()/o)*o}return void 0===t?n=S((a(i)-a(r))/o,{floor:!0}):(n=S((a(i)-a(r))/o,{floor:!0}),t.today&&(r=j(t.today),n=S((a(i)-a(r))/o,{floor:!0})),t.thisYear&&(n=S((a(new Date(r.getFullYear(),i.getMonth(),i.getDate()))-a(r))/o,{floor:!0}))<0&&(n=S((a(new Date(r.getFullYear()+1,i.getMonth(),i.getDate()))-a(r))/o,{floor:!0})),t.age&&(n=new Date(r.getFullYear(),i.getMonth(),i.getDate()).getFullYear()-i.getFullYear()),n)},daysOfMonth:P,weeksOfMonth:function(e){var t=j(e);return{year:t.getFullYear(),month:t.getMonth()+1,count:parseInt(t.getDate()/7+1)}},setDigit:z,times:O,findParentNode:function(e,t){if(e)for(;function(){var n=!0;if(void 0===t)e=!!e.parentNode&&e.parentNode;else if(_(t))n=t(e);else if(w(t))for(var i in t)if("tagname"===i){if(e.tagName.toLocaleLowerCase()!=t[i]){n=!1;break}}else if("clazz"===i||"class_name"===i){if(!("className"in e)){n=!1;break}for(var o=e.className.split(f),r=!1,a=0;a<o.length;a++)if(o[a]==t[i]){r=!0;break}n=r}else{if(!e.getAttribute){n=!1;break}if(e.getAttribute(i)!=t[i]){n=!1;break}}return!n}();){if(!e.parentNode||!e.parentNode.parentNode){e=!1;break}e=e.parentNode}return e},cssNumber:function(e){var t=(""+e).match(/\D?(\d+)([a-zA-Z%]*)/i),n=t[2]||"px";return t[1]+n},css:function(e){var t;if(w(e)){for(var n in t="",e)t+=n+":"+e[n]+";";return t}if(k(e))return t={},e.split(/[ ]*;[ ]*/g).forEach(function(e){if(""!==(e=e.trim())){var n=e.split(/[ ]*:[ ]*/g);t[n[0]]=n[1]}}),t},isDate:function(e){return e instanceof Date&&!isNaN(e.valueOf())},isDateFormat:function(e){var t=!1;if(e)if(e instanceof Date&&!isNaN(e.valueOf()))t=!0;else{if(e.length>7&&j(e)instanceof Date)return!0;if((e=e.replace(/\D/g,"")).length>7){var n=e.substr(4,2),i=e.substr(6,2);(e=j(e)).getMonth()==n-1&&e.getDate()==i&&(t=!0)}}return t},stopEvent:function(e){e||(e=window.event);return e.cancelBubble=!0,e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1},selectRange:D,debounce:R,throttle:function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return w(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),R(e,t,{leading:i,maxWait:t,trailing:o})},escapeHtml:U,unescapeHtml:F,string:function(e){return new function(e){this.value=e,this.toString=function(){return this.value},this.format=function(){for(var e=[],t=0,n=arguments.length;t<n;t++)e=e.concat(arguments[t]);return this.value.replace(/{(\d+)}/g,function(t,n){return void 0!==e[n]?e[n]:t})},this.escape=function(){return U(this.value)},this.unescape=function(){return F(this.value)},this.encode=function(){return e=this.value,encodeURIComponent(e);var e},this.decode=function(){return e=this.value,decodeURIComponent(e);var e},this.left=function(e){return M(this.value,e)},this.right=function(e){return T(this.value,e)},this.camelCase=function(){return A(this.value)},this.snakeCase=function(){return $(this.value)}}(e)},color:function e(t){var n,i,o,r=(i="[\\s|\\(]+("+(n="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",o="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function a(e){return e<=1&&(e=100*e+"%"),e}function s(e){return p.util.number(Math.min(255,Math.max(e,0)),{round:2})}function l(e){return z(Math.round(e).toString(16),2)}function d(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function c(e,t,n){e=d(e,255),t=d(t,255),n=d(n,255);var i,o,r=Math.max(e,t,n),a=Math.min(e,t,n),s=(r+a)/2;if(r==a)i=o=0;else{var l=r-a;switch(o=s>.5?l/(2-r-a):l/(r+a),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:o,l:s}}function u(e,t,n){var i=void 0,o=void 0,r=void 0;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=d(e,360),t=d(t,100),n=d(n,100),0===t)i=o=r=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=a(l,s,e+1/3),o=a(l,s,e),r=a(l,s,e-1/3)}return{r:255*i,g:255*o,b:255*r}}return new function(t){this._originalValue=t,t=function(e){var t=void 0;return(t=r.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=r.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=r.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=r.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=r.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=r.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=r.hex8.exec(e))?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16),a:parseInt(t[4]/255,16),format:"hex8"}:(t=r.hex6.exec(e))?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16),format:"hex"}:(t=r.hex4.exec(e))?{r:parseInt(t[1]+""+t[1],16),g:parseInt(t[2]+""+t[2],16),b:parseInt(t[3]+""+t[3],16),a:parseInt(t[4]+""+t[4],16),format:"hex8"}:!!(t=r.hex3.exec(e))&&{r:parseInt(t[1]+""+t[1],16),g:parseInt(t[2]+""+t[2],16),b:parseInt(t[3]+""+t[3],16),format:"hex"}}(t),this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a||1,this._format=t.format,this._hex=l(this.r)+l(this.g)+l(this.b),this.getHexValue=function(){return this._hex},this.lighten=function(t){t=0===t?0:t||10;var n,i=c(this.r,this.g,this.b);return i.l+=t/100,i.l=Math.min(1,Math.max(0,i.l)),i.h=360*i.h,e("rgba("+s((n=u(i.h,a(i.s),a(i.l))).r)+", "+s(n.g)+", "+s(n.b)+", "+this.a+")")},this.darken=function(t){t=0===t?0:t||10;var n,i=c(this.r,this.g,this.b);return i.l-=t/100,i.l=Math.min(1,Math.max(0,i.l)),i.h=360*i.h,e("rgba("+s((n=u(i.h,a(i.s),a(i.l))).r)+", "+s(n.g)+", "+s(n.b)+", "+this.a+")")},this.getBrightness=function(){return(299*this.r+587*this.g+114*this.b)/1e3},this.isDark=function(){return this.getBrightness()<128},this.isLight=function(){return!this.isDark()},this.getHsl=function(){var e=c(this.r,this.g,this.b);return e.l=Math.min(1,Math.max(0,e.l)),e.h=360*e.h,{h:e.h,s:e.s,l:e.l}}}(t)}}}(),"object"===("undefined"==typeof module?"undefined":_typeof(module))&&"object"===_typeof(module.exports)?module.exports=p:e.ax5=p}).call("undefined"!=typeof window?window:void 0),ax5.def={},ax5.info.errorMsg.ax5dialog={501:"Duplicate call error"},ax5.info.errorMsg.ax5picker={401:"Can not find target element",402:"Can not find boundID",501:"Can not find content key"},ax5.info.errorMsg["single-uploader"]={460:"There are no files to be uploaded.",461:"There is no uploaded files."},ax5.info.errorMsg.ax5calendar={401:"Can not find target element"},ax5.info.errorMsg.ax5formatter={401:"Can not find target element",402:"Can not find boundID",501:"Can not find pattern"},ax5.info.errorMsg.ax5menu={501:"Can not find menu item"},ax5.info.errorMsg.ax5select={401:"Can not find target element",402:"Can not find boundID",501:"Can not find option"},ax5.info.errorMsg.ax5combobox={401:"Can not find target element",402:"Can not find boundID",501:"Can not find option"},function(){"use strict";var e,t,n,i,o,r,a=/^\s*|\s*$/g;(Object.keys||(Object.keys=(e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),i=(n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(o){if("object"!==(void 0===o?"undefined":_typeof(o))&&("function"!=typeof o||null===o))throw new TypeError("type err");var r,a,s=[];for(r in o)e.call(o,r)&&s.push(r);if(t)for(a=0;a<i;a++)e.call(o,n[a])&&s.push(n[a]);return s})),Array.prototype.forEach||(Array.prototype.forEach=function(e){if(null==this)throw TypeError();var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw TypeError();var i,o=arguments[1];for(i=0;i<n;i++)i in t&&e.call(o,t[i],i,t)}),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw TypeError("function");var t=[].slice,n=t.call(arguments,1),i=this,o=function(){return i.apply(this instanceof r?this:e,n.concat(t.call(arguments)))};function r(){}return r.prototype=i.prototype,o.prototype=new r,o}),function(){if(!document.querySelectorAll&&!document.querySelector&&document.createStyleSheet){var e=document.createStyleSheet(),t=function(t,n){var i,o=document.all,r=o.length,a=[];for(e.addRule(t,"foo:bar"),i=0;i<r&&!("bar"===o[i].currentStyle.foo&&(a.push(o[i]),a.length>n));i+=1);return e.removeRule(0),a};document.querySelectorAll=function(e){return t(e,1/0)},document.querySelector=function(e){return t(e,1)[0]||null}}}(),String.prototype.trim||(String.prototype.trim=function(){return this.replace(a,"")}),window.JSON||(window.JSON={parse:function(e){return new Function("","return "+e)()},stringify:(r=/["]/g,o=function(e){var t,n,i;switch(t=void 0===e?"undefined":_typeof(e)){case"string":return'"'+e.replace(r,'\\"')+'"';case"number":case"boolean":return e.toString();case"undefined":return"undefined";case"function":return'""';case"object":if(!e)return"null";if(t="",e.splice){for(n=0,i=e.length;n<i;n++)t+=","+o(e[n]);return"["+t.substr(1)+"]"}for(n in e)e.hasOwnProperty(n)&&void 0!==e[n]&&"function"!=typeof e[n]&&(t+=',"'+n+'":'+o(e[n]));return"{"+t.substr(1)+"}"}})}),function(){if(!document.documentMode||document.documentMode>=9)return!1;var e=Array.prototype.splice;Array.prototype.splice=function(){var t=Array.prototype.slice.call(arguments);return void 0===t[1]&&(t[1]=this.length-t[0]),e.apply(this,t)}}(),function(){var e=Array.prototype.slice;try{e.call(document.documentElement)}catch(t){Array.prototype.slice=function(t,n){if(n=void 0!==n?n:this.length,"[object Array]"===Object.prototype.toString.call(this))return e.call(this,t,n);var i,o,r=[],a=this.length,s=t||0;s=s>=0?s:Math.max(0,a+s);var l="number"==typeof n?Math.min(n,a):a;if(n<0&&(l=a+n),(o=l-s)>0)if(r=new Array(o),this.charAt)for(i=0;i<o;i++)r[i]=this.charAt(s+i);else for(i=0;i<o;i++)r[i]=this[s+i];return r}}}(),function(e){for(var t,n,i={},o=function(){},r="memory".split(","),a="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");t=r.pop();)e[t]=e[t]||i;for(;n=a.pop();)e[n]=e[n]||o}(window.console||{}),window.webkitMatchMedia||window.mozMatchMedia||window.oMatchMedia||window.msMatchMedia||window.matchMedia)||(document.getElementsByTagName("html")[0].className+=" no-matchmedia");window.matchMedia||(window.matchMedia=function(){var e=window.styleMedia||window.media;if(!e){var t,n=document.createElement("style"),i=document.getElementsByTagName("script")[0];n.type="text/css",n.id="matchmediajs-test",i.parentNode.insertBefore(n,i),t="getComputedStyle"in window&&window.getComputedStyle(n,null)||n.currentStyle,e={matchMedium:function(e){var i="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return n.styleSheet?n.styleSheet.cssText=i:n.textContent=i,"1px"===t.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}()),function(){if(window.matchMedia&&window.matchMedia("all").addListener)return!1;var e=window.matchMedia,t=e("only all").matches,n=!1,i=0,o=[],r=function(t){clearTimeout(i),i=setTimeout(function(){for(var t=0,n=o.length;t<n;t++){var i=o[t].mql,r=o[t].listeners||[],a=e(i.media).matches;if(a!==i.matches){i.matches=a;for(var s=0,l=r.length;s<l;s++)r[s].call(window,i)}}},30)};window.matchMedia=function(i){var a=e(i),s=[],l=0;return a.addListener=function(e){t&&(n||(n=!0,window.addEventListener("resize",r,!0)),0===l&&(l=o.push({mql:a,listeners:s})),s.push(e))},a.removeListener=function(e){for(var t=0,n=s.length;t<n;t++)s[t]===e&&s.splice(t,1)},a}}();document.getElementsByTagName("html")[0],document.getElementsByTagName("body")[0]}.call(window),ax5.ui=function(){return{root:function(){this.config={},this.name="root",this.setConfig=function(e,t){return jQuery.extend(!0,this.config,e),void 0!==t&&!0!==t||this.init(),this},this.init=function(){console.log(this.config)},this.bindWindowResize=function(e){setTimeout(function(){jQuery(window).resize(function(){this.bindWindowResize__&&clearTimeout(this.bindWindowResize__),this.bindWindowResize__=setTimeout(function(){e.call(this)}.bind(this),10)}.bind(this))}.bind(this),100)},this.stopEvent=function(e){return e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0,!1},this.toString=function(){return this.name+"@"+this.version},this.main=function(){}.apply(this,arguments)},addClass:function(e,t){if(!e||!e.className)throw"invalid call";var n=e.classStore?e.classStore:ax5.ui;if(!n)throw"invalid classStore";ax5.def[e.className]={version:ax5.info.version},function(t){var n=e.superClass?e.superClass:ax5.ui.root;if(!ax5.util.isFunction(n))throw"invalid superClass";n.call(this),t.prototype=new n}.call(this,t),n[e.className]=function n(){if(!(this&&this instanceof n))throw"invalid call";var i=function(e,t){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2])}}(t,arguments);return function(e,t,n){return n.name=e,n.version=t,n.instanceId=ax5.getGuid(),n}(e.className,e.version||"",i)}}}}(),function(e,t){t(e.mustache={})}(window.ax5,function(e){var t=Object.prototype.toString,n=Array.isArray||function(e){return"[object Array]"===t.call(e)};function i(e){return"function"==typeof e}function o(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function r(e,t){return null!=e&&"object"===(void 0===e?"undefined":_typeof(e))&&t in e}var a=RegExp.prototype.test;var s=/\S/;function l(e){return!function(e,t){return a.call(e,t)}(s,e)}var d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};var c=/\s*/,u=/\s+/,h=/\s*=/,f=/\s*\}/,p=/#|\^|\/|>|\{|&|=|!/;function m(e){this.string=e,this.tail=e,this.pos=0}function g(e,t){this.view=e,this.cache={".":this.view,"@each":function(){var e=[];for(var t in this)e.push({"@key":t,"@value":this[t]});return e}},this.parent=t}function v(){this.cache={}}m.prototype.eos=function(){return""===this.tail},m.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},m.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},g.prototype.push=function(e){return new g(e,this)},g.prototype.lookup=function(e){var t,n=this.cache;if(n.hasOwnProperty(e))t=n[e];else{for(var o,a,s=this,l=!1;s;){if(e.indexOf(".")>0)for(t=s.view,o=e.split("."),a=0;null!=t&&a<o.length;)a===o.length-1&&(l=r(t,o[a])),t=t[o[a++]];else t=s.view[e],l=r(s.view,e);if(l)break;s=s.parent}n[e]=t}return i(t)&&(t=t.call(this.view)),t},v.prototype.clearCache=function(){this.cache={}},v.prototype.parse=function(t,i){var r=this.cache,a=r[t];return null==a&&(a=r[t]=function(t,i){if(!t)return[];var r,a,s,d=[],g=[],v=[],y=!1,b=!1;function w(){if(y&&!b)for(;v.length;)delete g[v.pop()];else v=[];y=!1,b=!1}function x(e){if("string"==typeof e&&(e=e.split(u,2)),!n(e)||2!==e.length)throw new Error("Invalid tags: "+e);r=new RegExp(o(e[0])+"\\s*"),a=new RegExp("\\s*"+o(e[1])),s=new RegExp("\\s*"+o("}"+e[1]))}x(i||e.tags);for(var _,k,C,E,M,T,A=new m(t);!A.eos();){if(_=A.pos,C=A.scanUntil(r))for(var $=0,S=C.length;$<S;++$)l(E=C.charAt($))?v.push(g.length):b=!0,g.push(["text",E,_,_+1]),_+=1,"\n"===E&&w();if(!A.scan(r))break;if(y=!0,k=A.scan(p)||"name",A.scan(c),"="===k?(C=A.scanUntil(h),A.scan(h),A.scanUntil(a)):"{"===k?(C=A.scanUntil(s),A.scan(f),A.scanUntil(a),k="&"):C=A.scanUntil(a),!A.scan(a))throw new Error("Unclosed tag at "+A.pos);if(M=[k,C,_,A.pos],g.push(M),"#"===k||"^"===k)d.push(M);else if("/"===k){if(!(T=d.pop()))throw new Error('Unopened section "'+C+'" at '+_);if(T[1]!==C)throw new Error('Unclosed section "'+T[1]+'" at '+_)}else"name"===k||"{"===k||"&"===k?b=!0:"="===k&&x(C)}if(T=d.pop())throw new Error('Unclosed section "'+T[1]+'" at '+A.pos);return function(e){for(var t,n=[],i=n,o=[],r=0,a=e.length;r<a;++r)switch((t=e[r])[0]){case"#":case"^":i.push(t),o.push(t),i=t[4]=[];break;case"/":o.pop()[5]=t[2],i=o.length>0?o[o.length-1][4]:n;break;default:i.push(t)}return n}(function(e){for(var t,n,i=[],o=0,r=e.length;o<r;++o)(t=e[o])&&("text"===t[0]&&n&&"text"===n[0]?(n[1]+=t[1],n[3]=t[3]):(i.push(t),n=t));return i}(g))}(t,i)),a},v.prototype.render=function(e,t,n){var i=this.parse(e),o=t instanceof g?t:new g(t);return this.renderTokens(i,o,n,e)},v.prototype.renderTokens=function(e,t,n,i){for(var o,r,a,s="",l=0,d=e.length;l<d;++l)a=void 0,"#"===(r=(o=e[l])[0])?a=this.renderSection(o,t,n,i):"^"===r?a=this.renderInverted(o,t,n,i):">"===r?a=this.renderPartial(o,t,n,i):"&"===r?a=this.unescapedValue(o,t):"name"===r?a=this.escapedValue(o,t):"text"===r&&(a=this.rawValue(o)),void 0!==a&&(s+=a);return s},v.prototype.renderSection=function(e,t,o,r){var a=this,s="",l=t.lookup(e[1]);if(l){if(n(l))for(var d=0,c=l.length;d<c;++d)l[d]&&("object"===_typeof(l[d])&&(l[d]["@i"]=d,l[d]["@first"]=0===d),s+=this.renderTokens(e[4],t.push(l[d]),o,r));else if("object"===(void 0===l?"undefined":_typeof(l))||"string"==typeof l||"number"==typeof l)s+=this.renderTokens(e[4],t.push(l),o,r);else if(i(l)){if("string"!=typeof r)throw new Error("Cannot use higher-order sections without the original template");null!=(l=l.call(t.view,r.slice(e[3],e[5]),function(e){return a.render(e,t,o)}))&&(s+=l)}else s+=this.renderTokens(e[4],t,o,r);return s}},v.prototype.renderInverted=function(e,t,i,o){var r=t.lookup(e[1]);if(!r||n(r)&&0===r.length)return this.renderTokens(e[4],t,i,o)},v.prototype.renderPartial=function(e,t,n){if(n){var o=i(n)?n(e[1]):n[e[1]];return null!=o?this.renderTokens(this.parse(o),t,n,o):void 0}},v.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},v.prototype.escapedValue=function(t,n){var i=n.lookup(t[1]);if(null!=i)return e.escape(i)},v.prototype.rawValue=function(e){return e[1]},e.name="mustache.js",e.version="2.1.3",e.tags=["{{","}}"];var y=new v;e.clearCache=function(){return y.clearCache()},e.parse=function(e,t){return y.parse(e,t)},e.render=function(e,t,i){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+(n(o=e)?"array":void 0===o?"undefined":_typeof(o))+'" was given as the first argument for mustache#render(template, view, partials)');var o;return y.render(e,t,i)},e.to_html=function(t,n,o,r){var a=e.render(t,n,o);if(!i(r))return a;r(a)},e.escape=function(e){return String(e).replace(/[&<>"'\/]/g,function(e){return d[e]})},e.Scanner=m,e.Context=g,e.Writer=v}),function(){var e=ax5.ui,t=ax5.util,n=void 0;e.addClass({className:"mask"},function(){var i,o=this;this.instanceId=ax5.getGuid(),this.config={theme:"",target:jQuery(document.body).get(0),animateTime:250},this.maskContent="",this.status="off",i=this.config;var r=function(e,t){return e&&e.onStateChanged?e.onStateChanged.call(t,t):this.onStateChanged&&this.onStateChanged.call(t,t),e=null,t=null,!0},a=function(e){this.maskContent=e};this.init=function(){this.onStateChanged=i.onStateChanged,this.onClick=i.onClick,this.config.content&&a.call(this,this.config.content)},this.open=function(e){"on"===this.status&&this.close(),e&&e.content&&a.call(this,e.content),e&&void 0===e.templateName&&(e.templateName="defaultMask"),o.maskConfig=jQuery.extend(!0,{},this.config,e);var t=o.maskConfig,i=t.target,s=jQuery(i),l="ax-mask-"+ax5.getGuid(),d=void 0,c={},u={},h=t.templateName,f=function(e){return void 0===e.templateName&&(e.templateName="defaultMask"),n.tmpl.get.call(this,e.templateName,e)}({theme:t.theme,maskId:l,body:this.maskContent,templateName:h});return jQuery(document.body).append(f),i&&i!==jQuery(document.body).get(0)&&(c={position:t.position||"absolute",left:s.offset().left,top:s.offset().top,width:s.outerWidth(),height:s.outerHeight()},s.addClass("ax-masking"),jQuery(window).on("resize.ax5mask-"+this.instanceId,function(e){this.align()}.bind(this))),void 0!==o.maskConfig.zIndex&&(c["z-index"]=o.maskConfig.zIndex),this.$mask=d=jQuery("#"+l),this.$target=s,this.status="on",d.css(c),t.onClick&&d.on("click",function(e){u={self:o,state:"open",type:"click"},o.maskConfig.onClick.call(u,u)}),r.call(this,null,{self:this,state:"open"}),e=null,t=null,i=null,s=null,l=null,d=null,c=null,u=null,h=null,f=null,this},this.close=function(e){if(this.$mask){var t=function(){this.status="off",this.$mask.remove(),this.$target.removeClass("ax-masking"),r.call(this,null,{self:this,state:"close"}),jQuery(window).off("resize.ax5mask-"+this.instanceId)};e?setTimeout(function(){t.call(this)}.bind(this),e):t.call(this)}return this},this.fadeOut=function(){return this.$mask&&(this.$mask.addClass("fade-out"),setTimeout(function(){(function(){this.status="off",this.$mask.remove(),this.$target.removeClass("ax-masking"),r.call(this,null,{self:this,state:"close"}),jQuery(window).off("resize.ax5mask-"+this.instanceId)}).call(this)}.bind(this),i.animateTime)),this},this.align=function(){if(this.maskConfig&&this.maskConfig.target&&this.maskConfig.target!==jQuery(document.body).get(0))try{var e={position:this.maskConfig.position||"absolute",left:this.$target.offset().left,top:this.$target.offset().top,width:this.$target.outerWidth(),height:this.$target.outerHeight()};this.$mask.css(e)}catch(e){}return this},this.pullRequest=function(){console.log("test pullRequest01"),console.log("test pullRequest02")},this.main=function(){e.mask_instance=e.mask_instance||[],e.mask_instance.push(this),arguments&&t.isObject(arguments[0])&&this.setConfig(arguments[0])}.apply(this,arguments)}),n=ax5.ui.mask}(),function(){var e=ax5.ui.mask;e.tmpl={defaultMask:function(e){return'\n <div class="ax-mask {{theme}}" id="{{maskId}}">\n <div class="ax-mask-bg"></div>\n <div class="ax-mask-content">\n <div class="ax-mask-body">\n {{{body}}}\n </div>\n </div>\n </div>\n '},get:function(t,n,i){return ax5.mustache.render(e.tmpl[t].call(this,i),n)}}}(),function(){var e=ax5.ui,t=ax5.util,n=void 0;e.addClass({className:"modal"},function(){var i,o=this,r={mousedown:ax5.info.supportTouch?"touchstart":"mousedown",mousemove:ax5.info.supportTouch?"touchmove":"mousemove",mouseup:ax5.info.supportTouch?"touchend":"mouseup"},a=function(e){var t=e;return"changedTouches"in e&&e.changedTouches&&(t=e.changedTouches[0]),{clientX:t.clientX,clientY:t.clientY}};this.instanceId=ax5.getGuid(),this.config={id:"ax5-modal-"+this.instanceId,position:{left:"center",top:"middle",margin:10},minimizePosition:"bottom-right",clickEventName:"ontouchstart"in document.documentElement?"touchstart":"click",theme:"default",width:300,height:400,closeToEsc:!0,disableDrag:!1,disableResize:!1,animateTime:250,iframe:!1},this.activeModal=null,this.watingModal=!1,this.$={},i=this.config;var s=function(e,t){var n={resize:function(t){e&&e.onResize?e.onResize.call(t,t):this.onResize&&this.onResize.call(t,t)},move:function(){}};return t.state in n&&n[t.state].call(this,t),e&&e.onStateChanged?e.onStateChanged.call(t,t):this.onStateChanged&&this.onStateChanged.call(t,t),!0},l=function(e,i){var l=void 0;jQuery(document.body).append(function(e,t){var i={modalId:e,theme:t.theme,header:t.header,fullScreen:t.fullScreen?"fullscreen":"",styles:"",iframe:t.iframe,iframeLoadingMsg:t.iframeLoadingMsg,disableResize:t.disableResize};return t.zIndex&&(i.styles+="z-index:"+t.zIndex+";"),t.absolute&&(i.styles+="position:absolute;"),i.iframe&&"string"==typeof i.iframe.param&&(i.iframe.param=ax5.util.param(i.iframe.param)),n.tmpl.get.call(this,"content",i,{})}.call(this,e.id,e)),this.activeModal=jQuery("#"+e.id),this.$={root:this.activeModal,header:this.activeModal.find('[data-modal-els="header"]'),body:this.activeModal.find('[data-modal-els="body"]')},e.iframe?(this.$["iframe-wrap"]=this.activeModal.find('[data-modal-els="iframe-wrap"]'),this.$.iframe=this.activeModal.find('[data-modal-els="iframe"]'),this.$["iframe-form"]=this.activeModal.find('[data-modal-els="iframe-form"]'),this.$["iframe-loading"]=this.activeModal.find('[data-modal-els="iframe-loading"]')):this.$["body-frame"]=this.activeModal.find('[data-modal-els="body-frame"]'),this.align(),l={self:this,id:e.id,theme:e.theme,width:e.width,height:e.height,state:"open",$:this.$},e.iframe&&(this.$["iframe-wrap"].css({height:e.height}),this.$.iframe.css({height:e.height}),this.$["iframe-form"].attr({method:e.iframe.method}),this.$["iframe-form"].attr({target:e.id+"-frame"}),this.$["iframe-form"].attr({action:e.iframe.url}),this.$.iframe.on("load",function(){l.state="load",e.iframeLoadingMsg&&this.$["iframe-loading"].hide(),s.call(this,e,l)}.bind(this)),e.iframeLoadingMsg||this.$.iframe.show(),this.$["iframe-form"].submit()),i&&i.call(l,l),this.watingModal||s.call(this,e,l),e.closeToEsc&&jQuery(window).bind("keydown.ax-modal",function(e){c.call(this,e||window.event)}.bind(this)),jQuery(window).bind("resize.ax-modal",function(e){this.align(null,e||window.event)}.bind(this)),this.$.header.off(r.mousedown).off("dragstart").on(r.mousedown,function(n){var i=t.findParentNode(n.target,function(e){if(e.getAttribute("data-modal-header-btn"))return!0});e.isFullScreen||i||1==e.disableDrag||(o.mousePosition=a(n),h.on.call(o)),i&&d.call(o,n||window.event,e)}).on("dragstart",function(e){return t.stopEvent(e.originalEvent),!1}),this.activeModal.off(r.mousedown).off("dragstart").on(r.mousedown,"[data-ax5modal-resizer]",function(t){if(e.disableDrag||e.isFullScreen)return!1;o.mousePosition=a(t),f.on.call(o,this.getAttribute("data-ax5modal-resizer"))}).on("dragstart",function(e){return t.stopEvent(e.originalEvent),!1})},d=function(e,n,i,o,r){var a=void 0;e.srcElement&&(e.target=e.srcElement),(o=t.findParentNode(e.target,function(e){if(e.getAttribute("data-modal-header-btn"))return!0}))&&(a={self:this,key:r=o.getAttribute("data-modal-header-btn"),value:n.header.btns[r],dialogId:n.id,btnTarget:o},n.header.btns[r].onClick&&n.header.btns[r].onClick.call(a,r)),a=null,n=null,o=null,r=null},c=function(e){e.keyCode==ax5.info.eventKeys.ESC&&this.close()},u={"top-left":function(){this.align({left:"left",top:"top"})},"top-right":function(){this.align({left:"right",top:"top"})},"bottom-left":function(){this.align({left:"left",top:"bottom"})},"bottom-right":function(){this.align({left:"right",top:"bottom"})},"center-middle":function(){this.align({left:"center",top:"middle"})}},h={on:function(){var e=this.activeModal.css("z-index"),t=this.activeModal.offset(),n={width:this.activeModal.outerWidth(),height:this.activeModal.outerHeight()};jQuery(window).width(),jQuery(window).height(),jQuery(document).scrollLeft(),jQuery(document).scrollTop(),o.__dx=0,o.__dy=0,o.resizerBg=jQuery('<div class="ax5modal-resizer-background" ondragstart="return false;"></div>'),o.resizer=jQuery('<div class="ax5modal-resizer" ondragstart="return false;"></div>'),o.resizerBg.css({zIndex:e}),o.resizer.css({left:t.left,top:t.top,width:n.width,height:n.height,zIndex:e+1}),jQuery(document.body).append(o.resizerBg).append(o.resizer),o.activeModal.addClass("draged"),jQuery(document.body).on(r.mousemove+".ax5modal-move-"+this.instanceId,function(e){o.resizer.css(function(e){return o.__dx=e.clientX-o.mousePosition.clientX,o.__dy=e.clientY-o.mousePosition.clientY,{left:t.left+o.__dx,top:t.top+o.__dy}}(e))}).on(r.mouseup+".ax5modal-move-"+this.instanceId,function(e){h.off.call(o)}).on("mouseleave.ax5modal-move-"+this.instanceId,function(e){h.off.call(o)}),jQuery(document.body).attr("unselectable","on").css("user-select","none").on("selectstart",!1)},off:function(){this.activeModal.removeClass("draged"),function(){var e=this.resizer.offset();this.modalConfig.absolute||(e.left-=jQuery(document).scrollLeft(),e.top-=jQuery(document).scrollTop()),this.activeModal.css(e),this.modalConfig.left=e.left,this.modalConfig.top=e.top,e=null}.call(this),this.resizer.remove(),this.resizer=null,this.resizerBg.remove(),this.resizerBg=null,jQuery(document.body).off(r.mousemove+".ax5modal-move-"+this.instanceId).off(r.mouseup+".ax5modal-move-"+this.instanceId).off("mouseleave.ax5modal-move-"+this.instanceId),jQuery(document.body).removeAttr("unselectable").css("user-select","auto").off("selectstart"),s.call(this,o.modalConfig,{self:this,state:"move"})}},f={on:function(e){var t=this.activeModal.css("z-index"),n=this.activeModal.offset(),i={width:this.activeModal.outerWidth(),height:this.activeModal.outerHeight()},a=(jQuery(window).width(),jQuery(window).height(),jQuery(document).scrollLeft(),jQuery(document).scrollTop(),{top:function(e){return l>i.height-o.__dy&&(o.__dy=i.height-l),e.shiftKey?(l>i.height-2*o.__dy&&(o.__dy=(i.height-l)/2),{left:n.left,top:n.top+o.__dy,width:i.width,height:i.height-2*o.__dy}):e.altKey?(l>i.height-2*o.__dy&&(o.__dy=(i.height-l)/2),{left:n.left+o.__dy,top:n.top+o.__dy,width:i.width-2*o.__dy,height:i.height-2*o.__dy}):{left:n.left,top:n.top+o.__dy,width:i.width,height:i.height-o.__dy}},bottom:function(e){return l>i.height+o.__dy&&(o.__dy=-i.height+l),e.shiftKey?(l>i.height+2*o.__dy&&(o.__dy=(-i.height+l)/2),{left:n.left,top:n.top-o.__dy,width:i.width,height:i.height+2*o.__dy}):e.altKey?(l>i.height+2*o.__dy&&(o.__dy=(-i.height+l)/2),{left:n.left-o.__dy,top:n.top-o.__dy,width:i.width+2*o.__dy,height:i.height+2*o.__dy}):{left:n.left,top:n.top,width:i.width,height:i.height+o.__dy}},left:function(e){return s>i.width-o.__dx&&(o.__dx=i.width-s),e.shiftKey?(s>i.width-2*o.__dx&&(o.__dx=(i.width-s)/2),{left:n.left+o.__dx,top:n.top,width:i.width-2*o.__dx,height:i.height}):e.altKey?(s>i.width-2*o.__dx&&(o.__dx=(i.width-s)/2),{left:n.left+o.__dx,top:n.top+o.__dx,width:i.width-2*o.__dx,height:i.height-2*o.__dx}):{left:n.left+o.__dx,top:n.top,width:i.width-o.__dx,height:i.height}},right:function(e){return s>i.width+o.__dx&&(o.__dx=-i.width+s),e.shiftKey?(s>i.width+2*o.__dx&&(o.__dx=(-i.width+s)/2),{left:n.left-o.__dx,top:n.top,width:i.width+2*o.__dx,height:i.height}):e.altKey?(s>i.width+2*o.__dx&&(o.__dx=(-i.width+s)/2),{left:n.left-o.__dx,top:n.top-o.__dx,width:i.width+2*o.__dx,height:i.height+2*o.__dx}):{left:n.left,top:n.top,width:i.width+o.__dx,height:i.height}},"top-left":function(e){return s>i.width-o.__dx&&(o.__dx=i.width-s),l>i.height-o.__dy&&(o.__dy=i.height-l),e.shiftKey||e.altKey?(l>i.height-2*o.__dy&&(o.__dy=(i.height-l)/2),s>i.width-2*o.__dx&&(o.__dx=(i.width-s)/2),{left:n.left+o.__dx,top:n.top+o.__dy,width:i.width-2*o.__dx,height:i.height-2*o.__dy}):(l>i.height-2*o.__dy&&(o.__dy=(i.height-l)/2),s>i.width-2*o.__dx&&(o.__dx=(i.width-s)/2),{left:n.left+o.__dx,top:n.top+o.__dy,width:i.width-o.__dx,height:i.height-o.__dy})},"top-right":function(e){return s>i.width+o.__dx&&(o.__dx=-i.width+s),l>i.height-o.__dy&&(o.__dy=i.height-l),e.shiftKey||e.altKey?(l>i.height-2*o.__dy&&(o.__dy=(i.height-l)/2),s>i.width+2*o.__dx&&(o.__dx=(-i.width+s)/2),{left:n.left-o.__dx,top:n.top+o.__dy,width:i.width+2*o.__dx,height:i.height-2*o.__dy}):{left:n.left,top:n.top+o.__dy,width:i.width+o.__dx,height:i.height-o.__dy}},"bottom-left":function(e){return s>i.width-o.__dx&&(o.__dx=i.width-s),l>i.height+o.__dy&&(o.__dy=-i.height+l),e.shiftKey||e.altKey?(s>i.width-2*o.__dx&&(o.__dx=(i.width-s)/2),l>i.height+2*o.__dy&&(o.__dy=(-i.height+l)/2),{left:n.left+o.__dx,top:n.top-o.__dy,width:i.width-2*o.__dx,height:i.height+2*o.__dy}):{left:n.left+o.__dx,top:n.top,width:i.width-o.__dx,height:i.height+o.__dy}},"bottom-right":function(e){return s>i.width+o.__dx&&(o.__dx=-i.width+s),l>i.height+o.__dy&&(o.__dy=-i.height+l),e.shiftKey||e.altKey?(s>i.width+2*o.__dx&&(o.__dx=(-i.width+s)/2),l>i.height+2*o.__dy&&(o.__dy=(-i.height+l)/2),{left:n.left-o.__dx,top:n.top-o.__dy,width:i.width+2*o.__dx,height:i.height+2*o.__dy}):{left:n.left,top:n.top,width:i.width+o.__dx,height:i.height+o.__dy}}}),s=100,l=100,d={top:"row-resize",bottom:"row-resize",left:"col-resize",right:"col-resize","top-left":"nwse-resize","top-right":"nesw-resize","bottom-left":"nesw-resize","bottom-right":"nwse-resize"};o.__dx=0,o.__dy=0,o.resizerBg=jQuery('<div class="ax5modal-resizer-background" ondragstart="return false;"></div>'),o.resizer=jQuery('<div class="ax5modal-resizer" ondragstart="return false;"></div>'),o.resizerBg.css({zIndex:t,cursor:d[e]}),o.resizer.css({left:n.left,top:n.top,width:i.width,height:i.height,zIndex:t+1,cursor:d[e]}),jQuery(document.body).append(o.resizerBg).append(o.resizer),o.activeModal.addClass("draged"),jQuery(document.body).bind(r.mousemove+".ax5modal-resize-"+this.instanceId,function(t){o.resizer.css(function(t){return o.__dx=t.clientX-o.mousePosition.clientX,o.__dy=t.clientY-o.mousePosition.clientY,a[e](t)}(t))}).bind(r.mouseup+".ax5modal-resize-"+this.instanceId,function(e){f.off.call(o)}).bind("mouseleave.ax5modal-resize-"+this.instanceId,function(e){f.off.call(o)}),jQuery(document.body).attr("unselectable","on").css("user-select","none").bind("selectstart",!1)},off:function(){this.activeModal.removeClass("draged"),function(){var e=this.resizer.offset();jQuery.extend(e,{width:this.resizer.width(),height:this.resizer.height()}),this.modalConfig.absolute||(e.left-=jQuery(document).scrollLeft(),e.top-=jQuery(document).scrollTop()),this.activeModal.css(e),this.modalConfig.left=e.left,this.modalConfig.top=e.top,this.modalConfig.width=e.width,this.modalConfig.height=e.height,this.$.body.css({height:e.height-this.modalConfig.headerHeight}),this.modalConfig.iframe&&(this.$["iframe-wrap"].css({height:e.height-this.modalConfig.headerHeight}),this.$.iframe.css({height:e.height-this.modalConfig.headerHeight})),e=null}.call(this),this.resizer.remove(),this.resizer=null,this.resizerBg.remove(),this.resizerBg=null,s.call(this,o.modalConfig,{self:this,state:"resize"}),jQuery(document.body).unbind(r.mousemove+".ax5modal-resize-"+this.instanceId).unbind(r.mouseup+".ax5modal-resize-"+this.instanceId).unbind("mouseleave.ax5modal-resize-"+this.instanceId),jQuery(document.body).removeAttr("unselectable").css("user-select","auto").unbind("selectstart")}};this.init=function(){this.onStateChanged=i.onStateChanged,this.onResize=i.onResize},this.open=function(e,t,n){return void 0===n&&(n=0),this.activeModal?n<3?(this.watingModal=!0,setTimeout(function(){this.open(e,t,n+1)}.bind(this),i.animateTime)):this.watingModal=!1:(e=o.modalConfig=jQuery.extend(!0,{},i,e),l.call(this,e,t),this.watingModal=!1),this},this.close=function(e){var n=void 0,r=void 0;return this.activeModal&&(n=o.modalConfig,this.activeModal.addClass("destroy"),jQuery(window).unbind("keydown.ax-modal"),jQuery(window).unbind("resize.ax-modal"),setTimeout(function(){if(n.iframe){var i=this.$.iframe;if(i){var o=i.get(0),a=o.contentDocument?o.contentDocument:o.contentWindow.document;try{$(a.body).children().each(function(){$(this).remove()})}catch(e){}a.innerHTML="",i.attr("src","about:blank").remove(),window.CollectGarbage&&window.CollectGarbage()}}this.activeModal.remove(),this.activeModal=null,this.watingModal||s.call(this,n,{self:this,state:"close"}),e&&t.isFunction(e.callback)&&(r={self:this,id:n.id,theme:n.theme,width:n.width,height:n.height,state:"close",$:this.$},e.callback.call(r,r))}.bind(this),i.animateTime)),this.minimized=!1,this},this.minimize=function(e){if(!0!==this.minimized){var t=o.modalConfig;void 0===e&&(e=i.minimizePosition),this.minimized=!0,this.$.body.hide(),o.modalConfig.originalHeight=t.height,o.modalConfig.height=0,u[e].call(this),s.call(this,t,{self:this,state:"minimize"})}return this},this.restore=function(){var e=o.modalConfig;return this.minimized&&(this.minimized=!1,this.$.body.show(),o.modalConfig.height=o.modalConfig.originalHeight,o.modalConfig.originalHeight=void 0,this.align({left:"center",top:"middle"}),s.call(this,e,{self:this,state:"restore"})),this},this.css=function(e){return this.activeModal&&!o.fullScreen&&(this.activeModal.css(e),void 0!==e.width&&(o.modalConfig.width=e.width),void 0!==e.height&&(o.modalConfig.height=e.height),this.align()),this},this.setModalConfig=function(e){return o.modalConfig=jQuery.extend({},o.modalConfig,e),this.align(),this},this.align=function(e,n){if(!this.activeModal)return this;var i,r=o.modalConfig,a={width:r.width,height:r.height};return(r.isFullScreen=void 0!==(i=r.fullScreen)&&(t.isFunction(i)?i():void 0))?(r.header&&this.$.header.show(),r.header?(r.headerHeight=this.$.header.outerHeight(),a.height+=r.headerHeight):r.headerHeight=0,a.width=jQuery(window).width(),a.height=r.height,a.left=0,a.top=0):(r.header&&this.$.header.show(),e&&jQuery.extend(!0,r.position,e),r.header?(r.headerHeight=this.$.header.outerHeight(),a.height+=r.headerHeight):r.headerHeight=0,"left"==r.position.left?a.left=r.position.margin||0:"right"==r.position.left?a.left=jQuery(window).width()-a.width-(r.position.margin||0):"center"==r.position.left?a.left=jQuery(window).width()/2-a.width/2:a.left=r.position.left||0,"top"==r.position.top?a.top=r.position.margin||0:"bottom"==r.position.top?a.top=jQuery(window).height()-a.height-(r.position.margin||0):"middle"==r.position.top?a.top=jQuery(window).height()/2-a.height/2:a.top=r.position.top||0,a.left<0&&(a.left=0),a.top<0&&(a.top=0),r.absolute&&(a.top+=jQuery(window).scrollTop(),a.left+=jQuery(window).scrollLeft())),this.activeModal.css(a),this.$.body.css({height:a.height-(r.headerHeight||0)}),r.iframe&&(this.$["iframe-wrap"].css({height:a.height-r.headerHeight}),this.$.iframe.css({height:a.height-r.headerHeight})),this},this.main=function(){e.modal_instance=e.modal_instance||[],e.modal_instance.push(this),arguments&&t.isObject(arguments[0])&&this.setConfig(arguments[0])}.apply(this,arguments)}),n=ax5.ui.modal}(),function(){var e=ax5.ui.modal;e.tmpl={content:function(){return' \n <div id="{{modalId}}" data-modal-els="root" class="ax5modal {{theme}} {{fullscreen}}" style="{{styles}}">\n {{#header}}\n <div class="ax-modal-header" data-modal-els="header">\n {{{title}}}\n {{#btns}}\n <div class="ax-modal-header-addon">\n {{#@each}}\n <button tabindex="-1" data-modal-header-btn="{{@key}}" class="{{@value.theme}}">{{{@value.label}}}</button>\n {{/@each}}\n </div>\n {{/btns}}\n </div>\n {{/header}}\n <div class="ax-modal-body" data-modal-els="body">\n {{#iframe}}\n <div data-modal-els="iframe-wrap" style="-webkit-overflow-scrolling: touch; overflow: auto;position: relative;">\n <table data-modal-els="iframe-loading" style="width:100%;height:100%;"><tr><td style="text-align: center;vertical-align: middle">{{{iframeLoadingMsg}}}</td></tr></table>\n <iframe name="{{modalId}}-frame" src="" width="100%" height="100%" frameborder="0" data-modal-els="iframe" style="position: absolute;left:0;top:0;"></iframe>\n </div>\n <form name="{{modalId}}-form" data-modal-els="iframe-form">\n <input type="hidden" name="modalId" value="{{modalId}}" />\n {{#param}}\n {{#@each}}\n <input type="hidden" name="{{@key}}" value="{{@value}}" />\n {{/@each}}\n {{/param}}\n </form>\n {{/iframe}}\n {{^iframe}}\n <div data-modal-els="body-frame" style="position: absolute;left:0;top:0;width:100%;height:100%;"></div>\n {{/iframe}}\n </div>\n {{^disableResize}}\n <div data-ax5modal-resizer="top"></div>\n <div data-ax5modal-resizer="right"></div>\n <div data-ax5modal-resizer="bottom"></div>\n <div data-ax5modal-resizer="left"></div>\n <div data-ax5modal-resizer="top-left"></div>\n <div data-ax5modal-resizer="top-right"></div>\n <div data-ax5modal-resizer="bottom-left"></div>\n <div data-ax5modal-resizer="bottom-right"></div>\n {{/disableResize}}\n </div>\n '},get:function(t,n,i){return ax5.mustache.render(e.tmpl[t].call(this,i),n)}}}(),function(e){e(["jquery"],function(e){return function(){var t,n,i,o=0,r={error:"error",info:"info",success:"success",warning:"warning"},a={clear:function(n,i){var o=u();t||s(o);l(n,o,i)||function(n){for(var i=t.children(),o=i.length-1;o>=0;o--)l(e(i[o]),n)}(o)},remove:function(n){var i=u();t||s(i);if(n&&0===e(":focus",n).length)return void h(n);t.children().length&&t.remove()},error:function(e,t,n){return c({type:r.error,iconClass:u().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:s,info:function(e,t,n){return c({type:r.info,iconClass:u().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){n=e},success:function(e,t,n){return c({type:r.success,iconClass:u().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.2",warning:function(e,t,n){return c({type:r.warning,iconClass:u().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return a;function s(n,i){return n||(n=u()),(t=e("#"+n.containerId)).length?t:(i&&(t=function(n){return(t=e("<div/>").attr("id",n.containerId).addClass(n.positionClass).attr("aria-live","polite").attr("role","alert")).appendTo(e(n.target)),t}(n)),t)}function l(t,n,i){var o=!(!i||!i.force)&&i.force;return!(!t||!o&&0!==e(":focus",t).length)&&(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){h(t)}}),!0)}function d(e){n&&n(e)}function c(n){var r=u(),a=n.iconClass||r.iconClass;if(void 0!==n.optionsOverride&&(r=e.extend(r,n.optionsOverride),a=n.optionsOverride.iconClass||a),!function(e,t){if(e.preventDuplicates){if(t.message===i)return!0;i=t.message}return!1}(r,n)){o++,t=s(r,!0);var l=null,c=e("<div/>"),f=e("<div/>"),p=e("<div/>"),m=e("<div/>"),g=e(r.closeHtml),v={intervalId:null,hideEta:null,maxHideTime:null},y={toastId:o,state:"visible",startTime:new Date,options:r,map:n};return n.iconClass&&c.addClass(r.toastClass).addClass(a),n.title&&(f.append(r.escapeHtml?b(n.title):n.title).addClass(r.titleClass),c.append(f)),n.message&&(p.append(r.escapeHtml?b(n.message):n.message).addClass(r.messageClass),c.append(p)),r.closeButton&&(g.addClass("toast-close-button").attr("role","button"),c.prepend(g)),r.progressBar&&(m.addClass("toast-progress"),c.prepend(m)),r.newestOnTop?t.prepend(c):t.append(c),c.hide(),c[r.showMethod]({duration:r.showDuration,easing:r.showEasing,complete:r.onShown}),r.timeOut>0&&(l=setTimeout(w,r.timeOut),v.maxHideTime=parseFloat(r.timeOut),v.hideEta=(new Date).getTime()+v.maxHideTime,r.progressBar&&(v.intervalId=setInterval(k,10))),function(){c.hover(_,x),!r.onclick&&r.tapToDismiss&&c.click(w);r.closeButton&&g&&g.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),w(!0)});r.onclick&&c.click(function(e){r.onclick(e),w()})}(),d(y),r.debug&&console&&console.log(y),c}function b(e){return null==e&&(e=""),new String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function w(t){var n=t&&!1!==r.closeMethod?r.closeMethod:r.hideMethod,i=t&&!1!==r.closeDuration?r.closeDuration:r.hideDuration,o=t&&!1!==r.closeEasing?r.closeEasing:r.hideEasing;if(!e(":focus",c).length||t)return clearTimeout(v.intervalId),c[n]({duration:i,easing:o,complete:function(){h(c),r.onHidden&&"hidden"!==y.state&&r.onHidden(),y.state="hidden",y.endTime=new Date,d(y)}})}function x(){(r.timeOut>0||r.extendedTimeOut>0)&&(l=setTimeout(w,r.extendedTimeOut),v.maxHideTime=parseFloat(r.extendedTimeOut),v.hideEta=(new Date).getTime()+v.maxHideTime)}function _(){clearTimeout(l),v.hideEta=0,c.stop(!0,!0)[r.showMethod]({duration:r.showDuration,easing:r.showEasing})}function k(){var e=(v.hideEta-(new Date).getTime())/v.maxHideTime*100;m.width(e+"%")}}function u(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1},a.options)}function h(e){t||(t=s()),e.is(":visible")||(e.remove(),e=null,0===t.children().length&&(t.remove(),i=void 0))}}()})}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}),function(e,t){if("function"==typeof define&&define.amd)define(["module","exports"],t);else if("undefined"!=typeof exports)t(module,exports);else{var n={exports:{}};t(n,n.exports),e.autosize=n.exports}}(this,function(e,t){"use strict";var n,i,o="function"==typeof Map?new Map:(n=[],i=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return i[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),i.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i.splice(t,1))}}),r=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){r=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function a(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,i=null,a=null,s=function(){e.clientWidth!==i&&u()},l=function(t){window.removeEventListener("resize",s,!1),e.removeEventListener("input",u,!1),e.removeEventListener("keyup",u,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",u,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",u,!1),window.addEventListener("resize",s,!1),e.addEventListener("input",u,!1),e.addEventListener("autosize:update",u,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:u}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),u()}function d(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function c(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",i=e.clientWidth,t.forEach(function(e){e.node.scrollTop=e.scrollTop}),o&&(document.documentElement.scrollTop=o)}}function u(){c();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),i="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(i<t?"hidden"===n.overflowY&&(d("scroll"),c(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(d("hidden"),c(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),a!==i){a=i;var o=r("autosize:resized");try{e.dispatchEvent(o)}catch(e){}}}}function s(e){var t=o.get(e);t&&t.destroy()}function l(e){var t=o.get(e);t&&t.update()}var d=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((d=function(e){return e}).destroy=function(e){return e},d.update=function(e){return e}):((d=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return a(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e},d.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.default=d,e.exports=t.default}),window.console&&window.console.log||(window.console={log:function(){}});var APP={SET_LANG:function(e){$.cookie("site_lang",e,{expires:30,path:"/"}),location.reload()}};$('[data-toggle="btn-popup-close"]').click(function(e){var t=$(this).data("type"),n=$(this).data("idx"),i=$(this).data("cookie");"Y"==t?window.close():"N"==t&&$("#popup-"+n).remove(),1==i&&$.cookie("popup_"+n,1,{expires:1,path:"/"})}),$("a[data-toggle='sns-share']").not('[data-service="link"]').click(function(e){e.preventDefault();var t=$(this),n=t.data("service"),i=t.data("url"),o=t.data("title"),r="",a=$("meta[name='og:image']").attr("content");if(n&&i&&o){if("facebook"==n)r="//www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(i);else if("twitter"==n)r="//twitter.com/home?status="+encodeURIComponent(o)+" "+i;else if("google"==n)r="//plus.google.com/share?url="+i;else if("pinterest"==n)r="//www.pinterest.com/pin/create/button/?url="+i+"&media="+a+"&description="+encodeURIComponent(o);else if("kakaostory"==n)r="https://story.kakao.com/share?url="+encodeURIComponent(i);else if("band"==n)r="http://www.band.us/plugin/share?body="+encodeURIComponent(o)+"%0A"+encodeURIComponent(i);else if("naver"==n)r="http://share.naver.com/web/shareView.nhn?url="+encodeURIComponent(i)+"&title="+encodeURIComponent(o);else{if("line"!=n)return!1;r="http://line.me/R/msg/text/?"+encodeURIComponent(o+"\n"+i)}return APP.POPUP({url:r}),!1}}),$(function(){new ClipboardJS('a[data-toggle="sns-share"][data-service="link"]',{text:function(e){return e.getAttribute("data-url")}}).on("success",function(){alert("현재 URL이 복사되었습니다.")})}),String.prototype.regex=function(e){switch(e){case"phone":return!(11!=(t=this.replace(/\s/gi,"").replace(/-/gi,"")).length&&10!=t.length||!/^(01[016789]{1}|02|0[3-9]{1}[0-9]{1})([0-9]{3,4})([0-9]{4})$/.test(t))&&(t=t.replace(/^(01[016789]{1}|02|0[3-9]{1}[0-9]{1})-?([0-9]{3,4})-?([0-9]{4})$/,"$1-$2-$3"));case"tel":var t;return t=(t=this.replace(/\s/gi,"").replace(/-/gi,"")).replace(/(^02.{0}|^01.{1}|[0-9]{3})([0-9]{3,4})([0-9]{4})/,"$1-$2-$3"),!!/^\d{2,3}-\d{3,4}-\d{4}$/.test(t)&&t;case"email":return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(this);case"biznum":var n,i,o,r=new Array(1,3,7,1,3,7,1,3,5,1),a=0,s=this.replace(/-/gi,"");for(n=0;n<=7;n++)a+=r[n]*s.charAt(n);return i=(i="0"+r[8]*s.charAt(8)).substring(i.length-2,i.length),o=(10-(a+=Math.floor(i.charAt(0))+Math.floor(i.charAt(1)))%10)%10,Math.floor(s.charAt(9))==o&&s.replace(/(\d{3})(\d{2})(\d{5})/,"$1-$2-$3");case"uniqid":return/^[a-z][a-z0-9_]{2,19}$/g.test(this)}},Number.prototype.numberFormat=function(){if(0==this)return 0;for(var e=/(^[+-]?\d+)(\d{3})/,t=this+"";e.test(t);)t=t.replace(e,"$1,$2");return t},String.prototype.numberFormat=function(){return isNaN(parseFloat(this))?"0":parseFloat(this).numberFormat()},String.prototype.unNumberFormat=function(){var e=this;if("number"==typeof e)return e;e=(e=(""+e).replace(/,/gi,"")).replace(/(^\s*)|(\s*$)/g,"");var t=new Number(e);return isNaN(t)?e:t},Number.prototype.unNumberFormat=function(){return this},Date.prototype.dateFormat=function(e){if(!this.valueOf())return" ";if(!e)return this;var t=["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],n=["일","월","화","수","목","금","토"],i=this;return e.replace(/(yyyy|yy|MM|dd|E|hh|mm|ss|a\/p)/gi,function(e){switch(e){case"yyyy":return i.getFullYear();case"yy":return(i.getFullYear()%1e3).zf(2);case"MM":return(i.getMonth()+1).zf(2);case"dd":return i.getDate().zf(2);case"E":return t[i.getDay()];case"e":return n[i.getDay()];case"HH":return i.getHours().zf(2);case"hh":return((h=i.getHours()%12)?h:12).zf(2);case"mm":return i.getMinutes().zf(2);case"ss":return i.getSeconds().zf(2);case"a/p":return i.getHours()<12?"오전":"오후";default:return e}})},String.prototype.string=function(e){for(var t="",n=0;n++<e;)t+=this;return t},String.prototype.zf=function(e){return"0".string(e-this.length)+this},Number.prototype.zf=function(e){return this.toString().zf(e)},String.prototype.dateFormat=function(e){var t=new Date(this);return"Invalid Date"==t?"":t.dateFormat(e)},Number.prototype.toKorean=function(){for(var e=new Array("","일","이","삼","사","오","육","칠","팔","구","십"),t=new Array("","십","백","천","","십","백","천","","십","백","천","","십","백","천"),n=new String(this),i="",o=0;o<n.length;o++){var r="",a=e[n.charAt(n.length-(o+1))];""!=a&&(r+=a+t[o]),4==o&&(r+="만"),8==o&&(r+="억"),12==o&&(r+="조"),i=r+i}return i},String.prototype.toKorean=function(){return this.unNumberFormat().toKorean()},APP.POPUP=null,function(e){APP.POPUP=function(t){var n=e.extend({},{title:"_blank",width:800,height:600,url:""},t);cw=screen.availWidth,ch=screen.availHeight,sw=n.width,sh=n.height,ml=(cw-sw)/2,mt=(ch-sh)/2;t="width="+sw+",height="+sh+",top="+mt+",left="+ml+",scrollbars=yes,resizable=no";var i=window.open(n.url,n.title,t);(null==i||void 0===i||null==i&&0==i.outerWidth||null!=i&&0==i.outerHeight)&&alert("팝업 차단 기능이 설정되어있습니다\n\n차단 기능을 해제(팝업허용) 한 후 다시 이용해 주십시오.")}}(jQuery),APP.MEMBER={},APP.MEMBER.init=function(){APP.MEMBER.InitLoginForm(),APP.MEMBER.initCheckExist(),APP.MEMBER.InitRegisterForm(),APP.MEMBER.InitMemberModifyForm()},APP.MEMBER.InitRegisterForm=function(){$('[data-form="form-register"]').submit(function(e){e.preventDefault();var t=$(this);$.ajax({type:"PUT",data:t.serialize(),url:base_url+"/ajax/members/info",success:function(e){1==e.result&&(alert(LANG.member_join_success),location.href=base_url+"/members/login")}})})},APP.MEMBER.InitMemberModifyForm=function(){$('[data-form="form-member-modify"]').submit(function(e){e.preventDefault();var t=$(this);$.ajax({type:"POST",data:t.serialize(),url:base_url+"/ajax/members/info",success:function(e){1==e.result&&(alert(e.message),location.reload())}})})},APP.MEMBER.InitLoginForm=function(){$('[data-role="form-login"]').submit(function(e){e.preventDefault();var t=$(this),n=t.find('[name="login_id"]'),i=t.find('[name="login_pass"]');return""==n.val().trim()?(alert(LANG.member_login_userid_required),n.focus(),!1):""==i.val().trim()?(alert(LANG.member_login_password_required),i.focus(),!1):void $.ajax({url:base_url+"ajax/members/login",type:"POST",data:t.serialize(),success:function(e){1==e.result&&(location.href=e.reurl?e.reurl:base_url)},error:function(e){i.val("")}})})},APP.MEMBER.initCheckExist=function(){$('[data-toggle="check-member-exist"]').each(function(){var e=$(this);e.on("click",function(){var t=$("#"+e.data("target")),n=e.data("check"),i=t.val();if(void 0===i||!i||!i.trim())return alert(LANG.member_join_user_id_required),t.focus(),!1;var o=APP.MEMBER.denyWordCheck(n,i);return"VALID_EMAIL"==o?(alert(LANG.member_join_no_valid_email_address),t.focus(),!1):o?APP.MEMBER.getInfo(n,i)?(alert(LANG.member_join_user_id_already_exists),t.focus(),!1):(alert(LANG.member_join_user_id_available),!0):(alert(LANG.member_join_user_id_contains_deny_word),t.focus(),!1)})})},APP.MEMBER.getInfo=function(e,t){var n=null;return $.ajax({url:base_url+"/ajax/members/info",type:"get",async:!1,cache:!1,data:{key:e,value:t},success:function(e){n=e.result}}),n},APP.MEMBER.denyWordCheck=function(e,t){var n=null;return $.ajax({url:base_url+"/ajax/members/word_check",type:"get",async:!1,cache:!1,data:{key:e,value:t},success:function(e){n=e.result}}),n},APP.MEMBER.POP_CHANGE_PHOTO=function(){APP.POPUP({url:"/members/photo_change",width:600,height:150})},$(document).ready(APP.MEMBER.init),APP.BOARD={},APP.BOARD.CATEGORY={},APP.BOARD.EXTRA={},APP.BOARD.COMMENT={},APP.BOARD.CATEGORY.count=function(e){if(void 0===e||!e)return 0;var t=0;return $.ajax({url:base_url+"/ajax/board/category_count",type:"get",cache:!1,async:!1,data:{bca_idx:e},success:function(e){t=e.result}}),t},APP.BOARD.CATEGORY.postCount=function(e){if(void 0===e||!e)return 0;var t=0;return $.ajax({url:base_url+"/ajax/board/category_post_count",type:"get",cache:!1,async:!1,data:{bca_idx:e},success:function(e){t=e.result}}),t},APP.BOARD.COMMENT.modify=function(e){APP.POPUP({title:"_blank",width:800,height:600,url:base_url+"/board/comment/modify/"+e})},APP.BOARD.COMMENT.reply=function(e,t){APP.POPUP({title:"_blank",width:800,height:600,url:base_url+"/board/comment/reply/"+e+"/"+t})},$(function(){var e=$('[data-form="post"]');e.length>0&&e.on("submit",function(){$.blockUI({css:{width:"25px",top:"49%",left:"49%",border:"0px none",backgroundColor:"transparent",cursor:"wait"},message:'<img src="/assets/images/common/ajax-loader.gif" alt="로딩중">',baseZ:1e4,overlayCSS:{opacity:0}})})}),$(function(){$(document).ajaxError(function(e,t,n){var i="알수없는 오류가 발생하였습니다.";void 0!==t.responseJSON&&void 0!==t.responseJSON.message?i=t.responseJSON.message:500==t.status?i="서버 코드 오류가 발생하였습니다.\n관리자에게 문의하세요":401==t.status&&(i="해당 명령을 실행할 권한이 없습니다."),toastr.error(i,"오류 발생")}).ajaxStart(function(){$.blockUI({css:{width:"25px",top:"49%",left:"49%",border:"0px none",backgroundColor:"transparent",cursor:"wait"},message:'<img src="/assets/images/common/ajax-loader.gif" alt="로딩중">',baseZ:1e4,overlayCSS:{opacity:0}})}).ajaxComplete(function(){$.unblockUI()})}),$(function(){$(document).on("change","[data-checkbox]",function(){var e=$(this),t=null!=e.data("checkbox-all"),n=e.data("checkbox"),i=e.prop("checked"),o=t?e:$('[data-checkbox="'+n+'"][data-checkbox-all]');t?$('[data-checkbox="'+n+'"]').prop("checked",i):o.prop("checked",$('[data-checkbox="'+n+'"]').not("[data-checkbox-all]").length==$('[data-checkbox="'+n+'"]:checked').not("[data-checkbox-all]").length)})}),$(function(){$(document).on("keyup","[data-number-format]",function(e){$(this).val($(this).val().trim().unNumberFormat().numberFormat())})}),$(function(){$(document).on("keypress","[data-number-only]",function(e){8!=e.which&&0!=e.which&&45!=e.which&&(e.which<48||e.which>57)&&e.preventDefault()})}),$(function(){$(document).on("keyup","textarea[data-autosize]",function(e){autosize($(this))}),$("textarea[data-autosize]").keyup()}),$(function(){$("body").on("keypress",'[data-regex="phone-number"]',function(e){8!=e.which&&0!=e.which&&45!=e.which&&(e.which<48||e.which>57)&&e.preventDefault()}).on("blur",'[data-regex="phone-number"]',function(e){if(""!=$(this).val()){var t=$(this).val().regex("phone");if(!1===t)return toastr.error("유효하지 않은 전화번호 입니다."),$(this).val(""),void $(this).focus();$(this).val(t)}}),$("body").on("blur",'[data-regex="tel-number"]',function(e){if(""!=$(this).val()){var t=$(this).val().regex("tel");if(!1===t)return toastr.error("유효하지 않은 전화번호 입니다."),$(this).val(""),void $(this).focus();$(this).val(t)}}),$("body").on("blur",'[data-regex="email-address"]',function(e){""!=$(this).val()&&($(this).val().regex("email")||(toastr.error("유효하지 않은 이메일주소 입니다."),$(this).val(""),$(this).focus()))})}),function(e){"use strict";var t=".dropdown-backdrop",n='[data-toggle="dropdown"]',i=function(t){e(t).on("click.bs.dropdown",this.toggle)};function o(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&e(n);return i&&i.length?i:t.parent()}function r(i){i&&3===i.which||(e(t).remove(),e(n).each(function(){var t=e(this),n=o(t),r={relatedTarget:this};n.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&e.contains(n[0],i.target)||(n.trigger(i=e.Event("hide.bs.dropdown",r)),i.isDefaultPrevented()||(t.attr("aria-expanded","false"),n.removeClass("open").trigger(e.Event("hidden.bs.dropdown",r)))))}))}i.VERSION="3.3.7",i.prototype.toggle=function(t){var n=e(this);if(!n.is(".disabled, :disabled")){var i=o(n),a=i.hasClass("open");if(r(),!a){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",r);var s={relatedTarget:this};if(i.trigger(t=e.Event("show.bs.dropdown",s)),t.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},i.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var i=e(this);if(t.preventDefault(),t.stopPropagation(),!i.is(".disabled, :disabled")){var r=o(i),a=r.hasClass("open");if(!a&&27!=t.which||a&&27==t.which)return 27==t.which&&r.find(n).trigger("focus"),i.trigger("click");var s=r.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(t.target);38==t.which&&l>0&&l--,40==t.which&&l<s.length-1&&l++,~l||(l=0),s.eq(l).trigger("focus")}}}};var a=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var n=e(this),o=n.data("bs.dropdown");o||n.data("bs.dropdown",o=new i(this)),"string"==typeof t&&o[t].call(n)})},e.fn.dropdown.Constructor=i,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=a,this},e(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",n,i.prototype.toggle).on("keydown.bs.dropdown.data-api",n,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),APP.MASK=new ax5.ui.mask({zIndex:1e3}),APP.MASK2=new ax5.ui.mask({zIndex:2e3}),APP.modal=new ax5.ui.modal({absolute:!0,iframeLoadingMsg:'<i class="fal fa-spinner"></i>'}),APP.modal2=new ax5.ui.modal({absolute:!0,iframeLoadingMsg:'<i class="fal fa-spinner"></i>'}),APP.MODAL=function(){var e={width:400,height:400,position:{left:"center",top:"middle"}},t=$.extend(!0,{},e,{iframeLoadingMsg:"",iframe:{method:"get",url:"#"},closeToEsc:!0,onStateChanged:function(){"open"===this.state?APP.MASK.open():"close"===this.state&&APP.MASK.close()},animateTime:100,zIndex:1001,absolute:!0,fullScreen:!1,header:{title:"새로운 윈도우",btns:{close:{label:'<i class="far fa-times"></i>',onClick:function(){APP.MODAL.callback()}}}}});return{open:function(e){e=$.extend(!0,{},t,e),$(document.body).addClass("modalOpened"),this.modalCallback=e.callback,this.modalSendData=e.sendData,APP.modal.open(e)},css:function(t){t=$.extend(!0,{},e,t),APP.modal.css(t)},align:function(e){APP.modal.align(e)},close:function(e){APP.modal.close(),setTimeout(function(){$(document.body).removeClass("modalOpened")},500)},minimize:function(){APP.modal.minimize()},maximize:function(){APP.modal.maximize()},callback:function(e){this.modalCallback&&this.modalCallback(e),this.close(e)},modalCallback:{},getData:function(){if(this.modalSendData)return this.modalSendData()}}}(),APP.MODAL2=function(){var e={width:400,height:400,position:{left:"center",top:"middle"}},t=$.extend(!0,{},e,{iframeLoadingMsg:"",iframe:{method:"get",url:"#"},closeToEsc:!0,onStateChanged:function(){"open"===this.state?APP.MASK2.open():"close"===this.state&&APP.MASK2.close()},animateTime:100,zIndex:2001,absolute:!0,fullScreen:!1,header:{title:"새로운 윈도우",btns:{close:{label:'<i class="far fa-times"></i>',onClick:function(){APP.MODAL2.callback()}}}}});return{open:function(e){e=$.extend(!0,{},t,e),$(document.body).addClass("modalOpened"),this.modalCallback=e.callback,this.modalSendData=e.sendData,APP.modal2.open(e)},css:function(t){t=$.extend(!0,{},e,t),APP.modal2.css(t)},align:function(e){APP.modal2.align(e)},close:function(e){APP.modal2.close(),setTimeout(function(){$(document.body).removeClass("modalOpened")},500)},minimize:function(){APP.modal2.minimize()},maximize:function(){APP.modal2.maximize()},callback:function(e){this.modalCallback&&this.modalCallback(e),this.close(e)},modalCallback:{},getData:function(){if(this.modalSendData)return this.modalSendData()}}}();
//# sourceMappingURL=mobile.min.js.map