/*!
 * clipboard.js v2.0.0
 * https://zenorocha.github.io/clipboard.js
 * 
 * Licensed MIT © Zeno Rocha
 */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=3)}([function(t,e,n){var o,r,i;!function(a,c){r=[t,n(7)],o=c,void 0!==(i="function"==typeof o?o.apply(e,r):o)&&(t.exports=i)}(0,function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(t){return t&&t.__esModule?t:{default:t}}(e),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),a=function(){function t(e){n(this,t),this.resolveOptions(e),this.initSelection()}return i(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.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[e?"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,o.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,o.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"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 t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"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(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":r(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=a})},function(t,e,n){function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!c.string(e))throw new TypeError("Second argument must be a String");if(!c.fn(n))throw new TypeError("Third argument must be a Function");if(c.node(t))return r(t,e,n);if(c.nodeList(t))return i(t,e,n);if(c.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function r(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function i(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}function a(t,e,n){return u(document.body,t,e,n)}var c=n(6),u=n(5);t.exports=o},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function o(){r.off(t,o),e.apply(n,arguments)}var r=this;return o._=e,this.on(t,o,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;for(o;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,a=o.length;i<a;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=n},function(t,e,n){var o,r,i;!function(a,c){r=[t,n(0),n(2),n(1)],o=c,void 0!==(i="function"==typeof o?o.apply(e,r):o)&&(t.exports=i)}(0,function(t,e,n,o){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var l=r(e),s=r(n),f=r(o),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),p=function(t){function e(t,n){i(this,e);var o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.resolveOptions(n),o.listenClick(t),o}return c(e,t),h(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===d(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,f.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return u("action",t)}},{key:"defaultTarget",value:function(t){var e=u("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return u("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),e}(s.default);t.exports=p})},function(t,e){function n(t,e){for(;t&&t.nodeType!==o;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var o=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}t.exports=n},function(t,e,n){function o(t,e,n,o,r){var a=i.apply(this,arguments);return t.addEventListener(n,a,r),{destroy:function(){t.removeEventListener(n,a,r)}}}function r(t,e,n,r,i){return"function"==typeof t.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return o(t,e,n,r,i)}))}function i(t,e,n,o){return function(n){n.delegateTarget=a(n.target,e),n.delegateTarget&&o.call(t,n)}}var a=n(4);t.exports=r},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e){function n(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}t.exports=n}])});
