text: /*! EasyHelper v1.1.1 | (c) ZhaoGang | MIT license */
  var _typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"===typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b};function _toConsumableArray(b){if(Array.isArray(b)){for(var z=0,q=Array(b.length);z<b.length;z++)q[z]=b[z];return q}return Array.from(b)}!function(b,z){"function"===typeof define&&define.amd?define("helper",["jquery"],z):"undefined"!==typeof module&&"object"===("undefined"===typeof exports?"undefined":_typeof(exports))?module.exports=z(require("jquery")):b.Helper=z(b.jQuery)}("undefined"!==typeof window?window:void 0,function(b){function z(d,a,e){var c=e.type;e.type=a;b.event.dispatch.call(d,e);e.type=c}var q=b.__Helper_message_language__;q||(q={jquery:{undefined:"%E4%BD%BF%E7%94%A8%20Helper%20%E5%89%8D%E9%9C%80%E8%A6%81%E5%85%88%E5%BC%95%E5%85%A5%20jQuery",version:"EasyHelper%20%E8%A6%81%E6%B1%82%20jQuery%20%E7%9A%84%E7%89%88%E6%9C%AC%E4%B8%8D%E8%83%BD%E4%BD%8E%E4%BA%8E%203.2.0",transition:"%E4%BD%BF%E7%94%A8%20Helper%20%E5%89%8D%E9%9C%80%E8%A6%81%E5%BC%95%E5%85%A5%20jquery.transit",qrcode:"Share%20%E7%BB%84%E4%BB%B6%E4%B8%AD%E7%9A%84%E4%BA%8C%E7%BB%B4%E7%A0%81%E5%88%86%E4%BA%AB%E5%8A%9F%E8%83%BD%E9%9C%80%E8%A6%81%20jquery.qrcode%20%E8%B5%84%E6%BA%90"},page:{total:"%E5%85%B1",units:"%E6%9D%A1",to:"%E8%B7%B3%E8%87%B3",page:"%E9%A1%B5"},datepicker:{year:"%E5%B9%B4",month:"%E6%9C%88",week:"%E6%97%A5 %E4%B8%80 %E4%BA%8C %E4%B8%89 %E5%9B%9B %E4%BA%94 %E5%85%AD".split(" "),day:"%E6%97%A5",selected:"%E5%B7%B2%E9%80%89%E6%97%B6%E9%97%B4",to:"%E8%87%B3",sure:"%E7%A1%AE%E5%AE%9A",error:"%E8%AF%B7%E9%80%89%E6%8B%A9%E6%AD%A3%E7%A1%AE%E7%9A%84%E6%97%B6%E9%97%B4%E8%8C%83%E5%9B%B4!!!"},dialog:{title:"%E7%BD%91%E9%A1%B5%E6%B6%88%E6%81%AF",yes:"%E7%A1%AE%E5%AE%9A",no:"%E5%8F%96%E6%B6%88"},switch:{open:"%E5%BC%80",close:"%E5%85%B3"},select:{placeholder:"%E8%AF%B7%E9%80%89%E6%8B%A9",search:"%E8%AF%B7%E8%BE%93%E5%85%A5%E5%85%B3%E9%94%AE%E8%AF%8D%E6%90%9C%E7%B4%A2",searchNoData:"%E6%97%A0%E5%8C%B9%E9%85%8D%E6%95%B0%E6%8D%AE"},share:{qrcode:"%E6%89%AB%E7%A0%81%E5%88%86%E4%BA%AB",qrcodeText:"%E6%AD%A3%E5%9C%A8%E7%94%9F%E6%88%90%E4%BA%8C%E7%BB%B4%E7%A0%81"}});if("undefined"===typeof jQuery)throw Error(decodeURI(q.jquery.undefined));var E=b.fn.jquery.split(".");if(3>~~E[0]||3===~~E[0]&&2>~~E[1])throw Error(decodeURI(q.jquery.version));if("undefined"===typeof b.fn.transit||"undefined"===typeof b.fn.transition)throw Error(decodeURI(q.jquery.transition));var E=[b(window),b(document),b("html"),b("head")],v=E[0],C=E[1],N=E[3],x={ua:navigator.userAgent.toLowerCase(),globalColor:"#2285ee",interval:13,svg:{info:function(){return'\x3csvg viewBox\x3d"0 0 1024 1024" version\x3d"1.1" width\x3d"'+(0<arguments.length&&void 0!==arguments[0]?arguments[0]:30)+'" height\x3d"'+(1<arguments.length&&void 0!==arguments[1]?arguments[1]:30)+'"\x3e\x3cpath d\x3d"M513.46384 60.225663c-248.292969 0-449.584462 201.299679-449.584462 449.625394 0 248.296039 201.291492 449.594695 449.584462 449.594695 248.28069 0 449.63665-201.299679 449.63665-449.594695C963.099467 261.525342 761.744529 60.225663 513.46384 60.225663zM554.626331 714.465225c0 22.720468-18.416442 41.139979-41.136909 41.139979s-41.136909-18.419512-41.136909-41.139979L472.352513 453.586612c0-22.716374 18.416442-41.135886 41.136909-41.135886s41.136909 18.419512 41.136909 41.135886L554.626331 714.465225zM513.489422 372.423081c-25.719778 0-46.561455-20.845771-46.561455-46.557362 0-25.719778 20.841677-46.560432 46.561455-46.560432s46.561455 20.841677 46.561455 46.560432C560.050878 351.577311 539.2092 372.423081 513.489422 372.423081z" fill\x3d"'+x.globalColor+'"\x3e\x3c/path\x3e\x3c/svg\x3e'},success:function(){return'\x3csvg viewBox\x3d"0 0 1024 1024" version\x3d"1.1" width\x3d"'+(0<arguments.length&&void 0!==arguments[0]?arguments[0]:30)+'" height\x3d"'+(1<arguments.length&&void 0!==arguments[1]?arguments[1]:30)+'"\x3e\x3cpath d\x3d"M513.559007 60.225663c-248.299109 0-449.587532 201.299679-449.587532 449.625394 0 248.296039 201.288422 449.594695 449.587532 449.594695 248.27762 0 449.63358-201.299679 449.63358-449.594695C963.192587 261.525342 761.836627 60.225663 513.559007 60.225663zM766.338151 407.245168 485.919507 692.261527c-0.044002 0.045025-0.084934 0.092098-0.127913 0.137123s-0.090051 0.085958-0.134053 0.12996l-0.751107 0.763386c-6.256494 6.359848-14.548344 9.5454-22.967084 9.597589-0.061398 0.001023-0.121773 0.001023-0.183172 0.002047-0.161682 0-0.322341 0.004093-0.485047 0.002047-8.398274 0.068562-16.715707-2.979868-23.057135-9.217942L282.51591 540.491914c-12.999059-12.791327-12.775978-34.097586 0.49835-47.590901 13.281491-13.494339 34.58468-14.06739 47.576575-1.276063l130.36921 128.264269 256.507048-260.722046c12.797467-12.999059 34.100656-12.771885 47.591925 0.502443C778.555403 372.942921 779.129478 394.243039 766.338151 407.245168z" fill\x3d"#08ba61"\x3e\x3c/path\x3e\x3c/svg\x3e'},warn:function(){return'\x3csvg viewBox\x3d"0 0 1024 1024" version\x3d"1.1" width\x3d"'+(0<arguments.length&&void 0!==arguments[0]?arguments[0]:30)+'" height\x3d"'+(1<arguments.length&&void 0!==arguments[1]?arguments[1]:30)+'"\x3e\x3cpath d\x3d"M513.46384 60.225663c-248.291946 0-449.584462 201.299679-449.584462 449.624371 0 248.296039 201.292516 449.594695 449.584462 449.594695 248.28069 0 449.63665-201.299679 449.63665-449.594695C963.099467 261.525342 761.744529 60.225663 513.46384 60.225663zM473.683834 304.175721c2.690272-35.478026 40.597627-32.423457 40.597627-32.423457s34.488489-2.288113 39.011502 32.225959c0 0 8.162914 181.774997-15.904225 294.366308 0 0-3.746324 14.944364-23.107277 16.22145l0 0.275269c-20.751626-0.539282-24.692379-16.296151-24.692379-16.296151C465.521944 485.947647 473.683834 304.175721 473.683834 304.175721zM513.489422 747.984642c-25.719778 0-46.560432-20.840654-46.560432-46.560432 0-25.710568 20.840654-46.556339 46.560432-46.556339s46.561455 20.845771 46.561455 46.556339C560.050878 727.143988 539.2092 747.984642 513.489422 747.984642z" fill\x3d"#f39509"\x3e\x3c/path\x3e\x3c/svg\x3e'},error:function(){return'\x3csvg viewBox\x3d"0 0 1024 1024" version\x3d"1.1" width\x3d"'+(0<arguments.length&&void 0!==arguments[0]?arguments[0]:30)+'" height\x3d"'+(1<arguments.length&&void 0!==arguments[1]?arguments[1]:30)+'"\x3e\x3cpath d\x3d"M513.559007 60.225663c-248.291946 0-449.587532 201.299679-449.587532 449.625394 0 248.291946 201.295586 449.594695 449.587532 449.594695 248.284783 0 449.632557-201.303772 449.632557-449.594695C963.191564 261.525342 761.84379 60.225663 513.559007 60.225663zM678.729837 644.059712c12.798491 13.003152 12.217253 34.302247-1.272993 47.575552-13.490246 13.275351-34.800597 13.502525-47.590901 0.503467l-116.284423-118.191866-116.278283 118.187773c-12.798491 13.003152-34.093493 12.774955-47.590901-0.499373-13.497409-13.277398-14.063297-34.576493-1.279133-47.575552l117.065206-118.984928L348.433202 406.088832c-12.783141-12.999059-12.218276-34.298154 1.279133-47.576575 13.497409-13.274328 34.792411-13.501502 47.590901-0.49835l116.279307 118.187773 116.2834-118.190843c12.790304-12.999059 34.100656-12.771885 47.590901 0.502443 13.491269 13.274328 14.071484 34.573423 1.272993 47.576575L561.666678 525.07376 678.729837 644.059712z" fill\x3d"#d81e06"\x3e\x3c/path\x3e\x3c/svg\x3e'},close:function(){return'\x3csvg viewBox\x3d"0 0 1024 1024" version\x3d"1.1" width\x3d"'+(0<arguments.length&&void 0!==arguments[0]?arguments[0]:30)+'" height\x3d"'+(1<arguments.length&&void 0!==arguments[1]?arguments[1]:30)+'"\x3e\x3cpath d\x3d"M806.4 172.8l-633.6 633.6c-12.8 12.8-12.8 32 0 44.8 12.8 12.8 32 12.8 44.8 0l633.6-633.6c12.8-12.8 12.8-32 0-44.8-12.8-12.8-32-12.8-44.8 0z" fill\x3d"#000000" p-id\x3d"1040"\x3e\x3c/path\x3e\x3cpath d\x3d"M172.8 172.8c-12.8 12.8-12.8 32 0 44.8l633.6 633.6c12.8 12.8 32 12.8 44.8 0 12.8-12.8 12.8-32 0-44.8L217.6 172.8c-12.8-12.8-32-12.8-44.8 0z" fill\x3d"#000"\x3e\x3c/path\x3e\x3c/svg\x3e'},arrow:function(){return'\x3csvg viewBox\x3d"0 0 1024 1024" version\x3d"1.1" width\x3d"'+(0<arguments.length&&void 0!==arguments[0]?arguments[0]:30)+'" height\x3d"'+(1<arguments.length&&void 0!==arguments[1]?arguments[1]:30)+'"\x3e\x3cpath d\x3d"M948.560332 281.179984c-13.765515-13.833053-36.127825-13.833053-49.89334 0L511.991302 668.591431 125.313565 281.179984c-13.763468-13.798261-36.093033-13.798261-49.856501 0-13.799284 13.798261-13.799284 36.161594 0 49.993624l410.857439 411.674037c7.067976 7.085372 16.402575 10.521634 25.675776 10.331299 9.274224 0.191358 18.608823-3.245927 25.677822-10.331299l410.891208-411.708829c6.863315-6.89913 10.331299-15.940041 10.331299-24.979928S955.423647 288.078091 948.560332 281.179984z" fill\x3d"#000"\x3e\x3c/path\x3e\x3c/svg\x3e'}}},B={close:function(d){b(".helper-dialog-mask").transition({opacity:0},300);b(".helper-dialog-wrapper").transition({scale:[.88,.88],opacity:0},300,function(){b(".helper-dialog-container").remove();d()});b("body").removeClass("helper-body-noscroll")},shortcuts:function(d,a,e){b(".helper-dialog-container").length||(w.ui.dialog({contentLine:!1,closeIcon:!1,__TYPE__:e,__TYPE_TITLE__:a?d:void 0,__TYPE_CONTENT__:(a||d).replace(/<[^>]+>/g,"")}),b(".helper-dialog-no").remove(),b(".helper-dialog-content").css("padding","5px 0"))}};b.event.special.wheelUp={setup:function(){var d=this;b(d).on("mousewheel DOMMouseScroll",function(b){var a=b.originalEvent,c=void 0;a.wheelDelta?c=0<a.wheelDelta?"up":"down":a.detail&&(c=0>a.detail?"up":"down");a.preventDefault();"up"===c&&z(d,"wheelUp",b)})}};b.event.special.wheelDown={setup:function(){var d=this;b(d).on("mousewheel DOMMouseScroll",function(b){var a=b.originalEvent,c=void 0;a.wheelDelta?c=0<a.wheelDelta?"up":"down":a.detail&&(c=0>a.detail?"up":"down");a.preventDefault();"down"===c&&z(d,"wheelDown",b)})}};["wheelUp","wheelDown"].forEach(function(d){b.fn[d]=function(b){return this.on(d,b)}});var w={version:"1.1.1",tool:{isMobile:function(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";if(x.ua.match(/(ios|iphone|ipod|ipad|mobile|android|symbianos|ucweb|mqqbrowser|iemobile|webos|windows phone|windows mobile|opera mini|opera mobl|nexus|series|nokia|blackberry|meego|playbook|fennec|tablet)/)&&"ontouchend"in document)if(b)window.location.href=b;else return!0;else return!1},random:function(){var d=0>=arguments.length?void 0:arguments[0],a=1>=arguments.length?void 0:arguments[1],e=Number.isSafeInteger(d)&&0<=d,c=Number.isSafeInteger(a)&&0<=a,g=function(b,c){return Math.floor(Math.random()*(c-b+1)+b)},f="";e&&c&&(f=Number(g(d,a)));if(e&&!0===a)for(;f.length<d;)f+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[g(0,61)];if(e&&!1===a)for(;f.length<d;)f+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[g(0,51)];if(void 0===a&&e&&0<d){for(;f.length<d;)f+="0123456789"[g(0,9)];f=Number(f);e=f.toString().length;if(e<d){for(var c="",l=0;l<d-e;l++)c+=g(0,9);f+=c}f=Number(f)}if(void 0===a&&b.isPlainObject(d)&&d.string)for(e=d.length,0>e&&(e=0),c=0;c<e;c++)f+=d.string[g(0,d.string.length-1)];d||a||(f=Math.random());return f},uuid:function(){for(var b=[],a=w.tool.random({string:"abcdef",length:14}),a=(Math.random().toFixed(16).replace("0.",w.tool.random(10,99))+a).split(""),e=0;36>e;e++){var c=w.tool.random(0,31);b[e]=a[c];a.slice(c,1)}b[8]=b[13]=b[18]=b[23]="-";return b.join("")},preloadImage:function(d){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:b.noop,e=d.length,c=0;Array.isArray(d)&&e&&~function f(l){if(l.substr(l.lastIndexOf(".")+1,4).replace(/\?(.*)/,"").match(/(jpg|jpeg|png|ico|bmp|gif)/i)){var h=function(){e--;d.splice(0,1);e?f(d[0]):a(c)},k=new Image;k.crossOrigin="anonymous";k.src=l;b(k).on({load:function(){c++;h()},error:function(){return h()}})}}(d[0])},cookie:function(){for(var d=arguments.length,a=Array(d),e=0;e<d;e++)a[e]=arguments[e];d=a.length;if(1===d&&"string"===b.type(a[0])){var c=document.cookie.replace(/[=]/g,"; ").split("; "),g="";b.each(c,function(b,e){e===a[0]&&(g=c[b+1])});return g}2<=d&&(document.cookie=a[0]+"\x3d"+(a[1]+(3===d?";expires\x3d"+a[2]:"")));1===d&&b.isPlainObject(a[0])&&b.each(a[0],function(b,c){document.cookie=b+"\x3d"+c})},removeCookie:function(b){b?b.replace(/\s+/g," ").trim().split(" ").forEach(function(b){document.cookie=b+"\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 GMT;"}):(b=document.cookie.replace(/[=]/g,"; ").split("; "))&&b.forEach(function(b){document.cookie=b+"\x3d; expires\x3dThu, 01 Jan 1970 00:00:00 GMT;"})},key:function(d,a){var e=["esc","enter","spacebar"],c=[27,13,32];C.on("keyup",function(g){g=[g.keyCode,b.type(d)];var f=g[0];switch(g[1]){case "string":e.forEach(function(b,e){d===b&&f===c[e]&&a(c[e])});break;case "number":f===parseInt(d)&&a(f);break;case "array":d.forEach(function(b){f===parseInt(b)&&a(f)})}})},unique:function(d){if(Array.isArray(d))return[].concat(_toConsumableArray(new Set(d)));if("string"===b.type(d)||Number.isSafeInteger(d)){for(var a=String(d),e="",c=0,g=a.length;c<g;c++)-1===e.indexOf(a[c])&&(e+=a[c]);return"string"===b.type(d)?e:Number(e)}return d},merge:function(){for(var d=arguments.length,a=Array(d),e=0;e<d;e++)a[e]=arguments[e];e=[a[0],a.length];d=e[0];if(e=e[1]){var c=void 0,g=void 0;Array.isArray(d)&&(c=[],Array.from(a).forEach(function(a){g=b.merge(c,a)}));if("string"===b.type(d))for(var g="",f=0;f<e;f++)g+=a[f];b.isPlainObject(d)&&(g=Object.assign.apply(Object,a));return g}}},ui:{lazyload:function(d,a){function e(a,f,e,d){d&&f&&a.attr("srcset",d);f?a.attr("src",e):a.css("background-image","url("+e+")");a.removeAttr("data-src data-srcset").data("$_lazyload_show_$",!0);e=b.trim(c.effect);f=e.substring(0,6);e=e.match(/\((.*)\)/);if("fadeIn"===f)a.hide()[f](e?parseInt(e[1])||400:400)}var c=b.extend({},{effect:"show",placeholder:"data:img/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAMAAAAoyzS7AAAAA1BMVEXd3d3u346CAAAADUlEQVR42gECAP3/AAAAAgABUyucMAAAAABJRU5ErkJggg\x3d\x3d",threshold:0,axis:"y",width:null,height:null},a);b(d).each(function(){function a(){if(!f.is(":hidden")&&!f.data("$_lazyload_show_$")){var b=f[0].getBoundingClientRect();"y"!==c.axis&&c.axis||v.height()>b.top-c.threshold&&e(f,d,h,k);"x"===c.axis&&v.width()>b.left-c.threshold&&e(f,d,h,k)}}var f=b(this),d=b.nodeName(this,"img"),h=f.attr("data-src"),k=f.attr("data-srcset");c.width&&f.width(c.width);c.height&&f.height(c.height);c.placeholder&&(d?f.attr("src",c.placeholder):f.css("background-image","url("+c.placeholder+")"));a();v.on({scroll:a,resize:a})})},textBind:function(d,a){function e(c){b(a).each(function(){b(this)[b.nodeName(this,"input")?"val":"text"](c)})}b(d).each(function(){var c=b(this);c.on({focus:function(){c.on("input",function(){e(c.val())})},blur:function(){c.off("input")}})})},marquee:function(d,a){var e=b.extend({},{axis:"x"},a),c=1E3/60;b(d).each(function(){var a=b(this),f=a.children(),d=0,h=0,k="y"===e.axis;!k&&f.each(function(){d+=b(this).outerWidth(!0)});k&&f.each(function(){h+=b(this).outerHeight(!0)});if(!(!k&&d<a.width()||k&&h<a.height())){a.css("overflow","hidden");f.wrapAll('\x3csection class\x3d"helper-marquee-inner"\x3e\x3csection class\x3d"helper-marquee-default"\x3e\x3c/section\x3e\x3c/section\x3e');!k&&f.parent().width(d);k&&f.parent().height(h);var f=a.find(".helper-marquee-inner"),n=a.find(".helper-marquee-default");n.after(n.clone(!0)).next().attr("class","helper-marquee-repeat");k&&n.add(n.next()).css("float","none");!k&&f.width(2*d);k&&f.height(2*h);var p=function(){!k&&a.scrollLeft(a.scrollLeft()>n.width()?0:a.scrollLeft()+1);k&&a.scrollTop(a.scrollTop()>n.height()?0:a.scrollTop()+1)},m=window.setInterval(p,c);a.on({mouseenter:function(){return clearInterval(m)},mouseleave:function(){m=window.setInterval(p,c)}})}})},badge:function(d,a){var e=b.extend({},{color:"#f00",text:""},a);b(d).each(function(){var c=b(this);"static"===c.css("position")&&c.css("position","relative");!1===a?c.children("sup").remove():(c.addClass("helper-badge").append('\n\t\x3csup style\x3d"background-color:'+e.color+';"\x3e'+e.text+"\x3c/sup\x3e\n\t"),b.trim(e.text)||c.children("sup").addClass("helper-badge-dot"))})},progress:function(d,a){function e(b,a,e,d){0>=b&&(b=0);100<=b&&(b=100);a.width(b+"%");e.text(b+"%");c.change(b);"success"===c.status&&(a.css("backgroundColor","#08ba61"),d.find(".helper-progress-text-outside").empty().html(""+x.svg.success(20,20)).find("svg").css("transform","scale(0.85)"));"error"===c.status&&(a.css("backgroundColor","#ff3c4b"),d.find(".helper-progress-text-outside").empty().html(""+x.svg.error(20,20)).find("svg").css("transform","scale(0.85)").find("path").attr("fill","#ff3c4b"))}var c=b.extend({},{color:x.globalColor,textInside:!1,percentage:0,status:null,change:b.noop},a);b(d).each(function(){var a=b(this);if(a.children().first().is(".helper-progress-container")){var f=a.children().first();e(c.percentage,f.find(".helper-progress-line"),f.find("span"),a)}else a.empty().html('\n\t\t\t\t\t\t\t\x3csection class\x3d"helper-progress-container" style\x3d"display:none"\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"helper-progress-wrapper"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"helper-progress-line" style\x3d"background-color:'+c.color+';"\x3e\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"helper-progress-text-outside"\x3e0%\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/section\x3e\n\t\t\t'),f=a.find(".helper-progress-wrapper"),c.textInside?f.addClass("helper-progress-text-inside").find("div").append("\x3cspan\x3e0%\x3c/span\x3e").end().next().remove():f.css("width","calc(100% - 45px)"),e(c.percentage,f.find("div"),a.find("span"),a);a.children().show()})},loading:function(d,a,e){var c=b.isPlainObject(a),g="";b(d).each(function(){var e=b(this);if(!e.children(".helper-loading-container").length){e.is("body")||"static"===e.css("position")&&e.css("position","relative");var d="";c&&(g=a.shape);g=g||"ring";"circle"===g&&(d='\n\t\x3cdiv class\x3d"helper-loading-circle-a"\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"helper-loading-circle-b"\x3e\x3c/div\x3e\n\t');"ring"===g&&(d='\x3cdiv class\x3d"helper-loading-ring"\x3e\x3c/div\x3e');e.append('\n\t\x3csection class\x3d"helper-loading-container helper-noselect"\x3e\n\t\x3cdiv class\x3d"helper-loading-wrapper"\x3e\n\t\x3cdiv class\x3d"helper-loading-body"\x3e\n\t'+d+'\n\t\x3c/div\x3e\n\t\x3cdiv class\x3d"helper-loading-text"\x3e'+(c?a.text||"":"")+"\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3c/section\x3e\n\t");d=e.children().last().find(".helper-loading-text");c&&a.color&&(d.css("color",a.color),e.find(".helper-loading-circle-a, .helper-loading-circle-b").css("backgroundColor",a.color),e.find(".helper-loading-ring").css("borderLeftColor",a.color));d.text()?a.onlyText&&(e.children().find(".helper-loading-body").remove(),d.css("bottom","20px")):(d.parent().addClass("helper-loading-notext"),d.remove())}});!1===a&&b(d).find(".helper-loading-container").fadeOut(e||0,function(){b(this).remove()})},top:function(){function d(a){var c=b(a);if(c.is(":hidden"))v.on("scroll",function(){var a=b(this).scrollTop();300<a&&(c.stop().show(),c.addClass("helper-top-transition"));0===a&&c.stop().removeClass("helper-top-transition").hide()});c.on("click",function(){g.stop().animate({scrollTop:0},300)})}for(var a=arguments.length,e=Array(a),c=0;c<a;c++)e[c]=arguments[c];if(!b("section.helper-top").length){e.length&&!0!==e[0]||b("body").append('\x3csection class\x3d"helper-top helper-top-transition"\x3e\x3cdiv\x3e\x3c/div\x3e\x3c/section\x3e');var g=b("html, body");b("section.helper-top");e.length&&!0!==e[0]?!1===e[0]?v.scrollTop(C.height()):d(e):d("section.helper-top")}},imageView:function(d,a){var e=void 0,c=void 0,g=void 0;a&&(e=a.scale,c=a.switch,g=a.rotate);var f=[],l=[];b(d).each(function(){b(this).find("[data-imageview]").each(function(){var a=b(this).attr("data-imageview"),c=document.createElement("img");c.src=a;f.push(a);c.onload=function(){l.push(c.width)}})}).on("click","[data-imageview]",function(){var d=b(this).attr("data-imageview"),k=f.indexOf(d),n=l[k];if(!b(".helper-imageview").length){b("body").append('\n\t\x3cdiv class\x3d"helper-imageview"\x3e\n\t\x3cimg src\x3d"" ondragstart\x3d"return false"\x3e\n\t\x3cdiv class\x3d"helper-imageview-control helper-noselect"\x3e\n\t\x3ci class\x3d"helper-imageview-scale helper-imageview-scale-01"\x3e\x3ci\x3e\x3c/i\x3e\x3c/i\x3e\n\t\x3ci class\x3d"helper-imageview-scale helper-imageview-scale-02"\x3e\x3ci\x3e\x3c/i\x3e\x3c/i\x3e\n\t\x3ci class\x3d"helper-imageview-switch helper-imageview-switch-01"\x3e\x3ci\x3e\x3c/i\x3e\x3c/i\x3e\n\t\x3ci class\x3d"helper-imageview-switch helper-imageview-switch-02"\x3e\x3ci\x3e\x3c/i\x3e\x3c/i\x3e\n\t\x3ci class\x3d"helper-imageview-rotate helper-imageview-rotate-01"\x3e\x3ci\x3e\x3c/i\x3e\x3c/i\x3e\n\t\x3ci class\x3d"helper-imageview-rotate helper-imageview-rotate-02"\x3e\x3ci\x3e\x3c/i\x3e\x3c/i\x3e\n\t\x3c/div\x3e\n\t\x3ci class\x3d"helper-imageview-close"\x3e\x3ci\x3e\x3c/i\x3e\x3c/i\x3e\n\t\x3c/div\x3e\n\t'.replace('""','"'+d+'"'));var p=b(".helper-imageview"),m=p.find("img"),r=p.find(".helper-imageview-control"),t=r.next();a&&(d=6,!1===e&&(r.find(".helper-imageview-scale").hide(),d-=2),!1===c&&(r.find(".helper-imageview-switch").hide(),d-=2),!1===g&&(r.find(".helper-imageview-rotate").hide(),d-=2),d?r.width(44*d):r.remove());p.fadeIn(300);var u=!1;m.width(900>n?n:900).on("load",function(){function a(){5>h&&(h+=.2,m.css("transform","scale("+h+") rotate("+e+"deg)"))}function c(){1<h&&(h-=.2,m.css("transform","scale("+h+") rotate("+e+"deg)"))}function d(a){function c(a){m.attr("src",f[a]).css("transform","scale(1) rotate(0deg)").on("load",function(){b(this).css({marginTop:(v.height()-b(this).height())/2+" px",marginLeft:(v.width()-b(this).width())/2+"px"})});e=0;h=1}"prev"===a?0<k&&(k--,c(k)):k<f.length-1&&(k++,c(k))}if(!u){u=!u;m.css({marginTop:(v.height()-m.height())/2+"px",marginLeft:(v.width()-m.width())/2+"px"});var e=0,h=1;r.on("click","\x3e i",function(){m.css("transition",".3s");switch(b(this).index()){case 0:a();break;case 1:c();break;case 2:d("prev");break;case 3:d("next");break;case 4:e-=90;m.css("transform","scale("+h+") rotate("+e+"deg)");break;case 5:e+=90,m.css("transform","scale("+h+") rotate("+e+"deg)")}});m.on({wheelUp:function(){m.css("transition",".2s");a()},wheelDown:function(){m.css("transition",".2s");c()}});m.on("mousedown",function(b){var a=(b.originalEvent.pageX||b.originalEvent.targetTouches[0].pageX)-parseFloat(m.css("marginLeft")),c=(b.originalEvent.pageY||b.originalEvent.targetTouches[0].pageY)-parseFloat(m.css("marginTop"));m.css("transition","0s");C.on("mousemove",function(b){var e=(b.originalEvent.pageX||b.originalEvent.targetTouches[0].pageX)-a,d=(b.originalEvent.pageY||b.originalEvent.targetTouches[0].pageY)-c;b.originalEvent.preventDefault();m.css({marginLeft:e+"px",marginTop:d+"px"})});C.on("mouseup",function(){return C.off("mousemove")})});t.on("click",function(){return p.fadeOut(300,function(){return p.remove()})})}})}})},slideShow:function(d,a,e){if(Array.isArray(a)){var c=a.length,g=b.extend({},{effect:"slide",duration:700,autoPlay:!1,showDot:!0,showArrow:!0,arrowDOM:[],dotAlign:"center"},e),f="";b.each(a,function(b,a){f+='\x3cdiv class\x3d"helper-slideshow-part"\x3e\x3ca href\x3d"'+a.href+'"\x3e\x3cimg src\x3d"'+a.src+'"\x3e\x3cp\x3e\x3cspan\x3e'+a.title+"\x3c/span\x3e\x3c/p\x3e\x3c/a\x3e\x3c/div\x3e"});var f='\x3csection class\x3d"helper-slideshow-wrapper"\x3e'+f+"\x3c/section\x3e",l='\x3cdiv class\x3d"helper-slideshow-dot"\x3e'+Array(c+1).join("\x3ci\x3e\x3c/i\x3e")+"\x3c/div\x3e";b(d).addClass("helper-slideshow-container").empty().html(f).each(function(){var a=b(this),e=[a.children(".helper-slideshow-wrapper"),a.find(".helper-slideshow-part"),a.find("img")],d=e[0],f=e[1],e=[a.innerWidth(),a.innerHeight()],m=e[0],r=e[1],t=void 0;(function(e,h,k){function p(b){G.find("i").eq(b).addClass("active").siblings().removeClass("active")}function n(b){g.effect.match(/(fade|show)/)&&("show"===g.effect&&(u=0),b>c-1&&(b=0),0>b&&(b=c-1),f.eq(b).is(":animated")||f.eq(b).fadeIn(u,function(){t=b;p(b)}).siblings().fadeOut(u));"slide"!==g.effect||q||(q=!0,d.stop().transition({x:-m*b-m+"px"},u,"cubic-bezier(0.57, 0, 0.275, 1)",function(){q=!1;-1===b&&(d.css("x","-"+m*c+"px"),b=c-1);b===c&&(d.css("x","-"+m+"px"),b=0);p(b);t=b}))}t=k||0;d.find("a").each(function(){"undefined"===b(this).attr("href")&&b(this).children().unwrap()});d.find("p").each(function(){"undefined"===b(this).children().html()&&b(this).remove()});var G=void 0;g.showDot&&(a.append(l),G=a.find(".helper-slideshow-dot"),G.addClass("helper-slideshow-dot-"+(a.find("p").length?"right":"center")).children().first().addClass("active"),a.find("p").length&&G.addClass("helper-slideshow-dot-right"));e=void 0;g.showArrow&&(a.append('\x3ci class\x3d"helper-slideshow-left helper-slideshow-public-left"\x3e\x3csvg viewBox\x3d"0 0 1024 1024" version\x3d"1.1" width\x3d"40" height\x3d"40"\x3e\x3cpath d\x3d"M532.526499 904.817574L139.506311 511.797385 532.526499 118.777197c12.258185-12.258185 12.432147-32.892131-0.187265-45.51052-12.707416-12.707416-32.995485-12.703323-45.511543-0.187265L75.166957 484.739123c-7.120165 7.120165-10.163477 17.065677-8.990768 26.624381-1.500167 9.755178 1.5104 20.010753 8.990768 27.491121l411.660734 411.660734c12.258185 12.258185 32.892131 12.432147 45.511543-0.187265 12.707416-12.707416 12.7023-32.995485 0.187265-45.51052z" fill\x3d"#fff"\x3e\x3c/path\x3e\x3c/svg\x3e\x3c/i\x3e\x3ci class\x3d"helper-slideshow-right helper-slideshow-public-right"\x3e\x3csvg viewBox\x3d"0 0 1024 1024" version\x3d"1.1" width\x3d"40" height\x3d"40"\x3e\x3cpath d\x3d"M492.675886 904.817574L885.696074 511.797385 492.675886 118.777197c-12.258185-12.258185-12.432147-32.892131 0.187265-45.51052 12.707416-12.707416 32.995485-12.703323 45.511543-0.187265l411.660734 411.660734c7.120165 7.120165 10.163477 17.065677 8.990768 26.624381 1.500167 9.755178-1.5104 20.010753-8.990768 27.491121L538.374694 950.515359c-12.258185 12.258185-32.892131 12.432147-45.511543-0.187265-12.707416-12.707416-12.703323-32.995485-0.187265-45.51052z" fill\x3d"#fff"\x3e\x3c/path\x3e\x3c/svg\x3e\x3c/i\x3e'),e=a.find(".helper-slideshow-left, .helper-slideshow-right"));g.arrowDOM.length&&(a.find(".helper-slideshow-left, .helper-slideshow-right").remove(),b(g.arrowDOM[0]).addClass("helper-slideshow-public-left"),b(g.arrowDOM[1]).addClass("helper-slideshow-public-right"),e=b(g.arrowDOM[0]).add(b(g.arrowDOM[1])));f.width(m).height(r);"fade"===g.effect&&f.addClass("helper-slideshow-fade");"slide"===g.effect&&d.width((c+2)*m).css("x","-"+m+"px").prepend(f.last().clone(!0)).append(f.first().clone(!0));var u=g.duration,q=!1;G.on("click","i",function(a){a.stopPropagation();n(b(this).index())});e.on("click",function(a){a.stopPropagation();q||(b(this).hasClass("helper-slideshow-public-left")&&t--,b(this).hasClass("helper-slideshow-public-right")&&t++,n(t))});if(Number.isSafeInteger(g.autoPlay)){var v=window.setInterval(function(){t++;n(t)},g.autoPlay);a.on({mouseenter:function(){return window.clearInterval(v)},mouseleave:function(){v=window.setInterval(function(){t++;n(t)},g.autoPlay)}})}})()})}},collapse:function(d,a,e){if(Array.isArray(a)&&a.length){var c="";b.each(a,function(b,a){c+='\n\t\t\t\t\t\t\x3cdiv class\x3d"helper-collapse-part"\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"helper-collapse-title"\x3e\n\t\x3cspan\x3e'+(a.title||"")+'\x3c/span\x3e\n\t\x3ci class\x3d"helper-collapse-arrow"\x3e\n\t'+x.svg.arrow()+'\x3c/i\x3e\n\t\x3c/div\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"helper-collapse-content"\x3e\n\t\x3cdiv\x3e'+(a.content||"")+"\x3c/div\x3e\n\t\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t"});var c='\n\t\x3csection class\x3d"helper-collapse-container"\x3e\n\t'+c+"\n\t\x3c/section\x3e\n\t",g=b.extend({},{accordion:!1,arrow:!0,open:null},e);b(d).each(function(){var a=b(this);a.empty().html(c);var e=a.find(".helper-collapse-title");a.on("click",".helper-collapse-title",function(){var a=b(this),c=a.next(),e=a.parent().siblings(),d=c.children().outerHeight(!0);a.toggleClass("helper-collapse-arrow-animate");c.height(c.hasClass("helper-collapse-show")?0:d).toggleClass("helper-collapse-show");g.accordion&&(e.children(".helper-collapse-content").height(0).removeClass("helper-collapse-show"),e.children(".helper-collapse-title").removeClass("helper-collapse-arrow-animate"))});g.arrow||e.find(".helper-collapse-arrow").remove();Array.isArray(g.open)&&g.open.length&&(e=g.accordion?[g.open.pop()]:g.open,b.each(e,function(b,c){b=a.find(".helper-collapse-title").eq(c);var e=b.next();b.addClass("helper-collapse-arrow-animate");e.addClass("helper-collapse-show helper-collapse-no-transition").height(e.children().outerHeight(!0));window.setTimeout(function(){e.removeClass("helper-collapse-no-transition")},x.interval)}))})}},page:function(d,a){function e(b){b.addClass("active").siblings().removeClass("active")}function c(b){if(10<k)switch(b){case "first":n.css("marginLeft",0);break;case "last":n.css("marginLeft",(10-k)*m+"px");break;case "prev":0===(h+1)%10&&0<h&&n.css("marginLeft",(10<=h?-(h+1-10):0)*m+"px");break;case "next":0===h%10&&h<k&&n.css("marginLeft",(10<=k-h?-h/10*10:-(k-10))*m+"px")}l.find("input").val(h+1)}function g(b){l.find("i").filter("[data-id\x3d"+b+"]").trigger("click");if(10<k){b=(b-10)/10+"";b=b.includes(".")?b.substring(b.indexOf(".")+1):0;var a;10<=k-h?(a=-h/10*10+Number(b)-1,0===b&&(a+=10),-10<a&&(a=0)):a=10-k;n.css("marginLeft",a*m+"px")}}var f=b.extend({},{total:0,pageSize:0,showTotal:!1,showTo:!1,currentPage:1,change:b.noop},a),l=b(d),h=0;d="";var k=f.total/f.pageSize,k=1<=k?0<f.total%f.pageSize?~~k+1:k:k;1>k&&(k=1);for(a=1;a<=k;a++)d+='\x3ci data-id\x3d"'+a+'"\x3e'+a+"\x3c/i\x3e";d="\x3cdiv\x3e"+d+"\x3c/div\x3e";l.empty().css("overflow","hidden").html('\n\t\x3cdiv class\x3d"helper-page-container helper-noselect"\x3e\n\t\x3cdiv class\x3d"helper-page-first"\x3e\x3ci\x3e\x3c/i\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"helper-page-prev"\x3e\x3ci\x3e\x3c/i\x3e\x3c/div\x3e\t\x3cdiv class\x3d"helper-page-wrapper"\x3e'+d+'\x3c/div\x3e\n\t\x3cdiv class\x3d"helper-page-next"\x3e\x3ci\x3e\x3c/i\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"helper-page-last"\x3e\x3ci\x3e\x3c/i\x3e\x3c/div\x3e\n\t\x3c/div\x3e\n\t');var n=l.find(".helper-page-wrapper div"),p=n.children(),m=p.outerWidth(!0);p.first().addClass("active");n.width(p.outerWidth(!0)*k).on("click","i",function(){var a=b(this),c=a.attr("data-id");h=c-1;a.is(".active")||(f.change(~~c),e(a));l.find("input").val(h+1)});l.find(".helper-page-first").on("click",function(){0!==h&&(e(p.first()),h=0,c("first"),f.change(~~p.first().attr("data-id")))});l.find(".helper-page-last").on("click",function(){h!==k-1&&(e(p.last()),h=k-1,c("last"),f.change(~~p.last().attr("data-id")))});l.find(".helper-page-prev").on("click",function(){0<h&&(h--,c("prev"),e(p.eq(h)),f.change(~~p.eq(h).attr("data-id")))});l.find(".helper-page-next").on("click",function(){h<k-1&&(h++,e(p.eq(h)),c("next"),f.change(~~p.eq(h).attr("data-id")))});f.showTotal&&l.prepend('\n\t\x3cdiv class\x3d"helper-page-total"\x3e\n\t'+decodeURI(q.page.total)+" \x3cspan\x3e"+f.total+"\x3c/span\x3e "+decodeURI(q.page.units)+"\n\t\x3c/div\x3e\n\t");d=f.currentPage;d>k&&(d=k);1<f.currentPage&&g(d);if(f.showTo)l.append('\n\t\x3cdiv class\x3d"helper-page-to"\x3e\n\t'+decodeURI(q.page.to)+'\n\t\x3cinput type\x3d"text"\x3e\n\t'+decodeURI(q.page.page)+"\n\t\x3c/div\x3e\n\t").find("input").val(d).on("focus",function(){var a=this;C.on("keyup",function(c){c=c.keyCode;if(108==c||13==c)if(c=b.trim(b(a).val()))c>k&&(c=k),Number.isSafeInteger(Number(c))||(c=1),b(a).val(c),g(c)})});l.children().wrapAll('\x3cdiv class\x3d"helper-page-outer"\x3e\x3c/div\x3e')},upload:function(d,a){var e=b.extend({},{multiple:!1,type:void 0,size:void 0,typeError:b.noop,sizeError:b.noop,change:b.noop},a);b(d).each(function(){var a=b(this);a.after('\x3cinput type\x3d"file" style\x3d"display:none !important;"\x3e');var d=a.next();e.multiple&&d.attr("multiple","multiple");a.on("click",function(){d.click().off("change").on("change",function(a){var c=[];a=function(a,f){var g={name:null,size:null,type:null,suffix:null,lastModified:null,lastModifiedDate:null},h=d[0].files[a];b.each(g,function(b){g[b]=h[b]});a=h.name.substring(h.name.lastIndexOf(".")+1).toLowerCase();f=(h.size/1024).toFixed(2);var l=[];"string"===b.type(e.type)&&e.type&&(l=[e.type]);Array.isArray(e.type)&&(l=e.type);l.length&&!l.includes(a)&&(e.typeError(a),g.error=!0);"number"===b.type(e.size)&&0<e.size&&f>e.size&&(g.error=!0,e.sizeError());g.suffix=a;g.size=f+"kb";c.push(g)};for(var f=0,g=d[0].files.length;f<g;f++)a(f,g);var n=[];c.forEach(function(b){b.error||n.push(b)});e.change(n)})})})},datePicker:function(d,a){function e(b){b=String(b);return 2>b.length?"0"+b:b}var c=b.extend({},{format:"yyyy-mm-dd",confirm:!1,placeholder:"",change:b.noop},a);a=new Date;a=[a.getFullYear(),a.getMonth()+1,a.getDate()];var g=a[0],f=a[1],l=a[2],h="",k="",n="";for(a=1900;2100>a;a++)h+="\x3ci\x3e"+a+"\x3c/i\x3e";for(a=1;13>a;a++)k+="\x3ci\x3e"+a+"\x3c/i\x3e";q.datepicker.week.forEach(function(b){n+="\x3ci\x3e"+decodeURI(b)+"\x3c/i\x3e"});c.format.replace("yyyy",g).replace("mm",f).replace("dd",l);d=[b(d),b("body")];var p=d[1];d[0].addClass("helper-datepicker-sign").each(function(){function a(a){function m(a,c){D.empty();for(var d=(new Date(a,c-1,1)).getDay(),e=[31,28+(0==a%100?0==a%400?1:0:0==a%4?1:0),31,30,31,30,31,31,30,31,30,31],h="",k=0;k<e[c-1];k++)h+='\x3ci class\x3d"helper-datepicker-days helper-datepicker-sign"\x3e'+(k+1)+"\x3c/i\x3e";0<d&&(h=Array(d+1).join('\x3ci class\x3d"helper-datepicker-placeholder helper-datepicker-placeholder-front helper-datepicker-sign"\x3e\x3c/i\x3e')+h);D.append(h);d=D.find(".helper-datepicker-placeholder-front");k=d.length;e=void 0;e=2===c-1?28+(0==a%100?0==a%400?1:0:0==a%4?1:0):1<c-1?-1<[1,3,5,7,8,10,12].indexOf(c-1)?31:30:31;if(k){h="";for(k=e-k+1;k<e+1;k++)h+='\x3ci class\x3d"helper-datepicker-placeholder helper-datepicker-placeholder-front helper-datepicker-sign"\x3e'+k+"\x3c/i\x3e";d.remove();D.prepend(h)}h=D.children().length;if(42>h){d="";e=1;for(h=42-h+1;e<h;e++)d+='\x3ci class\x3d"helper-datepicker-placeholder helper-datepicker-placeholder-end helper-datepicker-sign"\x3e'+e+"\x3c/i\x3e";D.append(d)}a===g&&c===f&&D.find("i").each(function(){b(this).text()!=l||b(this).is(".helper-datepicker-placeholder")||b(this).addClass("helper-datepicker-now")})}function u(b,a){m(b,a);K.text(b+decodeURI(q.datepicker.year));x.text(a+decodeURI(q.datepicker.month));y=b;A=a}b(".helper-datepicker-container").length&&b(".helper-datepicker-container").remove();p.append('\n\t\x3csection class\x3d"helper-datepicker-container helper-noselect"\x3e\n\t\x3cdiv class\x3d"helper-datepicker-wrapper"\x3e\n\t\x3cdiv class\x3d"helper-datepicker-header"\x3e\n\t\x3cspan class\x3d"helper-datepicker-prev-year helper-datepicker-control"\x3e\n\t\x3ci class\x3d"helper-datepicker-left"\x3e\x3c/i\x3e\n\t\x3ci class\x3d"helper-datepicker-left"\x3e\x3c/i\x3e\n\t\x3c/span\x3e\n\t\x3cspan class\x3d"helper-datepicker-prev-month helper-datepicker-control"\x3e\n\t\x3ci class\x3d"helper-datepicker-left"\x3e\x3c/i\x3e\n\t\x3c/span\x3e\n\t\x3cspan class\x3d"helper-datepicker-text"\x3e\n\t\x3cb class\x3d"helper-datepicker-year"\x3e\x3c/b\x3e\x3cb class\x3d"helper-datepicker-month"\x3e\x3c/b\x3e\n\t\x3c/span\x3e\n\t\x3cspan class\x3d"helper-datepicker-next-month helper-datepicker-control"\x3e\n\t\x3ci class\x3d"helper-datepicker-right"\x3e\x3c/i\x3e\n\t\x3c/span\x3e\n\t\x3cspan class\x3d"helper-datepicker-next-year helper-datepicker-control"\x3e\n\t\x3ci class\x3d"helper-datepicker-right"\x3e\x3c/i\x3e\n\t\x3ci class\x3d"helper-datepicker-right"\x3e\x3c/i\x3e\n\t\x3c/span\x3e\n\t\x3c/div\x3e\n\t\x3cdiv class\x3d"helper-datepicker-week"\x3e'+n+'\x3c/div\x3e\n\t\x3cdiv class\x3d"helper-datepicker-date"\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"helper-datepicker-confirm"\x3e\n\t\x3cdiv\x3e\n\t\x3cbutton type\x3d"button"\x3e\u6e05\u7a7a\x3c/button\x3e\n\t\x3cbutton type\x3d"button" class\x3d"helper-button-info"\x3e\u786e\u5b9a\x3c/button\x3e\n\t\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3cdiv class\x3d"helper-datepicker-year-wrapper"\x3e'+h+'\x3c/div\x3e\n\t\x3cdiv class\x3d"helper-datepicker-month-wrapper"\x3e'+k+"\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3c/section\x3e\n\t");var r=b(".helper-datepicker-container"),D=r.find(".helper-datepicker-date"),K=r.find(".helper-datepicker-year"),x=r.find(".helper-datepicker-month"),F=r.find(".helper-datepicker-prev-year"),z=r.find(".helper-datepicker-prev-month"),w=r.find(".helper-datepicker-next-year"),E=r.find(".helper-datepicker-next-month"),B=r.find(".helper-datepicker-control"),L=r.find(".helper-datepicker-year-wrapper"),M=r.find(".helper-datepicker-month-wrapper");a=r.find(".helper-datepicker-confirm");c.confirm||a.remove();r.css({marginLeft:v+"px",marginTop:G+1+"px"}).find("*").addClass("helper-datepicker-sign");m(g,f);K.text(g+decodeURI(q.datepicker.year));x.text(f+decodeURI(q.datepicker.month));var y=g,A=f;F.on("click",function(){1900<y&&u(y-1,A)});w.on("click",function(){2099>y&&u(y+1,A)});z.on("click",function(){1<A?u(y,A-1):1900<y&&u(y-1,12)});E.on("click",function(){12>A?u(y,A+1):2099>y&&u(y+1,1)});K.on("click",function(){B.addClass("helper-datepicker-noclick");M.hide();L.show().on("click","i",function(){u(parseInt(b(this).text()),A);L.hide();B.removeClass("helper-datepicker-noclick")})});x.on("click",function(){B.addClass("helper-datepicker-noclick");L.hide();M.show().on("click","i",function(){u(y,parseInt(b(this).text()));M.hide();B.removeClass("helper-datepicker-noclick")})});if(F=d.data("date_selected")){var F=[F[0],F[1],F[2]],z=F[0],w=F[1],I=F[2],w=0==w[0]?w[1]:w,I=0==I[0]?I[1]:I;m(z,w);y=Number(z);A=Number(w);K.text(z+decodeURI(q.datepicker.year));x.text(w+decodeURI(q.datepicker.month));D.find(".helper-datepicker-days").each(function(){b(this).text()==I&&b(this).addClass("active")})}var H="",J="";D.on("click",".helper-datepicker-days",function(){var a=b(this);H=a.text();a.addClass("active").siblings().removeClass("active");D.find(".helper-datepicker-now").removeClass("helper-datepicker-now");J=c.format.replace("yyyy",y).replace("mm",A).replace("dd",H);c.confirm||(c.change([String(y),e(A),e(H)],J),d[t?"val":"text"](J).data("date_selected",[y,e(A),e(H)]),r.remove())});if(c.confirm)a.find("button").first().on("click",function(){d[t?"val":"text"]("").removeData("date_selected")}).next().on("click",function(){c.change([String(y),e(A),e(H)],J);d[t?"val":"text"](J).data("date_selected",[y,e(A),e(H)]);r.remove()});C.on("click focus",function(a){!b(a.target).is(".helper-datepicker-sign")&&b(".helper-datepicker-container").length&&r.remove()})}var d=b(this),t=d.is("input, textarea"),u=[d.offset().top+d.outerHeight(),d.offset().left],G=u[0],v=u[1];t&&c.placeholder&&d.attr("placeholder",c.placeholder);t&&d.attr("readonly","readonly").addClass("helper-datepicker-input");d.css("overflow","hidden").on(t?"focus":"click",function(){a(b(this))})})},select:function(d,a,e){var c={placeholder:decodeURI(q.select.placeholder),search:!1,change:b.noop},g=b.extend({},c,e),c=["",[]],f=c[0],l=c[1],h=c[2],k=c[3];a[0].value&&b.each(a,function(b,a){f+='\n\t\x3cli data-id\x3d"'+(a.value||"")+'"\x3e\x3cspan\x3e'+(a.text||"")+"\x3c/span\x3e\x3c/li\x3e\n\t";a.selected&&(h=b)});a[0].name&&(k=!0,b.each(a,function(a,c){f+='\x3cp class\x3d"helper-select-group-title"\x3e\x3cspan\x3e'+c.name+"\x3c/span\x3e\x3c/p\x3e\x3cul\x3e";b.each(c.data,function(b,a){l.push(a);f+='\n\x3cli data-id\x3d"'+(a.value||"")+'"\x3e\x3cspan\x3e'+(a.text||"")+"\x3c/span\x3e\x3c/li\x3e\n"});f+="\x3c/ul\x3e";c.selected&&(h=a)}));b(d).each(function(){function c(){t.removeClass("helper-select-wrapper-show").find(".helper-select-search").val("");r.removeClass("helper-select-input-active");b(".helper-select-doing").removeClass("helper-select-doing");u.delay(300).fadeIn(1)}var d=b(this);if(!a&&!e)return d.children().data("_select_value_");d.empty().html('\n\t\x3cdiv class\x3d"helper-select-container helper-noselect"\x3e\n\t\x3cdiv class\x3d"helper-select-input helper-select-placeholder"\x3e\x3cspan\x3e'+g.placeholder+"\x3c/span\x3e\x3ci\x3e"+x.svg.arrow()+'\x3c/i\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"helper-select-wrapper"\x3e\n'+(k?f:"\x3cul\x3e"+f+"\x3c/ul\x3e")+"\n\t\x3c/div\x3e\n\t\x3c/div\x3e\n\t");var m=[d.find(".helper-select-input"),d.find(".helper-select-wrapper"),d.find("i")],r=m[0],t=m[1],m=m[2],u=t.find("li");if(g.search)t.prepend('\n\x3cinput \ntype\x3d"text" \nplaceholder\x3d"'+decodeURI(q.select.search)+'" \nclass\x3d"helper-select-search" \nautocomplete\x3d"off"\nmaxlength\x3d"100"\nspellcheck\x3d"false"\x3e\n').find(".helper-select-search").on("input",function(){var c=b(this).val();c?(a[0].value&&b.each(a,function(b,a){u.eq(b)[a.text.includes(c)?"show":"hide"]()}),a[0].name&&b.each(l,function(b,a){u.eq(b)[a.text.includes(c)?"show":"hide"]()})):u.show();u.filter(":visible").length?t.find(".helper-select-search-nodata").remove().end().find(".helper-select-group-title").show():t.find(".helper-select-search-nodata").length||t.append('\x3cp class\x3d"helper-select-search-nodata"\x3e'+decodeURI(q.select.searchNoData)+"\x3c/p\x3e").find(".helper-select-group-title").hide()});m.find("svg").attr({width:12,height:12});r.on("click",function(){var a=b(this);b(".helper-select-doing").not(a).removeClass("helper-select-doing helper-select-input-active").next().removeClass("helper-select-wrapper-show");a.hasClass("helper-select-doing")?(a.removeClass("helper-select-doing helper-select-input-active"),t.removeClass("helper-select-wrapper-show")):(a.addClass("helper-select-doing helper-select-input-active"),t.addClass("helper-select-wrapper-show"))});d.on("click","li",function(){var a=b(this),e=[a.attr("data-id"),a.find("span").text()],f=e[0],e=e[1];r.removeClass("helper-select-placeholder").children("span").text(e);a.addClass("helper-select-active").siblings().removeClass("helper-select-active");c();d.children().data("_select_value_",[f,e]);g.change(f,e)});h&&t.find("li").eq(h).trigger("click");d.add(d.find("*")).addClass("helper-select-sign");C.on("click",function(a){!b(a.target).is(".helper-select-sign")&&b(".helper-select-container").length&&c()})})},radio:function(){for(var d=arguments.length,a=Array(d),e=0;e<d;e++)a[e]=arguments[e];d=b(a[0]);e=a.length;if(1===e)return d.first().find(".helper-radio-checked").attr("data-value");2===e&&b.isPlainObject(a[1])&&d.each(function(){var c=b(this);c.hasClass("helper-radio")&&b.each(a[1],function(a,b){switch(a){case "disabled":c[b?"addClass":"removeClass"]("helper-radio-disabled");break;case "checked":c[b?"addClass":"removeClass"]("helper-radio-checked");b&&c.siblings().removeClass("helper-radio-checked");break;case "text":c.children("span").text(b);break;case "id":c.attr("id",b)}})});if(2<=e&&Array.isArray(a[1])){var c=b.extend({},{vertical:!1,change:b.noop},a[2]),g="";b.each(a[1],function(b,a){g+='\n\t\x3cdiv \n\tclass\x3d"helper-radio'+(!0===a.checked?" helper-radio-checked":"")+(!0===a.disabled?" helper-radio-disabled":"")+'"\n\tid\x3d"'+(a.id||"")+'"\n\tdata-value\x3d"'+(a.value||"")+'"\x3e\n\t\x3ci\x3e\x3c/i\x3e\n\t\x3cspan\x3e'+(a.text||"")+"\x3c/span\x3e\n\t\x3c/div\x3e\n\t"});d.each(function(){var a=b(this);a.empty().html('\n\t\x3csection class\x3d"helper-radio-container"\x3e\n\t'+g+"\n\t\x3c/section\x3e\n\t");a.find(".helper-radio-checked").last().siblings(".helper-radio-checked").removeClass("helper-radio-checked");a.find("helper-radio");a.on("click",".helper-radio",function(){var a=b(this);a.hasClass("helper-radio-disabled")||(!a.hasClass("helper-radio-checked")&&c.change.apply(a,[a.attr("data-value"),a.children("span").text()]),a.addClass("helper-radio-checked").siblings().removeClass("helper-radio-checked"))});c.vertical&&a.addClass("helper-radio-vertical")})}},checkbox:function(){var d=b(0>=arguments.length?void 0:arguments[0]),a=arguments.length;if(1===a){var e=[];d.first().find(".helper-checkbox-checked").each(function(){e.push(b(this).attr("data-value"))});return e.join(",")}var c=d.find(".helper-checkbox");!0===(1>=arguments.length?void 0:arguments[1])&&c.addClass("helper-checkbox-checked");!1===(1>=arguments.length?void 0:arguments[1])&&c.removeClass("helper-checkbox-checked");if(2<=a&&Array.isArray(1>=arguments.length?void 0:arguments[1])){var g=b.extend({},{vertical:!1,change:b.noop},2>=arguments.length?void 0:arguments[2]),f="";b.each(1>=arguments.length?void 0:arguments[1],function(a,b){f+='\n\t\x3cdiv \n\tclass\x3d"helper-checkbox'+(!0===b.checked?" helper-checkbox-checked":"")+(!0===b.disabled?" helper-checkbox-disabled":"")+'"\n\tid\x3d"'+(b.id||"")+'"\n\tdata-value\x3d"'+(0===b.value?0:b.value||"")+'"\x3e\n\t\x3ci\x3e\x3c/i\x3e\n\t\x3cspan\x3e'+(0===b.text?0:b.text||"")+"\x3c/span\x3e\n\t\x3c/div\x3e\n\t"});d.each(function(){var a=b(this);a.empty().html('\n\t\x3csection class\x3d"helper-checkbox-container"\x3e\n\t'+f+"\n\t\x3c/section\x3e\n\t");a.find("helper-checkbox");a.on("click",".helper-checkbox",function(){var a=b(this);a.hasClass("helper-checkbox-disabled")||(a.toggleClass("helper-checkbox-checked"),g.change.apply(a,[a.attr("data-value"),a.children("span").text()]))});g.vertical&&a.addClass("helper-checkbox-vertical")})}},dialog:function(d){function a(){B.close(c.afterClose)}var e={title:decodeURI(q.dialog.title),content:"",contentLine:!0,contentBgColor:"#fff",contentHeight:"auto",contentScroll:!0,iframe:"",darkMode:!1,width:500,fullscreen:!1,closeIcon:!0,showButton:!0,bodyScroll:!0,mask:!0,esc:!0,borderRadius:6,draggable:!1,yesText:decodeURI(q.dialog.yes),noText:decodeURI(q.dialog.no),yesCallback:b.noop,noCallback:b.noop,autoClose:!1,afterClose:b.noop,__TYPE__:!1,__TYPE_TITLE__:"",__TYPE_CONTENT__:""},c=b.extend({},e,d),g=b("body");if(!b(".helper-dialog-container").length){g.append('\n\t\x3csection class\x3d"helper-dialog-container"\x3e\n\t\x3cdiv class\x3d"helper-dialog-mask"\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"helper-dialog-wrapper"\x3e\n\t\x3cdiv class\x3d"helper-dialog-header"\x3e\n\t\x3cp class\x3d"helper-dialog-title"\x3e\x3c/p\x3e\n\t\x3ci class\x3d"helper-dialog-close helper-noselect"\x3e\x26#10005\x3c/i\x3e\n\t\x3c/div\x3e\n\t\x3cdiv class\x3d"helper-dialog-content"\x3e\x3cdiv\x3e\x3c/div\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"helper-dialog-footer helper-noselect"\x3e\n\t\x3cdiv class\x3d"helper-dialog-yes"\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"helper-dialog-no"\x3e\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3c/section\x3e\n\t');c.bodyScroll||g.addClass("helper-body-noscroll");var f=b(".helper-dialog-container"),l=[f.find(".helper-dialog-mask"),f.find(".helper-dialog-wrapper"),f.find(".helper-dialog-header"),f.find(".helper-dialog-title"),f.find(".helper-dialog-close"),f.find(".helper-dialog-content"),f.find(".helper-dialog-footer"),f.find(".helper-dialog-yes"),f.find(".helper-dialog-no")];d=l[0];var h=l[1],k=l[2],n=l[3],e=l[4],p=l[5],m=l[6],r=l[7],l=l[8];c.mask||d.remove();h.width(c.width>v.width()?v.width():c.width).css("borderRadius",c.borderRadius+"px");c.fullscreen&&h.css({top:0,left:0,width:"100%",height:"100%",borderRadius:0});n.html(c.title);c.closeIcon||e.remove();c.contentLine||p.css({border:"none",padding:"0"});p.css("backgroundColor",c.contentBgColor).height(c.contentHeight).children().html(c.content);c.contentScroll||p.css("overflowY","hidden");c.iframe&&p.html('\x3ciframe src\x3d"'+c.iframe+'" frameborder\x3d"0" scrolling\x3d"auto" width\x3d"100%" height\x3d"'+c.contentHeight+'"\x3e\x3c/iframe\x3e');c.darkMode&&h.addClass("helper-dialog-dark-mode");r.html(c.yesText);l.html(c.noText);c.showButton||(m.remove(),c.contentLine||p.css("marginBottom","15px"));if(c.fullscreen)n=function(){return p.outerHeight(v.height()-k.outerHeight()-m.outerHeight())},n(),v.on("resize",n);else{var t=c.__TYPE__?10:0;"string"===b.type(c.__TYPE__)&&(k.remove(),h.width(430),p.children().html('\n\t\t\x3cdiv class\x3d"helper-dialog-type-left"\x3e'+x.svg[c.__TYPE__]()+'\x3c/div\x3e\n\t\t\x3cdiv class\x3d"helper-dialog-type-right"\x3e\n\t\t\x3cp class\x3d"helper-dialog-type-right-title"\x3e'+(c.__TYPE_TITLE__||c.__TYPE_CONTENT__)+"\x3c/p\x3e\n\t\t\x3cp\x3e"+(c.__TYPE_TITLE__?c.__TYPE_CONTENT__:"")+"\x3c/p\x3e\n\t\t\x3c/div\x3e\n\t\t"));h.outerHeight()>v.height()&&p.outerHeight(v.height()-k.outerHeight()-m.outerHeight()+t);h.css({marginLeft:"-"+h.outerWidth()/2+"px",marginTop:"-"+(h.outerHeight()+t)/2+"px"});if(c.draggable)n.css("cursor","move").on("mousedown",function(a){g.addClass("helper-noselect");var b=a.pageX-h.offset().left,c=a.pageY-h.offset().top,d=v.width(),e=v.height(),f=h.width(),k=h.height(),l=v.scrollTop(),m=v.scrollLeft();C.on("mousemove",function(a){var g=a.pageX-b-m;a=a.pageY-c-l;0>g&&(g=0);0>a&&(a=0);g>d-f&&(g=d-f);a>e-k&&(a=e-k);h.addClass("helper-noselect").css({left:g+"px",top:a+"px",marginLeft:0,marginTop:0})}).on("mouseup",function(){g.add(h).removeClass("helper-noselect");C.off("mousemove")})})}d.transition({opacity:1});h.transition({scale:[1,1],opacity:1},300,function(){var b=c.autoClose;Number.isSafeInteger(b)&&0<b&&(h.append('\x3cdiv class\x3d"helper-dialog-autoclose"\x3e\x3c/div\x3e'),f.find(".helper-dialog-autoclose").transition({scale:[1,1]},parseInt(b),"linear",function(){a()}))});e.on("click",function(){return a()});w.tool.key("esc",function(){return a()});r.on("click",function(){a();c.yesCallback()});l.on("click",function(){a();c.noCallback()})}},alert:function(d,a){var e=b.extend({},{title:"",content:"",type:"",showIcon:!0,close:!0,closeCallback:b.noop},a),c='\n\t\t\t\t\t\x3csection class\x3d"helper-alert-container"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"helper-alert-wrapper"\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"helper-alert-title"\x3e'+e.title+'\x3c/div\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"helper-alert-content"\x3e'+e.content+"\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3c/section\x3e\n\t\t\t";b(d).each(function(){var a=b(this);a.empty().append(c);var d=a.children(),a=d.find(".helper-alert-wrapper"),l=a.children().first();["info","success","warn","error"].includes(e.type)&&(d.addClass("helper-alert-"+e.type).prepend('\x3cdiv class\x3d"helper-alert-icon"\x3e'+x.svg[e.type](21,21)+"\x3c/div\x3e"),a.css("width","calc(100% - 36px)"),e.content||(d.find(".helper-alert-icon").css({scale:1,height:"21px"}),l.next().remove()));e.showIcon||(d.find(".helper-alert-icon").remove(),a.width("100%"));e.close&&(l.css("width","calc(100% - 20px)"),d.append('\x3cdiv class\x3d"helper-alert-close"\x3e'+x.svg.close()+"\x3c/div\x3e").find(".helper-alert-close").last().on("click",function(){d.fadeOut(200,function(){d.remove();e.closeCallback()})}))})},closeDialog:function(){return B.close(0<arguments.length&&void 0!==arguments[0]?arguments[0]:b.noop)},dialogInfo:function(b,a){return B.shortcuts(b,a,"info")},dialogSuccess:function(b,a){return B.shortcuts(b,a,"success")},dialogWarn:function(b,a){return B.shortcuts(b,a,"warn")},dialogError:function(b,a){return B.shortcuts(b,a,"error")},table:function(d,a){function e(){function a(){var a=[];(0<arguments.length&&void 0!==arguments[0]?arguments[0]:l).forEach(function(c){b.each(c,function(b,c){b=k.indexOf(b);a[b]="\n\t\t\t\t\x3ctd\x3e\n\t\t\t\t\t\x3cdiv\x3e\n\t\t\t\t\t\t\x3cspan\x3e"+c+"\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/td\x3e\n\t\t\t"});f+="\x3ctr\x3e"+a.join("")+"\x3c/tr\x3e";a=[]});if(d[0])return f}for(var c=arguments.length,d=Array(c),e=0;e<c;e++)d[e]=arguments[e];a();3===d.length&&(f="",b.isNumeric(h[0][d[1]])?h.sort(function(a){return function(b,c){return d[2]?b[a]-c[a]:c[a]-b[a]}}(d[1])):h[0][d[1]].includes("-")&&h.sort(function(a){return function(b,c){return d[2]?Date.parse(b[a])-Date.parse(c[a]):Date.parse(c[a])-Date.parse(b[a])}}(d[1])),d[0].find(".helper-table-tbody").empty().html(a(h)))}if(b.isPlainObject(a)){var c="",g="",f="",c=a.data.thead||[],l=a.data.tbody||[],h=b.extend(!0,[],l),k=[];c.forEach(function(a){k.push(a.label);g+='\n\t\t\t\t\x3ctd \n\t\t\t\t\tdata-label\x3d"'+a.label+'" \n\t\t\t\t\tclass\x3d"'+(a.sort?"helper-table-sort":"")+'" \n\t\t\t\t\twidth\x3d"'+(Number.isSafeInteger(a.width)?a.width:"auto")+'"\n\t\t\t\t\x3e\n\t\t\t\t\t\x3cdiv\x3e\n\t\t\t\t\t\t\x3cspan\x3e'+a.title+"\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/td\x3e"});g='\n\t\t\t\x3cthead class\x3d"helper-table-thead"\x3e\n\t\t\t\t\x3ctr\x3e\n\t\t\t\t\t'+g+"\n\t\t\t\t\x3c/tr\x3e\n\t\t\t\x3c/thead\x3e\n\t\t";e();var c='\n\t\t\x3cdiv class\x3d"helper-table"\x3e\n\t\t\t\x3ctable\x3e\n\t\t\t\t'+g+'\n\t\t\t\t\x3ctbody class\x3d"helper-table-tbody"\x3e\n\t\t\t\t\t'+f+"\n\t\t\t\t\x3c/tbody\x3e\n\t\t\t\x3c/table\x3e\n\t\t\x3c/div\x3e\n\t",n=w.tool.random(15,!1).toLowerCase();b("body").prepend('\n\t\t\t\t\t\x3ctemplate id\x3d"jsmodern-table-'+n+'" style\x3d"display:none!important;"\x3e\n\t\t\t\t\t\t'+c+"\n\t\t\t\t\t\x3c/template\x3e\n\t");var p=b("#jsmodern-table-"+n),c=p.contents(),n=[c.children(),c.find(".helper-table-thead")][1];n.find(".helper-table-sort div").append('\n\t\t\t\t\t\x3cspan class\x3d"helper-table-arrow"\x3e\n\t\t\t\t\t\t\x3ci class\x3d"helper-table-sort-up"\x3e\x3c/i\x3e\n\t\t\t\t\t\t\x3ci class\x3d"helper-table-sort-down"\x3e\x3c/i\x3e\n\t\t\t\t\t\x3c/span\x3e\n\t');a.center&&c.addClass("helper-table-center");a.stripe&&c.addClass("helper-table-stripe");a.hoverHighLight&&c.addClass("helper-table-hoverhighlight");if(!1===a.showHeader){var m=[];n.find("td").each(function(){"auto"!==b(this).attr("width")&&m.push([b(this).index(),b(this).attr("width")])});var r=c.find(".helper-table-tbody tr").first().children();m.forEach(function(a){r.eq(a[0]).attr("width",a[1])});n.remove()}b(d).each(function(){var a=b(this);a.empty().html(p.html());a.find(".helper-table-arrow i").on("click",function(){var c=b(this),d=c.parent().parent().parent();c.addClass("active").siblings().removeClass("active");d.siblings().find(".active").removeClass("active");d=d.attr("data-label");c=!!c.hasClass("helper-table-sort-up");e(a,d,c)})});p.remove()}},closeNotice:function(d){function a(a){a.transition({x:400,opacity:0},400,function(){a.remove();b(".helper-notice-container").children().length||b(".helper-notice-container").remove()})}d?a(b(".helper-notice-wrapper").filter('[data-notice-name\x3d"'+d+'"]')):a(b(".helper-notice-wrapper"))},notice:function(d){var a=b.extend({},{title:"",content:"",icon:!0,esc:!0,type:"info",name:"",autoClose:7E3,afterClose:b.noop},d);b(".helper-notice-container").length||b("body").append('\x3csection class\x3d"helper-notice-container"\x3e\x3c/section\x3e');d='\n\t\x3cdiv class\x3d"helper-notice-wrapper"\x3e\n\t\x3cdiv class\x3d"helper-notice-icon helper-notice-icon-'+a.type+' helper-noselect"\x3e\x3c/div\x3e\n\t\x3cdiv class\x3d"helper-notice-body"\x3e\n\t\x3cdiv class\x3d"helper-notice-title"\x3e'+a.title+'\x3c/div\x3e\n\t\x3cdiv class\x3d"helper-notice-content"\x3e'+a.content+'\x3c/div\x3e\n\t\x3c/div\x3e\n\t\x3ci class\x3d"helper-noselect"\x3e\x26#10005\x3c/i\x3e\n\t\x3c/div\x3e\n\t';var e=b(".helper-notice-container");e.append(d);d=e.find(".helper-notice-wrapper").last();var c=[d.find(".helper-notice-icon"),d.find(".helper-notice-title"),d.find(".helper-notice-content"),d.children("i")],g=c[0],f=c[3];a.name&&d.attr("data-notice-name",a.name);g.html(x.svg[a.type](25,25));a.icon||(g.next().width("100%"),g.remove());b.trim(a.content)||(d.css({height:"25px",lineHeight:"25px"}),f.css("marginTop","17px"));d.transition({x:0,opacity:1},300);f.on("click",function(){b(this).parent().transition({x:400,opacity:0},400,function(){b(this).remove();e.children().length||e.remove();a.afterClose()})});w.tool.key("esc",function(){return w.ui.closeNotice()});Number.isSafeInteger(a.autoClose)&&0<a.autoClose&&window.setTimeout(function(){f.trigger("click")},a.autoClose)},switch:function(d,a){var e=b.extend({},{open:!1,color:"",text:!0,change:b.noop},a);b(d).each(function(){var a=b(this),d=e.open;a.empty().html('\n\t\x3csection class\x3d"helper-switch-container helper-noselect"\x3e\n\t\x3cspan class\x3d"helper-switch-open"\x3e'+decodeURI(q.switch.open)+'\x3c/span\x3e\n\t\x3cspan class\x3d"helper-switch-close"\x3e'+decodeURI(q.switch.close)+'\x3c/span\x3e\n\t\x3cdiv class\x3d"helper-switch-dot"\x3e\x3c/div\x3e\n\t\x3c/section\x3e\n\t');var f=[a.find(".helper-switch-container"),a.find(".helper-switch-open"),a.find(".helper-switch-close"),a.find(".helper-switch-dot")],l=f[0],h=f[1],k=f[2],n=f[3];e.text||h.add(k).empty();e.open?(l.addClass("helper-switch-active"),d=!0,n.addClass("helper-switch-dot-active"),h.show(),k.hide()):(h.hide(),k.show());e.color&&(f="helper-switch-"+w.tool.random(10,!1).toLowerCase(),l.addClass(f),N.append("\n\t\t\t\t\t\t\t\x3cstyle\x3e\n\t\t\t\t\t\t\t\t.helper-switch-container."+f+".helper-switch-active {background: "+e.color+";}\n\t\t\t\t\t\t\t\x3c/style\x3e\n\t\t"));a.on("click",function(){l.toggleClass("helper-switch-active");d=!d;n.toggleClass("helper-switch-dot-active");d?(h.stop().fadeIn(200),k.stop().fadeOut(200)):(h.stop().fadeOut(200),k.stop().fadeIn(200));e.change(!!d)})})},share:function(d,a,e){if(d){var c=[encodeURIComponent(window.location.href),document.title,x.ua.match("firefox")],g=c[0],f=c[1],l=c[2];switch(d){case "qrcode":if(!b(".helper-share-qrcode-container").length){d=function(a){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:230,d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:230;k=a||b("\x3cdiv\x3e");k.qrcode({render:"canvas",text:decodeURIComponent(g),width:c,height:d,background:"#fff",foreground:"#000"});return k};if(!b.fn.qrcode)throw Error(decodeURI(q.jquery.qrcode));b("body").append('\n\x3csection class\x3d"helper-share-qrcode-container"\x3e\n\x3ci\x3e'+x.svg.close(14,14)+"\x3c/i\x3e\n\x3cp\x3e"+decodeURI(q.share.qrcode)+'\x3c/p\x3e\n\x3cdiv class\x3d"helper-share-qrcode-box"\x3e'+decodeURI(q.share.qrcodeText)+"\x3c/div\x3e\n\x3c/section\x3e\n");var c=[b(".helper-share-qrcode-container"),b(".helper-share-qrcode-box")],h=c[0],c=c[1],k=void 0;a?(a(d(null,e&&e[0],e&&e[1]).find("canvas").get(0)),h.remove()):c.empty().append(d(c,c.width(),c.height()));h.transition({opacity:1,scale:1},300).find("i").on("click",function(){h.transition({opacity:0,scale:.85},300,function(){h.remove()})})}break;case "qq":window.open("http://connect.qq.com/widget/shareqq/index.html?url\x3d"+g+"\x26title\x3d"+f+"\x26desc\x3d"+f);break;case "sina":!function(a,b,c){function d(){window.open(["http://v.t.sina.com.cn/share/share.php?",h].join(""),"mb")||(e.href=["http://v.t.sina.com.cn/share/share.php?",h].join(""))}var e=b.location.href,h=["url\x3d",c(e),"\x26title\x3d",c(f),"\x26appkey\x3d2924220432\x26pic\x3d",c(g)].join("");l?window.setTimeout(d,0):d()}(screen,document,encodeURIComponent);break;case "qzone":window.open("http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url\x3d"+g+"\x26title\x3d"+f);break;case "douban":!function(){var a=document,b=encodeURIComponent,c=window.getSelection,d=a.getSelection,a=a.selection,c=c?c():d?d():a?a.createRange().text:"",e="https://www.douban.com/recommend/?url\x3d"+b(g)+"\x26title\x3d"+b(f)+"\x26sel\x3d"+b(c)+"\x26v\x3d1",b=function(){window.open(e,"douban")||(location.href=e+"\x26r\x3d1")};l?window.setTimeout(b,0):b()}();break;case "tieba":!function(){var a="http://tieba.baidu.com/f/commit/share/openShareApi?title\x3d"+f+"\x26url\x3d"+encodeURIComponent(g),b=function(){window.open(a)||(location.href=a)};l?setTimeout(b,0):b();return!1}()}}}}};!function a(b){Object.freeze(b);Object.keys(b).forEach(function(c){"object"===_typeof(b[c])&&a(b[c])})}(w);return w});