UNPKG

@xysfe/actui

Version:

A fantastic mobile ui lib implement by Vue

1 lines 76.3 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.OcrLayer=e():t.OcrLayer=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},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="../lib",e(e.s=1950)}({0:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},1:function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,c){t=t||{};var u=typeof t.default;"object"!==u&&"function"!==u||(t=t.default);var s="function"==typeof t?t.options:t;e&&(s.render=e,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId=i);var f;if(a?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},s._ssrRegister=f):o&&(f=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(s.functional){s._injectStyles=f;var l=s.render;s.render=function(t,e){return f.call(e),l(t,e)}}else{var p=s.beforeCreate;s.beforeCreate=p?[].concat(p,f):[f]}return{exports:t,options:s}}e.a=r},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,n){t.exports={default:n(101),__esModule:!0}},101:function(t,e,n){n(55),t.exports=n(0).Object.getOwnPropertySymbols},102:function(t,e,n){"use strict";function r(t){var e={},n={},r={};for(var u in t)if(t.hasOwnProperty(u))if(-1!==c.indexOf(u))e[u]=t[u];else if(a.test(u)){var s=a.exec(u)[1];s=Object(i.a)(s),r[s]=t[u]}else n[u]=t[u];return e.on=Object(o.a)(r,e.on),e.props=Object(o.a)(n,e.props),e}e.a=r;var o=n(62),i=n(103),a=new RegExp(/^on(.+)/),c=["class","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"]},103:function(t,e,n){"use strict";function r(t,e){var n=u(t,e);return n.charAt(0).toLowerCase()+n.slice(1)}e.a=r;var o=n(28),i=n.n(o),a=n(4),c=function(t){for(var e=!1,n=!1,r=!1,o=0;o<t.length;o++){var i=t[o];e&&/[a-zA-Z]/.test(i)&&i.toUpperCase()===i?(t=t.slice(0,o)+"-"+t.slice(o),e=!1,r=n,n=!0,o++):n&&r&&/[a-zA-Z]/.test(i)&&i.toLowerCase()===i?(t=t.slice(0,o-1)+"-"+t.slice(o-1),r=n,n=!1,e=!0):(e=i.toLowerCase()===i&&i.toUpperCase()!==i,r=n,n=i.toUpperCase()===i&&i.toLowerCase()!==i)}return t},u=function(t,e){if("string"!=typeof t&&!Object(a.p)(t))throw new TypeError("Expected the input to be `string | string[]`");e=i()({pascalCase:!1},e);return t=Array.isArray(t)?t.map(function(t){return t.trim()}).filter(function(t){return t.length}).join("-"):t.trim(),0===t.length?"":1===t.length?e.pascalCase?t.toUpperCase():t.toLowerCase():(t!==t.toLowerCase()&&(t=c(t)),t=t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,function(t,e){return e.toUpperCase()}).replace(/\d+(\w|$)/g,function(t){return t.toUpperCase()}),function(t){return e.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t}(t))}},104:function(t,e,n){"use strict";function r(t,e,n,r){var i=void 0,a=void 0,c=new t({render:function(t){var n=a&&a(t);return n&&!Object(o.p)(n)&&(n=[n]),t(e,i,n||[])},methods:{init:function(){document.body.appendChild(this.$el)},destroy:function(){this.$destroy(),document.body.removeChild(this.$el)}}});return c.updateRenderData=function(t,e){i=t,a=e},c.updateRenderData(n,r),c.$mount(),c.init(),c.$children[0]}e.a=r;var o=n(4)},106:function(t,e,n){"use strict";e.__esModule=!0;var r=n(28),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},107:function(t,e,n){var r=n(26),o=n(3)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(c=r(e))&&"function"==typeof e.callee?"Arguments":c}},11:function(t,e,n){var r=n(47),o=n(29);t.exports=function(t){return r(o(t))}},110:function(t,e,n){var r=n(9),o=n(40),i=n(3)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},111:function(t,e,n){var r,o,i,a=n(38),c=n(146),u=n(60),s=n(41),f=n(2),l=f.process,p=f.setImmediate,d=f.clearImmediate,h=f.MessageChannel,v=f.Dispatch,m=0,y={},g=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},b=function(t){g.call(t.data)};p&&d||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return y[++m]=function(){c("function"==typeof t?t:Function(t),e)},r(m),m},d=function(t){delete y[t]},"process"==n(26)(l)?r=function(t){l.nextTick(a(g,t,1))}:v&&v.now?r=function(t){v.now(a(g,t,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",b,!1)):r="onreadystatechange"in s("script")?function(t){u.appendChild(s("script")).onreadystatechange=function(){u.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:p,clear:d}},112:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},113:function(t,e,n){var r=n(9),o=n(10),i=n(68);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},114:function(t,e,n){"use strict";function r(t){t.interceptors.response.use(function(t){return t},function(t){var e={403:"请求被拒绝,请联系客服处理",404:"您访问的资源不可用,请联系客服处理",502:"服务器网关出错,请稍后重试",503:"服务器维护中,请稍后重试",504:"服务器请求超时,请稍后重试"},n="";return n=t&&t.response&&t.response.status?e[t.response.status]?e[t.response.status]+"("+t.response.status+")":"请求失败,请稍后重试("+t.response.status+")":t&&t.message&&/timeout/i.test(t.message)?"请求超时,请稍后重试":"请求失败,请稍后重试",c.a.reject(new Error(n))})}function o(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return new c.a(function(o,i){var a=s.a.create();r(a),a.request({method:"post",url:t,data:e,timeout:n,withCredentials:!0,headers:{"X-Requested-With":"XMLHttpRequest"}}).then(function(t){o(t)}).catch(function(t){i(t)})})}function i(t){return s.a.get(t).then(function(t){return c.a.resolve(t.data)})}e.a=r,e.d=o,e.c=i;var a=n(52),c=n.n(a),u=n(164),s=n.n(u);e.b=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return new c.a(function(o,i){var a=s.a.create();r(a),a.request({method:"post",url:t,data:e,timeout:n,withCredentials:!0,headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/x-www-form-urlencoded"},transformRequest:[function(t){function e(t,e){var n=0,r=t.length;if(void 0===r||"[object Function]"===Object.prototype.toString.call(t)){for(var o in t)if(!1===e.call(t[o],o,t[o]))break}else for(var i=t[0];n<r&&!1!==e.call(i,n,i);i=t[++n]);return t}function n(t,r,o){var i=void 0,a="[object Array]"===Object.prototype.toString.call(r),c="[object Object]"===Object.prototype.toString.call(r);e(r,function(e,r){i=Object.prototype.toString.call(r),o&&(e=o+"["+(c||"[object Object]"===i||"[object Array]"===i?e:"")+"]"),!o&&a?t.add(r.name,r.value):"[object Array]"===i||"[object Object]"===i?n(t,r,e):t.add(e,r)})}if(t){return function(t){var e=[];return e.add=function(t,e){"[object Function]"===Object.prototype.toString.call(e)&&(e=e()),null==e&&(e=""),this.push(encodeURIComponent(t)+"="+encodeURIComponent(e))},n(e,t),e.join("&").replace(/%20/g,"+")}(t)}}]}).then(function(t){o(t)}).catch(function(t){i(t)})})}},115:function(t,e,n){var r=n(107),o=n(3)("iterator"),i=n(18);t.exports=n(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},123:function(t,e,n){var r=n(38),o=n(136),i=n(137),a=n(9),c=n(59),u=n(115),s={},f={},e=t.exports=function(t,e,n,l,p){var d,h,v,m,y=p?function(){return t}:u(t),g=r(n,l,e?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(d=c(t.length);d>b;b++)if((m=e?g(a(h=t[b])[0],h[1]):g(t[b]))===s||m===f)return m}else for(v=y.call(t);!(h=v.next()).done;)if((m=o(v,g,h.value,e))===s||m===f)return m};e.BREAK=s,e.RETURN=f},124:function(t,e,n){t.exports={default:n(186),__esModule:!0}},125:function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},126:function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(17);t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(o.isURLSearchParams(e))i=e.toString();else{var a=[];o.forEach(e,function(t,e){null!==t&&void 0!==t&&(o.isArray(t)?e+="[]":t=[t],o.forEach(t,function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))}))}),i=a.join("&")}if(i){var c=t.indexOf("#");-1!==c&&(t=t.slice(0,c)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},127:function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},128:function(t,e,n){"use strict";(function(e){function r(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var o=n(17),i=n(170),a={"Content-Type":"application/x-www-form-urlencoded"},c={adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=n(129):void 0!==e&&"[object process]"===Object.prototype.toString.call(e)&&(t=n(129)),t}(),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(r(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)?(r(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(t){c.headers[t]={}}),o.forEach(["post","put","patch"],function(t){c.headers[t]=o.merge(a)}),t.exports=c}).call(e,n(153))},129:function(t,e,n){"use strict";var r=n(17),o=n(171),i=n(126),a=n(173),c=n(176),u=n(177),s=n(130);t.exports=function(t){return new Promise(function(e,f){var l=t.data,p=t.headers;r.isFormData(l)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var h=t.auth.username||"",v=t.auth.password||"";p.Authorization="Basic "+btoa(h+":"+v)}var m=a(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),i(m,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?c(d.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?d.response:d.responseText,i={data:r,status:d.status,statusText:d.statusText,headers:n,config:t,request:d};o(e,f,i),d=null}},d.onabort=function(){d&&(f(s("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){f(s("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),f(s(e,t,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var y=n(178),g=(t.withCredentials||u(m))&&t.xsrfCookieName?y.read(t.xsrfCookieName):void 0;g&&(p[t.xsrfHeaderName]=g)}if("setRequestHeader"in d&&r.forEach(p,function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete p[e]:d.setRequestHeader(e,t)}),r.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){d&&(d.abort(),f(t),d=null)}),void 0===l&&(l=null),d.send(l)})}},13:function(t,e,n){var r=n(2),o=n(0),i=n(38),a=n(7),c=n(6),u=function(t,e,n){var s,f,l,p=t&u.F,d=t&u.G,h=t&u.S,v=t&u.P,m=t&u.B,y=t&u.W,g=d?o:o[e]||(o[e]={}),b=g.prototype,x=d?r:h?r[e]:(r[e]||{}).prototype;d&&(n=e);for(s in n)(f=!p&&x&&void 0!==x[s])&&c(g,s)||(l=f?x[s]:n[s],g[s]=d&&"function"!=typeof x[s]?n[s]:m&&f?i(l,r):y&&x[s]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):v&&"function"==typeof l?i(Function.call,l):l,v&&((g.virtual||(g.virtual={}))[s]=l,t&u.R&&b&&!b[s]&&a(b,s,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},130:function(t,e,n){"use strict";var r=n(172);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},131:function(t,e,n){"use strict";var r=n(17);t.exports=function(t,e){e=e||{};var n={},o=["url","method","params","data"],i=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(o,function(t){void 0!==e[t]&&(n[t]=e[t])}),r.forEach(i,function(o){r.isObject(e[o])?n[o]=r.deepMerge(t[o],e[o]):void 0!==e[o]?n[o]=e[o]:r.isObject(t[o])?n[o]=r.deepMerge(t[o]):void 0!==t[o]&&(n[o]=t[o])}),r.forEach(a,function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])});var c=o.concat(i).concat(a),u=Object.keys(e).filter(function(t){return-1===c.indexOf(t)});return r.forEach(u,function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])}),n}},132:function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},136:function(t,e,n){var r=n(9);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},137:function(t,e,n){var r=n(18),o=n(3)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},139:function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},14:function(t,e,n){"use strict";function r(t,e){return function(n,r){var a=this,c=Object(o.a)(n),u=Object(i.a)(e,t,c,r),s=u.$parent,f=u.remove,l=u.show,p=u.hide;return u.remove=function(){u.$removed=!0,f&&f.call(this),s.destroy()},u.show=function(){return l&&l.call.apply(l,[this].concat(Array.prototype.slice.call(arguments))),this},u.hide=function(){return p&&p.call.apply(p,[this].concat(Array.prototype.slice.call(arguments))),this},a&&a._isVue&&a.$once("hook:beforeDestroy",function(){u.$removed||u.remove()}),u}}e.a=r;var o=n(102),i=n(104)},140:function(t,e,n){var r=n(7);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},141:function(t,e,n){var r=n(3)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},142:function(t,e,n){"use strict";var r=n(2),o=n(0),i=n(8),a=n(5),c=n(3)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];a&&e&&!e[c]&&i.f(e,c,{configurable:!0,get:function(){return this}})}},144:function(t,e,n){n(61),n(53),n(56),n(145),n(149),n(150),t.exports=n(0).Promise},145:function(t,e,n){"use strict";var r,o,i,a,c=n(16),u=n(2),s=n(38),f=n(107),l=n(13),p=n(10),d=n(40),h=n(139),v=n(123),m=n(110),y=n(111).set,g=n(147)(),b=n(68),x=n(112),w=n(148),O=n(113),j=u.TypeError,_=u.process,S=_&&_.versions,T=S&&S.v8||"",A=u.Promise,C="process"==f(_),I=function(){},E=o=b.f,P=!!function(){try{var t=A.resolve(1),e=(t.constructor={})[n(3)("species")]=function(t){t(I,I)};return(C||"function"==typeof PromiseRejectionEvent)&&t.then(I)instanceof e&&0!==T.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),k=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},L=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0;n.length>i;)!function(e){var n,i,a,c=o?e.ok:e.fail,u=e.resolve,s=e.reject,f=e.domain;try{c?(o||(2==t._h&&M(t),t._h=1),!0===c?n=r:(f&&f.enter(),n=c(r),f&&(f.exit(),a=!0)),n===e.promise?s(j("Promise-chain cycle")):(i=k(n))?i.call(n,u,s):u(n)):s(r)}catch(t){f&&!a&&f.exit(),s(t)}}(n[i++]);t._c=[],t._n=!1,e&&!t._h&&R(t)})}},R=function(t){y.call(u,function(){var e,n,r,o=t._v,i=N(t);if(i&&(e=x(function(){C?_.emit("unhandledRejection",o,t):(n=u.onunhandledrejection)?n({promise:t,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=C||N(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},M=function(t){y.call(u,function(){var e;C?_.emit("rejectionHandled",t):(e=u.onrejectionhandled)&&e({promise:t,reason:t._v})})},U=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),L(e,!0))},B=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw j("Promise can't be resolved itself");(e=k(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,s(B,r,1),s(U,r,1))}catch(t){U.call(r,t)}}):(n._v=t,n._s=1,L(n,!1))}catch(t){U.call({_w:n,_d:!1},t)}}};P||(A=function(t){h(this,A,"Promise","_h"),d(t),r.call(this);try{t(s(B,this,1),s(U,this,1))}catch(t){U.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(140)(A.prototype,{then:function(t,e){var n=E(m(this,A));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=C?_.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=s(B,t,1),this.reject=s(U,t,1)},b.f=E=function(t){return t===A||t===a?new i(t):o(t)}),l(l.G+l.W+l.F*!P,{Promise:A}),n(27)(A,"Promise"),n(142)("Promise"),a=n(0).Promise,l(l.S+l.F*!P,"Promise",{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(c||!P),"Promise",{resolve:function(t){return O(c&&this===a?A:this,t)}}),l(l.S+l.F*!(P&&n(141)(function(t){A.all(t).catch(I)})),"Promise",{all:function(t){var e=this,n=E(e),r=n.resolve,o=n.reject,i=x(function(){var n=[],i=0,a=1;v(t,!1,function(t){var c=i++,u=!1;n.push(void 0),a++,e.resolve(t).then(function(t){u||(u=!0,n[c]=t,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=E(e),r=n.reject,o=x(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},146:function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},147:function(t,e,n){var r=n(2),o=n(111).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,c=r.Promise,u="process"==n(26)(a);t.exports=function(){var t,e,n,s=function(){var r,o;for(u&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(s)};else if(!i||r.navigator&&r.navigator.standalone)if(c&&c.resolve){var f=c.resolve(void 0);n=function(){f.then(s)}}else n=function(){o.call(r,s)};else{var l=!0,p=document.createTextNode("");new i(s).observe(p,{characterData:!0}),n=function(){p.data=l=!l}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},148:function(t,e,n){var r=n(2),o=r.navigator;t.exports=o&&o.userAgent||""},149:function(t,e,n){"use strict";var r=n(13),o=n(0),i=n(2),a=n(110),c=n(113);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return c(e,t()).then(function(){return n})}:t,n?function(n){return c(e,t()).then(function(){throw n})}:t)}})},15:function(t,e,n){var r=n(50),o=n(33);t.exports=Object.keys||function(t){return r(t,o)}},150:function(t,e,n){"use strict";var r=n(13),o=n(68),i=n(112);r(r.S,"Promise",{try:function(t){var e=o.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},153:function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(f===setTimeout)return setTimeout(t,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function i(t){if(l===clearTimeout)return clearTimeout(t);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function a(){v&&d&&(v=!1,d.length?h=d.concat(h):m=-1,h.length&&c())}function c(){if(!v){var t=o(a);v=!0;for(var e=h.length;e;){for(d=h,h=[];++m<e;)d&&d[m].run();m=-1,e=h.length}d=null,v=!1,i(t)}}function u(t,e){this.fun=t,this.array=e}function s(){}var f,l,p=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(t){f=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(t){l=r}}();var d,h=[],v=!1,m=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new u(t,e)),1!==h.length||v||o(c)},u.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=s,p.addListener=s,p.once=s,p.off=s,p.removeListener=s,p.removeAllListeners=s,p.emit=s,p.prependListener=s,p.prependOnceListener=s,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},1553:function(t,e,n){"use strict";var r=n(52),o=n.n(r),i=n(106),a=n.n(i),c=n(124),u=n.n(c),s=n(241),f=n(20),l={0:"身份证",1:"出生证",2:"护照",3:"港澳通行证",4:"台胞证",5:"军官证",6:"户口本",7:"大陆通行证",8:"回乡证",9:"警官证",10:"港澳台通行证",11:"士兵证",12:"台湾通行证",13:"港澳居住证",14:"社会统一信用代码",15:"组织机构代码证",16:"税务登记证",17:"工商营业执照号",18:"港澳台居住证",99:"其他"};e.a={name:"ActocrLayer",mixins:[f.a],data:function(){return{elements:[],preOverflowValue:""}},props:{sourceType:{type:Array,default:function(){return["album","camera"]}},appId:{type:[Number,String],default:""},imageList:{type:Array,default:function(){return[]}},list:{type:Array,default:function(){return[]}},brandColor:{type:String,default:"#8c7fee"},zIndex:{type:Number,default:100},btnColor:{type:String,default:"#ff5a6e"}},computed:{needDesc:function(){for(var t=[],e=this.list,n=Array.isArray(e),r=0,e=n?e:u()(e);;){var o;if(n){if(r>=e.length)break;o=e[r++]}else{if(r=e.next(),r.done)break;o=r.value}var i=o;t.push(""+l[i.idType])}return t.join("、")},extraZindex:function(){return 1e3+~~this.zIndex}},watch:{isVisible:function(t){t?(this.preOverflowValue=document&&document.body&&document.body.style&&document.body.style.overflow,this.initPage(),document.body.style.overflow="hidden"):document.body.style.overflow=this.preOverflowValue||"auto"}},methods:{initPage:function(){for(var t=[],e=this.list,n=Array.isArray(e),r=0,e=n?e:u()(e);;){var o;if(n){if(r>=e.length)break;o=e[r++]}else{if(r=e.next(),r.done)break;o=r.value}var i=o;t.push.apply(t,this.generateElement(i))}this.elements=t},generateElement:function(t){var e=[],n=a()({picBase:"",picId:""},t);if(0===t.idType?(e.push(a()({},n,{side:1,desc:t.name+"身份证(头像面)"})),e.push(a()({},n,{side:2,desc:t.name+"身份证(国徽面)"}))):1===t.idType?e.push(a()({},n,{side:1,desc:t.name+"出生证"})):2===t.idType?e.push(a()({},n,{side:1,desc:t.name+"护照"})):6===t.idType&&e.push(a()({},n,{side:1,desc:t.name+"户口本(本人页)"})),this.imageList&&this.imageList.length)for(var r=this.imageList,o=Array.isArray(r),i=0,r=o?r:u()(r);;){var c;if(o){if(i>=r.length)break;c=r[i++]}else{if(i=r.next(),i.done)break;c=i.value}var s=c;1===Number(s.side)?(e[0].picBase=s.url,e[0].picId=s.picId):2===Number(s.side)&&(e[1].picBase=s.url,e[1].picId=s.picId)}return e},upload:function(t){var e=this,n=t.idType,r=t.identity,i=t.name,c=t.side,u=t.url,f=t.ext,l=t.picType,p=void 0===l?0:l;s.default.ocr({sourceType:this.sourceType,appId:this.appId||"",url:u,ext:a()({picType:p,idtype:n,identity:r,name:i},f,{side:c}),beforeUpload:function(){e.showToast("请稍等...",0)},complete:function(){e.hideToast()}}).then(function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.ret,i=n.data,a=n.errmsg;if(!Number(0===r))return o.a.reject({errmsg:a});var c=i||{},u=c.dataBase,s=c.localId,f=c.picId,l=c.url,p=c.pic_id,d=c.picurl;t.picUrl=l||d,t.picBase=l||u||s||d,t.picId=f||p,e._checkReady()}).catch(function(t){e.hideToast(),e.showDialog({dialogType:1,dialogData:[t.errmsg||"系统繁忙,请稍后重试..."],confirmbtnText:"返回重新上传"})})},_checkReady:function(){var t=this.elements||[],e=!0;if(t.length)for(var n=t,r=Array.isArray(n),o=0,n=r?n:u()(n);;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if(o=n.next(),o.done)break;i=o.value}var a=i;if(!a.picId||!a.picBase){e=!1;break}}e&&this._getResult()},_getResult:function(){var t=this.elements||[],e=[];if(t.length)for(var n=t,r=Array.isArray(n),o=0,n=r?n:u()(n);;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if(o=n.next(),o.done)break;i=o.value}var a=i,c=a.idType,s=a.identity,f=a.name,l=a.side,p=a.picBase,d=a.picId;e.push({idType:c,identity:s,name:f,url:p,side:l,picId:d})}this.showToast("上传完成"),this.$emit("ocrsuccess",e),this.hide()},showDialog:function(t){var e=t.dialogType,n=void 0===e?1:e,r=t.dialogTitle,o=void 0===r?"":r,i=t.dialogData,a=t.cancelbtnText,c=void 0===a?"取消":a,u=t.confirmbtnText,s=void 0===u?"确定":u,f=t.onConfirm,l=void 0===f?function(){}:f,p=this.$createGoldDialog({zIndex:this.extraZindex,closable:!1,title:o,content:i.join("<br/>"),buttonType:"sticky",showCancelButton:1!==Number(n),cancelButtonText:c,confirmButtonText:s,confirmButtonColor:this.brandColor,onConfirm:function(){p&&p.remove(),l()}});p.show()},showToast:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3;this.hideToast(),this.toast||(this.toast=this.$createToast()),this.toast.show(t,e)},hideToast:function(){this.toast&&this.toast.hide()}}}},16:function(t,e){t.exports=!0},164:function(t,e,n){t.exports=n(165)},165:function(t,e,n){"use strict";function r(t){var e=new a(t),n=i(a.prototype.request,e);return o.extend(n,a.prototype,e),o.extend(n,e),n}var o=n(17),i=n(125),a=n(166),c=n(131),u=n(128),s=r(u);s.Axios=a,s.create=function(t){return r(c(s.defaults,t))},s.Cancel=n(132),s.CancelToken=n(179),s.isCancel=n(127),s.all=function(t){return Promise.all(t)},s.spread=n(180),t.exports=s,t.exports.default=s},166:function(t,e,n){"use strict";function r(t){this.defaults=t,this.interceptors={request:new a,response:new a}}var o=n(17),i=n(126),a=n(167),c=n(168),u=n(131);r.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=u(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[c,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},r.prototype.getUri=function(t){return t=u(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],function(t){r.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))}}),o.forEach(["post","put","patch"],function(t){r.prototype[t]=function(e,n,r){return this.request(o.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=r},167:function(t,e,n){"use strict";function r(){this.handlers=[]}var o=n(17);r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){o.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=r},168:function(t,e,n){"use strict";function r(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var o=n(17),i=n(169),a=n(127),c=n(128);t.exports=function(t){return r(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=o.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),o.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||c.adapter)(t).then(function(e){return r(t),e.data=i(e.data,e.headers,t.transformResponse),e},function(e){return a(e)||(r(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},169:function(t,e,n){"use strict";var r=n(17);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},17:function(t,e,n){"use strict";function r(t){return"[object Array]"===S.call(t)}function o(t){return void 0===t}function i(t){return null!==t&&!o(t)&&null!==t.constructor&&!o(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function a(t){return"[object ArrayBuffer]"===S.call(t)}function c(t){return"undefined"!=typeof FormData&&t instanceof FormData}function u(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function s(t){return"string"==typeof t}function f(t){return"number"==typeof t}function l(t){return null!==t&&"object"==typeof t}function p(t){return"[object Date]"===S.call(t)}function d(t){return"[object File]"===S.call(t)}function h(t){return"[object Blob]"===S.call(t)}function v(t){return"[object Function]"===S.call(t)}function m(t){return l(t)&&v(t.pipe)}function y(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function g(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function b(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function x(t,e){if(null!==t&&void 0!==t)if("object"!=typeof t&&(t=[t]),r(t))for(var n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function w(){function t(t,n){"object"==typeof e[n]&&"object"==typeof t?e[n]=w(e[n],t):e[n]=t}for(var e={},n=0,r=arguments.length;n<r;n++)x(arguments[n],t);return e}function O(){function t(t,n){"object"==typeof e[n]&&"object"==typeof t?e[n]=O(e[n],t):e[n]="object"==typeof t?O({},t):t}for(var e={},n=0,r=arguments.length;n<r;n++)x(arguments[n],t);return e}function j(t,e,n){return x(e,function(e,r){t[r]=n&&"function"==typeof e?_(e,n):e}),t}var _=n(125),S=Object.prototype.toString;t.exports={isArray:r,isArrayBuffer:a,isBuffer:i,isFormData:c,isArrayBufferView:u,isString:s,isNumber:f,isObject:l,isUndefined:o,isDate:p,isFile:d,isBlob:h,isFunction:v,isStream:m,isURLSearchParams:y,isStandardBrowserEnv:b,forEach:x,merge:w,deepMerge:O,extend:j,trim:g}},170:function(t,e,n){"use strict";var r=n(17);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},171:function(t,e,n){"use strict";var r=n(130);t.exports=function(t,e,n){var o=n.config.validateStatus;!o||o(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},172:function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},173:function(t,e,n){"use strict";var r=n(174),o=n(175);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},174:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},175:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},176:function(t,e,n){"use strict";var r=n(17),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}}),a):a}},177:function(t,e,n){"use strict";var r=n(17);t.exports=r.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(o.setAttribute("href",e),e=o.href),o.setAttribute("href",e),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return e=t(window.location.href),function(n){var o=r.isString(n)?t(n):n;return o.protocol===e.protocol&&o.host===e.host}}():function(){return function(){return!0}}()},178:function(t,e,n){"use strict";var r=n(17);t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,o,i,a){var c=[];c.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},179:function(t,e,n){"use strict";function r(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new o(t),e(n.reason))})}var o=n(132);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t;return{token:new r(function(e){t=e}),cancel:t}},t.exports=r},18:function(t,e){t.exports={}},180:function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},186:function(t,e,n){n(56),n(53),t.exports=n(187)},187:function(t,e,n){var r=n(9),o=n(115);t.exports=n(0).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},19:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},1950:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14),o=n(1951);o.a.install=function(t){t.component(o.a.name,o.a),t.prototype.$createOcrLayer=Object(r.a)(o.a,t)},e.default=o.a},1951:function(t,e,n){"use strict";function r(t){c||n(1952)}var o=n(1553),i=n(1953),a=n(1),c=!1,u=r,s=Object(a.a)(o.a,i.a,i.b,!1,u,"data-v-05bf76a1",null);s.options.__file="src\\components\\OcrLayer\\src\\index.vue",e.a=s.exports},1952:function(t,e){},1953:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"slide"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"ocr-layer",on:{touchmove:function(t){t.stopPropagation()}}},[n("div",{staticClass:"header-text"},[t._v("\n 尊敬的客户,按照监管要求,需要提供对应"+t._s(t.needDesc)+"。验证过程需要5-7秒,请耐心等待。\n ")]),t._v(" "),n("div",{staticClass:"tips"},[n("div",{staticClass:"sign"}),t._v(" "),n("div",{staticClass:"title"},[n("span",[t._v("请确保证件")]),t._v(" "),n("span",[t._v("边框完整,字体清晰,亮度均匀")])])]),t._v(" "),n("div",{staticClass:"pic-box"},t._l(t.elements,function(e){return n("div",{key:e.id,staticClass:"item"},[e.picBase?n("div",{staticClass:"item-img"},[n("img",{attrs:{src:e.picBase,alt:""}})]):n("div",{staticClass:"file-box",on:{click:function(n){return t.upload(e)}}},[n("div",{staticClass:"file-info"},[n("div",{staticClass:"file-icon"}),t._v(" "),n("div",{staticClass:"file-txt"},[t._v("\n "+t._s(e.desc)+"\n ")])])])])}),0),t._v(" "),n("div",{staticClass:"footer-btn",style:"backgroundColor:"+t.brandColor,on:{click:t.hide}},[t._v("\n 返回修改\n ")])])])},o=[];r._withStripped=!0},2:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},20:function(t,e,n){"use strict";var r={model:{prop:"visible",event:"toggle"},props:{visible:{type:Boolean,default:!1}},data:function(){return{preOverflowValue:"",isVisible:!1}},watch:{isVisible:function(t){this.$emit("toggle",t)}},mounted:function(){var t=this;this.$watch("visible",function(e,n){e?t.show():n&&t.hide()},{immediate:!0})},methods:{show:function(){return this.isVisible=!0,this},hide:function(){return this.isVisible=!1,this}},beforeDestroy:function(){this.hide()}};e.a=r},23:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},24:function(t,e,n){var r=n(29);t.exports=function(t){return Object(r(t))}},241:function(t,e,n){"use strict";function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.type=p?2:t.type,Object(l.a)(t).then(function(e){return 0===e.length?void(t.complete&&"function"==typeof t.complete&&t.complete(e)):(t.beforeUpload&&"function"==typeof t.beforeUpload&&t.beforeUpload(e),u.a.all(e.map(function(e){return a(t,e)})).then(function(e){var n=[];return e.map(function(t){t.data.url&&n.push(t.data)}),t.complete&&"function"==typeof t.complete&&t.complete(n),n}))})}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(l.a)(t)}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.appId,n=void 0===e?"":e,r=t.sourceType,o=void 0===r?["album","camera"]:r,i=t.url,a=void 0===i?"":i,c=t.ext,p=void 0===c?{}:c,d=t.beforeUpload,h=t.complete;return Object(l.a)({appId:n,sourceType:o,count:1}).then(function(t){return new u.a(function(e,n){if(d&&"function"==typeof d){var r=d(t);if(r&&Object(s.C)(r))return r.then(function(t){return e(t)}).catch(function(t){return n(t)})}e(t)}).then(function(t){return 0===t.length?u.a.resolve({ret:999998,errmsg:"用户取消"}):Object(f.b)({appId:n,url:a,ext:p},t[0]).then(function(t){return h&&"function"==typeof h&&h(t),t})}).catch(function(t){return u.a.resolve({ret:10001,errmsg:t.message})})})}function a(t,e){return Object(f.a)(t,e).then(function(e){return 29999===Number(e.ret)&&(p=!0),t.uploaded&&"function"==typeof t.uploaded&&t.uploaded(e),e})}Object.defineProperty(e,"__esModule",{value:!0});var c=n(52),u=n.n(c),s=n(4),f=n(378),l=n(416),p=!1;e.default={upload:r,choose:o,ocr:i,uploadFile:f.a}},25:function(t,e){e.f={}.propertyIsEnumerable},255:function(t,e,n){"use strict";function r(t){t="FileUpload前端错误[xxid:"+(a("xxid")||a("cps_xxid"))+"]:"+t;Object(f.b)("/muc/util/reportErr",{errMsg:t}).catch(function(t){})}function o(t,e){var n=t&&t.errMsg,r=!1;if(n&&s.K.isWx){var o="";if(/permission\sdenied/.test(n)){var i=e.sourceType;i.indexOf("album")>-1?o="请在设置-应用-微信-权限中开启存储权限":i.indexOf("camera")>-1&&(o="请在设置-应用-微信-权限中开启相机权限")}else/offline\sverifying/.test(n)&&(o="微信接口注册失败,请刷新页面重试",r=!0);return u.a.reject({ret:999999,errmsg:o,isWxInterfaceFail:r})}return u.a.resolve()}function i(t,e){if(t=t||"0.0.0",e=e||"0.0.0",t===e)return 0;for(var n=t.split("."),r=e.split("."),o=Math.max(n.length,r.length),i=0;i<o;i++){var a=~~r[i],c=~~n[i];if(a<c)return-1;if(a>c)return 1}return-1}function a(t){var e=new RegExp("(?:^|;+|\\s+)"+t+"=([^;]*)"),n=document.cookie.match(e);return n?n[1]:""}e.b=r,e.a=o,e.c=i;var c=n(52),u=n.n(c),s=n(4),f=n(114)},26:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},27:function(t,e,n){var r=n(8).f,o=n(6),i=n(3)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},28:function(t,e,n){t.exports={default:n(82),__esModule:!0}},29:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},3:function(t,e,n){var r=n(32)("wks"),o=n(23),i=n(2).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},30:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},31:function(t,e,n){var r=n(32)("keys"),o=n(23);t.exports=function(t){return r[t]||(r[t]=o(t))}},32:function(t,e,n){var r=n(0),o=n(2),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(16)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},33:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},34:function(t,e,n){var r=n(10);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},35:function(t,e){e.f=Object.getOwnPropertySymbols},36:function(t,e,n){e.f=n(3)},37:function(t,e,n){var r=n(2),o=n(0),i=n(16),a=n(36),c=n(8).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:a.f(t)})}},378:function(t,e,n){"use strict";function r(t,e){return t=Object(y.a)({},w,t),i(t,e)}function o(t,e){var n=t.appId,r=t.url,o=t.ext,i=void 0===o?{}:o;return r?Object(b.b)(r,h()({rawData:e.base64,serverid:e.serverId,appid:n},i)).then(function(t){var n=t.data,r=void 0===n?{}:n;return r.data=p()({},r.data,{dataBase:e.base64,localId:e.localId}),r},function(t){return m.a.resolve({ret:999999,errmsg:Object(x.k)(t)})}):m.a.resolve({ret:999999,errmsg:"uploadOcr url is required"})}function i(t,e){return e.base64?a(t,e):e.localId?c(t,e.localId,e.serverId):e.file?u(t,e.file):void 0}function a(t,e){var n=e.base64,r=e.size,o=e.name,i=void 0===o?"":o,a=t.maxSize&&1024*t.maxSize*1024||null;if(a&&r&&r>a)return m.a.resolve({ret:10001,errmsg:"上传的文件大小不能超过"+(t.maxSize||"20")+"MB",data:{}});var c="/platform/file/uploadPicture";t.extParam=t.extParam||{};var u=h()({},t.extParam,{imgdata:n,bizid:t.bizId,name:i});return t.requrestUrl&&(c=t.requrestUrl),Object(b.b)(c,u,6e5).then(function(t){var e=t.data,r=void 0===e?{}:e,o={ret:r.ret,errmsg:r.errmsg,data:{base64:n,response:r.data}};return Object(x.A)(r.data)&&r.data.url&&(o.data.url=r.data.url,o.data.origUrl=r.data.url.replace(/\?.*$/,"")),0===r.ret&&Object(x.D)(r.data)&&(o.data.url=r.data,o.data.origUrl=r.data.replace(/\?.*$/,"")),o},function(t){return Object(g.b)("uploadBase64 error "+f()(t)),m.a.resolve({ret:999999,errmsg:Object(x.k)(t),data:{base64:n}})})}function c(t,e,n){var r="/platform/file/uploadWxPicture";t.extParam=t.extParam||{};var o=h()({},t.extParam,{serverid:n,bizid:t.bizId,appid:t.appId});return t.requrestUrl&&(r=t.requrestUrl),Object(b.b)(r,o,6e5).then(function(t){var r=t.data,o=void 0===r?{}:r,i={ret:o.ret,errmsg:o.errmsg,data:{localId:e,serverId:n,response:o.data}};return Object(x.A)(o.data)&&o.data.url&&(i.data.url=o.data.url,i.data.origUrl=o.data.url.replace(/\?.*$/,"")),0===o.ret&&Object(x.D)(o.data)&&(i.data.url=o.data,i.data.origUrl=o.data.replace(/\?.*$/,"")),i},function(t){return Object(g.b)("uploadLocalId error "+f()(t)),m.a.resolve({ret:999999,errmsg:Object(x.k)(t),data:{localId:e,serverId:n}})})}function u(t,e){var n=t.maxSize&&1024*t.maxSize*1024||O;if(e.size&&e.size>n)return m.a.resolve({ret:10001,errmsg:"上传的文件大小不能超过"+(t.maxSize||"20")+"MB",data:{}});var r="/platform/file/uploadFile";t.url&&(r=t.url);var o=new window.FormData;o.append("file",e),o.append("bizid",t.bizId);var i=t.requestParams;if(Object(x.A)(i))for(var a in i)o.append(a,i[a]);return Object(b.d)(r,o,6e5).then(function(t){var n=t.data,r=void 0===n?{}:n,o={ret:r.ret,errmsg:r.errmsg,data:{name:e.name,type:e.type,size:e.size}};return 0===r.ret&&(r.data.file_url&&(r.data.url=r.data.file_url),o.data.name=r.data.name,o.data.url=r.data.url,o.data.origUrl=r.data.url.replace(/\?.*$/,""),o.data._rawData=r.data),o},function(t){return Object(g.b)("uploadOtherFile error "+f()(t)),m.a.resolve({ret:999999,errmsg:Object(x.k)(t),data:{}})})}e.a=r,e.b=o;var s=n(58),f=n.n(s),l=n(28),p=n.n(l),d=n(106),h=n.n(d),v=n(52),m=n.n(v),y=n(62),g=n(255),b=n(114),x=n(4),w={appId:"",bizId:""},O=20971520},38:function(t,e,n){var r=n(40);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},4:function(t,e,n){"use strict";function r(t,e){if(t.findIndex)return t.findIndex(e);var n=-1;return t.some(function(t,r,o){var i=e.call(this,t,r,o);if(i)return n=r,i}),n}function o(t){return t?JSON.parse($()(t)):t}function i(t,e){for(var n in e)t[n]&&"object"===z()(t[n])?i(t[n],e[n]):t[n]=e[n]}function a(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function c(t){return"[object String]"===Object.prototype.toString.call(t)}function u(t){return"[object Number]"===Object.prototype.toString.call(t)}function s(t){return"[object Object]"===Object.prototype.toString.call(t)}function f(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function l(t){return null===t}function p(t){return void 0!==t&&null!==t}function d(t){return void 0===t}function h(t){return"[object Error]"===Object.prototype.toString.call(t)}function v(t){return"function"==typeof t}function m(t){return"[object Promise]"===Object.prototype.toString.call(t)||s(t)&&v(t.then)}function y(t,e,n){function r(e){var n=m,r=y;return m=y=void 0,O=e,b=t.apply(r,n)}function o(t,e){return T?(window.cancelAnimationFrame(x),window.requestAnimationFrame(t)):setTimeout(t,e)}function i(t){if(T)return window.cancelAnimationFrame(t);clearTimeout(t)}function a(t){return O=t,x=o(f,e),j?r(t):b}function c(t){var n=t-w,r=t-O,o=e-n;return _?Math.min(o,g-r):o}function u(t){var n=t-w,r=t-O;return void 0===w||n>=e||n<0||_&&r>=g}function f(){var t=Date.now();if(u(t))return l(t);x=o(f,c(t))}function l(t){return x=void 0,S&&m?r(t):(m=y=void 0,b)}function p(){void 0!==x&&i(x),O=0,m=w=y=x=void 0}function d(){return void 0===x?b:l(Date.now())}function h(){return void 0!==x}function v(){for(var t=Date.now(),n=u(t),i=arguments.length,c=Array(i),s=0;s<i;s++)c[s]=arguments[s];if(m=c,y=this,w=t,n){if(void 0===x)return a(w);if(_)return x=o(f,e),r(w)}return void 0===x&&(x=o(f,e)),b}var m=void 0,y=void 0,g=void 0,b=void 0,x=void 0,w=void 0,O=0,j=!1,_=!1,S=!0,T=!e&&0!==e&&"function"==typeof window.requestAnimationFrame;if("function"!=typeof t)throw new TypeError("Expected a function");return e=+e||0,s(n)&&(j=!!n.leading,_="maxWait"in n,g=_?Math.max(+n.maxWait||0,e):g,S="trailing"in n?!!n.trailing:S),v.cancel=p,v.flush=d,v.pending=h,v}function g(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return s(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),y(t,e,{leading:r,trailing:o,maxWait:e})}function b(t){return!!/^1\d{10}$/.test(t)}function x(t){var e=t.length;return e>3&&e<8?t=t.replace(/\s/g,"").replace(/^(.{3})/g,"$1 "):e>=8&&(t=t.replace(/\s/g,"").replace(/^(.{3})(.+)/g,function(t,e,n){return e+" "+n.replace(/(.{4})(?=.)/g,"$1 ")})),t}function w(t){return t.replace(/\s/g,"").replace(/(.{4})(?=.)/g,"$1 ")}function O(t){if(void 0!==t||null!==t)return/^\d+(\.\d+)?$/.test(t+"")?t+"px":t}function j(t){if(!t)return"";var e=t.length;return 2===e?t.split("").join("&emsp;&emsp;"):3===e?t.split("").join("&ensp;"):t}function _(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.offsetHeight;if(e){var r=t.currentStyle||getComputedStyle(t);n+=parseInt(r.marginTop||0)+parseInt(r.marginBottom||0)}return n}function S(t,e){var n=/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$/i.exec(t),r=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t),o=null;return n?o={r:parseInt(n[1]+n[1],16),g:parseInt(n[2]+n[2],16),b:parseInt(n[3]+n[3],16)}:r&&(o={r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}),o?void 0!==e?"rgba("+o.r+", "+o.g+", "+o.b+", "+e+")":"rgb("+o.r+", "+o.g+", "+o.b+")":""}function T(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz",n=e.le