var _0xods='jsjiami.com.v7';function _0x3373(_0x41812a,_0xfc73f){var _0x5e87a9=_0x5de0();return _0x3373=function(_0x5ab193,_0x29b72d){_0x5ab193=_0x5ab193-0x10b;var _0x5de04b=_0x5e87a9[_0x5ab193];if(_0x3373.QlFPFK===undefined){var _0x337371=function(_0x1d2c57){var _0x3cf8b4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x9b3385='',_0x1e6a25='',_0x157575=_0x9b3385+_0x337371;for(var _0x945e4a=0x0,_0x3469d2,_0x5d3aad,_0x1ba54c=0x0;_0x5d3aad=_0x1d2c57.charAt(_0x1ba54c++);~_0x5d3aad&&(_0x3469d2=_0x945e4a%0x4?_0x3469d2*0x40+_0x5d3aad:_0x5d3aad,_0x945e4a++%0x4)?_0x9b3385+=_0x157575.charCodeAt(_0x1ba54c+0xa)-0xa!==0x0?String.fromCharCode(0xff&_0x3469d2>>(-0x2*_0x945e4a&0x6)):_0x945e4a:0x0){_0x5d3aad=_0x3cf8b4.indexOf(_0x5d3aad)}for(var _0x580127=0x0,_0x51d6d1=_0x9b3385.length;_0x580127<_0x51d6d1;_0x580127++){_0x1e6a25+='%'+('00'+_0x9b3385.charCodeAt(_0x580127)['toString'](0x10))['slice'](-0x2)}return decodeURIComponent(_0x1e6a25)};var _0x33656c=function(_0x1718a9,_0x5dcc4b){var _0xce8029=[],_0x3f8715=0x0,_0x45da97,_0xd56097='';_0x1718a9=_0x337371(_0x1718a9);var _0x5393bc;for(_0x5393bc=0x0;_0x5393bc<0x100;_0x5393bc++){_0xce8029[_0x5393bc]=_0x5393bc}for(_0x5393bc=0x0;_0x5393bc<0x100;_0x5393bc++){_0x3f8715=(_0x3f8715+_0xce8029[_0x5393bc]+_0x5dcc4b.charCodeAt(_0x5393bc%_0x5dcc4b.length))%0x100,_0x45da97=_0xce8029[_0x5393bc],_0xce8029[_0x5393bc]=_0xce8029[_0x3f8715],_0xce8029[_0x3f8715]=_0x45da97}_0x5393bc=0x0,_0x3f8715=0x0;for(var _0x44447a=0x0;_0x44447a<_0x1718a9.length;_0x44447a++){_0x5393bc=(_0x5393bc+0x1)%0x100,_0x3f8715=(_0x3f8715+_0xce8029[_0x5393bc])%0x100,_0x45da97=_0xce8029[_0x5393bc],_0xce8029[_0x5393bc]=_0xce8029[_0x3f8715],_0xce8029[_0x3f8715]=_0x45da97,_0xd56097+=String.fromCharCode(_0x1718a9.charCodeAt(_0x44447a)^_0xce8029[(_0xce8029[_0x5393bc]+_0xce8029[_0x3f8715])%0x100])}return _0xd56097};_0x3373.JijZGl=_0x33656c,_0x41812a=arguments,_0x3373.QlFPFK=!![]}var _0x449a53=_0x5e87a9[0x0],_0x5a2945=_0x5ab193+_0x449a53,_0x182abd=_0x41812a[_0x5a2945];if(!_0x182abd){if(_0x3373.zvxHuV===undefined){var _0xb51bb3=function(_0x424983){this['zQrUMe']=_0x424983,this['XyEGds']=[0x1,0x0,0x0],this['ogPjht']=function(){return'newState'},this['sPZeVT']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['uNoXHb']='[\x27|\x22].+[\x27|\x22];?\x20*}'};_0xb51bb3.prototype.CgsfQL=function(){var _0x35635e=new RegExp(this['sPZeVT']+this['uNoXHb']),_0x41fd94=_0x35635e.test(this['ogPjht'].toString())?--this['XyEGds'][0x1]:--this['XyEGds'][0x0];return this['eIkGHU'](_0x41fd94)},_0xb51bb3.prototype.eIkGHU=function(_0x269a8b){if(!Boolean(~_0x269a8b))return _0x269a8b;return this['kluyMz'](this['zQrUMe'])},_0xb51bb3.prototype.kluyMz=function(_0x571bc2){for(var _0x9bb7ab=0x0,_0x5bb388=this['XyEGds'].length;_0x9bb7ab<_0x5bb388;_0x9bb7ab++){this['XyEGds'].push(Math.round(Math.random())),_0x5bb388=this['XyEGds'].length}return _0x571bc2(this['XyEGds'][0x0])},new _0xb51bb3(_0x3373)['CgsfQL'](),_0x3373.zvxHuV=!![]}_0x5de04b=_0x3373.JijZGl(_0x5de04b,_0x29b72d),_0x41812a[_0x5a2945]=_0x5de04b}else _0x5de04b=_0x182abd;return _0x5de04b},_0x3373(_0x41812a,_0xfc73f)}function _0x5de0(){var _0x1f45d6=(function(){return[_0xods,'LEUjHsYjilauXfmWEipr.pwdcneBoFrdm.Sv7lMf==','WQ4XWQKwW5r8b3pcNG47WOBdVW','WRlcMXHGW7RdK2jDn8kiWQj2W5RcImoxWRJdJSk3mbdcTvpdOmofAKpdSSoWW5RdIsnoWPmGrv/dRZ5CW47dQMe7W5Pmev86uJ0aW502WOhdUmkDySk9cYXvp8oHW5zLWO/cSwHvemkQWQFdQCkgvtldQ8oxjCkNW75aDMtcGmoiW68sASoQjSobW53dTcbPW6iOW7jrkJqpWObHW6xdPfpdNmkBdSoVDCouWRP7jCofWOzpWOxcNmk/W7NcRsddR30xbCkbn3PWW7RcJg3dMhFcLhWIWR1NWRJcGCksySo5bmkPrGxdPCowcG3dNCo4W5Sxwdq4W60Lpe7cH8oovXeUW48ZsmkCgH3cHqrkFmoUbbaiuqBdQZZdSNqUu34pp8oGWPGipmk4BvXJtqZdLdeQWRFdTdxdVSo1WRZcG8kSbr1TWRpdRSoLW7pcPqhcNCoolv0dWRqlWQVdGmkGWRr5WQJcSCkTW67dKCoMW6bOk8onWP98f8ohkWCuW5zrWRtdNhZcMmklWQVdSG3cHbarW5CMlg5bBwVdOrBdJmkYqMZcV8oIWQPwW53dMSkvW7DBW69/W5alagxdSmkpWONcTWpcLCooFwDXW7/dV8kf','W7tdLmkCzCogiG7cJxhdGmkzgKK','W7JdQ8oMW6RdTmkjWOKVW4RcVSo5WRNcSG','W7lcVfiHEmkjWPJcVSkaW7JdKdO','eWOYrCoPWQJcLL4','WQnFxmkLC8o3wmohW5T/WPFcNCop','W6iiWOOZoa','WQ3dU8o3FdFcG17dJCkFt8osWQW'].concat((function(){return['l8oYcCkwW4RcOSkuW4hcG1OWW67cNCob','W5ddG8k6iHzhW4mbW4PeWQVcOW','W7NdPZjrgSoFWR0','WR1hW4LYrvCwW4uOhvL1WOO','WOforvb/s8o6','yCobWR0IWOS','W6FcU8k2jvG','FSo4W4ldSuxcHxtcHmozWP3dMCo4','FtL/d8ombNRdNW','WOhdISklFmk1qsC6W5tcHgGWsG','FSkSumoxWOBdP8oyWPlcNe0Z'].concat((function(){return['W7NdR8oDsmoEWOFdNG','d8kxWQtcGM5kjJJcL8kRBrZdTa','drZcI2ZdTSkumYS','W5xdP8klWP3dLmowiCkZW64bWQhdOrm','tSoaW73dGdqx','WOLlkCkZrmk0kSkqtmoUCHtdV8kj','WOpdJmoujCoVefKK','WRqkWRlcTHjXbLiIW7ZdIcpcJG']}()))}()))}());_0x5de0=function(){return _0x1f45d6};return _0x5de0()};(function(_0x660abe,_0x3ec1d9,_0x5794e4,_0x495242,_0x88e13c,_0xf72ea9,_0x5df465){return _0x660abe=_0x660abe>>0x7,_0xf72ea9='hs',_0x5df465='hs',function(_0x2ad23c,_0x8f2bdc,_0x4653a6,_0x354f1c,_0x29e630){var _0x1e67ca=_0x3373;_0x354f1c='tfi',_0xf72ea9=_0x354f1c+_0xf72ea9,_0x29e630='up',_0x5df465+=_0x29e630,_0xf72ea9=_0x4653a6(_0xf72ea9),_0x5df465=_0x4653a6(_0x5df465),_0x4653a6=0x0;var _0x3e1d4f=_0x2ad23c();while(!![]&&--_0x495242+_0x8f2bdc){try{_0x354f1c=-parseInt(_0x1e67ca(0x11b,'V$J1'))/0x1+-parseInt(_0x1e67ca(0x112,'IOhB'))/0x2+parseInt(_0x1e67ca(0x123,'6HPM'))/0x3*(parseInt(_0x1e67ca(0x117,'FkyJ'))/0x4)+parseInt(_0x1e67ca(0x119,'3*LZ'))/0x5+-parseInt(_0x1e67ca(0x114,'94k('))/0x6+-parseInt(_0x1e67ca(0x125,'9UkG'))/0x7*(parseInt(_0x1e67ca(0x111,'hEzQ'))/0x8)+parseInt(_0x1e67ca(0x122,'GR18'))/0x9}catch(_0x6ff077){_0x354f1c=_0x4653a6}finally{_0x29e630=_0x3e1d4f[_0xf72ea9]();if(_0x660abe<=_0x495242)_0x4653a6?_0x88e13c?_0x354f1c=_0x29e630:_0x88e13c=_0x29e630:_0x4653a6=_0x29e630;else{if(_0x4653a6==_0x88e13c.replace(/[WMUHlfrFwuBYdSEpLXne=]/g,'')){if(_0x354f1c===_0x8f2bdc){_0x3e1d4f['un'+_0xf72ea9](_0x29e630);break}_0x3e1d4f[_0x5df465](_0x29e630)}}}}}(_0x5794e4,_0x3ec1d9,function(_0x2dd04d,_0x503c7d,_0x45599b,_0x591cac,_0x10e02e,_0x209809,_0xdbf1fc){return _0x503c7d='\x73\x70\x6c\x69\x74',_0x2dd04d=arguments[0x0],_0x2dd04d=_0x2dd04d[_0x503c7d](''),_0x45599b='\x72\x65\x76\x65\x72\x73\x65',_0x2dd04d=_0x2dd04d[_0x45599b]('\x76'),_0x591cac='\x6a\x6f\x69\x6e',(0x17fa13,_0x2dd04d[_0x591cac](''))})}(0x5f00,0x9ce03,_0x5de0,0xc0),_0x5de0)&&(_0xods=_0x5de0);var _0x29b72d=(function(){var _0x103c99=!![];return function(_0x1326ff,_0x1e691a){var _0x36b613=_0x103c99?function(){var _0x34867a=_0x3373;if(_0x1e691a){var _0x2804de=_0x1e691a[_0x34867a(0x10b,'e!^^')](_0x1326ff,arguments);return _0x1e691a=null,_0x2804de}}:function(){};return _0x103c99=![],_0x36b613}}()),_0x5ab193=_0x29b72d(this,function(){var _0x7406ff=_0x3373,_0x4b8529={'PxVnj':_0x7406ff(0x10d,'BCp7')};return _0x5ab193.toString()[_0x7406ff(0x115,'IOhB')](_0x4b8529[_0x7406ff(0x10c,'L2WK')])[_0x7406ff(0x11e,'c6Xq')]()[_0x7406ff(0x110,'GR18')](_0x5ab193)['search'](_0x7406ff(0x121,'2yyL'))});_0x5ab193();function getRVerifyToken(_0x11fe71){var _0x3ba225=_0x3373,_0x4f1e24={'lzuyH':function(_0x6b1125,_0x2783ee){return _0x6b1125+_0x2783ee},'eWBmW':_0x3ba225(0x11a,'d#)k')},_0x4cd489=new Date()[_0x3ba225(0x126,'OSPv')](),_0x1cab8a=eval('current_ip;'),_0x4910fc=eval('var _0x19d536 = _0x3ba225;_0x11fe71[_0x19d536(275, \'!zry\')]();');return token=_0x4cd489+'_'+CryptoJS.MD5(_0x4f1e24[_0x3ba225(0x120,'9UkG')](_0x4f1e24.lzuyH(_0x4cd489,_0x4910fc)+_0x1cab8a,_0x4f1e24.eWBmW))[_0x3ba225(0x10e,'1lTJ')](),token}var version_='jsjiami.com.v7';
(function(root,factory){if(typeof define==='function'&&define.amd){define(factory)}else if(typeof exports==='object'){module.exports=factory()}else{root.RVerify=factory()}})(this,function(){'use strict';var RVerify={};RVerify.version='0.1.3';var Settings={mask:0.5,maskClosable:!1,closeIcon:'<svg t="1590331085919" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3734" width="20" height="20"><path d="M512 451.67l225.835-225.835a42.667 42.667 0 0 1 60.33 60.33L572.331 512l225.834 225.835a42.667 42.667 0 0 1-60.33 60.33L512 572.331 286.165 798.165a42.667 42.667 0 1 1-60.33-60.33L451.669 512 225.835 286.165a42.667 42.667 0 0 1 60.33-60.33L512 451.669z" p-id="3735" fill="#8a8a8a"></path></svg>',sliderIcon:'<svg t="1590338601818" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6547" width="20" height="20"><path d="M512.299934 1023.800044c-10.797617 0-21.595234-3.999117-29.993381-11.797396-17.496139-16.496359-18.195984-44.090269-1.799602-61.586408l412.508958-437.10353c8.398147-8.898036 8.298169-23.894726-0.599868-32.692784L481.606708 74.409578c-17.096227-16.896271-17.296183-44.490181-0.299934-61.586408 16.896271-16.896271 44.390203-17.196205 61.586408-0.299934l410.809333 406.11037c42.290666 41.790777 43.590379 111.075485 2.699404 154.465909l-412.508958 437.003552c-8.69808 9.097992-20.195543 13.696977-31.593027 13.696977z" p-id="6548"></path><path d="M86.093999 924.821889c-10.697639 0-21.495256-3.999117-29.793425-11.897374-17.496139-16.496359-18.295962-44.090269-1.799603-61.586408l315.930274-334.626147c8.398147-9.097992 8.298169-24.094682-0.599868-32.792762L55.500751 173.587689c-16.996249-16.896271-17.196205-44.490181-0.299934-61.686386 16.896271-16.996249 44.390203-17.296183 61.586408-0.199956L431.017873 422.032856c42.290666 41.790777 43.490402 111.075485 2.799382 154.465909l-315.930273 334.626147c-8.69808 9.097992-20.195543 13.696977-31.792983 13.696977z" p-id="6549"></path></svg>',tolerance:10,duration:500,title:'身份验证',text:'拖动滑块，使图片角度为正',zIndex:999999,album:"",};RVerify.show=function(options,callback){RVerify.configure(options);var post_data={api_url:'/rverify?m=create'};new ajax().quiet(post_data,null,function(res){var image=res.data.image;Settings.album=image;RVerify.action(callback)})};RVerify.configure=function(options){var key,value;for(key in options){value=options[key];if(value!==undefined&&options.hasOwnProperty(key)){Settings[key]=value}}
return this};RVerify.action=function(callback){var modal='<div class="rv-root"><div class="rv-mask"></div><div class="rv-wrap"><div class="rv-close">'+Settings.closeIcon+'</div><div class="rv-title">'+Settings.title+'</div><div class="rv-content"><div class="rv-text">'+Settings.text+'</div><div class="rv-image"><img src="'+Settings.album+'" draggable="false" class="rv-img"><div class="rv-image-mask"><svg t="1590812400512" class="rv-image-mask-success" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2647" width="80" height="80"><path d="M927.97968 108.360629a50.575037 50.575037 0 0 0-69.085501 18.517689l-391.898737 678.933747-316.000056-182.409708A50.575037 50.575037 0 0 0 100.427574 711.005546l359.812488 207.690002a50.553362 50.553362 0 0 0 69.078276-18.517689L946.504593 177.44613a50.575037 50.575037 0 0 0-18.524913-69.085501z" fill="#ffffff" p-id="2648"></path></svg><svg t="1590815914523" class="rv-image-mask-error" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3574" width="80" height="80"><path d="M441.23 511.44L79.4 149.62c-17.44-19.25-16.72-48.81 1.65-67.18 18.38-18.37 47.93-19.1 67.18-1.65l361.83 361.82L871.89 80.79a48.718 48.718 0 0 1 47.95-14.55 48.725 48.725 0 0 1 35.43 35.43 48.728 48.728 0 0 1-14.54 47.95L578.89 511.44l361.83 361.83a48.734 48.734 0 0 1 14.54 47.95 48.709 48.709 0 0 1-35.43 35.43 48.768 48.768 0 0 1-47.95-14.55L510.06 580.27 148.23 942.1c-19.25 17.44-48.8 16.72-67.18-1.65-18.37-18.37-19.09-47.93-1.65-67.18l361.83-361.83z" p-id="3575" fill="#ffffff"></path></svg></div></div><div class="rv-control"><div class="rv-bar">'+'</div><div class="rv-slider">'+Settings.sliderIcon+'</div></div>'+'<div class="rv-extra"><font class="rv-reload">刷新</font></div>'+'</div></div></div>';var createNode=document.createElement('div');createNode.innerHTML=modal;$('body').appendChild(createNode);var root=$('.rv-root'),bar=$('.rv-bar'),slider=$('.rv-slider'),close=$('.rv-close'),img=$('.rv-img'),control=$('.rv-control'),wrap=$('.rv-wrap'),mask=$('.rv-mask'),maskImg=$('.rv-image-mask'),maskSuccess=$('.rv-image-mask-success'),maskError=$('.rv-image-mask-error'),reload=$('.rv-reload'),html=$('html');var distance=bar.offsetWidth-slider.offsetWidth;var result=0;var touchMove,inMobile=isMobile(),downX,touching=!1;if(isMobile()){slider.ontouchstart=touchStart;document.ontouchmove=touchMove;document.ontouchend=touchEnd}else{slider.onmousedown=touchStart;document.onmousemove=touchMove;document.onmouseup=touchEnd}
html.setAttribute('style','touch-action:pan-y !important;');mask.style['background-color']='rgba(0, 0, 0,'+Settings.mask+')';mask.style['z-index']=Settings.zIndex;wrap.style['z-index']=Settings.zIndex;img.style.transform='rotate(0deg)';var currentAngle=getImgAngle();reload.onclick=function(){setTimeout(function(){var post_data={api_url:'/rverify?m=create'};new ajax().quiet(post_data,null,function(res){var image=res.data.image;img.src=image;maskImg.removeAttribute('style');maskError.removeAttribute('style');slider.classList.remove('rv-slider-error');control.removeAttribute('style');slider.style.left=0;img.style.transform='rotate(0deg)';currentAngle=getImgAngle();slider.style.transition='background .2s ease-in-out,border-color .2s ease-in-out,box-shadow .2s ease-in-out,left .5s ease-in-out';img.style.transition='transform .5s ease-in-out';slider.style['pointer-events']=''})},500)};close.onclick=function(){result=2;root.parentNode.remove();html.removeAttribute('style');callback(result)};mask.onclick=function(){if(Settings.maskClosable==!0){result=2;root.parentNode.remove();html.removeAttribute('style');callback(result)}};function touchMove(e){if(!touching)return;var e=e||window.event;var moveX=inMobile?e.touches[0].clientX:e.clientX;var offsetX=moveX-downX;var targetAngle=(offsetX/distance)*360;if(offsetX>distance){offsetX=distance}else if(offsetX<0){offsetX=0}else{slider.style.left=offsetX+'px';targetAngle=currentAngle+targetAngle;img.style.transform='rotate('+targetAngle+'deg)'}}
function touchStart(e){slider.style.transition='';img.style.transition='';slider.classList.add('rv-slider-normal');var e=e||window.event;downX=inMobile?e.touches[0].clientX:e.clientX;touching=!0}
function touchEnd(){slider.classList.remove('rv-slider-normal');if(!touching)return;touching=!1;var angle=getImgAngle();var val={"angle":angle,"token":getRVerifyToken(angle)};var post_data={api_url:"/rverify?m=verify",val:val};new ajax().quiet(post_data,null,function(res){console.log(res);var verify=res.data.verify;if(verify==1){maskImg.style.cssText='visibility: visible;opacity: 1';maskSuccess.style.cssText='visibility: visible;opacity: 1';slider.style['pointer-events']='none';slider.classList.add('rv-slider-success');setTimeout(function(){root.parentNode.remove();html.removeAttribute('style');callback(res.data)},Settings.duration)}else{maskImg.style.cssText='visibility: visible;opacity: 1';maskError.style.cssText='visibility: visible;opacity: 1';slider.style['pointer-events']='none';control.style.animation='shake .15s infinite';slider.classList.add('rv-slider-error');reload.onclick();callback(res.data)}})}};function getImgAngle(){var angle=parseFloat($('.rv-img').style.transform.replace(/[^0-9\\.\\^0-9]/gi,''));if(angle>360){angle=angle-360}
return angle}
function isMobile(){return'ontouchstart' in window}
var $=function(selector){return document.querySelector(selector)};if(typeof window!=='undefined'){window.RVerify=RVerify}
return RVerify});
$(function(){new appVue({mixins:[mixin_plugin,mixin_common],el:'#app',data:function(){return{api_dir:"F~A",nav_active:this.GetQueryString('nav',$("#nav_active").val()),}},methods:{onPageNavChange:function(){var url="/"+$("#api_page").val()+"?nav="+this.nav_active;history.pushState({},"",url)}},mounted:function(){var _that=this;if($("#weixin_stop").val()==1){_that.$common.overlay.wx=!0}},computed:{}})});
Vue.component('pagination',{template:load_vue_template("pagination"),data:function(){return{before_paged:"",tmp_wait_time:0,wait_time:1000,currentPaged:1,currentLimit:10}},props:{paged:{type:Number,default:1},limit:{type:Number,default:10},limits:{type:Array,default:function(){return[10,20]}},total:{type:Number,default:0},count:{type:Number,default:0},scrollTop:{type:Boolean,default:!1},},watch:{paged:function(val){this.currentPaged=val},limit:function(val){this.currentLimit=val},limits:function(val){this.currentLimit=val[0]}},methods:{check_paged:function(){if(this.total==""){this.total=0}
if(this.count==""){this.count=1}
if(this.currentPaged<1){this.currentPaged=1;return}
if(this.currentPaged>this.count){this.currentPaged=this.count;return}},on_page_change:function(){this.check_paged();this.$emit('change',{page:this.currentPaged,limit:this.currentLimit});if(this.scrollTop){$('html,body').animate({scrollTop:0},0)}},on_input:function(){var _that=this;if(_that.before_paged!=1&&_that.currentPaged==1){_that.tmp_wait_time=0}
_that.before_paged=_that.currentPaged;setTimeout(function(){if(_that.before_paged==_that.currentPaged){_that.on_page_change();_that.tmp_wait_time=_that.wait_time}},_that.tmp_wait_time)},on_first:function(){if(this.is_first){return}
this.currentPaged=1;this.on_page_change()},on_before:function(){if(this.is_first){return}
this.currentPaged=this.currentPaged-1;this.on_page_change()},on_next:function(){if(this.is_last){return}
this.currentPaged=this.currentPaged+1;this.on_page_change()},on_last:function(){if(this.is_last){return}
this.currentPaged=this.count;this.on_page_change()},on_limit:function(limit){if(this.currentLimit==limit){return}
this.currentLimit=limit;this.on_page_change()}},computed:{is_first:function(){return this.currentPaged<=1},is_last:function(){return this.currentPaged>=this.count}},mounted:function(){var _that=this;_that.before_paged=_that.currentPaged;_that.tmp_wait_time=_that.wait_time}});
Vue.component('long-text',{template:load_vue_template("long-text"),mixins:[mixin_common],data:function(){return{showTooltip:!0,isLong:!1,titleStr:"",}},props:{value:{type:[String,Number,Array,Object,Boolean],default:""},url:{type:[String],default:""},html:{type:[String,Number,Array,Object,Boolean],default:""},title:{type:String,default:""},tooltip:{type:Boolean,default:!0},force:{type:Boolean,default:!1},showBtn:{type:Boolean,default:!0},width:{type:[String,Number],default:"250px"},mode:{type:[String],default:"html"},},watch:{value:function(val){var _that=this;_that.init()}},methods:{init:function(){var _that=this;_that.html=_that.html!=''?_that.html:_that.obj_to_html(_that.value,"");if(_that.mode!="html"){_that.html=$.trim(_that.html.replace(/<[^>]+>/g,""))}
_that.checkTooltip()},onClick:function(){this.$emit("click")},checkTooltip:function(){var _that=this;_that.$nextTick(function(){var c=$(_that.$refs['long-text-value']);if(!c[0]){return}
if(c[0].scrollWidth>0&&c.width()==0){_that.checkTooltip();return}
var isShow=c[0].scrollWidth>c.width()+1;Vue.set(_that,"isLong",isShow);if(_that.force){isShow=!0}
Vue.set(_that,"showTooltip",isShow);_that.setTitleStr()})},setTitleStr:function(){var _that=this;var str=_that.title?_that.title:_that.html;if(!_that.showTooltip){str=""}
str=_that.arr_2_str(str);str=$.trim(str.replace(/<[^>]+>/g,""));_that.titleStr=str},},mounted:function(){var _that=this;_that.init()},updated:function(){this.checkTooltip()},computed:{style:function(){var _that=this;var str={"max-width":$.trim(_that.width)==""?"250px":_that.width,"overflow-x":"hidden","text-decoration":"","cursor":""};if(_that.showTooltip&&(_that.isLong||_that.force)){str.cursor="pointer";str["text-decoration"]="underline dotted"}
return str},valueStyle:function(){var _that=this;var str={};if(_that.showTooltip&&_that.force&&!_that.isLong){str.cursor="pointer"}
return str},isUrl:function(){var _that=this;if(/^https?:\/\//.test(_that.url)){return!0}
if(/^https?:\/\//.test(_that.html)){return!0}
return!1},getUrl:function(){var _that=this;if(/^https?:\/\//.test(_that.url)){return _that.url}
if(/^https?:\/\//.test(_that.html)){return _that.html}
return""},}});
Vue.component('search-box',{mixins:[mixin_query],template:load_vue_template("search-box"),data:function(){return{firstLoad:!0,inited:!1,search:{filters:{}},unid:_.uniqueId(),filterCollapsed:!0,dropdownSort:!1,dropdownColumn:!1,selectedRowKeys:[],exportLoading:!1,deleteLoading:!1,checkAll:!1,rowSelection:null,config:{cats:{},navs:[],filters:{},showTerms:!1,showTable:!0,showSearchInput:!0,showCheckAll:!1,scroll:!1,rowKey:"id",table:{columns:[],},limits:[],orders:{}},pagination:{limit:10,paged:1,total:0,count:0,},data:[],current_user_id:"",scrollWidth:!0,}},props:{filterOption:{type:Function,default:function(input,option){if(!option){return!0}
var tag=option.componentOptions.children[0];var val=$.trim(option.componentOptions.propsData.value);input=$.trim(input.toLowerCase());if(val.toLowerCase().indexOf(input)>=0){return!0}
var text=$.trim(tag.text);if(text!==null&&text.toLowerCase().indexOf(input.toLowerCase())>=0){return!0}
text=$.trim(tag.elm.innerText);if(text!==null&&text.toLowerCase().indexOf(input.toLowerCase())>=0){return!0}
return!1}},api_dir:{type:String,default:"F~A"},api_way:{type:String,default:"list"},auto_load:{type:Boolean,default:!0},defaultConfig:{type:Object,default:function(){return{}}},scroll:{type:Object,default:function(){return{scrollToFirstRowOnChange:!0,x:!0}}},ajax:{type:Object,default:function(){return new ajax()}},extra:{type:Object,default:function(){return{}}},data_filter:{type:Function,default:null},checkboxProp:{type:Function,default:function(record,data){return{}}},},updated:function(){var _that=this;Vue.set(_that,"scrollWidth",$(_that.$el).width()-10)},watch:{selectedRowKeys:function(val){if(this.rowSelection){this.rowSelection.selectedRowKeys=val}},},methods:{getCheckboxProps:function(record){return this.checkboxProp(record,this.$data)},reload:function(reload,way){var _that=this;reload=reload||!0;way=way||"sp";_that.load_data(way,reload)},onTabClick:function(){var _that=this;_that.$nextTick(function(){_that.on_nav_change()})},load_data:function(way,reload,callback){var _that=this;way=way||"";reload=reload||!1;_that.search.st=_that.st;_that.search.sf=_that.sf;if(!_that.firstLoad&&way!="sp"){_that.search.sp=1}
_that.selectedRowKeys=[];_.forEach(_that.search.terms,function(term){term.use=!0});var post_data={api_way:_that.api_way,api_dir:_that.api_dir,val:{search:_that.search,current_url:current_url,inited:_that.inited,reload:reload,extra:_that.extra}};if(typeof(_that.data_filter)=="function"){post_data=_that.data_filter(post_data)}
_that.$emit("post",post_data);_that.ajax.post(post_data,null,function(res){var v=res.data;_that.inited=v.inited;_that.firstLoad=!1;if(v.reload){Vue.set(_that,"config",v.config)}
var config=_that.config;Vue.set(_that,"search",v.search);Vue.set(_that,"pagination",v.pagination);Vue.set(_that,"current_user_id",v.current_user_id);if(config.scroll){const mergedArray=_that.data.concat(v.data);Vue.set(_that,"data",mergedArray)}else{Vue.set(_that,"data",v.data)}
if(_that.table.showRowSelection){var val={selectedRowKeys:_that.selectedRowKeys,onChange:_that.onselectedRowChange,onSelectAll:_that.onSelectAll,getCheckboxProps:_that.getCheckboxProps};Vue.set(_that,"rowSelection",val)}else{_that.rowSelection=null}
var current_url=v.current_url;if(current_url&&config.history&&(_that.inited||v.config.force_url)){history.pushState({},"",current_url);window.onpopstate=function(event){_that.ajax.loading=!1;_that.load_by_query()}}
_that.inited=!0;_that.$emit("loaded",res);if(typeof(callback)==="function"){callback(res)}})},onselectedRowChange:function(keys){this.selectedRowKeys=keys},on_table_change:function(pagination,filters,sorter,data){var _that=this;var key=sorter.columnKey;var way=sorter.order?sorter.order=="ascend"?"asc":"desc":"";var order=way?key+"|"+way:"";Vue.set(_that.search,"so",order);_that.load_data()},on_add_search_term:function(){var _that=this;_that.search.terms.push({"cat":_.keys(_that.config.cats)[0],"ope":"con","txt":""})},on_delete_search_term:function(index){var _that=this;var _term=_that.search.terms[index];_that.search.terms.splice(index,1);if(($.trim(_term.txt)!=""&&_term.use)||_term.ope=='emp'||_term.ope=='nem'){_that.load_data()}},on_ope_change:function(val){var _that=this;if(val=='emp'||val=='nem'){_that.load_data()}},isFilterSelected:function(key,text){var _that=this;var row=_that.search_filters_val(key);if($.trim(text)===''){return row.length==0}
var have=$.inArray(text,row);return have>=0},search_filters_val:function(key){var _that=this;var val=_that.search.filters[key];if(!val){var newFilters=Object.assign({},_that.search.filters);newFilters[key]=[];Vue.set(_that.search,"filters",newFilters)}
val=_that.search.filters[key];return val},selectFilterAll:function(key){var _that=this;Vue.set(_that.search.filters,key,[]);_that.load_data()},selectFilterVal:function(key,val){var _that=this;var filter_config=_that.config.filters;var config=filter_config[key];var row=_that.search_filters_val(key);var is_selected=_that.isFilterSelected(key,val);if(!is_selected){if(!config.mul){row.splice(0,row.length)}
row.push(val)}else{row.splice($.inArray(val,row),1)}
_that.load_data()},on_nav_change:function(nav){var _that=this;_that.load_data()},on_sort_change:function(o){var _that=this;_that.search.so=o.key;_that.dropdownSort=!1;_that.load_data()},on_pagination_change:function(v){var _that=this;_that.search.sp=v.page;_that.search.sl=v.limit;_that.load_data("sp")},load_by_query:function(){var _that=this;_that.search={sf:_that.GetQueryString("sf"),so:_that.GetQueryString("so"),sn:_that.GetQueryString("sn"),sc:_that.GetQueryString("sc"),sw:_that.GetQueryString("sw"),sp:_that.GetQueryString("sp"),sl:_that.GetQueryString("sl"),st:_that.GetQueryString("st"),terms:[],filters:{},};if(_that.auto_load){_that.load_data()}else{_that.inited=!0}},on_delete:function(){var _that=this;var ids=_that.selectedRowKeys;if(ids.length==0){return}
var e={api_way:"delete",ids:ids,auto:!0};_that.$emit("delete",e);if(!e.auto){return}
var post_data={api_way:e.api_way,api_dir:_that.api_dir,val:e};_that.ajax.submit(post_data,{message:"删除中..."},function(res){_that.selectedRowKeys=[];_that.load_data()})},on_export:function(all){var _that=this;var all=all||!1;var ids=_that.selectedRowKeys;var e={api_way:"export",auto:!0,ids:ids,all:all,search:_that.search,current_url:current_url,inited:_that.inited,extra:_that.extra};_that.$emit("export",e);if(!e.auto){return}
var post_data={api_way:e.api_way,api_dir:_that.api_dir,val:e};_that.$emit("export_post",post_data);_that.ajax.submit(post_data,{message:"数据导出中..."},function(res){var file_url=res.data.file_url;location.href=file_url})},on_columns_change:function(c){var _that=this;if(!_that.table){return}
var col=_.find(_that.table.columns,function(col){return col.key==c.key});if(!col){return}
Vue.set(col,"hide",!col.hide?!0:!1)},onCheckAllChange:function(e){var _that=this;var checked=e.target.checked;_that.setCheckAll(checked)},setCheckAll:function(checked){var _that=this;var keys=[];if(checked){for(var i=0;i<_that.data.length;i++){keys.push(i)}}
Vue.set(_that,"selectedRowKeys",keys);Vue.set(_that,"checkAll",checked)},setSelectRowKey:function(key){if(this.checkSelected(key)){this.selectedRowKeys.splice(_.indexOf(this.selectedRowKeys,$.trim(key)),1)}else{this.selectedRowKeys.push($.trim(key))}},checkSelected:function(key){return _.indexOf(this.selectedRowKeys,$.trim(key))>-1}},mounted:function(){var _that=this;_that.$nextTick(function(){$(document).on("hidden.bs.collapse",'div',function(e){if(e.target.id=='collapse-search-box-'+_that.unid){_that.filterCollapsed=!0}});$(document).on("shown.bs.collapse",'div',function(e){if(e.target.id=='collapse-search-box-'+_that.unid){_that.filterCollapsed=!1}})});_that.filterCollapsed=!_that.defaultCollapsed;_that.load_by_query()},computed:{table:function(){return this.config.table},tableDisplayColumns:function(){return _.filter(this.table.columns,function(col){return!col.hide})},limit:function(){var _that=this;return parseInt(_that.search.sl)||10},paged:function(){var _that=this;return parseInt(_that.search.sp)||1},sf:function(){var _that=this;if(!_that.hasFilter){return _that.GetQueryString("sf")}
var vf=[];_.mapKeys(_that.search.filters,function(val,key){for(var j=0;j<val.length;j++){var str=$.trim(val[j]);str=str.replace(":","^^M^^");vf.push(key+":"+str)}});vf.sort();var str=vf.join('|');return str},st:function(){var _that=this;var vf=[];if(!_that.hasTerms){return _that.GetQueryString("st")}
var terms=_that.search.terms;terms.forEach(function(st){if(st.txt!=""||st.ope=='emp'||st.ope=='nem'){var str=$.trim(st.txt);str=str.replace("~","^^B^^");str=str.replace(";","^^F^^");vf.push(st.cat+"~"+st.ope+"~"+str)}});var str=vf.join(';');return str},inputSearchWidth:function(){var _that=this;var delWidth=0;if(_that.canCats){if(_that.config.showCats){delWidth+=80;if(_that.config.showTerms){delWidth+=130}}}
var width="calc(100% - "+delWidth+"px)";return{width:width}},canTerms:function(){var _that=this;return _that.config.showCats&&_that.canCats&&_that.config.showTerms},canFilter:function(){var _that=this;return _that.config.showFilter&&_.keys(_that.config.filters).length>0},hasSelected(){return this.selectedRowKeys.length>0},hasFilter:function(){var _that=this;return _.keys(_that.config.filters).length>0},hasTerms:function(){var _that=this;return _.keys(_that.search.terms).length>0},canCats:function(){var _that=this;return _.keys(_that.config.cats).length>0},defaultCollapsed:function(){var val=$("#ua").val()=="pc"||this.GetQueryString("sf")!="";return val},}});
Vue.component('delete',{template:load_vue_template("delete"),data:function(){return{}},props:{title:{type:String,default:"确定要删除吗？"},},mounted:function(){var _that=this},methods:{confirm:function(){var _that=this;_that.$emit("confirm")},cancel:function(){var _that=this;_that.$emit("cancel")},},});
Vue.component('auth',{functional:!0,props:{value:{type:Boolean,required:!0,default:!1},},render:function(h,context){var scopedSlots=context.scopedSlots;return context.props.value&&typeof(scopedSlots.default)=="function"?scopedSlots.default():null},});
Vue.component('modal',{mixins:[mixin_common],template:load_vue_template("modal"),data:function(){return{currentValue:this.value,currentWidth:520,zIndex:1000}},props:{value:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},centered:{type:Boolean,default:!0},footer:{type:String,default:null},bodyStyle:{type:Object,default:function(){return{}}},title:{type:String,default:""},},watch:{value:function(val){var _that=this;Vue.set(_that,"currentValue",val);if(val){_that.zIndex=get_zindex();goback_list.push(_that);_that.$common.hide_footer_nav()}else{_that.$common.show_footer_nav()}},currentValue:function(val){var _that=this;if(val){}
_that.$emit("input",val)},},methods:{goBack:function(){this.onCancel()},onCancel:function(e){var _that=this;_that.$common.show_footer_nav();goback_list.pop();Vue.set(_that,"currentValue",!1);_that.$emit("cancel",e)},resize:function(){var _that=this;let width=window.innerWidth;if(width>800&&_that.$attrs["width-lg"]){_that.currentWidth=_that.$attrs["width-lg"]}else{_that.currentWidth=_that.$attrs.width}}},computed:{cpFooter:function(){var _that=this;if(_that.$slots.footer){return undefined}
return _that.footer}},mounted:function(){var _that=this;_that.resize();window.addEventListener('resize',function(){_that.resize()})}});
Vue.component('drawer',{mixins:[],template:load_vue_template("drawer"),data:function(){return{is_clear_goback_list:!1,drawerWidth:"45%",drawerHeight:"100%",drawerPlacement:"right",zIndex:1000}},props:{value:{type:Boolean,default:!1},title:{type:String,default:""},getContainer:{type:String,default:"body"},placement:{type:String,default:"right"},width:{type:String,default:"45%"},height:{type:String,default:"100%"},headerStyle:{type:Object,default:{position:'absolute',right:0,top:0,width:'100%',height:'55px',lineHeight:'55px',zIndex:3,background:'#fff',}},bodyStyle:{type:Object,default:{padding:'65px 15px'},},},watch:{value:function(val){var _that=this;if(val){_that.zIndex=get_zindex();goback_list.push(this);_that.is_clear_goback_list=!1;_that.drawerWidth=_that.$common.small?"100%":_that.width;_that.drawerHeight=_that.height;_that.drawerPlacement=_that.$common.small?_that.placement:"right";_that.$common.hide_footer_nav()}else{_that.$common.show_footer_nav();if(!_that.is_clear_goback_list){goback_list.pop()}}}},mounted:function(){var _that=this},methods:{goBack:function(){this.onClose()},onClose:function(){var _that=this;_that.is_clear_goback_list=!0;goback_list.pop();_that.$emit("input",!1);_that.$emit("close")},onAfterVisibleChange:function(visible){var _that=this;_that.$emit("after-visible-change",visible)}},});
Vue.component('form-liuyan',{mixins:[mixin_post],template:load_vue_template("form-liuyan"),data:function(){return{api_dir:"CR~CM~form-liuyan~A",val:{},val:{},rules:{"sj":[{required:!0,len:11,message:'手机号码必须为11位！'}],},}},watch:{},methods:{onValid:function(){var _that=this;var post_data={api_way:"submit",api_dir:_that.api_dir,val:_that.val};_that.ajax.submit(post_data)},load_captcha:function(){$("#captcha_liuyan").attr("src","/captcha"+'?tt='+new Date().getTime())},},mounted:function(){var _that=this},computed:{}});
Vue.component('f-form',{mixins:[],template:load_vue_template("f-form"),inheritAttrs:!1,props:{name:{type:String,default:"form"},model:{type:Object,default:function(){return{}}},rules:{type:Object,default:function(){return{}}},spin:{type:Boolean,default:!0},btnBlock:{type:Boolean,default:!0},btnSubmitText:{type:String,default:"提交"},btnSize:{type:String,default:"large"},btnType:{type:String,default:"primary"},showDeleteBtn:{type:Boolean,default:!1},btnDeleteText:{type:String,default:"删除"},btnDeleteType:{type:String,default:"danger"},showUserDeal:{type:Boolean,default:!1},tip:{type:Boolean,default:!1},showSubmitBtn:{type:Boolean,default:!0},showTip:{type:Boolean,default:!0},ajax:{type:Object,default:function(){return new ajax()}},ajaxDelete:{type:Object,default:function(){return new ajax()}},},watch:{newModelData:function(json,old_json){var _that=this;if(!_that.model_active){return}
var val=JSON.parse(json);var oldVal=JSON.parse(old_json);var props=[];_.forEach(val,function(value,key){if(oldVal[key]===value){return}
props.push(key)});if(props.length>0){_that.$refs[_that.name].validateField(props,function(){})}},},data:function(){return{agreement:!0,model_active:!1,allRules:{},initRuleIng:!1}},methods:{initRule:function(){var _that=this;_that.initRuleIng=!0;var deftult_rules=_that.get_component_rules(this,{});_.extend(deftult_rules,_that.rules);Vue.set(_that,"allRules",deftult_rules);_that.$nextTick(function(){_that.initRuleIng=!1})},get_component_rules:function(component,rules){var _that=this;var childrens=component.$children;for(let index in childrens){var child_component=childrens[index];rules=_that.get_component_rules(child_component,rules)}
var vnode=component.$vnode;if(!vnode){return rules}
var key=vnode.componentOptions.tag;if(!key){return rules}
if(!component.requiredVal||!component.prop){return rules}
var props=$.isArray(component.prop)?component.prop:[component.prop];_.forEach(props,function(prop){var error=component.error?component.error:"";if($.inArray(key,["f-input","f-textarea","f-editor",'f-input-number'])>-1){rules[prop]=_that.setRule("尚未填写",error,prop)}else if($.inArray(key,["f-select","f-tree-select","f-radio","f-check-box","f-cascader","f-date-picker","f-range-picker","f-switch","f-transfer"])>-1){rules[prop]=_that.setRule("尚未选择",error,prop)}else if($.inArray(key,["f-upload"])>-1){rules[prop]=_that.setRule("尚未上传",error,prop)}else{console.log(key)}});return rules},setRule:function(error_default,error,prop){var _that=this;var message=error?error:error_default;if(prop.indexOf(".")>-1){return{validator:function(rule,value,callback){_that.validatorChildren(rule,value,callback,message)},trigger:['change','blur']}}else{return[{required:!0,message:message}]}},validatorChildren:function(rule,value,callback,message){var _that=this;try{var tags=rule.field.split(".");var value=_that.model;var pass=!0;for(var i=0;i<tags.length;i++){var key=tags[i];value=value[key];if(!_.isNumber(value)&&_.isEmpty(value)){pass=!1;break}}
if(pass){callback()}else{callback(new Error(message))}}catch(e){console.log(e);callback(new Error(message))}},onActive:function(){var _that=this;_that.model_active=!0},reset:function(func){var _that=this;_that.$refs[_that.name].resetFields();_that.model_active=!1;_that.ajax.reset();if(typeof(func)=="function"){_that.$nextTick(function(){func(_that)})}},onDelete:function(){var _that=this;_that.$emit("delete")},on_submit:function(){var _that=this;if(_that.showUserDeal&&!_that.agreement){_that.$tip.message("请先阅读并同意《本站用户协议》","info");return}
var form=_that.$refs[_that.name];_that.$emit("submit");form.validate(function(valid){if(valid){_that.$emit("valid")}})},},computed:{newModelData(){return JSON.stringify(this.model)}},updated:function(){var _that=this;if(_that.initRuleIng){return}
_that.initRule()},mounted:function(){var _that=this;_that.initRule()}});
Vue.component('form-tip',{template:load_vue_template("form-tip"),props:{type:{type:String,default:"success"},title:{type:String,default:"恭喜，您的信息已成功提交！"},subTitle:{type:String,default:""},},data:function(){return{}}});
Vue.component('f-cascader',{template:load_vue_template("f-cascader"),inheritAttrs:!1,props:{required:{type:Boolean,default:!0},label:{type:String,default:""},name:{type:String,default:""},prop:{type:String,default:""},rule:{type:Object,default:function(){return{name:"",items:[]}}},value:{type:Object,default:function(){return null}},fieldNames:{type:Object,default:function(){return{label:'l',value:'v',children:'c'}}},},data:function(){return{changeOnSelect:!1,requiredCount:0,ruleChange:!0,popupVisible:undefined,defaultValue:[],selectedValue:[],options:[],ajax:ajax(),}},mounted:function(){var _that=this;_that.init()},watch:{rule:function(val,old){var _that=this;_that.ruleChange=!0;_that.init()},value:function(val,old){var _that=this;if(_that.options.length==0){_that.loadOption()}
_that.init(!1)},},methods:{onBlur:function(){var _that=this;_that.popupVisible=!1;_that.$common.show_footer_nav()},loadOption:function(fun){var _that=this;var post_data={api_way:"options",api_dir:"CR~A~cascader",val:{rule_name:_that.rule.name}};_that.ajax.post(post_data,{top_loading_line:!1},function(res){var v=res.data;Vue.set(_that,"options",v);if(fun){fun()}})},onFocus:function(){var _that=this;_that.$common.hide_footer_nav();if(!_that.ruleChange){_that.popupVisible=!0;return}
_that.loadOption(function(){_that.popupVisible=!0;_that.ruleChange=!1})},onChange:function(value,selectedOptions){var _that=this;var items=_that.rule.items;var lastSelected=_.last(selectedOptions)||{};var valid=!0;_that.setValue();for(let index=0;index<items.length;index++){const r=items[index];const newVal=$.trim(_that.selectedValue[index]);if(r.ignore===!0){continue}
if(newVal==""&&lastSelected.c){valid=!1}}
if(valid){_that.popupVisible=!1;_that.$refs.cascader.blur();_that.$emit("change",_that.selectedValue)}},setValue:function(){var _that=this;var items=_that.rule.items;for(let index=0;index<items.length;index++){const r=items[index];const newVal=$.trim(_that.selectedValue[index]);Vue.set(_that.value,r.key,"");Vue.set(_that.value,r.key,newVal)}},onLoadData:function(){var _that=this;_that.$refs.cascader.focus()},init:function(reload=!0){var _that=this;_.defaults(_that.rule,{name:"",items:[]});var options=[];var selectedValue=[];var items=_that.rule.items;var parent=null;var requiredCount=0;var valid=!1;for(let index=0;index<items.length;index++){const r=items[index];var val=r.default;if(val==null){val=r.defaultKey?$.trim(_that.value[r.defaultKey]):$.trim(_that.value[r.key])}
if(r.ignore!==!0){requiredCount=index+1}
if(val==""){continue}
valid=!0;if(parent==null){parent={v:val,l:val,};options.push(parent)}else{parent.c=[{v:val,l:val,}];parent=parent.c[0]}
selectedValue.push(val)}
Vue.set(_that,"selectedValue",selectedValue);_that.rule.valid=valid;Vue.set(_that,"requiredCount",requiredCount);Vue.set(_that,"changeOnSelect",items.length!==requiredCount);if(reload){Vue.set(_that,"options",options)}},},computed:{requiredVal:function(){if(!this.required){return!1}
return!0},placeholderStr:function(){var str=this.$attrs.placeholder?this.$attrs.placeholder:"请选择"+this.name;var str=str.replace(/<[^>]+>/g,"");return $.trim(str)},},});
Vue.component('f-input',{template:load_vue_template("f-input"),inheritAttrs:!1,props:{required:{type:Boolean,default:!0},hasError:{type:Boolean,default:!1},name:{type:String,default:""},help:{type:String,default:""},label:{type:String,default:""},prop:{type:String,default:""},value:{type:[String,Number],default:""},defaultValue:{type:[String,Number],default:""},},watch:{currentValue:function(val){this.$emit("input",val);this.$emit("change",val)},value:function(val){this.currentValue=val}},data:function(){return{currentValue:this.value}},methods:{onKeyup:function(){this.$emit("keyup",this.currentValue)},init:function(){var _that=this;if(_that.value==""&&_that.defaultValue!=""){Vue.set(_that,"value",_that.defaultValue)}}},computed:{requiredVal:function(){if(!this.required){return!1}
return!0},placeholderStr:function(){var str=this.$attrs.placeholder?this.$attrs.placeholder:this.name;var str=str.replace(/<[^>]+>/g,"");return $.trim(str)},validateStatus:function(){return this.hasError?'error':undefined},},mounted:function(){var _that=this;_that.init()},});
Vue.component('f-input-number',{template:load_vue_template("f-input-number"),inheritAttrs:!1,data:function(){return{currentValue:this.value,d_min:0,d_max:999999999,}},props:{required:{type:Boolean,default:!0},name:{type:String,default:""},help:{type:String,default:""},label:{type:String,default:""},prop:{type:String,default:""},min:{type:[String,Number],default:0},max:{type:[String,Number],default:999999999},value:{type:[String,Number],default:""},step:{type:[String,Number],default:"1"},formatter:{type:Function,default:function(value){return value}},defaultValue:{type:[String,Number],default:""},},watch:{currentValue:function(val){this.$emit("input",val);this.$emit("change",val)},value:function(val){this.currentValue=val},min:function(val){this.initNumber()},max:function(val){this.initNumber()}},methods:{init:function(){var _that=this;if(_that.value==""&&_that.defaultValue!=""){Vue.set(_that,"value",_that.defaultValue)}},initNumber:function(){var _that=this;var min=_that.min;var max=_that.max;if(min===""||min==null||isNaN(min)){min=0}
_that.d_min=parseFloat(min);if(_that.currentValue<_that.d_min){_that.currentValue=_that.d_min}
if(max===""||max==null||isNaN(max)){max=999999999}
_that.d_max=parseFloat(max);if(_that.currentValue>_that.d_max){_that.currentValue=_that.d_max}},onKeyup:function(){this.$emit("keyup",this.currentValue)}},computed:{requiredVal:function(){if(!this.required){return!1}
return!0},placeholderStr:function(){var str=this.$attrs.placeholder?this.$attrs.placeholder:this.name;var str=str.replace(/<[^>]+>/g,"");return $.trim(str)},},mounted:function(){var _that=this;_that.init();_that.initNumber()}});
Vue.component('f-select',{template:load_vue_template("f-select"),inheritAttrs:!1,props:{required:{type:Boolean,default:!0},name:{type:String,default:""},split:{type:String,default:""},help:{type:String,default:""},label:{type:String,default:""},prop:{type:String,default:""},all:{type:String,default:""},mode:{type:String,default:"default"},tagsDropdown:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},tokenSeparators:{type:Array,default:function(){return[' ',',','，','\n','\r']}},options:{type:Array,default:function(){return[]}},disabledOptions:{type:Array,default:function(){return[]}},field:{type:Object,default:function(){return{value:"v",text:"t"}}},value:{type:[String,Number,Array,Object],default:undefined},filterOption:{type:Function,default:function(input,option){if(!option){return!0}
var tag=option.componentOptions.children[0];var val=$.trim(option.componentOptions.propsData.value);input=$.trim(input.toLowerCase());if(val.toLowerCase().indexOf(input)>=0){return!0}
var text=$.trim(tag.text);if(text!==null&&text.toLowerCase().indexOf(input.toLowerCase())>=0){return!0}
text=$.trim(tag.elm.innerText);if(text!==null&&text.toLowerCase().indexOf(input.toLowerCase())>=0){return!0}
return!1}},},watch:{tranValue:function(val,oldVal){this.$emit("input",val);this.$emit("change",val)},value:function(val,oldVal){this.doTranValue(val)},options:function(val){var _that=this;_that.tranOptions=_that.getTranOptions()},mode:function(val){var _that=this;_that.init()}},data:function(){return{valueChanging:!1,tranValue:undefined,tranOptions:[],dropdownClass:""}},methods:{doTranValue:function(val){var _that=this;if(!(_that.mode!='default'&&_that.all&&_.indexOf(val,_that.all)>-1&&val.length>1)){if(JSON.stringify(val)==JSON.stringify(_that.tranValue)){return}}
var newVal=val;if(_that.mode=='default'){newVal=$.trim(val)==""?undefined:$.trim(val);newVal=_that.validValue(newVal);Vue.set(_that,"tranValue",newVal)}else{if(val=="[]"||val==null){val=[]}
if(!_.isArray(val)){if(_that.split){newVal=val?val.split(_that.split):[]}else{newVal=val.length==0?[]:_.toArray(val)}}
if(_that.all&&_.indexOf(newVal,_that.all)>-1&&newVal.length>1){newVal=_.filter(newVal,function(item){return item!=_that.all});newVal=[_that.all]}
newVal=_.toArray(newVal);Vue.set(_that,"tranValue",newVal)}},isDisabled:function(item){var _that=this;var id=item[_that.field.value];if($.inArray(id,_that.disabledOptions)>-1){return!0}
return!1},validValue:function(val){var _that=this;if(!val){return val}
var options=_that.tranOptions;var field_value=this.field.value;var valid=!1;_.forEach(options,function(option){var tmpVal=option[field_value];if(valid){return}
if(tmpVal==val){valid=!0}});return val},getTranOptions:function(){var _that=this;var val=_that.options;var field_value=this.field.value;var field_text=this.field.text;var tran=[];_.forEach(val,function(option){if(!_.isArray(option)&&!_.isObject(option)){tran.push(_.fromPairs([[field_value,$.trim(option)],[field_text,$.trim(option)]]))}else{option[field_value]=$.trim(option[field_value]);tran.push(option)}});return tran},init:function(){var _that=this;_that.dropdownClass=(_that.mode=="tags"&&!_that.tagsDropdown)?"d-none":""},onSearch:function(value){this.$emit("search",value)},onDeselect:function(value,option){this.$emit("deselect",value,option)},onSelect:function(value,option){this.$emit("select",value,option)},onChange:function(value,option){var _that=this;this.$emit("onChange",value,option);_that.$nextTick(function(){_that.$refs['item-ref'].onFieldChange()})}},computed:{requiredVal:function(){if(!this.required){return!1}
return!0},placeholderStr:function(){var str=this.$attrs.placeholder?this.$attrs.placeholder:"请选择"+this.name;var str=$.trim(str.replace(/<[^>]+>/g,""));if(this.mode=='multiple'){str="(可多选) "+str}
return str},},mounted:function(){var _that=this;_that.tranOptions=_that.getTranOptions();_that.doTranValue(_that.value);_that.init()}});
Vue.component('f-textarea',{template:load_vue_template("f-textarea"),inheritAttrs:!1,props:{required:{type:Boolean,default:!0},name:{type:String,default:""},label:{type:String,default:""},prop:{type:String,default:""},help:{type:String,default:""},value:{type:String,default:""},autoSize:{type:Boolean,default:!1},rows:{type:Number,default:3},},watch:{currentValue:function(val){this.$emit("input",val);this.$emit("change",val)},value:function(val){this.currentValue=val}},data:function(){return{currentValue:this.value}},methods:{format:function(){var _that=this;var re=/<br\s*\/?\s*>/ig;_that.currentValue=_that.currentValue.replace(re,"\n");_that.currentValue=_that.currentValue.replaceAll("\\n","\n")}},computed:{requiredVal:function(){if(!this.required){return!1}
return!0},placeholderStr:function(){var str=this.$attrs.placeholder?this.$attrs.placeholder:this.name;var str=str.replace(/<[^>]+>/g,"");return $.trim(str)},},mounted:function(){var _that=this;_that.format()},updated:function(){var _that=this;_that.format()}});
Vue.component('f-check-box',{inheritAttrs:!1,template:load_vue_template("f-check-box"),props:{required:{type:Boolean,default:!0},name:{type:String,default:""},split:{type:String,default:""},prop:{type:String,default:""},xs:{type:Number,default:12},sm:{type:Number,default:6},value:{type:[String,Array],default:function(){return[]}},showSelectAll:{type:Boolean,default:!0},options:{type:[Object,Array],default:function(){return[]}},field:{type:Object,default:function(){return{value:"v",text:"t"}}},},watch:{options:function(val){var _that=this;_that.tranOptions=_that.getTranOptions(val)},value:function(val,oldVal){var _that=this;if(_that.isCurrentValueChange){_that.isCurrentValueChange=!1;return}
_that.onChange(val)},},data:function(){return{checkAll:!1,indeterminate:!1,isCurrentValueChange:!1,currentValue:undefined,tranOptions:[]}},mounted:function(){var _that=this;_that.init()},methods:{init:function(){var _that=this;_that.tranOptions=_that.getTranOptions(_that.options);_that.onChange(_that.value)},getTranOptions:function(val){var field_value=this.field.value;var field_text=this.field.text;var tran=[];_.forEach(val,function(option){if(!_.isArray(option)&&!_.isObject(option)){tran.push(_.fromPairs([[field_value,$.trim(option)],[field_text,$.trim(option)]]))}else{option[field_value]=$.trim(option[field_value]);tran.push(option)}});return tran},onCheckAllChange(e){var _that=this;_that.checkAll=e.target.checked;_that.indeterminate=!1;var field_value=this.field.value;var values=[];if(_that.checkAll){_.forEach(_that.tranOptions,function(option){values.push(option[field_value])})}
_that.onChange(values)},onChange(checkedList){var _that=this;checkedList=_.isArray(checkedList)?checkedList:[];_that.indeterminate=!!checkedList.length&&checkedList.length<_that.options.length;_that.checkAll=checkedList.length===_that.options.length;checkedList=checkedList.sort();_that.isCurrentValueChange=!0;_that.currentValue=checkedList;_that.$emit("input",_that.currentValue);_that.$emit("change",_that.currentValue)},},computed:{requiredVal:function(){if(!this.required){return!1}
return!0},},});
Vue.component('f-radio',{template:load_vue_template("f-radio"),props:{required:{type:Boolean,default:!0},name:{type:String,default:""},help:{type:String,default:""},prop:{type:String,default:""},button:{type:Boolean,default:!1},value:{type:[String,Number],default:""},options:{type:[Object,Array],default:function(){return[]}},field:{type:Object,default:function(){return{value:"v",text:"t"}}},},watch:{options:function(val){var _that=this;_that.tranOptions=_that.getTranOptions(val)},value:function(val,oldVal){var _that=this;_that.onChange(val)},},data:function(){return{currentValue:undefined,tranOptions:[]}},mounted:function(){var _that=this;_that.$nextTick(function(){_that.init()})},methods:{init:function(){var _that=this;_that.tranOptions=_that.getTranOptions(_that.options);_that.onChange(_that.value)},getTranOptions:function(val){var field_value=this.field.value;var field_text=this.field.text;var tran=[];_.forEach(val,function(option){if(!_.isArray(option)&&!_.isObject(option)){tran.push(_.fromPairs([["value",option],["label",option]]))}else{tran.push(_.fromPairs([["value",option[field_value]],["label",option[field_text]]]))}});return tran},onClickChange:function(e){var _that=this;var value=e.target.value;_that.onChange(value)},onChange:function(value){var _that=this;_that.currentValue=$.trim(value);_that.$emit("input",_that.currentValue);_that.$emit("change",_that.currentValue)},},computed:{requiredVal:function(){if(!this.required){return!1}
return!0},},});