Changeset 1729504
- Timestamp:
- 09/13/2017 05:24:35 PM (8 years ago)
- Location:
- wp-promptpay/trunk
- Files:
-
- 3 added
- 5 edited
-
css/main.css (modified) (3 diffs)
-
image (added)
-
image/promptpay.jpg (added)
-
js/main.min.js (modified) (3 diffs)
-
promptpay.php (modified) (10 diffs)
-
readme.txt (modified) (5 diffs)
-
screenshot-1.jpg (modified) (previous)
-
screenshot-2.jpg (added)
Legend:
- Unmodified
- Added
- Removed
-
wp-promptpay/trunk/css/main.css
r1727821 r1729504 1 /** ================================================================ wp admin 2 */ 3 4 .form-table input[type=text] { 5 width: 400px; 6 } 7 8 /** ================================================================ backend 9 */ 10 1 11 .ppy-input-desc { 2 12 padding-top: 4px; … … 5 15 } 6 16 17 /** ================================================================ common 18 */ 19 20 .ppy-card { 21 padding: 20px; 22 width: 360px; 23 font-family: 'Open Sans', helvetica, arial, sans-serif; 24 } 25 7 26 .ppy-qrcode { 8 27 max-width: 340px; 9 28 max-height: 340px; 29 display: block; 30 margin: auto; 10 31 } 11 32 … … 14 35 height: 100%; 15 36 } 37 38 .ppy-logo { 39 height: 126px; 40 width: 360px; 41 text-align: center; 42 margin: auto; 43 background-image: url("../image/promptpay.jpg"); 44 background-repeat: no-repeat; 45 background-size: contain; 46 } 47 48 .ppy-head { 49 display: none; 50 } 51 52 .ppy-meta { 53 -o-text-overflow: ellipsis; 54 text-overflow: ellipsis; 55 overflow: hidden; 56 } 57 58 .ppy-meta-line { 59 display: inline-block; 60 line-height: 24px; 61 white-space: nowrap; 62 } 63 64 /** ================================================================ style 65 */ 66 67 /* shadow */ 68 .ppy-card.ppy-style2 { 69 /* shadow */ 70 -webkit-box-shadow: 0px 0px 10px 4px rgba(230, 230, 230, 0.4); 71 box-shadow: 0px 0px 10px 4px rgba(230, 230, 230, 0.4); 72 } 73 74 /* color on meta */ 75 .ppy-card.ppy-style1 { 76 padding: 20px 0 0 0; 77 width: 400px; 78 border: 1px solid #003d6a; 79 border-radius: 6px; 80 } 81 82 .ppy-card.ppy-style1 .ppy-logo { 83 margin: 0 20px; 84 } 85 86 .ppy-card.ppy-style1 .ppy-meta { 87 padding: 18px; 88 background-color: #003d6a; 89 color: white; 90 } 91 92 /* empty */ 93 .ppy-card.ppy-style3 { 94 padding: 0; 95 } 96 97 /** ================================================================ woocommerce-order-details 98 */ 99 100 .woocommerce-order-details .ppy-card { 101 margin-bottom: 40px; 102 } 103 104 /** ================================================================ test 105 */ 106 107 .ppy-test { 108 padding: 12px; 109 } 110 111 .ppy-test .ppy-card { 112 float: left; 113 margin: 8px; 114 } 115 116 .ppy-test .ppy-head { 117 background-color: whitesmoke; 118 border: 1px solid #d0d0d0; 119 font-size: 14px; 120 display: block; 121 overflow: hidden; 122 -o-text-overflow: ellipsis; 123 text-overflow: ellipsis; 124 padding: 20px; 125 } -
wp-promptpay/trunk/js/main.min.js
r1727821 r1729504 1 !function(t){function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var e={};r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},r.p="",r(r.s=1 2)}([function(t,r,e){"use strict";(function(t){function n(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,r){if(n()<r)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r),t.__proto__=i.prototype):(null===t&&(t=new i(r)),t.length=r),t}function i(t,r,e){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(t,r,e);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return s(this,t)}return u(this,t,r,e)}function u(t,r,e,n){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?l(t,r,e,n):"string"==typeof r?h(t,r,e):g(t,r)}function a(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,r,e,n){return a(r),r<=0?o(t,r):void 0!==e?"string"==typeof n?o(t,r).fill(e,n):o(t,r).fill(e):o(t,r)}function s(t,r){if(a(r),t=o(t,r<0?0:0|d(r)),!i.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}function h(t,r,e){if("string"==typeof e&&""!==e||(e="utf8"),!i.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=0|v(r,e);t=o(t,n);var u=t.write(r,e);return u!==n&&(t=t.slice(0,u)),t}function c(t,r){var e=r.length<0?0:0|d(r.length);t=o(t,e);for(var n=0;n<e;n+=1)t[n]=255&r[n];return t}function l(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return r=void 0===e&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,e):new Uint8Array(r,e,n),i.TYPED_ARRAY_SUPPORT?(t=r,t.__proto__=i.prototype):t=c(t,r),t}function g(t,r){if(i.isBuffer(r)){var e=0|d(r.length);return t=o(t,e),0===t.length?t:(r.copy(t,0,0,e),t)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||$(r.length)?o(t,0):c(t,r);if("Buffer"===r.type&&G(r.data))return c(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function p(t){return+t!=t&&(t=0),i.alloc(+t)}function v(t,r){if(i.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return J(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return V(t).length;default:if(n)return J(t).length;r=(""+r).toLowerCase(),n=!0}}function y(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if(e>>>=0,r>>>=0,e<=r)return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,r,e);case"utf8":case"utf-8":return I(this,r,e);case"ascii":return M(this,r,e);case"latin1":case"binary":return S(this,r,e);case"base64":return P(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function w(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function m(t,r,e,n,o){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=o?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(o)return-1;e=t.length-1}else if(e<0){if(!o)return-1;e=0}if("string"==typeof r&&(r=i.from(r,n)),i.isBuffer(r))return 0===r.length?-1:E(t,r,e,n,o);if("number"==typeof r)return r&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):E(t,[r],e,n,o);throw new TypeError("val must be string, number or Buffer")}function E(t,r,e,n,o){function i(t,r){return 1===u?t[r]:t.readUInt16BE(r*u)}var u=1,a=t.length,f=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;u=2,a/=2,f/=2,e/=2}var s;if(o){var h=-1;for(s=e;s<a;s++)if(i(t,s)===i(r,-1===h?0:s-h)){if(-1===h&&(h=s),s-h+1===f)return h*u}else-1!==h&&(s-=s-h),h=-1}else for(e+f>a&&(e=a-f),s=e;s>=0;s--){for(var c=!0,l=0;l<f;l++)if(i(t,s+l)!==i(r,l)){c=!1;break}if(c)return s}return-1}function A(t,r,e,n){e=Number(e)||0;var o=t.length-e;n?(n=Number(n))>o&&(n=o):n=o;var i=r.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var u=0;u<n;++u){var a=parseInt(r.substr(2*u,2),16);if(isNaN(a))return u;t[e+u]=a}return u}function b(t,r,e,n){return q(J(r,t.length-e),t,e,n)}function B(t,r,e,n){return q(K(r),t,e,n)}function R(t,r,e,n){return B(t,r,e,n)}function _(t,r,e,n){return q(V(r),t,e,n)}function T(t,r,e,n){return q(Q(r,t.length-e),t,e,n)}function P(t,r,e){return 0===r&&e===t.length?X.fromByteArray(t):X.fromByteArray(t.slice(r,e))}function I(t,r,e){e=Math.min(t.length,e);for(var n=[],o=r;o<e;){var i=t[o],u=null,a=i>239?4:i>223?3:i>191?2:1;if(o+a<=e){var f,s,h,c;switch(a){case 1:i<128&&(u=i);break;case 2:f=t[o+1],128==(192&f)&&(c=(31&i)<<6|63&f)>127&&(u=c);break;case 3:f=t[o+1],s=t[o+2],128==(192&f)&&128==(192&s)&&(c=(15&i)<<12|(63&f)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:f=t[o+1],s=t[o+2],h=t[o+3],128==(192&f)&&128==(192&s)&&128==(192&h)&&(c=(15&i)<<18|(63&f)<<12|(63&s)<<6|63&h)>65535&&c<1114112&&(u=c)}}null===u?(u=65533,a=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=a}return C(n)}function C(t){var r=t.length;if(r<=W)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=W));return e}function M(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;o<e;++o)n+=String.fromCharCode(127&t[o]);return n}function S(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;o<e;++o)n+=String.fromCharCode(t[o]);return n}function x(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var o="",i=r;i<e;++i)o+=H(t[i]);return o}function U(t,r,e){for(var n=t.slice(r,e),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function N(t,r,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}function L(t,r,e,n,o,u){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>o||r<u)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}function Y(t,r,e,n){r<0&&(r=65535+r+1);for(var o=0,i=Math.min(t.length-e,2);o<i;++o)t[e+o]=(r&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function D(t,r,e,n){r<0&&(r=4294967295+r+1);for(var o=0,i=Math.min(t.length-e,4);o<i;++o)t[e+o]=r>>>8*(n?o:3-o)&255}function O(t,r,e,n,o,i){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function k(t,r,e,n,o){return o||O(t,r,e,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(t,r,e,n,23,4),e+4}function j(t,r,e,n,o){return o||O(t,r,e,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(t,r,e,n,52,8),e+8}function z(t){if(t=F(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function F(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return t<16?"0"+t.toString(16):t.toString(16)}function J(t,r){r=r||1/0;for(var e,n=t.length,o=null,i=[],u=0;u<n;++u){if((e=t.charCodeAt(u))>55295&&e<57344){if(!o){if(e>56319){(r-=3)>-1&&i.push(239,191,189);continue}if(u+1===n){(r-=3)>-1&&i.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&i.push(239,191,189),o=e;continue}e=65536+(o-55296<<10|e-56320)}else o&&(r-=3)>-1&&i.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;i.push(e)}else if(e<2048){if((r-=2)<0)break;i.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;i.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return i}function K(t){for(var r=[],e=0;e<t.length;++e)r.push(255&t.charCodeAt(e));return r}function Q(t,r){for(var e,n,o,i=[],u=0;u<t.length&&!((r-=2)<0);++u)e=t.charCodeAt(u),n=e>>8,o=e%256,i.push(o),i.push(n);return i}function V(t){return X.toByteArray(z(t))}function q(t,r,e,n){for(var o=0;o<n&&!(o+e>=r.length||o>=t.length);++o)r[o+e]=t[o];return o}function $(t){return t!==t}/*!1 !function(t){function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var e={};r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},r.p="",r(r.s=15)}([function(t,r,e){"use strict";(function(t){function n(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,r){if(n()<r)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r),t.__proto__=i.prototype):(null===t&&(t=new i(r)),t.length=r),t}function i(t,r,e){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(t,r,e);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return a(this,t,r,e)}function a(t,r,e,n){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?l(t,r,e,n):"string"==typeof r?c(t,r,e):p(t,r)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function s(t,r,e,n){return u(r),r<=0?o(t,r):void 0!==e?"string"==typeof n?o(t,r).fill(e,n):o(t,r).fill(e):o(t,r)}function f(t,r){if(u(r),t=o(t,r<0?0:0|g(r)),!i.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}function c(t,r,e){if("string"==typeof e&&""!==e||(e="utf8"),!i.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=0|y(r,e);t=o(t,n);var a=t.write(r,e);return a!==n&&(t=t.slice(0,a)),t}function h(t,r){var e=r.length<0?0:0|g(r.length);t=o(t,e);for(var n=0;n<e;n+=1)t[n]=255&r[n];return t}function l(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return r=void 0===e&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,e):new Uint8Array(r,e,n),i.TYPED_ARRAY_SUPPORT?(t=r,t.__proto__=i.prototype):t=h(t,r),t}function p(t,r){if(i.isBuffer(r)){var e=0|g(r.length);return t=o(t,e),0===t.length?t:(r.copy(t,0,0,e),t)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||$(r.length)?o(t,0):h(t,r);if("Buffer"===r.type&&G(r.data))return h(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(t){if(t>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|t}function d(t){return+t!=t&&(t=0),i.alloc(+t)}function y(t,r){if(i.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return Q(t).length;default:if(n)return q(t).length;r=(""+r).toLowerCase(),n=!0}}function v(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if(e>>>=0,r>>>=0,e<=r)return"";for(t||(t="utf8");;)switch(t){case"hex":return M(this,r,e);case"utf8":case"utf-8":return T(this,r,e);case"ascii":return C(this,r,e);case"latin1":case"binary":return S(this,r,e);case"base64":return I(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function w(t,r,e,n,o){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=o?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(o)return-1;e=t.length-1}else if(e<0){if(!o)return-1;e=0}if("string"==typeof r&&(r=i.from(r,n)),i.isBuffer(r))return 0===r.length?-1:E(t,r,e,n,o);if("number"==typeof r)return r&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):E(t,[r],e,n,o);throw new TypeError("val must be string, number or Buffer")}function E(t,r,e,n,o){function i(t,r){return 1===a?t[r]:t.readUInt16BE(r*a)}var a=1,u=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;a=2,u/=2,s/=2,e/=2}var f;if(o){var c=-1;for(f=e;f<u;f++)if(i(t,f)===i(r,-1===c?0:f-c)){if(-1===c&&(c=f),f-c+1===s)return c*a}else-1!==c&&(f-=f-c),c=-1}else for(e+s>u&&(e=u-s),f=e;f>=0;f--){for(var h=!0,l=0;l<s;l++)if(i(t,f+l)!==i(r,l)){h=!1;break}if(h)return f}return-1}function b(t,r,e,n){e=Number(e)||0;var o=t.length-e;n?(n=Number(n))>o&&(n=o):n=o;var i=r.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var u=parseInt(r.substr(2*a,2),16);if(isNaN(u))return a;t[e+a]=u}return a}function A(t,r,e,n){return V(q(r,t.length-e),t,e,n)}function _(t,r,e,n){return V(H(r),t,e,n)}function B(t,r,e,n){return _(t,r,e,n)}function P(t,r,e,n){return V(Q(r),t,e,n)}function R(t,r,e,n){return V(K(r,t.length-e),t,e,n)}function I(t,r,e){return 0===r&&e===t.length?X.fromByteArray(t):X.fromByteArray(t.slice(r,e))}function T(t,r,e){e=Math.min(t.length,e);for(var n=[],o=r;o<e;){var i=t[o],a=null,u=i>239?4:i>223?3:i>191?2:1;if(o+u<=e){var s,f,c,h;switch(u){case 1:i<128&&(a=i);break;case 2:s=t[o+1],128==(192&s)&&(h=(31&i)<<6|63&s)>127&&(a=h);break;case 3:s=t[o+1],f=t[o+2],128==(192&s)&&128==(192&f)&&(h=(15&i)<<12|(63&s)<<6|63&f)>2047&&(h<55296||h>57343)&&(a=h);break;case 4:s=t[o+1],f=t[o+2],c=t[o+3],128==(192&s)&&128==(192&f)&&128==(192&c)&&(h=(15&i)<<18|(63&s)<<12|(63&f)<<6|63&c)>65535&&h<1114112&&(a=h)}}null===a?(a=65533,u=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),o+=u}return N(n)}function N(t){var r=t.length;if(r<=W)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=W));return e}function C(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;o<e;++o)n+=String.fromCharCode(127&t[o]);return n}function S(t,r,e){var n="";e=Math.min(t.length,e);for(var o=r;o<e;++o)n+=String.fromCharCode(t[o]);return n}function M(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var o="",i=r;i<e;++i)o+=J(t[i]);return o}function x(t,r,e){for(var n=t.slice(r,e),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function L(t,r,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}function U(t,r,e,n,o,a){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>o||r<a)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}function j(t,r,e,n){r<0&&(r=65535+r+1);for(var o=0,i=Math.min(t.length-e,2);o<i;++o)t[e+o]=(r&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function Y(t,r,e,n){r<0&&(r=4294967295+r+1);for(var o=0,i=Math.min(t.length-e,4);o<i;++o)t[e+o]=r>>>8*(n?o:3-o)&255}function k(t,r,e,n,o,i){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function D(t,r,e,n,o){return o||k(t,r,e,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(t,r,e,n,23,4),e+4}function O(t,r,e,n,o){return o||k(t,r,e,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(t,r,e,n,52,8),e+8}function F(t){if(t=z(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function J(t){return t<16?"0"+t.toString(16):t.toString(16)}function q(t,r){r=r||1/0;for(var e,n=t.length,o=null,i=[],a=0;a<n;++a){if((e=t.charCodeAt(a))>55295&&e<57344){if(!o){if(e>56319){(r-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(r-=3)>-1&&i.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&i.push(239,191,189),o=e;continue}e=65536+(o-55296<<10|e-56320)}else o&&(r-=3)>-1&&i.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;i.push(e)}else if(e<2048){if((r-=2)<0)break;i.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;i.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return i}function H(t){for(var r=[],e=0;e<t.length;++e)r.push(255&t.charCodeAt(e));return r}function K(t,r){for(var e,n,o,i=[],a=0;a<t.length&&!((r-=2)<0);++a)e=t.charCodeAt(a),n=e>>8,o=e%256,i.push(o),i.push(n);return i}function Q(t){return X.toByteArray(F(t))}function V(t,r,e,n){for(var o=0;o<n&&!(o+e>=r.length||o>=t.length);++o)r[o+e]=t[o];return o}function $(t){return t!==t}/*! 2 2 * The buffer module from node.js, for the browser. 3 3 * … … 5 5 * @license MIT 6 6 */ 7 var X=e(3 6),Z=e(37),G=e(38);r.Buffer=i,r.SlowBuffer=p,r.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),r.kMaxLength=n(),i.poolSize=8192,i._augment=function(t){return t.__proto__=i.prototype,t},i.from=function(t,r,e){return u(null,t,r,e)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(t,r,e){return f(null,t,r,e)},i.allocUnsafe=function(t){return s(null,t)},i.allocUnsafeSlow=function(t){return s(null,t)},i.isBuffer=function(t){return!(null==t||!t._isBuffer)},i.compare=function(t,r){if(!i.isBuffer(t)||!i.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var e=t.length,n=r.length,o=0,u=Math.min(e,n);o<u;++o)if(t[o]!==r[o]){e=t[o],n=r[o];break}return e<n?-1:n<e?1:0},i.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(t,r){if(!G(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return i.alloc(0);var e;if(void 0===r)for(r=0,e=0;e<t.length;++e)r+=t[e].length;var n=i.allocUnsafe(r),o=0;for(e=0;e<t.length;++e){var u=t[e];if(!i.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(n,o),o+=u.length}return n},i.byteLength=v,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)w(this,r,r+1);return this},i.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)w(this,r,r+3),w(this,r+1,r+2);return this},i.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)w(this,r,r+7),w(this,r+1,r+6),w(this,r+2,r+5),w(this,r+3,r+4);return this},i.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?I(this,0,t):y.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===i.compare(this,t)},i.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},i.prototype.compare=function(t,r,e,n,o){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),r<0||e>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&r>=e)return 0;if(n>=o)return-1;if(r>=e)return 1;if(r>>>=0,e>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var u=o-n,a=e-r,f=Math.min(u,a),s=this.slice(n,o),h=t.slice(r,e),c=0;c<f;++c)if(s[c]!==h[c]){u=s[c],a=h[c];break}return u<a?-1:a<u?1:0},i.prototype.includes=function(t,r,e){return-1!==this.indexOf(t,r,e)},i.prototype.indexOf=function(t,r,e){return m(this,t,r,e,!0)},i.prototype.lastIndexOf=function(t,r,e){return m(this,t,r,e,!1)},i.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(e)?(e|=0,void 0===n&&(n="utf8")):(n=e,e=void 0)}var o=this.length-r;if((void 0===e||e>o)&&(e=o),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return A(this,t,r,e);case"utf8":case"utf-8":return b(this,t,r,e);case"ascii":return B(this,t,r,e);case"latin1":case"binary":return R(this,t,r,e);case"base64":return _(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r,e);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var W=4096;i.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,t<0?(t+=e)<0&&(t=0):t>e&&(t=e),r<0?(r+=e)<0&&(r=0):r>e&&(r=e),r<t&&(r=t);var n;if(i.TYPED_ARRAY_SUPPORT)n=this.subarray(t,r),n.__proto__=i.prototype;else{var o=r-t;n=new i(o,void 0);for(var u=0;u<o;++u)n[u]=this[u+t]}return n},i.prototype.readUIntLE=function(t,r,e){t|=0,r|=0,e||N(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return n},i.prototype.readUIntBE=function(t,r,e){t|=0,r|=0,e||N(t,r,this.length);for(var n=this[t+--r],o=1;r>0&&(o*=256);)n+=this[t+--r]*o;return n},i.prototype.readUInt8=function(t,r){return r||N(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,r){return r||N(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,r){return r||N(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,r){return r||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,r){return r||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,r,e){t|=0,r|=0,e||N(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*r)),n},i.prototype.readIntBE=function(t,r,e){t|=0,r|=0,e||N(t,r,this.length);for(var n=r,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i},i.prototype.readInt8=function(t,r){return r||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,r){r||N(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},i.prototype.readInt16BE=function(t,r){r||N(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},i.prototype.readInt32LE=function(t,r){return r||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,r){return r||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,r){return r||N(t,4,this.length),Z.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,r){return r||N(t,4,this.length),Z.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,r){return r||N(t,8,this.length),Z.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,r){return r||N(t,8,this.length),Z.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,r,e,n){if(t=+t,r|=0,e|=0,!n){L(this,t,r,e,Math.pow(2,8*e)-1,0)}var o=1,i=0;for(this[r]=255&t;++i<e&&(o*=256);)this[r+i]=t/o&255;return r+e},i.prototype.writeUIntBE=function(t,r,e,n){if(t=+t,r|=0,e|=0,!n){L(this,t,r,e,Math.pow(2,8*e)-1,0)}var o=e-1,i=1;for(this[r+o]=255&t;--o>=0&&(i*=256);)this[r+o]=t/i&255;return r+e},i.prototype.writeUInt8=function(t,r,e){return t=+t,r|=0,e||L(this,t,r,1,255,0),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},i.prototype.writeUInt16LE=function(t,r,e){return t=+t,r|=0,e||L(this,t,r,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):Y(this,t,r,!0),r+2},i.prototype.writeUInt16BE=function(t,r,e){return t=+t,r|=0,e||L(this,t,r,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):Y(this,t,r,!1),r+2},i.prototype.writeUInt32LE=function(t,r,e){return t=+t,r|=0,e||L(this,t,r,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):D(this,t,r,!0),r+4},i.prototype.writeUInt32BE=function(t,r,e){return t=+t,r|=0,e||L(this,t,r,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):D(this,t,r,!1),r+4},i.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r|=0,!n){var o=Math.pow(2,8*e-1);L(this,t,r,e,o-1,-o)}var i=0,u=1,a=0;for(this[r]=255&t;++i<e&&(u*=256);)t<0&&0===a&&0!==this[r+i-1]&&(a=1),this[r+i]=(t/u>>0)-a&255;return r+e},i.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r|=0,!n){var o=Math.pow(2,8*e-1);L(this,t,r,e,o-1,-o)}var i=e-1,u=1,a=0;for(this[r+i]=255&t;--i>=0&&(u*=256);)t<0&&0===a&&0!==this[r+i+1]&&(a=1),this[r+i]=(t/u>>0)-a&255;return r+e},i.prototype.writeInt8=function(t,r,e){return t=+t,r|=0,e||L(this,t,r,1,127,-128),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},i.prototype.writeInt16LE=function(t,r,e){return t=+t,r|=0,e||L(this,t,r,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):Y(this,t,r,!0),r+2},i.prototype.writeInt16BE=function(t,r,e){return t=+t,r|=0,e||L(this,t,r,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):Y(this,t,r,!1),r+2},i.prototype.writeInt32LE=function(t,r,e){return t=+t,r|=0,e||L(this,t,r,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):D(this,t,r,!0),r+4},i.prototype.writeInt32BE=function(t,r,e){return t=+t,r|=0,e||L(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),i.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):D(this,t,r,!1),r+4},i.prototype.writeFloatLE=function(t,r,e){return k(this,t,r,!0,e)},i.prototype.writeFloatBE=function(t,r,e){return k(this,t,r,!1,e)},i.prototype.writeDoubleLE=function(t,r,e){return j(this,t,r,!0,e)},i.prototype.writeDoubleBE=function(t,r,e){return j(this,t,r,!1,e)},i.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var o,u=n-e;if(this===t&&e<r&&r<n)for(o=u-1;o>=0;--o)t[o+r]=this[o+e];else if(u<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o<u;++o)t[o+r]=this[o+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+u),r);return u},i.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<e)throw new RangeError("Out of range index");if(e<=r)return this;r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0);var u;if("number"==typeof t)for(u=r;u<e;++u)this[u]=t;else{var a=i.isBuffer(t)?t:J(new i(t,n).toString()),f=a.length;for(u=0;u<e-r;++u)this[u+r]=a[u%f]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(r,e(35))},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(0),o=n.Buffer.from&&n.Buffer.alloc&&n.Buffer.allocUnsafe&&n.Buffer.allocUnsafeSlow?n.Buffer.from:function(t){return new n.Buffer(t)};r.default=o},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t,r){var e=function(t,e){return r(t,e)>>>0};return e.signed=r,e.unsigned=e,e.model=t,e}},function(t,r){var e,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];r.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},r.getSymbolTotalCodewords=function(t){return n[t]},r.getBCHDigit=function(t){for(var r=0;0!==t;)r++,t>>>=1;return r},r.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');e=t},r.isKanjiModeEnabled=function(){return void 0!==e},r.toSJIS=function(t){return e(t)}},function(t,r,e){function n(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+t)}}var o=e(9),i=e(10);r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(t,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!o.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]},r.getBestModeForData=function(t){return i.testNumeric(t)?r.NUMERIC:i.testAlphanumeric(t)?r.ALPHANUMERIC:i.testKanji(t)?r.KANJI:r.BYTE},r.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},r.isValid=function(t){return t&&t.bit&&t.ccBits},r.from=function(t,e){if(r.isValid(t))return t;try{return n(t)}catch(t){return e}}},function(t,r,e){"use strict";function n(t,r,e){return"number"==typeof t?a(t):v(t,r,e)}function o(t){if(t>=w)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w.toString(16)+" bytes");return 0|t}function i(t){return t!==t}function u(t){var r=new Uint8Array(t);return r.__proto__=n.prototype,r}function a(t){return u(t<0?0:0|o(t))}function f(t){var r=0|g(t),e=u(r),n=e.write(t);return n!==r&&(e=e.slice(0,n)),e}function s(t){for(var r=t.length<0?0:0|o(t.length),e=u(r),n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(t,r,e){if(r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(e||0))throw new RangeError("'length' is out of bounds");var o;return o=void 0===r&&void 0===e?new Uint8Array(t):void 0===e?new Uint8Array(t,r):new Uint8Array(t,r,e),o.__proto__=n.prototype,o}function c(t){if(n.isBuffer(t)){var r=0|o(t.length),e=u(r);return 0===e.length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||i(t.length)?u(0):s(t);if("Buffer"===t.type&&Array.isArray(t.data))return s(t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function l(t,r){r=r||1/0;for(var e,n=t.length,o=null,i=[],u=0;u<n;++u){if((e=t.charCodeAt(u))>55295&&e<57344){if(!o){if(e>56319){(r-=3)>-1&&i.push(239,191,189);continue}if(u+1===n){(r-=3)>-1&&i.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&i.push(239,191,189),o=e;continue}e=65536+(o-55296<<10|e-56320)}else o&&(r-=3)>-1&&i.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;i.push(e)}else if(e<2048){if((r-=2)<0)break;i.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;i.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return i}function g(t){return n.isBuffer(t)?t.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)?t.byteLength:("string"!=typeof t&&(t=""+t),0===t.length?0:l(t).length)}function d(t,r,e,n){for(var o=0;o<n&&!(o+e>=r.length||o>=t.length);++o)r[o+e]=t[o];return o}function p(t,r,e,n){return d(l(r,t.length-e),t,e,n)}function v(t,r,e){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?h(t,r,e):"string"==typeof t?f(t,r):c(t)}var y=e(6),w=2147483647;n.prototype.__proto__=Uint8Array.prototype,n.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&n[Symbol.species]===n&&Object.defineProperty(n,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),n.prototype.write=function(t,r,e){void 0===r?(e=this.length,r=0):void 0===e&&"string"==typeof r?(e=this.length,r=0):isFinite(r)&&(r|=0,isFinite(e)?e|=0:e=void 0);var n=this.length-r;if((void 0===e||e>n)&&(e=n),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");return p(this,t,r,e)},n.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,t<0?(t+=e)<0&&(t=0):t>e&&(t=e),r<0?(r+=e)<0&&(r=0):r>e&&(r=e),r<t&&(r=t);var o=this.subarray(t,r);return o.__proto__=n.prototype,o},n.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var o,i=n-e;if(this===t&&e<r&&r<n)for(o=i-1;o>=0;--o)t[o+r]=this[o+e];else if(i<1e3)for(o=0;o<i;++o)t[o+r]=this[o+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+i),r);return i},n.prototype.fill=function(t,r,e){if("string"==typeof t){if("string"==typeof r?(r=0,e=this.length):"string"==typeof e&&(e=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<e)throw new RangeError("Out of range index");if(e<=r)return this;r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0);var i;if("number"==typeof t)for(i=r;i<e;++i)this[i]=t;else{var u=n.isBuffer(t)?t:new n(t),a=u.length;for(i=0;i<e-r;++i)this[i+r]=u[i%a]}return this},n.concat=function(t,r){if(!y(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u(null,0);var e;if(void 0===r)for(r=0,e=0;e<t.length;++e)r+=t[e].length;var o=a(r),i=0;for(e=0;e<t.length;++e){var f=t[e];if(!n.isBuffer(f))throw new TypeError('"list" argument must be an Array of Buffers');f.copy(o,i),i+=f.length}return o},n.byteLength=g,n.prototype._isBuffer=!0,n.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.exports=n},function(t,r){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},function(t,r){function e(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+t)}}r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2},r.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},r.from=function(t,n){if(r.isValid(t))return t;try{return e(t)}catch(t){return n}}},function(t,r,e){var n=e(7),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];r.getBlocksCount=function(t,r){switch(r){case n.L:return o[4*(t-1)+0];case n.M:return o[4*(t-1)+1];case n.Q:return o[4*(t-1)+2];case n.H:return o[4*(t-1)+3];default:return}},r.getTotalCodewordsCount=function(t,r){switch(r){case n.L:return i[4*(t-1)+0];case n.M:return i[4*(t-1)+1];case n.Q:return i[4*(t-1)+2];case n.H:return i[4*(t-1)+3];default:return}}},function(t,r,e){function n(t,e,n){for(var o=1;o<=40;o++)if(e<=r.getCapacity(o,n,t))return o}function o(t,r){return h.getCharCountIndicator(t,r)+4}function i(t,r){var e=0;return t.forEach(function(t){var n=o(t.mode,r);e+=n+t.getBitsLength()}),e}function u(t,e){for(var n=1;n<=40;n++){if(i(t,n)<=r.getCapacity(n,e,h.MIXED))return n}}var a=e(3),f=e(8),s=e(7),h=e(4),c=e(6),l=a.getBCHDigit(7973);r.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40},r.from=function(t,e){return r.isValid(t)?parseInt(t,10):e},r.getCapacity=function(t,e,n){if(!r.isValid(t))throw new Error("Invalid QR Code version");void 0===n&&(n=h.BYTE);var i=a.getSymbolTotalCodewords(t),u=f.getTotalCodewordsCount(t,e),s=8*(i-u);if(n===h.MIXED)return s;var c=s-o(n,t);switch(n){case h.NUMERIC:return Math.floor(c/10*3);case h.ALPHANUMERIC:return Math.floor(c/11*2);case h.KANJI:return Math.floor(c/13);case h.BYTE:default:return Math.floor(c/8)}},r.getBestVersionForData=function(t,r){var e,o=s.from(r,s.M);if(c(t)){if(t.length>1)return u(t,o);if(0===t.length)return 1;e=t[0]}else e=t;return n(e.mode,e.getLength(),o)},r.getEncodedBits=function(t){if(!r.isValid(t)||t<7)throw new Error("Invalid QR Code version");for(var e=t<<12;a.getBCHDigit(e)-l>=0;)e^=7973<<a.getBCHDigit(e)-l;return t<<12|e}},function(t,r){var e="(?:[ -〿]|[-ゟ]|[゠-ヿ]|[-]|[一-龯]|[★-☆]|[←-↕]|※|[‐―‘’‥…“”∥≠]|[Α-ё]|[§¨±´×÷])+";r.KANJI=new RegExp(e,"g"),r.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+-./:]+","g"),r.BYTE=new RegExp("(?:(?![A-Z0-9 $%*+-./:]|(?:[ -〿]|[-ゟ]|[゠-ヿ]|[-]|[一-龯]|[★-☆]|[←-↕]|※|[‐―‘’‥…“”∥≠]|[Α-ё]|[§¨±´×÷])+).)+","g"),r.NUMERIC=new RegExp("[0-9]+","g"),r.ALPHANUMERIC=new RegExp("[A-Z $%*+-./:]+","g");var n=new RegExp("^"+e+"$"),o=new RegExp("^[0-9]+$"),i=new RegExp("^[A-Z0-9 $%*+-./:]+$");r.testKanji=function(t){return n.test(t)},r.testNumeric=function(t){return o.test(t)},r.testAlphanumeric=function(t){return i.test(t)}},function(t,r){function e(t){if("string"!=typeof t)throw new Error("Color should be defined as hex string");var r=t.slice().replace("#","").split("");if(r.length<3||5===r.length||r.length>8)throw new Error("Invalid hex color: "+t);3!==r.length&&4!==r.length||(r=Array.prototype.concat.apply([],r.map(function(t){return[t,t]}))),6===r.length&&r.push("F","F");var e=parseInt(r.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:255&e}}r.getOptions=function(t){t||(t={}),t.color||(t.color={});var r=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin;return{scale:t.scale||4,margin:r,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},r.qrToImageData=function(t,r,e,n,o){for(var i=r.modules.size,u=r.modules.data,a=e*n,f=i*n+2*a,s=[o.light,o.dark],h=0;h<f;h++)for(var c=0;c<f;c++){var l=4*(h*f+c),g=o.light;if(h>=a&&c>=a&&h<f-a&&c<f-a){var d=Math.floor((h-a)/n),p=Math.floor((c-a)/n);g=s[u[d*i+p]]}t[l++]=g.r,t[l++]=g.g,t[l++]=g.b,t[l]=g.a}}},function(t,r,e){const n=e(13),o=e(32),i={type:"svg"};jQuery(document).ready(function(){if(jQuery("body").hasClass("wp-admin"));else{const t=jQuery(".ppy-qrcode");jQuery.each(t,function(){const t=jQuery(this),r=jQuery(this).data("promptpay-id").toString();if(parseFloat(jQuery(this).data("amount")),r){const e=o(r,{amount:0});n.toString(e,i,function(r,e){r?console.log("err",r):t.html(e)})}})}})},function(t,r,e){function n(t,r,e,n,i){var u=arguments.length-1;if(u<2)throw new Error("Too few arguments provided");if(2===u?(i=e,e=r,r=n=void 0):3===u&&(r.getContext&&void 0===i?(i=n,n=void 0):(i=n,n=e,e=r,r=void 0)),"function"!=typeof i)throw new Error("Callback required as last argument");try{var a=o.create(e,n);i(null,t(a,r,n))}catch(t){i(t)}}var o=e(14),i=e(30),u=e(31);r.create=o.create,r.toCanvas=n.bind(null,i.render),r.toDataURL=n.bind(null,i.renderToDataURL),r.toString=n.bind(null,function(t,r,e){return u.render(t,e)}),r.qrcodedraw=function(){return{draw:r.toCanvas}}},function(t,r,e){function n(t,r){for(var e=t.size,n=w.getPositions(r),o=0;o<n.length;o++)for(var i=n[o][0],u=n[o][1],a=-1;a<=7;a++)if(!(i+a<=-1||e<=i+a))for(var f=-1;f<=7;f++)u+f<=-1||e<=u+f||(a>=0&&a<=6&&(0===f||6===f)||f>=0&&f<=6&&(0===a||6===a)||a>=2&&a<=4&&f>=2&&f<=4?t.set(i+a,u+f,!0,!0):t.set(i+a,u+f,!1,!0))}function o(t){for(var r=t.size,e=8;e<r-8;e++){var n=e%2==0;t.set(e,6,n,!0),t.set(6,e,n,!0)}}function i(t,r){for(var e=y.getPositions(r),n=0;n<e.length;n++)for(var o=e[n][0],i=e[n][1],u=-2;u<=2;u++)for(var a=-2;a<=2;a++)-2===u||2===u||-2===a||2===a||0===u&&0===a?t.set(o+u,i+a,!0,!0):t.set(o+u,i+a,!1,!0)}function u(t,r){for(var e,n,o,i=t.size,u=b.getEncodedBits(r),a=0;a<18;a++)e=Math.floor(a/3),n=a%3+i-8-3,o=1==(u>>a&1),t.set(e,n,o,!0),t.set(n,e,o,!0)}function a(t,r,e){var n,o,i=t.size,u=B.getEncodedBits(r,e);for(n=0;n<15;n++)o=1==(u>>n&1),n<6?t.set(n,8,o,!0):n<8?t.set(n+1,8,o,!0):t.set(i-15+n,8,o,!0),n<8?t.set(8,i-n-1,o,!0):n<9?t.set(8,15-n-1+1,o,!0):t.set(8,15-n-1,o,!0);t.set(i-8,8,1,!0)}function f(t,r){for(var e=t.size,n=-1,o=e-1,i=7,u=0,a=e-1;a>0;a-=2)for(6===a&&a--;;){for(var f=0;f<2;f++)if(!t.isReserved(o,a-f)){var s=!1;u<r.length&&(s=1==(r[u]>>>i&1)),t.set(o,a-f,s),i--,-1===i&&(u++,i=7)}if((o+=n)<0||e<=o){o-=n,n=-n;break}}}function s(t,r,e){var n=new p;e.forEach(function(r){n.put(r.mode.bit,4),n.put(r.getLength(),R.getCharCountIndicator(r.mode,t)),r.write(n)});var o=g.getSymbolTotalCodewords(t),i=E.getTotalCodewordsCount(t,r),u=8*(o-i);for(n.getLengthInBits()+4<=u&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(0);for(var a=(u-n.getLengthInBits())/8,f=0;f<a;f++)n.put(f%2?17:236,8);return h(n,t,r)}function h(t,r,e){for(var n=g.getSymbolTotalCodewords(r),o=E.getTotalCodewordsCount(r,e),i=n-o,u=E.getBlocksCount(r,e),a=n%u,f=u-a,s=Math.floor(n/u),h=Math.floor(i/u),c=h+1,d=s-h,p=new A(d),v=0,y=new Array(u),w=new Array(u),m=0,b=new l(t.buffer),B=0;B<u;B++){var R=B<f?h:c;y[B]=b.slice(v,v+R),w[B]=p.encode(y[B]),v+=R,m=Math.max(m,R)}var _,T,P=new l(n),I=0;for(_=0;_<m;_++)for(T=0;T<u;T++)_<y[T].length&&(P[I++]=y[T][_]);for(_=0;_<d;_++)for(T=0;T<u;T++)P[I++]=w[T][_];return P}function c(t,r,e){var h;if(T(t))h=_.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");var c=r;if(!c){var l=_.rawSplit(t);c=b.getBestVersionForData(l,e)}h=_.fromString(t,c||40)}var d=b.getBestVersionForData(h,e);if(!d)throw new Error("The amount of data is too big to be stored in a QR Code");if(r){if(r<d)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+d+".\n")}else r=d;var p=s(r,e,h),y=g.getSymbolSize(r),w=new v(y);n(w,r),o(w),i(w,r),a(w,e,0),r>=7&&u(w,r),f(w,p);var E=m.getBestMask(w,a.bind(null,w,e));return m.applyMask(E,w),a(w,e,E),{modules:w,version:r,errorCorrectionLevel:e,maskPattern:E,segments:h}}var l=e(5),g=e(3),d=e(7),p=e(15),v=e(16),y=e(17),w=e(18),m=e(19),E=e(8),A=e(20),b=e(9),B=e(23),R=e(4),_=e(24),T=e(6);r.create=function(t,r){if(void 0===t||""===t)throw new Error("No input text");var e,n=d.M;return void 0!==r&&(n=d.from(r.errorCorrectionLevel,d.M),e=b.from(r.version),r.toSJISFunc&&g.setToSJISFunction(r.toSJISFunc)),c(t,e,n)}},function(t,r){function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){var r=Math.floor(t/8);return 1==(this.buffer[r]>>>7-t%8&1)},put:function(t,r){for(var e=0;e<r;e++)this.putBit(1==(t>>>r-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),t&&(this.buffer[r]|=128>>>this.length%8),this.length++}},t.exports=e},function(t,r,e){function n(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new o(t*t),this.data.fill(0),this.reservedBit=new o(t*t),this.reservedBit.fill(0)}var o=e(5);n.prototype.set=function(t,r,e,n){var o=t*this.size+r;this.data[o]=e,n&&(this.reservedBit[o]=!0)},n.prototype.get=function(t,r){return this.data[t*this.size+r]},n.prototype.xor=function(t,r,e){this.data[t*this.size+r]^=e},n.prototype.isReserved=function(t,r){return this.reservedBit[t*this.size+r]},t.exports=n},function(t,r,e){var n=e(3).getSymbolSize;r.getRowColCoords=function(t){if(1===t)return[];for(var r=Math.floor(t/7)+2,e=n(t),o=145===e?26:2*Math.ceil((e-13)/(2*r-2)),i=[e-7],u=1;u<r-1;u++)i[u]=i[u-1]-o;return i.push(6),i.reverse()},r.getPositions=function(t){for(var e=[],n=r.getRowColCoords(t),o=n.length,i=0;i<o;i++)for(var u=0;u<o;u++)0===i&&0===u||0===i&&u===o-1||i===o-1&&0===u||e.push([n[i],n[u]]);return e}},function(t,r,e){var n=e(3).getSymbolSize;r.getPositions=function(t){var r=n(t);return[[0,0],[r-7,0],[0,r-7]]}},function(t,r){function e(t,e,n){switch(t){case r.Patterns.PATTERN000:return(e+n)%2==0;case r.Patterns.PATTERN001:return e%2==0;case r.Patterns.PATTERN010:return n%3==0;case r.Patterns.PATTERN011:return(e+n)%3==0;case r.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case r.Patterns.PATTERN101:return e*n%2+e*n%3==0;case r.Patterns.PATTERN110:return(e*n%2+e*n%3)%2==0;case r.Patterns.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var n={N1:3,N2:3,N3:40,N4:10};r.getPenaltyN1=function(t){for(var r=t.size,e=0,o=0,i=0,u=null,a=null,f=0;f<r;f++){o=i=0,u=a=null;for(var s=0;s<r;s++){var h=t.get(f,s);h===u?o++:(o>=5&&(e+=n.N1+(o-5)),u=h,o=1),h=t.get(s,f),h===a?i++:(i>=5&&(e+=n.N1+(i-5)),a=h,i=1)}o>=5&&(e+=n.N1+(o-5)),i>=5&&(e+=n.N1+(i-5))}return e},r.getPenaltyN2=function(t){for(var r=t.size,e=0,o=0;o<r-1;o++)for(var i=0;i<r-1;i++){var u=t.get(o,i)+t.get(o,i+1)+t.get(o+1,i)+t.get(o+1,i+1);4!==u&&0!==u||e++}return e*n.N2},r.getPenaltyN3=function(t){for(var r=t.size,e=0,o=0,i=0,u=0;u<r;u++){o=i=0;for(var a=0;a<r;a++)o=o<<1&2047|t.get(u,a),a>=10&&(1488===o||93===o)&&e++,i=i<<1&2047|t.get(a,u),a>=10&&(1488===i||93===i)&&e++}return e*n.N3},r.getPenaltyN4=function(t){for(var r=0,e=t.data.length,o=0;o<e;o++)r+=t.data[o];return Math.abs(Math.ceil(100*r/e/5)-10)*n.N4},r.applyMask=function(t,r){for(var n=r.size,o=0;o<n;o++)for(var i=0;i<n;i++)r.isReserved(i,o)||r.xor(i,o,e(t,i,o))},r.getBestMask=function(t,e){for(var n=Object.keys(r.Patterns).length,o=0,i=1/0,u=0;u<n;u++){e(u),r.applyMask(u,t);var a=r.getPenaltyN1(t)+r.getPenaltyN2(t)+r.getPenaltyN3(t)+r.getPenaltyN4(t);r.applyMask(u,t),a<i&&(i=a,o=u)}return o}},function(t,r,e){function n(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}var o=e(5),i=e(21);n.prototype.initialize=function(t){this.degree=t,this.genPoly=i.generateECPolynomial(this.degree)},n.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var r=new o(this.degree);r.fill(0);var e=o.concat([t,r],t.length+this.degree),n=i.mod(e,this.genPoly),u=this.degree-n.length;if(u>0){var a=new o(this.degree);return a.fill(0),n.copy(a,u),a}return n},t.exports=n},function(t,r,e){var n=e(5),o=e(22);r.mul=function(t,r){var e=new n(t.length+r.length-1);e.fill(0);for(var i=0;i<t.length;i++)for(var u=0;u<r.length;u++)e[i+u]^=o.mul(t[i],r[u]);return e},r.mod=function(t,r){for(var e=new n(t);e.length-r.length>=0;){for(var i=e[0],u=0;u<r.length;u++)e[u]^=o.mul(r[u],i);for(var a=0;a<e.length&&0===e[a];)a++;e=e.slice(a)}return e},r.generateECPolynomial=function(t){for(var e=new n([1]),i=0;i<t;i++)e=r.mul(e,[1,o.exp(i)]);return e}},function(t,r,e){var n=e(5),o=new n(512),i=new n(256);!function(){for(var t=1,r=0;r<255;r++)o[r]=t,i[t]=r,256&(t<<=1)&&(t^=285);for(r=255;r<512;r++)o[r]=o[r-255]}(),r.log=function(t){if(t<1)throw new Error("log("+t+")");return i[t]},r.exp=function(t){return o[t]},r.mul=function(t,r){return 0===t||0===r?0:o[i[t]+i[r]]}},function(t,r,e){var n=e(3),o=n.getBCHDigit(1335);r.getEncodedBits=function(t,r){for(var e=t.bit<<3|r,i=e<<10;n.getBCHDigit(i)-o>=0;)i^=1335<<n.getBCHDigit(i)-o;return 21522^(e<<10|i)}},function(t,r,e){function n(t){return unescape(encodeURIComponent(t)).length}function o(t,r,e){for(var n,o=[];null!==(n=t.exec(e));)o.push({data:n[0],index:n.index,mode:r,length:n[0].length});return o}function i(t){var r,e,n=o(v.NUMERIC,c.NUMERIC,t),i=o(v.ALPHANUMERIC,c.ALPHANUMERIC,t);return y.isKanjiModeEnabled()?(r=o(v.BYTE,c.BYTE,t),e=o(v.KANJI,c.KANJI,t)):(r=o(v.BYTE_KANJI,c.BYTE,t),e=[]),n.concat(i,r,e).sort(function(t,r){return t.index-r.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function u(t,r){switch(r){case c.NUMERIC:return l.getBitsLength(t);case c.ALPHANUMERIC:return g.getBitsLength(t);case c.KANJI:return p.getBitsLength(t);case c.BYTE:return d.getBitsLength(t)}}function a(t){return t.reduce(function(t,r){var e=t.length-1>=0?t[t.length-1]:null;return e&&e.mode===r.mode?(t[t.length-1].data+=r.data,t):(t.push(r),t)},[])}function f(t){for(var r=[],e=0;e<t.length;e++){var o=t[e];switch(o.mode){case c.NUMERIC:r.push([o,{data:o.data,mode:c.ALPHANUMERIC,length:o.length},{data:o.data,mode:c.BYTE,length:o.length}]);break;case c.ALPHANUMERIC:r.push([o,{data:o.data,mode:c.BYTE,length:o.length}]);break;case c.KANJI:r.push([o,{data:o.data,mode:c.BYTE,length:n(o.data)}]);break;case c.BYTE:r.push([{data:o.data,mode:c.BYTE,length:n(o.data)}])}}return r}function s(t,r){for(var e={},n={start:{}},o=["start"],i=0;i<t.length;i++){for(var a=t[i],f=[],s=0;s<a.length;s++){var h=a[s],l=""+i+s;f.push(l),e[l]={node:h,lastCount:0},n[l]={};for(var g=0;g<o.length;g++){var d=o[g];e[d]&&e[d].node.mode===h.mode?(n[d][l]=u(e[d].lastCount+h.length,h.mode)-u(e[d].lastCount,h.mode),e[d].lastCount+=h.length):(e[d]&&(e[d].lastCount=h.length),n[d][l]=u(h.length,h.mode)+4+c.getCharCountIndicator(h.mode,r))}}o=f}for(g=0;g<o.length;g++)n[o[g]].end=0;return{map:n,table:e}}function h(t,r){var e,n=c.getBestModeForData(t);if((e=c.from(r,n))!==c.BYTE&&e.bit<n.bit)throw new Error('"'+t+'" cannot be encoded with mode '+c.toString(e)+".\n Suggested mode is: "+c.toString(n));switch(e!==c.KANJI||y.isKanjiModeEnabled()||(e=c.BYTE),e){case c.NUMERIC:return new l(t);case c.ALPHANUMERIC:return new g(t);case c.KANJI:return new p(t);case c.BYTE:return new d(t)}}var c=e(4),l=e(25),g=e(26),d=e(27),p=e(28),v=e(10),y=e(3),w=e(29);r.fromArray=function(t){return t.reduce(function(t,r){return"string"==typeof r?t.push(h(r,null)):r.data&&t.push(h(r.data,r.mode)),t},[])},r.fromString=function(t,e){for(var n=i(t,y.isKanjiModeEnabled()),o=f(n),u=s(o,e),h=w.find_path(u.map,"start","end"),c=[],l=1;l<h.length-1;l++)c.push(u.table[h[l]].node);return r.fromArray(a(c))},r.rawSplit=function(t){return r.fromArray(i(t,y.isKanjiModeEnabled()))}},function(t,r,e){function n(t){this.mode=o.NUMERIC,this.data=t.toString()}var o=e(4);n.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){var r,e,n;for(r=0;r+3<=this.data.length;r+=3)e=this.data.substr(r,3),n=parseInt(e,10),t.put(n,10);var o=this.data.length-r;o>0&&(e=this.data.substr(r),n=parseInt(e,10),t.put(n,3*o+1))},t.exports=n},function(t,r,e){function n(t){this.mode=o.ALPHANUMERIC,this.data=t}var o=e(4),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];n.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){var r;for(r=0;r+2<=this.data.length;r+=2){var e=45*i.indexOf(this.data[r]);e+=i.indexOf(this.data[r+1]),t.put(e,11)}this.data.length%2&&t.put(i.indexOf(this.data[r]),6)},t.exports=n},function(t,r,e){function n(t){this.mode=i.BYTE,this.data=new o(t)}var o=e(5),i=e(4);n.getBitsLength=function(t){return 8*t},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){for(var r=0,e=this.data.length;r<e;r++)t.put(this.data[r],8)},t.exports=n},function(t,r,e){function n(t){this.mode=o.KANJI,this.data=t}var o=e(4),i=e(3);n.getBitsLength=function(t){return 13*t},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){var r;for(r=0;r<this.data.length;r++){var e=i.toSJIS(this.data[r]);if(e>=33088&&e<=40956)e-=33088;else{if(!(e>=57408&&e<=60351))throw new Error("Invalid SJIS character: "+this.data[r]+"\nMake sure your charset is UTF-8");e-=49472}e=192*(e>>>8&255)+(255&e),t.put(e,13)}},t.exports=n},function(t,r,e){"use strict";var n={single_source_shortest_paths:function(t,r,e){var o={},i={};i[r]=0;var u=n.PriorityQueue.make();u.push(r,0);for(var a,f,s,h,c,l,g,d;!u.empty();){a=u.pop(),f=a.value,h=a.cost,c=t[f]||{};for(s in c)c.hasOwnProperty(s)&&(l=c[s],g=h+l,d=i[s],(void 0===i[s]||d>g)&&(i[s]=g,u.push(s,g),o[s]=f))}if(void 0!==e&&void 0===i[e]){var p=["Could not find a path from ",r," to ",e,"."].join("");throw new Error(p)}return o},extract_shortest_path_from_predecessor_list:function(t,r){for(var e=[],n=r;n;)e.push(n),t[n],n=t[n];return e.reverse(),e},find_path:function(t,r,e){var o=n.single_source_shortest_paths(t,r,e);return n.extract_shortest_path_from_predecessor_list(o,e)},PriorityQueue:{make:function(t){var r,e=n.PriorityQueue,o={};t=t||{};for(r in e)e.hasOwnProperty(r)&&(o[r]=e[r]);return o.queue=[],o.sorter=t.sorter||e.default_sorter,o},default_sorter:function(t,r){return t.cost-r.cost},push:function(t,r){var e={value:t,cost:r};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=n},function(t,r,e){function n(t,r,e){t.clearRect(0,0,r.width,r.height),r.style||(r.style={}),r.height=e,r.width=e,r.style.height=e+"px",r.style.width=e+"px"}function o(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}var i=e(11);r.render=function(t,r,e){var u=e,a=r;void 0!==u||r&&r.getContext||(u=r,r=void 0),r||(a=o()),u=i.getOptions(u);var f=(t.modules.size+2*u.margin)*u.scale,s=a.getContext("2d"),h=s.createImageData(f,f);return i.qrToImageData(h.data,t,u.margin,u.scale,u.color),n(s,a,f),s.putImageData(h,0,0),a},r.renderToDataURL=function(t,e,n){var o=n;void 0!==o||e&&e.getContext||(o=e,e=void 0),o||(o={});var i=r.render(t,e,o),u=o.type||"image/png",a=o.rendererOpts||{};return i.toDataURL(u,a.quality)}},function(t,r,e){function n(t){return'fill="rgb('+[t.r,t.g,t.b].join(",")+')" fill-opacity="'+(t.a/255).toFixed(2)+'"'}var o=e(11);r.render=function(t,r){var e=o.getOptions(r),i=t.modules.size,u=t.modules.data,a=(i+2*e.margin)*e.scale,f='<?xml version="1.0" encoding="utf-8"?>\n';f+='<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n',f+='<svg version="1.1" baseProfile="full"',f+=' width="'+a+'" height="'+a+'"',f+=' viewBox="0 0 '+a+" "+a+'"',f+=' xmlns="http://www.w3.org/2000/svg"',f+=' xmlns:xlink="http://www.w3.org/1999/xlink"',f+=' xmlns:ev="http://www.w3.org/2001/xml-events">\n',f+='<rect x="0" y="0" width="'+a+'" height="'+a+'" '+n(e.color.light)+" />\n",f+='<defs><rect id="p" width="'+e.scale+'" height="'+e.scale+'" /></defs>\n',f+="<g "+n(e.color.dark)+">\n";for(var s=0;s<i;s++)for(var h=0;h<i;h++)if(u[s*i+h]){var c=(e.margin+h)*e.scale,l=(e.margin+s)*e.scale;f+='<use x="'+c+'" y="'+l+'" xlink:href="#p" />\n'}return f+="</g>\n",f+="</svg>"}},function(t,r,e){function n(t,r){t=u(t);var e=r.amount,n=t.length>=13?B:b,P=[o(c,w),o(l,e?E:m),o(g,i([o(A,R),o(n,a(t))])),o(v,T),o(d,_),e&&o(p,f(e))],I=i(P)+y+"04";return P.push(o(y,s(h.crc16xmodem(I,65535)))),i(P)}function o(t,r){return[t,("00"+r.length).slice(-2),r].join("")}function i(t){return t.filter(function(t){return t}).join("")}function u(t){return t.replace(/[^0-9]/g,"")}function a(t){const r=u(t);return r.length>=13?r:("0000000000000"+r.replace(/^0/,"66")).slice(-13)}function f(t){return t.toFixed(2)}function s(t){return("0000"+t.toString(16).toUpperCase()).slice(-4)}/*!7 var X=e(38),Z=e(39),G=e(40);r.Buffer=i,r.SlowBuffer=d,r.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),r.kMaxLength=n(),i.poolSize=8192,i._augment=function(t){return t.__proto__=i.prototype,t},i.from=function(t,r,e){return a(null,t,r,e)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(t,r,e){return s(null,t,r,e)},i.allocUnsafe=function(t){return f(null,t)},i.allocUnsafeSlow=function(t){return f(null,t)},i.isBuffer=function(t){return!(null==t||!t._isBuffer)},i.compare=function(t,r){if(!i.isBuffer(t)||!i.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var e=t.length,n=r.length,o=0,a=Math.min(e,n);o<a;++o)if(t[o]!==r[o]){e=t[o],n=r[o];break}return e<n?-1:n<e?1:0},i.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(t,r){if(!G(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return i.alloc(0);var e;if(void 0===r)for(r=0,e=0;e<t.length;++e)r+=t[e].length;var n=i.allocUnsafe(r),o=0;for(e=0;e<t.length;++e){var a=t[e];if(!i.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},i.byteLength=y,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)m(this,r,r+1);return this},i.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)m(this,r,r+3),m(this,r+1,r+2);return this},i.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)m(this,r,r+7),m(this,r+1,r+6),m(this,r+2,r+5),m(this,r+3,r+4);return this},i.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?T(this,0,t):v.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===i.compare(this,t)},i.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},i.prototype.compare=function(t,r,e,n,o){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),r<0||e>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&r>=e)return 0;if(n>=o)return-1;if(r>=e)return 1;if(r>>>=0,e>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var a=o-n,u=e-r,s=Math.min(a,u),f=this.slice(n,o),c=t.slice(r,e),h=0;h<s;++h)if(f[h]!==c[h]){a=f[h],u=c[h];break}return a<u?-1:u<a?1:0},i.prototype.includes=function(t,r,e){return-1!==this.indexOf(t,r,e)},i.prototype.indexOf=function(t,r,e){return w(this,t,r,e,!0)},i.prototype.lastIndexOf=function(t,r,e){return w(this,t,r,e,!1)},i.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(e)?(e|=0,void 0===n&&(n="utf8")):(n=e,e=void 0)}var o=this.length-r;if((void 0===e||e>o)&&(e=o),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return b(this,t,r,e);case"utf8":case"utf-8":return A(this,t,r,e);case"ascii":return _(this,t,r,e);case"latin1":case"binary":return B(this,t,r,e);case"base64":return P(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,r,e);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var W=4096;i.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,t<0?(t+=e)<0&&(t=0):t>e&&(t=e),r<0?(r+=e)<0&&(r=0):r>e&&(r=e),r<t&&(r=t);var n;if(i.TYPED_ARRAY_SUPPORT)n=this.subarray(t,r),n.__proto__=i.prototype;else{var o=r-t;n=new i(o,void 0);for(var a=0;a<o;++a)n[a]=this[a+t]}return n},i.prototype.readUIntLE=function(t,r,e){t|=0,r|=0,e||L(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return n},i.prototype.readUIntBE=function(t,r,e){t|=0,r|=0,e||L(t,r,this.length);for(var n=this[t+--r],o=1;r>0&&(o*=256);)n+=this[t+--r]*o;return n},i.prototype.readUInt8=function(t,r){return r||L(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,r){return r||L(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,r){return r||L(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,r){return r||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,r){return r||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,r,e){t|=0,r|=0,e||L(t,r,this.length);for(var n=this[t],o=1,i=0;++i<r&&(o*=256);)n+=this[t+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*r)),n},i.prototype.readIntBE=function(t,r,e){t|=0,r|=0,e||L(t,r,this.length);for(var n=r,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*r)),i},i.prototype.readInt8=function(t,r){return r||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,r){r||L(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},i.prototype.readInt16BE=function(t,r){r||L(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},i.prototype.readInt32LE=function(t,r){return r||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,r){return r||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,r){return r||L(t,4,this.length),Z.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,r){return r||L(t,4,this.length),Z.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,r){return r||L(t,8,this.length),Z.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,r){return r||L(t,8,this.length),Z.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,r,e,n){if(t=+t,r|=0,e|=0,!n){U(this,t,r,e,Math.pow(2,8*e)-1,0)}var o=1,i=0;for(this[r]=255&t;++i<e&&(o*=256);)this[r+i]=t/o&255;return r+e},i.prototype.writeUIntBE=function(t,r,e,n){if(t=+t,r|=0,e|=0,!n){U(this,t,r,e,Math.pow(2,8*e)-1,0)}var o=e-1,i=1;for(this[r+o]=255&t;--o>=0&&(i*=256);)this[r+o]=t/i&255;return r+e},i.prototype.writeUInt8=function(t,r,e){return t=+t,r|=0,e||U(this,t,r,1,255,0),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},i.prototype.writeUInt16LE=function(t,r,e){return t=+t,r|=0,e||U(this,t,r,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):j(this,t,r,!0),r+2},i.prototype.writeUInt16BE=function(t,r,e){return t=+t,r|=0,e||U(this,t,r,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):j(this,t,r,!1),r+2},i.prototype.writeUInt32LE=function(t,r,e){return t=+t,r|=0,e||U(this,t,r,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):Y(this,t,r,!0),r+4},i.prototype.writeUInt32BE=function(t,r,e){return t=+t,r|=0,e||U(this,t,r,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):Y(this,t,r,!1),r+4},i.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r|=0,!n){var o=Math.pow(2,8*e-1);U(this,t,r,e,o-1,-o)}var i=0,a=1,u=0;for(this[r]=255&t;++i<e&&(a*=256);)t<0&&0===u&&0!==this[r+i-1]&&(u=1),this[r+i]=(t/a>>0)-u&255;return r+e},i.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r|=0,!n){var o=Math.pow(2,8*e-1);U(this,t,r,e,o-1,-o)}var i=e-1,a=1,u=0;for(this[r+i]=255&t;--i>=0&&(a*=256);)t<0&&0===u&&0!==this[r+i+1]&&(u=1),this[r+i]=(t/a>>0)-u&255;return r+e},i.prototype.writeInt8=function(t,r,e){return t=+t,r|=0,e||U(this,t,r,1,127,-128),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},i.prototype.writeInt16LE=function(t,r,e){return t=+t,r|=0,e||U(this,t,r,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):j(this,t,r,!0),r+2},i.prototype.writeInt16BE=function(t,r,e){return t=+t,r|=0,e||U(this,t,r,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):j(this,t,r,!1),r+2},i.prototype.writeInt32LE=function(t,r,e){return t=+t,r|=0,e||U(this,t,r,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):Y(this,t,r,!0),r+4},i.prototype.writeInt32BE=function(t,r,e){return t=+t,r|=0,e||U(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),i.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):Y(this,t,r,!1),r+4},i.prototype.writeFloatLE=function(t,r,e){return D(this,t,r,!0,e)},i.prototype.writeFloatBE=function(t,r,e){return D(this,t,r,!1,e)},i.prototype.writeDoubleLE=function(t,r,e){return O(this,t,r,!0,e)},i.prototype.writeDoubleBE=function(t,r,e){return O(this,t,r,!1,e)},i.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var o,a=n-e;if(this===t&&e<r&&r<n)for(o=a-1;o>=0;--o)t[o+r]=this[o+e];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)t[o+r]=this[o+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+a),r);return a},i.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<e)throw new RangeError("Out of range index");if(e<=r)return this;r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0);var a;if("number"==typeof t)for(a=r;a<e;++a)this[a]=t;else{var u=i.isBuffer(t)?t:q(new i(t,n).toString()),s=u.length;for(a=0;a<e-r;++a)this[a+r]=u[a%s]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(r,e(13))},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(0),o=n.Buffer.from&&n.Buffer.alloc&&n.Buffer.allocUnsafe&&n.Buffer.allocUnsafeSlow?n.Buffer.from:function(t){return new n.Buffer(t)};r.default=o},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t,r){var e=function(t,e){return r(t,e)>>>0};return e.signed=r,e.unsigned=e,e.model=t,e}},function(t,r){var e,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];r.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},r.getSymbolTotalCodewords=function(t){return n[t]},r.getBCHDigit=function(t){for(var r=0;0!==t;)r++,t>>>=1;return r},r.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');e=t},r.isKanjiModeEnabled=function(){return void 0!==e},r.toSJIS=function(t){return e(t)}},function(t,r,e){function n(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+t)}}var o=e(10),i=e(11);r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(t,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!o.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]},r.getBestModeForData=function(t){return i.testNumeric(t)?r.NUMERIC:i.testAlphanumeric(t)?r.ALPHANUMERIC:i.testKanji(t)?r.KANJI:r.BYTE},r.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},r.isValid=function(t){return t&&t.bit&&t.ccBits},r.from=function(t,e){if(r.isValid(t))return t;try{return n(t)}catch(t){return e}}},function(t,r,e){"use strict";function n(t,r,e){return"number"==typeof t?u(t):y(t,r,e)}function o(t){if(t>=m)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m.toString(16)+" bytes");return 0|t}function i(t){return t!==t}function a(t){var r=new Uint8Array(t);return r.__proto__=n.prototype,r}function u(t){return a(t<0?0:0|o(t))}function s(t){var r=0|p(t),e=a(r),n=e.write(t);return n!==r&&(e=e.slice(0,n)),e}function f(t){for(var r=t.length<0?0:0|o(t.length),e=a(r),n=0;n<r;n+=1)e[n]=255&t[n];return e}function c(t,r,e){if(r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(e||0))throw new RangeError("'length' is out of bounds");var o;return o=void 0===r&&void 0===e?new Uint8Array(t):void 0===e?new Uint8Array(t,r):new Uint8Array(t,r,e),o.__proto__=n.prototype,o}function h(t){if(n.isBuffer(t)){var r=0|o(t.length),e=a(r);return 0===e.length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||i(t.length)?a(0):f(t);if("Buffer"===t.type&&Array.isArray(t.data))return f(t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function l(t,r){r=r||1/0;for(var e,n=t.length,o=null,i=[],a=0;a<n;++a){if((e=t.charCodeAt(a))>55295&&e<57344){if(!o){if(e>56319){(r-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(r-=3)>-1&&i.push(239,191,189);continue}o=e;continue}if(e<56320){(r-=3)>-1&&i.push(239,191,189),o=e;continue}e=65536+(o-55296<<10|e-56320)}else o&&(r-=3)>-1&&i.push(239,191,189);if(o=null,e<128){if((r-=1)<0)break;i.push(e)}else if(e<2048){if((r-=2)<0)break;i.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;i.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return i}function p(t){return n.isBuffer(t)?t.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)?t.byteLength:("string"!=typeof t&&(t=""+t),0===t.length?0:l(t).length)}function g(t,r,e,n){for(var o=0;o<n&&!(o+e>=r.length||o>=t.length);++o)r[o+e]=t[o];return o}function d(t,r,e,n){return g(l(r,t.length-e),t,e,n)}function y(t,r,e){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?c(t,r,e):"string"==typeof t?s(t,r):h(t)}var v=e(7),m=2147483647;n.prototype.__proto__=Uint8Array.prototype,n.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&n[Symbol.species]===n&&Object.defineProperty(n,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),n.prototype.write=function(t,r,e){void 0===r?(e=this.length,r=0):void 0===e&&"string"==typeof r?(e=this.length,r=0):isFinite(r)&&(r|=0,isFinite(e)?e|=0:e=void 0);var n=this.length-r;if((void 0===e||e>n)&&(e=n),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");return d(this,t,r,e)},n.prototype.slice=function(t,r){var e=this.length;t=~~t,r=void 0===r?e:~~r,t<0?(t+=e)<0&&(t=0):t>e&&(t=e),r<0?(r+=e)<0&&(r=0):r>e&&(r=e),r<t&&(r=t);var o=this.subarray(t,r);return o.__proto__=n.prototype,o},n.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var o,i=n-e;if(this===t&&e<r&&r<n)for(o=i-1;o>=0;--o)t[o+r]=this[o+e];else if(i<1e3)for(o=0;o<i;++o)t[o+r]=this[o+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+i),r);return i},n.prototype.fill=function(t,r,e){if("string"==typeof t){if("string"==typeof r?(r=0,e=this.length):"string"==typeof e&&(e=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<e)throw new RangeError("Out of range index");if(e<=r)return this;r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0);var i;if("number"==typeof t)for(i=r;i<e;++i)this[i]=t;else{var a=n.isBuffer(t)?t:new n(t),u=a.length;for(i=0;i<e-r;++i)this[i+r]=a[i%u]}return this},n.concat=function(t,r){if(!v(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a(null,0);var e;if(void 0===r)for(r=0,e=0;e<t.length;++e)r+=t[e].length;var o=u(r),i=0;for(e=0;e<t.length;++e){var s=t[e];if(!n.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(o,i),i+=s.length}return o},n.byteLength=p,n.prototype._isBuffer=!0,n.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.exports=n},function(t,r,e){"use strict";function n(){}function o(t){try{return t.then}catch(t){return v=t,m}}function i(t,r){try{return t(r)}catch(t){return v=t,m}}function a(t,r,e){try{t(r,e)}catch(t){return v=t,m}}function u(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("Promise constructor's argument is not a function");this._75=0,this._83=0,this._18=null,this._38=null,t!==n&&d(t,this)}function s(t,r,e){return new t.constructor(function(o,i){var a=new u(n);a.then(o,i),f(t,new g(r,e,a))})}function f(t,r){for(;3===t._83;)t=t._18;if(u._47&&u._47(t),0===t._83)return 0===t._75?(t._75=1,void(t._38=r)):1===t._75?(t._75=2,void(t._38=[t._38,r])):void t._38.push(r);c(t,r)}function c(t,r){y(function(){var e=1===t._83?r.onFulfilled:r.onRejected;if(null===e)return void(1===t._83?h(r.promise,t._18):l(r.promise,t._18));var n=i(e,t._18);n===m?l(r.promise,v):h(r.promise,n)})}function h(t,r){if(r===t)return l(t,new TypeError("A promise cannot be resolved with itself."));if(r&&("object"==typeof r||"function"==typeof r)){var e=o(r);if(e===m)return l(t,v);if(e===t.then&&r instanceof u)return t._83=3,t._18=r,void p(t);if("function"==typeof e)return void d(e.bind(r),t)}t._83=1,t._18=r,p(t)}function l(t,r){t._83=2,t._18=r,u._71&&u._71(t,r),p(t)}function p(t){if(1===t._75&&(f(t,t._38),t._38=null),2===t._75){for(var r=0;r<t._38.length;r++)f(t,t._38[r]);t._38=null}}function g(t,r,e){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof r?r:null,this.promise=e}function d(t,r){var e=!1,n=a(t,function(t){e||(e=!0,h(r,t))},function(t){e||(e=!0,l(r,t))});e||n!==m||(e=!0,l(r,v))}var y=e(14),v=null,m={};t.exports=u,u._47=null,u._71=null,u._44=n,u.prototype.then=function(t,r){if(this.constructor!==u)return s(this,t,r);var e=new u(n);return f(this,new g(t,r,e)),e}},function(t,r){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},function(t,r){function e(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+t)}}r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2},r.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},r.from=function(t,n){if(r.isValid(t))return t;try{return e(t)}catch(t){return n}}},function(t,r,e){var n=e(8),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];r.getBlocksCount=function(t,r){switch(r){case n.L:return o[4*(t-1)+0];case n.M:return o[4*(t-1)+1];case n.Q:return o[4*(t-1)+2];case n.H:return o[4*(t-1)+3];default:return}},r.getTotalCodewordsCount=function(t,r){switch(r){case n.L:return i[4*(t-1)+0];case n.M:return i[4*(t-1)+1];case n.Q:return i[4*(t-1)+2];case n.H:return i[4*(t-1)+3];default:return}}},function(t,r,e){function n(t,e,n){for(var o=1;o<=40;o++)if(e<=r.getCapacity(o,n,t))return o}function o(t,r){return c.getCharCountIndicator(t,r)+4}function i(t,r){var e=0;return t.forEach(function(t){var n=o(t.mode,r);e+=n+t.getBitsLength()}),e}function a(t,e){for(var n=1;n<=40;n++){if(i(t,n)<=r.getCapacity(n,e,c.MIXED))return n}}var u=e(3),s=e(9),f=e(8),c=e(4),h=e(7),l=u.getBCHDigit(7973);r.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40},r.from=function(t,e){return r.isValid(t)?parseInt(t,10):e},r.getCapacity=function(t,e,n){if(!r.isValid(t))throw new Error("Invalid QR Code version");void 0===n&&(n=c.BYTE);var i=u.getSymbolTotalCodewords(t),a=s.getTotalCodewordsCount(t,e),f=8*(i-a);if(n===c.MIXED)return f;var h=f-o(n,t);switch(n){case c.NUMERIC:return Math.floor(h/10*3);case c.ALPHANUMERIC:return Math.floor(h/11*2);case c.KANJI:return Math.floor(h/13);case c.BYTE:default:return Math.floor(h/8)}},r.getBestVersionForData=function(t,r){var e,o=f.from(r,f.M);if(h(t)){if(t.length>1)return a(t,o);if(0===t.length)return 1;e=t[0]}else e=t;return n(e.mode,e.getLength(),o)},r.getEncodedBits=function(t){if(!r.isValid(t)||t<7)throw new Error("Invalid QR Code version");for(var e=t<<12;u.getBCHDigit(e)-l>=0;)e^=7973<<u.getBCHDigit(e)-l;return t<<12|e}},function(t,r){var e="(?:[ -〿]|[-ゟ]|[゠-ヿ]|[-]|[一-龯]|[★-☆]|[←-↕]|※|[‐―‘’‥…“”∥≠]|[Α-ё]|[§¨±´×÷])+";r.KANJI=new RegExp(e,"g"),r.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+-./:]+","g"),r.BYTE=new RegExp("(?:(?![A-Z0-9 $%*+-./:]|(?:[ -〿]|[-ゟ]|[゠-ヿ]|[-]|[一-龯]|[★-☆]|[←-↕]|※|[‐―‘’‥…“”∥≠]|[Α-ё]|[§¨±´×÷])+).)+","g"),r.NUMERIC=new RegExp("[0-9]+","g"),r.ALPHANUMERIC=new RegExp("[A-Z $%*+-./:]+","g");var n=new RegExp("^"+e+"$"),o=new RegExp("^[0-9]+$"),i=new RegExp("^[A-Z0-9 $%*+-./:]+$");r.testKanji=function(t){return n.test(t)},r.testNumeric=function(t){return o.test(t)},r.testAlphanumeric=function(t){return i.test(t)}},function(t,r){function e(t){if("string"!=typeof t)throw new Error("Color should be defined as hex string");var r=t.slice().replace("#","").split("");if(r.length<3||5===r.length||r.length>8)throw new Error("Invalid hex color: "+t);3!==r.length&&4!==r.length||(r=Array.prototype.concat.apply([],r.map(function(t){return[t,t]}))),6===r.length&&r.push("F","F");var e=parseInt(r.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:255&e}}r.getOptions=function(t){t||(t={}),t.color||(t.color={});var r=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin;return{scale:t.scale||4,margin:r,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},r.qrToImageData=function(t,r,e,n,o){for(var i=r.modules.size,a=r.modules.data,u=e*n,s=i*n+2*u,f=[o.light,o.dark],c=0;c<s;c++)for(var h=0;h<s;h++){var l=4*(c*s+h),p=o.light;if(c>=u&&h>=u&&c<s-u&&h<s-u){var g=Math.floor((c-u)/n),d=Math.floor((h-u)/n);p=f[a[g*i+d]]}t[l++]=p.r,t[l++]=p.g,t[l++]=p.b,t[l]=p.a}}},function(t,r){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,r,e){"use strict";(function(r){function e(t){a.length||(i(),u=!0),a[a.length]=t}function n(){for(;s<a.length;){var t=s;if(s+=1,a[t].call(),s>f){for(var r=0,e=a.length-s;r<e;r++)a[r]=a[r+s];a.length-=s,s=0}}a.length=0,s=0,u=!1}function o(t){return function(){function r(){clearTimeout(e),clearInterval(n),t()}var e=setTimeout(r,0),n=setInterval(r,50)}}t.exports=e;var i,a=[],u=!1,s=0,f=1024,c=void 0!==r?r:self,h=c.MutationObserver||c.WebKitMutationObserver;i="function"==typeof h?function(t){var r=1,e=new h(t),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){r=-r,n.data=r}}(n):o(n),e.requestFlush=i,e.makeRequestCallFromTimer=o}).call(r,e(13))},function(t,r,e){"use strict";function n(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function o(){for(var t=0;t<m.length;t++){var r=m[t],e=new w(r.promptpayId||v,r.amount,r.showPromptpayLogo,r.showPromptpayId,r.accountName,r.shopName,r.cardStyle),n=jQuery("<div>",{class:"ppy-card"}).attr("data-"+y.promptpayId,e.promptpayId).attr("data-"+y.amount,e.amount).attr("data-"+y.showPromptpayLogo,e.showPromptpayLogo).attr("data-"+y.showPromptpayId,e.showPromptpayId).attr("data-"+y.accountName,e.accountName).attr("data-"+y.shopName,e.shopName).attr("data-"+y.cardStyle,e.cardStyle);p.append(n)}}function i(t,r){var e=h(t,{amount:r});return new l(function(t,r){c.toString(e,{type:"svg"},function(e,n){e&&r(e),t(n)})})}function a(t,r){var e=jQuery("<pre>",{class:"ppy-head"}).html(JSON.stringify(r,null,2));t.addClass("ppy-style"+r.cardStyle);var n=jQuery("<div>",{class:"ppy-qrcode"}),o=jQuery("<div>",{class:"ppy-logo"}),a=jQuery("<div>",{class:"ppy-meta"}),u="";i(r.promptpayId,r.amount).then(function(i){t.append(e),r.showPromptpayLogo&&t.append(o),n.html(i),t.append(n),r.showPromptpayId&&(u+='<span class="ppy-meta-line">PromptPay ID: '+r.promptpayId+"</span>"),r.accountName&&(u+='<span class="ppy-meta-line">Account name: '+r.accountName+"</span>"),r.shopName&&(u+='<span class="ppy-meta-line">Shop name: '+r.shopName+"</span>"),""!==u&&(a.html(u),t.append(a))}).catch(function(t){console.log("err",t)}).finally(function(){})}function u(t){return new w(t.data(y.promptpayId).toString(),parseFloat(t.data(y.amount)),1===t.data(y.showPromptpayLogo),1===t.data(y.showPromptpayId),t.data(y.accountName).toString(),t.data(y.shopName).toString(),parseInt(t.data(y.cardStyle)))}function s(t){Object.keys(y).forEach(function(r){t.removeAttr("data-"+y[r])})}function f(){var t=jQuery(".ppy-card");jQuery.each(t,function(){var t=jQuery(this),r=u(t);s(t),r.promptpayId&&a(t,r)})}var c=e(16),h=e(35),l=e(50),p=jQuery("body"),g=p.hasClass("wp-admin"),d=p.hasClass("ppy-test"),y={promptpayId:"promptpay-id",amount:"amount",showPromptpayLogo:"show-promptpay-logo",showPromptpayId:"show-promptpay-id",accountName:"account-name",shopName:"shop-name",cardStyle:"card-style"},v="0846612456",m=[{},{promptpayId:"1100400404123"},{promptpayId:v},{amount:100.1},{amount:100.256478},{amount:0},{showPromptpayLogo:1},{showPromptpayLogo:0},{showPromptpayId:1},{showPromptpayId:0},{accountName:"Nathachai Thongniran"},{accountName:"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium ipsum laboriosam nam quod vero voluptate. Accusamus autem beatae dolorum ea ipsa ipsam iure magni nostrum obcaecati, quo quos tempora tempore?"},{accountName:""},{shopName:"Jojoee shop"},{shopName:""},{cardStyle:1},{cardStyle:2},{cardStyle:3},{showPromptpayId:1,accountName:"Nathachai Thongniran",shopName:"Jojoee shop"},{showPromptpayId:1,accountName:"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium ipsum laboriosam nam quod vero voluptate. Accusamus autem beatae dolorum ea ipsa ipsam iure magni nostrum obcaecati, quo quos tempora tempore?",shopName:"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium ipsum laboriosam nam quod vero voluptate. Accusamus autem beatae dolorum ea ipsa ipsam iure magni nostrum obcaecati, quo quos tempora tempore"},{amount:20.5,showPromptpayLogo:1,showPromptpayId:1,accountName:"Nathachai Thongniran",shopName:"Jojoee shop"},{amount:20.5,showPromptpayLogo:1,showPromptpayId:1,accountName:"Nathachai Thongniran",shopName:"Jojoee shop",cardStyle:1},{amount:20.5,showPromptpayLogo:1,showPromptpayId:1,accountName:"Nathachai Thongniran",shopName:"Jojoee shop",cardStyle:2},{amount:20.5,showPromptpayLogo:1,showPromptpayId:1,accountName:"Nathachai Thongniran",shopName:"Jojoee shop",cardStyle:3},{},{cardStyle:1},{cardStyle:2},{cardStyle:3}],w=function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1;n(this,t),this.promptpayId=r,this.amount=e,this.showPromptpayLogo=o,this.showPromptpayId=i,this.accountName=a,this.shopName=u,this.cardStyle=s};jQuery(document).ready(function(){d?(o(),f()):g?initBackend():f()})},function(t,r,e){function n(t,r,e,n,i){var a=arguments.length-1;if(a<2)throw new Error("Too few arguments provided");if(2===a?(i=e,e=r,r=n=void 0):3===a&&(r.getContext&&void 0===i?(i=n,n=void 0):(i=n,n=e,e=r,r=void 0)),"function"!=typeof i)throw new Error("Callback required as last argument");try{var u=o.create(e,n);i(null,t(u,r,n))}catch(t){i(t)}}var o=e(17),i=e(33),a=e(34);r.create=o.create,r.toCanvas=n.bind(null,i.render),r.toDataURL=n.bind(null,i.renderToDataURL),r.toString=n.bind(null,function(t,r,e){return a.render(t,e)}),r.qrcodedraw=function(){return{draw:r.toCanvas}}},function(t,r,e){function n(t,r){for(var e=t.size,n=m.getPositions(r),o=0;o<n.length;o++)for(var i=n[o][0],a=n[o][1],u=-1;u<=7;u++)if(!(i+u<=-1||e<=i+u))for(var s=-1;s<=7;s++)a+s<=-1||e<=a+s||(u>=0&&u<=6&&(0===s||6===s)||s>=0&&s<=6&&(0===u||6===u)||u>=2&&u<=4&&s>=2&&s<=4?t.set(i+u,a+s,!0,!0):t.set(i+u,a+s,!1,!0))}function o(t){for(var r=t.size,e=8;e<r-8;e++){var n=e%2==0;t.set(e,6,n,!0),t.set(6,e,n,!0)}}function i(t,r){for(var e=v.getPositions(r),n=0;n<e.length;n++)for(var o=e[n][0],i=e[n][1],a=-2;a<=2;a++)for(var u=-2;u<=2;u++)-2===a||2===a||-2===u||2===u||0===a&&0===u?t.set(o+a,i+u,!0,!0):t.set(o+a,i+u,!1,!0)}function a(t,r){for(var e,n,o,i=t.size,a=A.getEncodedBits(r),u=0;u<18;u++)e=Math.floor(u/3),n=u%3+i-8-3,o=1==(a>>u&1),t.set(e,n,o,!0),t.set(n,e,o,!0)}function u(t,r,e){var n,o,i=t.size,a=_.getEncodedBits(r,e);for(n=0;n<15;n++)o=1==(a>>n&1),n<6?t.set(n,8,o,!0):n<8?t.set(n+1,8,o,!0):t.set(i-15+n,8,o,!0),n<8?t.set(8,i-n-1,o,!0):n<9?t.set(8,15-n-1+1,o,!0):t.set(8,15-n-1,o,!0);t.set(i-8,8,1,!0)}function s(t,r){for(var e=t.size,n=-1,o=e-1,i=7,a=0,u=e-1;u>0;u-=2)for(6===u&&u--;;){for(var s=0;s<2;s++)if(!t.isReserved(o,u-s)){var f=!1;a<r.length&&(f=1==(r[a]>>>i&1)),t.set(o,u-s,f),i--,-1===i&&(a++,i=7)}if((o+=n)<0||e<=o){o-=n,n=-n;break}}}function f(t,r,e){var n=new d;e.forEach(function(r){n.put(r.mode.bit,4),n.put(r.getLength(),B.getCharCountIndicator(r.mode,t)),r.write(n)});var o=p.getSymbolTotalCodewords(t),i=E.getTotalCodewordsCount(t,r),a=8*(o-i);for(n.getLengthInBits()+4<=a&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(0);for(var u=(a-n.getLengthInBits())/8,s=0;s<u;s++)n.put(s%2?17:236,8);return c(n,t,r)}function c(t,r,e){for(var n=p.getSymbolTotalCodewords(r),o=E.getTotalCodewordsCount(r,e),i=n-o,a=E.getBlocksCount(r,e),u=n%a,s=a-u,f=Math.floor(n/a),c=Math.floor(i/a),h=c+1,g=f-c,d=new b(g),y=0,v=new Array(a),m=new Array(a),w=0,A=new l(t.buffer),_=0;_<a;_++){var B=_<s?c:h;v[_]=A.slice(y,y+B),m[_]=d.encode(v[_]),y+=B,w=Math.max(w,B)}var P,R,I=new l(n),T=0;for(P=0;P<w;P++)for(R=0;R<a;R++)P<v[R].length&&(I[T++]=v[R][P]);for(P=0;P<g;P++)for(R=0;R<a;R++)I[T++]=m[R][P];return I}function h(t,r,e){var c;if(R(t))c=P.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");var h=r;if(!h){var l=P.rawSplit(t);h=A.getBestVersionForData(l,e)}c=P.fromString(t,h||40)}var g=A.getBestVersionForData(c,e);if(!g)throw new Error("The amount of data is too big to be stored in a QR Code");if(r){if(r<g)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+g+".\n")}else r=g;var d=f(r,e,c),v=p.getSymbolSize(r),m=new y(v);n(m,r),o(m),i(m,r),u(m,e,0),r>=7&&a(m,r),s(m,d);var E=w.getBestMask(m,u.bind(null,m,e));return w.applyMask(E,m),u(m,e,E),{modules:m,version:r,errorCorrectionLevel:e,maskPattern:E,segments:c}}var l=e(5),p=e(3),g=e(8),d=e(18),y=e(19),v=e(20),m=e(21),w=e(22),E=e(9),b=e(23),A=e(10),_=e(26),B=e(4),P=e(27),R=e(7);r.create=function(t,r){if(void 0===t||""===t)throw new Error("No input text");var e,n=g.M;return void 0!==r&&(n=g.from(r.errorCorrectionLevel,g.M),e=A.from(r.version),r.toSJISFunc&&p.setToSJISFunction(r.toSJISFunc)),h(t,e,n)}},function(t,r){function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){var r=Math.floor(t/8);return 1==(this.buffer[r]>>>7-t%8&1)},put:function(t,r){for(var e=0;e<r;e++)this.putBit(1==(t>>>r-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),t&&(this.buffer[r]|=128>>>this.length%8),this.length++}},t.exports=e},function(t,r,e){function n(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new o(t*t),this.data.fill(0),this.reservedBit=new o(t*t),this.reservedBit.fill(0)}var o=e(5);n.prototype.set=function(t,r,e,n){var o=t*this.size+r;this.data[o]=e,n&&(this.reservedBit[o]=!0)},n.prototype.get=function(t,r){return this.data[t*this.size+r]},n.prototype.xor=function(t,r,e){this.data[t*this.size+r]^=e},n.prototype.isReserved=function(t,r){return this.reservedBit[t*this.size+r]},t.exports=n},function(t,r,e){var n=e(3).getSymbolSize;r.getRowColCoords=function(t){if(1===t)return[];for(var r=Math.floor(t/7)+2,e=n(t),o=145===e?26:2*Math.ceil((e-13)/(2*r-2)),i=[e-7],a=1;a<r-1;a++)i[a]=i[a-1]-o;return i.push(6),i.reverse()},r.getPositions=function(t){for(var e=[],n=r.getRowColCoords(t),o=n.length,i=0;i<o;i++)for(var a=0;a<o;a++)0===i&&0===a||0===i&&a===o-1||i===o-1&&0===a||e.push([n[i],n[a]]);return e}},function(t,r,e){var n=e(3).getSymbolSize;r.getPositions=function(t){var r=n(t);return[[0,0],[r-7,0],[0,r-7]]}},function(t,r){function e(t,e,n){switch(t){case r.Patterns.PATTERN000:return(e+n)%2==0;case r.Patterns.PATTERN001:return e%2==0;case r.Patterns.PATTERN010:return n%3==0;case r.Patterns.PATTERN011:return(e+n)%3==0;case r.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case r.Patterns.PATTERN101:return e*n%2+e*n%3==0;case r.Patterns.PATTERN110:return(e*n%2+e*n%3)%2==0;case r.Patterns.PATTERN111:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var n={N1:3,N2:3,N3:40,N4:10};r.getPenaltyN1=function(t){for(var r=t.size,e=0,o=0,i=0,a=null,u=null,s=0;s<r;s++){o=i=0,a=u=null;for(var f=0;f<r;f++){var c=t.get(s,f);c===a?o++:(o>=5&&(e+=n.N1+(o-5)),a=c,o=1),c=t.get(f,s),c===u?i++:(i>=5&&(e+=n.N1+(i-5)),u=c,i=1)}o>=5&&(e+=n.N1+(o-5)),i>=5&&(e+=n.N1+(i-5))}return e},r.getPenaltyN2=function(t){for(var r=t.size,e=0,o=0;o<r-1;o++)for(var i=0;i<r-1;i++){var a=t.get(o,i)+t.get(o,i+1)+t.get(o+1,i)+t.get(o+1,i+1);4!==a&&0!==a||e++}return e*n.N2},r.getPenaltyN3=function(t){for(var r=t.size,e=0,o=0,i=0,a=0;a<r;a++){o=i=0;for(var u=0;u<r;u++)o=o<<1&2047|t.get(a,u),u>=10&&(1488===o||93===o)&&e++,i=i<<1&2047|t.get(u,a),u>=10&&(1488===i||93===i)&&e++}return e*n.N3},r.getPenaltyN4=function(t){for(var r=0,e=t.data.length,o=0;o<e;o++)r+=t.data[o];return Math.abs(Math.ceil(100*r/e/5)-10)*n.N4},r.applyMask=function(t,r){for(var n=r.size,o=0;o<n;o++)for(var i=0;i<n;i++)r.isReserved(i,o)||r.xor(i,o,e(t,i,o))},r.getBestMask=function(t,e){for(var n=Object.keys(r.Patterns).length,o=0,i=1/0,a=0;a<n;a++){e(a),r.applyMask(a,t);var u=r.getPenaltyN1(t)+r.getPenaltyN2(t)+r.getPenaltyN3(t)+r.getPenaltyN4(t);r.applyMask(a,t),u<i&&(i=u,o=a)}return o}},function(t,r,e){function n(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}var o=e(5),i=e(24);n.prototype.initialize=function(t){this.degree=t,this.genPoly=i.generateECPolynomial(this.degree)},n.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var r=new o(this.degree);r.fill(0);var e=o.concat([t,r],t.length+this.degree),n=i.mod(e,this.genPoly),a=this.degree-n.length;if(a>0){var u=new o(this.degree);return u.fill(0),n.copy(u,a),u}return n},t.exports=n},function(t,r,e){var n=e(5),o=e(25);r.mul=function(t,r){var e=new n(t.length+r.length-1);e.fill(0);for(var i=0;i<t.length;i++)for(var a=0;a<r.length;a++)e[i+a]^=o.mul(t[i],r[a]);return e},r.mod=function(t,r){for(var e=new n(t);e.length-r.length>=0;){for(var i=e[0],a=0;a<r.length;a++)e[a]^=o.mul(r[a],i);for(var u=0;u<e.length&&0===e[u];)u++;e=e.slice(u)}return e},r.generateECPolynomial=function(t){for(var e=new n([1]),i=0;i<t;i++)e=r.mul(e,[1,o.exp(i)]);return e}},function(t,r,e){var n=e(5),o=new n(512),i=new n(256);!function(){for(var t=1,r=0;r<255;r++)o[r]=t,i[t]=r,256&(t<<=1)&&(t^=285);for(r=255;r<512;r++)o[r]=o[r-255]}(),r.log=function(t){if(t<1)throw new Error("log("+t+")");return i[t]},r.exp=function(t){return o[t]},r.mul=function(t,r){return 0===t||0===r?0:o[i[t]+i[r]]}},function(t,r,e){var n=e(3),o=n.getBCHDigit(1335);r.getEncodedBits=function(t,r){for(var e=t.bit<<3|r,i=e<<10;n.getBCHDigit(i)-o>=0;)i^=1335<<n.getBCHDigit(i)-o;return 21522^(e<<10|i)}},function(t,r,e){function n(t){return unescape(encodeURIComponent(t)).length}function o(t,r,e){for(var n,o=[];null!==(n=t.exec(e));)o.push({data:n[0],index:n.index,mode:r,length:n[0].length});return o}function i(t){var r,e,n=o(y.NUMERIC,h.NUMERIC,t),i=o(y.ALPHANUMERIC,h.ALPHANUMERIC,t);return v.isKanjiModeEnabled()?(r=o(y.BYTE,h.BYTE,t),e=o(y.KANJI,h.KANJI,t)):(r=o(y.BYTE_KANJI,h.BYTE,t),e=[]),n.concat(i,r,e).sort(function(t,r){return t.index-r.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function a(t,r){switch(r){case h.NUMERIC:return l.getBitsLength(t);case h.ALPHANUMERIC:return p.getBitsLength(t);case h.KANJI:return d.getBitsLength(t);case h.BYTE:return g.getBitsLength(t)}}function u(t){return t.reduce(function(t,r){var e=t.length-1>=0?t[t.length-1]:null;return e&&e.mode===r.mode?(t[t.length-1].data+=r.data,t):(t.push(r),t)},[])}function s(t){for(var r=[],e=0;e<t.length;e++){var o=t[e];switch(o.mode){case h.NUMERIC:r.push([o,{data:o.data,mode:h.ALPHANUMERIC,length:o.length},{data:o.data,mode:h.BYTE,length:o.length}]);break;case h.ALPHANUMERIC:r.push([o,{data:o.data,mode:h.BYTE,length:o.length}]);break;case h.KANJI:r.push([o,{data:o.data,mode:h.BYTE,length:n(o.data)}]);break;case h.BYTE:r.push([{data:o.data,mode:h.BYTE,length:n(o.data)}])}}return r}function f(t,r){for(var e={},n={start:{}},o=["start"],i=0;i<t.length;i++){for(var u=t[i],s=[],f=0;f<u.length;f++){var c=u[f],l=""+i+f;s.push(l),e[l]={node:c,lastCount:0},n[l]={};for(var p=0;p<o.length;p++){var g=o[p];e[g]&&e[g].node.mode===c.mode?(n[g][l]=a(e[g].lastCount+c.length,c.mode)-a(e[g].lastCount,c.mode),e[g].lastCount+=c.length):(e[g]&&(e[g].lastCount=c.length),n[g][l]=a(c.length,c.mode)+4+h.getCharCountIndicator(c.mode,r))}}o=s}for(p=0;p<o.length;p++)n[o[p]].end=0;return{map:n,table:e}}function c(t,r){var e,n=h.getBestModeForData(t);if((e=h.from(r,n))!==h.BYTE&&e.bit<n.bit)throw new Error('"'+t+'" cannot be encoded with mode '+h.toString(e)+".\n Suggested mode is: "+h.toString(n));switch(e!==h.KANJI||v.isKanjiModeEnabled()||(e=h.BYTE),e){case h.NUMERIC:return new l(t);case h.ALPHANUMERIC:return new p(t);case h.KANJI:return new d(t);case h.BYTE:return new g(t)}}var h=e(4),l=e(28),p=e(29),g=e(30),d=e(31),y=e(11),v=e(3),m=e(32);r.fromArray=function(t){return t.reduce(function(t,r){return"string"==typeof r?t.push(c(r,null)):r.data&&t.push(c(r.data,r.mode)),t},[])},r.fromString=function(t,e){for(var n=i(t,v.isKanjiModeEnabled()),o=s(n),a=f(o,e),c=m.find_path(a.map,"start","end"),h=[],l=1;l<c.length-1;l++)h.push(a.table[c[l]].node);return r.fromArray(u(h))},r.rawSplit=function(t){return r.fromArray(i(t,v.isKanjiModeEnabled()))}},function(t,r,e){function n(t){this.mode=o.NUMERIC,this.data=t.toString()}var o=e(4);n.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){var r,e,n;for(r=0;r+3<=this.data.length;r+=3)e=this.data.substr(r,3),n=parseInt(e,10),t.put(n,10);var o=this.data.length-r;o>0&&(e=this.data.substr(r),n=parseInt(e,10),t.put(n,3*o+1))},t.exports=n},function(t,r,e){function n(t){this.mode=o.ALPHANUMERIC,this.data=t}var o=e(4),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];n.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){var r;for(r=0;r+2<=this.data.length;r+=2){var e=45*i.indexOf(this.data[r]);e+=i.indexOf(this.data[r+1]),t.put(e,11)}this.data.length%2&&t.put(i.indexOf(this.data[r]),6)},t.exports=n},function(t,r,e){function n(t){this.mode=i.BYTE,this.data=new o(t)}var o=e(5),i=e(4);n.getBitsLength=function(t){return 8*t},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){for(var r=0,e=this.data.length;r<e;r++)t.put(this.data[r],8)},t.exports=n},function(t,r,e){function n(t){this.mode=o.KANJI,this.data=t}var o=e(4),i=e(3);n.getBitsLength=function(t){return 13*t},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){var r;for(r=0;r<this.data.length;r++){var e=i.toSJIS(this.data[r]);if(e>=33088&&e<=40956)e-=33088;else{if(!(e>=57408&&e<=60351))throw new Error("Invalid SJIS character: "+this.data[r]+"\nMake sure your charset is UTF-8");e-=49472}e=192*(e>>>8&255)+(255&e),t.put(e,13)}},t.exports=n},function(t,r,e){"use strict";var n={single_source_shortest_paths:function(t,r,e){var o={},i={};i[r]=0;var a=n.PriorityQueue.make();a.push(r,0);for(var u,s,f,c,h,l,p,g;!a.empty();){u=a.pop(),s=u.value,c=u.cost,h=t[s]||{};for(f in h)h.hasOwnProperty(f)&&(l=h[f],p=c+l,g=i[f],(void 0===i[f]||g>p)&&(i[f]=p,a.push(f,p),o[f]=s))}if(void 0!==e&&void 0===i[e]){var d=["Could not find a path from ",r," to ",e,"."].join("");throw new Error(d)}return o},extract_shortest_path_from_predecessor_list:function(t,r){for(var e=[],n=r;n;)e.push(n),t[n],n=t[n];return e.reverse(),e},find_path:function(t,r,e){var o=n.single_source_shortest_paths(t,r,e);return n.extract_shortest_path_from_predecessor_list(o,e)},PriorityQueue:{make:function(t){var r,e=n.PriorityQueue,o={};t=t||{};for(r in e)e.hasOwnProperty(r)&&(o[r]=e[r]);return o.queue=[],o.sorter=t.sorter||e.default_sorter,o},default_sorter:function(t,r){return t.cost-r.cost},push:function(t,r){var e={value:t,cost:r};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=n},function(t,r,e){function n(t,r,e){t.clearRect(0,0,r.width,r.height),r.style||(r.style={}),r.height=e,r.width=e,r.style.height=e+"px",r.style.width=e+"px"}function o(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}var i=e(12);r.render=function(t,r,e){var a=e,u=r;void 0!==a||r&&r.getContext||(a=r,r=void 0),r||(u=o()),a=i.getOptions(a);var s=(t.modules.size+2*a.margin)*a.scale,f=u.getContext("2d"),c=f.createImageData(s,s);return i.qrToImageData(c.data,t,a.margin,a.scale,a.color),n(f,u,s),f.putImageData(c,0,0),u},r.renderToDataURL=function(t,e,n){var o=n;void 0!==o||e&&e.getContext||(o=e,e=void 0),o||(o={});var i=r.render(t,e,o),a=o.type||"image/png",u=o.rendererOpts||{};return i.toDataURL(a,u.quality)}},function(t,r,e){function n(t){return'fill="rgb('+[t.r,t.g,t.b].join(",")+')" fill-opacity="'+(t.a/255).toFixed(2)+'"'}var o=e(12);r.render=function(t,r){var e=o.getOptions(r),i=t.modules.size,a=t.modules.data,u=(i+2*e.margin)*e.scale,s='<?xml version="1.0" encoding="utf-8"?>\n';s+='<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n',s+='<svg version="1.1" baseProfile="full"',s+=' width="'+u+'" height="'+u+'"',s+=' viewBox="0 0 '+u+" "+u+'"',s+=' xmlns="http://www.w3.org/2000/svg"',s+=' xmlns:xlink="http://www.w3.org/1999/xlink"',s+=' xmlns:ev="http://www.w3.org/2001/xml-events">\n',s+='<rect x="0" y="0" width="'+u+'" height="'+u+'" '+n(e.color.light)+" />\n",s+='<defs><rect id="p" width="'+e.scale+'" height="'+e.scale+'" /></defs>\n',s+="<g "+n(e.color.dark)+">\n";for(var f=0;f<i;f++)for(var c=0;c<i;c++)if(a[f*i+c]){var h=(e.margin+c)*e.scale,l=(e.margin+f)*e.scale;s+='<use x="'+h+'" y="'+l+'" xlink:href="#p" />\n'}return s+="</g>\n",s+="</svg>"}},function(t,r,e){function n(t,r){t=a(t);var e=r.amount,n=t.length>=13?_:A,I=[o(h,m),o(l,e?E:w),o(p,i([o(b,B),o(n,u(t))])),o(y,R),o(g,P),e&&o(d,s(e))],T=i(I)+v+"04";return I.push(o(v,f(c.crc16xmodem(T,65535)))),i(I)}function o(t,r){return[t,("00"+r.length).slice(-2),r].join("")}function i(t){return t.filter(function(t){return t}).join("")}function a(t){return t.replace(/[^0-9]/g,"")}function u(t){const r=a(t);return r.length>=13?r:("0000000000000"+r.replace(/^0/,"66")).slice(-13)}function s(t){return t.toFixed(2)}function f(t){return("0000"+t.toString(16).toUpperCase()).slice(-4)}/*! 8 8 * promptpay-qr 9 9 * JavaScript library to generate PromptPay QR code … … 16 16 * @license MIT 17 17 */ 18 var h=e(33),c="00",l="01",g="29",d="53",p="54",v="58",y="63",w="01",m="11",E="12",A="00",b="01",B="02",R="A000000677010111",_="764",T="TH";t.exports=n},function(t,r,e){"use strict";t.exports={crc1:e(34),crc8:e(39),crc81wire:e(40),crc16:e(41),crc16ccitt:e(42),crc16modbus:e(43),crc16xmodem:e(44),crc16kermit:e(45),crc24:e(46),crc32:e(47)}},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),u=n(i),a=e(2),f=n(a);t.exports=(0,f.default)("crc1",function(t,r){o.Buffer.isBuffer(t)||(t=(0,u.default)(t));for(var e=~~r,n=0,i=0;i<t.length;i++){n+=t[i]}return(e+=n%256)%256})},function(t,r){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,r,e){"use strict";function n(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[r-2]?2:"="===t[r-1]?1:0}function o(t){return 3*t.length/4-n(t)}function i(t){var r,e,o,i,u,a=t.length;i=n(t),u=new c(3*a/4-i),e=i>0?a-4:a;var f=0;for(r=0;r<e;r+=4)o=h[t.charCodeAt(r)]<<18|h[t.charCodeAt(r+1)]<<12|h[t.charCodeAt(r+2)]<<6|h[t.charCodeAt(r+3)],u[f++]=o>>16&255,u[f++]=o>>8&255,u[f++]=255&o;return 2===i?(o=h[t.charCodeAt(r)]<<2|h[t.charCodeAt(r+1)]>>4,u[f++]=255&o):1===i&&(o=h[t.charCodeAt(r)]<<10|h[t.charCodeAt(r+1)]<<4|h[t.charCodeAt(r+2)]>>2,u[f++]=o>>8&255,u[f++]=255&o),u}function u(t){return s[t>>18&63]+s[t>>12&63]+s[t>>6&63]+s[63&t]}function a(t,r,e){for(var n,o=[],i=r;i<e;i+=3)n=(t[i]<<16)+(t[i+1]<<8)+t[i+2],o.push(u(n));return o.join("")}function f(t){for(var r,e=t.length,n=e%3,o="",i=[],u=0,f=e-n;u<f;u+=16383)i.push(a(t,u,u+16383>f?f:u+16383));return 1===n?(r=t[e-1],o+=s[r>>2],o+=s[r<<4&63],o+="=="):2===n&&(r=(t[e-2]<<8)+t[e-1],o+=s[r>>10],o+=s[r>>4&63],o+=s[r<<2&63],o+="="),i.push(o),i.join("")}r.byteLength=o,r.toByteArray=i,r.fromByteArray=f;for(var s=[],h=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,d=l.length;g<d;++g)s[g]=l[g],h[l.charCodeAt(g)]=g;h["-".charCodeAt(0)]=62,h["_".charCodeAt(0)]=63},function(t,r){r.read=function(t,r,e,n,o){var i,u,a=8*o-n-1,f=(1<<a)-1,s=f>>1,h=-7,c=e?o-1:0,l=e?-1:1,g=t[r+c];for(c+=l,i=g&(1<<-h)-1,g>>=-h,h+=a;h>0;i=256*i+t[r+c],c+=l,h-=8);for(u=i&(1<<-h)-1,i>>=-h,h+=n;h>0;u=256*u+t[r+c],c+=l,h-=8);if(0===i)i=1-s;else{if(i===f)return u?NaN:1/0*(g?-1:1);u+=Math.pow(2,n),i-=s}return(g?-1:1)*u*Math.pow(2,i-n)},r.write=function(t,r,e,n,o,i){var u,a,f,s=8*i-o-1,h=(1<<s)-1,c=h>>1,l=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:i-1,d=n?1:-1,p=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(a=isNaN(r)?1:0,u=h):(u=Math.floor(Math.log(r)/Math.LN2),r*(f=Math.pow(2,-u))<1&&(u--,f*=2),r+=u+c>=1?l/f:l*Math.pow(2,1-c),r*f>=2&&(u++,f/=2),u+c>=h?(a=0,u=h):u+c>=1?(a=(r*f-1)*Math.pow(2,o),u+=c):(a=r*Math.pow(2,c-1)*Math.pow(2,o),u=0));o>=8;t[e+g]=255&a,g+=d,a/=256,o-=8);for(u=u<<o|a,s+=o;s>0;t[e+g]=255&u,g+=d,u/=256,s-=8);t[e+g-d]|=128*p}},function(t,r){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),u=n(i),a=e(2),f=n(a),s=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];"undefined"!=typeof Int32Array&&(s=new Int32Array(s)),t.exports=(0,f.default)("crc-8",function(t,r){o.Buffer.isBuffer(t)||(t=(0,u.default)(t));for(var e=~~r,n=0;n<t.length;n++){var i=t[n];e=255&s[255&(e^i)]}return e})},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),u=n(i),a=e(2),f=n(a),s=[0,94,188,226,97,63,221,131,194,156,126,32,163,253,31,65,157,195,33,127,252,162,64,30,95,1,227,189,62,96,130,220,35,125,159,193,66,28,254,160,225,191,93,3,128,222,60,98,190,224,2,92,223,129,99,61,124,34,192,158,29,67,161,255,70,24,250,164,39,121,155,197,132,218,56,102,229,187,89,7,219,133,103,57,186,228,6,88,25,71,165,251,120,38,196,154,101,59,217,135,4,90,184,230,167,249,27,69,198,152,122,36,248,166,68,26,153,199,37,123,58,100,134,216,91,5,231,185,140,210,48,110,237,179,81,15,78,16,242,172,47,113,147,205,17,79,173,243,112,46,204,146,211,141,111,49,178,236,14,80,175,241,19,77,206,144,114,44,109,51,209,143,12,82,176,238,50,108,142,208,83,13,239,177,240,174,76,18,145,207,45,115,202,148,118,40,171,245,23,73,8,86,180,234,105,55,213,139,87,9,235,181,54,104,138,212,149,203,41,119,244,170,72,22,233,183,85,11,136,214,52,106,43,117,151,201,74,20,246,168,116,42,200,150,21,75,169,247,182,232,10,84,215,137,107,53];"undefined"!=typeof Int32Array&&(s=new Int32Array(s)),t.exports=(0,f.default)("dallas-1-wire",function(t,r){o.Buffer.isBuffer(t)||(t=(0,u.default)(t));for(var e=~~r,n=0;n<t.length;n++){var i=t[n];e=255&s[255&(e^i)]}return e})},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),u=n(i),a=e(2),f=n(a),s=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];"undefined"!=typeof Int32Array&&(s=new Int32Array(s)),t.exports=(0,f.default)("crc-16",function(t,r){o.Buffer.isBuffer(t)||(t=(0,u.default)(t));for(var e=~~r,n=0;n<t.length;n++){var i=t[n];e=65535&(s[255&(e^i)]^e>>8)}return e})},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),u=n(i),a=e(2),f=n(a),s=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];"undefined"!=typeof Int32Array&&(s=new Int32Array(s)),t.exports=(0,f.default)("ccitt",function(t,r){o.Buffer.isBuffer(t)||(t=(0,u.default)(t));for(var e=void 0!==r?~~r:65535,n=0;n<t.length;n++){var i=t[n];e=65535&(s[255&(e>>8^i)]^e<<8)}return e})},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),u=n(i),a=e(2),f=n(a),s=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];"undefined"!=typeof Int32Array&&(s=new Int32Array(s)),t.exports=(0,f.default)("crc-16-modbus",function(t,r){o.Buffer.isBuffer(t)||(t=(0,u.default)(t));for(var e=void 0!==r?~~r:65535,n=0;n<t.length;n++){var i=t[n];e=65535&(s[255&(e^i)]^e>>8)}return e})},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),u=n(i),a=e(2),f=n(a);t.exports=(0,f.default)("xmodem",function(t,r){o.Buffer.isBuffer(t)||(t=(0,u.default)(t));for(var e=void 0!==r?~~r:0,n=0;n<t.length;n++){var i=t[n],a=e>>>8&255;a^=255&i,a^=a>>>4,e=e<<8&65535,e^=a,a=a<<5&65535,e^=a,a=a<<7&65535,e^=a}return e})},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),u=n(i),a=e(2),f=n(a),s=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];"undefined"!=typeof Int32Array&&(s=new Int32Array(s)),t.exports=(0,f.default)("kermit",function(t,r){o.Buffer.isBuffer(t)||(t=(0,u.default)(t));for(var e=void 0!==r?~~r:0,n=0;n<t.length;n++){var i=t[n];e=65535&(s[255&(e^i)]^e>>8)}return e})},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),u=n(i),a=e(2),f=n(a),s=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];"undefined"!=typeof Int32Array&&(s=new Int32Array(s)),t.exports=(0,f.default)("crc-24",function(t,r){o.Buffer.isBuffer(t)||(t=(0,u.default)(t));for(var e=void 0!==r?~~r:11994318,n=0;n<t.length;n++){var i=t[n];e=16777215&(s[255&(e>>16^i)]^e<<8)}return e})},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),u=n(i),a=e(2),f=n(a),s=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];"undefined"!=typeof Int32Array&&(s=new Int32Array(s)),t.exports=(0,f.default)("crc-32",function(t,r){o.Buffer.isBuffer(t)||(t=(0,u.default)(t));for(var e=0===r?0:-1^~~r,n=0;n<t.length;n++){var i=t[n];e=s[255&(e^i)]^e>>>8}return-1^e})}]);18 var c=e(36),h="00",l="01",p="29",g="53",d="54",y="58",v="63",m="01",w="11",E="12",b="00",A="01",_="02",B="A000000677010111",P="764",R="TH";t.exports=n},function(t,r,e){"use strict";t.exports={crc1:e(37),crc8:e(41),crc81wire:e(42),crc16:e(43),crc16ccitt:e(44),crc16modbus:e(45),crc16xmodem:e(46),crc16kermit:e(47),crc24:e(48),crc32:e(49)}},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),a=n(i),u=e(2),s=n(u);t.exports=(0,s.default)("crc1",function(t,r){o.Buffer.isBuffer(t)||(t=(0,a.default)(t));for(var e=~~r,n=0,i=0;i<t.length;i++){n+=t[i]}return(e+=n%256)%256})},function(t,r,e){"use strict";function n(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[r-2]?2:"="===t[r-1]?1:0}function o(t){return 3*t.length/4-n(t)}function i(t){var r,e,o,i,a,u=t.length;i=n(t),a=new h(3*u/4-i),e=i>0?u-4:u;var s=0;for(r=0;r<e;r+=4)o=c[t.charCodeAt(r)]<<18|c[t.charCodeAt(r+1)]<<12|c[t.charCodeAt(r+2)]<<6|c[t.charCodeAt(r+3)],a[s++]=o>>16&255,a[s++]=o>>8&255,a[s++]=255&o;return 2===i?(o=c[t.charCodeAt(r)]<<2|c[t.charCodeAt(r+1)]>>4,a[s++]=255&o):1===i&&(o=c[t.charCodeAt(r)]<<10|c[t.charCodeAt(r+1)]<<4|c[t.charCodeAt(r+2)]>>2,a[s++]=o>>8&255,a[s++]=255&o),a}function a(t){return f[t>>18&63]+f[t>>12&63]+f[t>>6&63]+f[63&t]}function u(t,r,e){for(var n,o=[],i=r;i<e;i+=3)n=(t[i]<<16)+(t[i+1]<<8)+t[i+2],o.push(a(n));return o.join("")}function s(t){for(var r,e=t.length,n=e%3,o="",i=[],a=0,s=e-n;a<s;a+=16383)i.push(u(t,a,a+16383>s?s:a+16383));return 1===n?(r=t[e-1],o+=f[r>>2],o+=f[r<<4&63],o+="=="):2===n&&(r=(t[e-2]<<8)+t[e-1],o+=f[r>>10],o+=f[r>>4&63],o+=f[r<<2&63],o+="="),i.push(o),i.join("")}r.byteLength=o,r.toByteArray=i,r.fromByteArray=s;for(var f=[],c=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,g=l.length;p<g;++p)f[p]=l[p],c[l.charCodeAt(p)]=p;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},function(t,r){r.read=function(t,r,e,n,o){var i,a,u=8*o-n-1,s=(1<<u)-1,f=s>>1,c=-7,h=e?o-1:0,l=e?-1:1,p=t[r+h];for(h+=l,i=p&(1<<-c)-1,p>>=-c,c+=u;c>0;i=256*i+t[r+h],h+=l,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+t[r+h],h+=l,c-=8);if(0===i)i=1-f;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=f}return(p?-1:1)*a*Math.pow(2,i-n)},r.write=function(t,r,e,n,o,i){var a,u,s,f=8*i-o-1,c=(1<<f)-1,h=c>>1,l=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,g=n?1:-1,d=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,a=c):(a=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-a))<1&&(a--,s*=2),r+=a+h>=1?l/s:l*Math.pow(2,1-h),r*s>=2&&(a++,s/=2),a+h>=c?(u=0,a=c):a+h>=1?(u=(r*s-1)*Math.pow(2,o),a+=h):(u=r*Math.pow(2,h-1)*Math.pow(2,o),a=0));o>=8;t[e+p]=255&u,p+=g,u/=256,o-=8);for(a=a<<o|u,f+=o;f>0;t[e+p]=255&a,p+=g,a/=256,f-=8);t[e+p-g]|=128*d}},function(t,r){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),a=n(i),u=e(2),s=n(u),f=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];"undefined"!=typeof Int32Array&&(f=new Int32Array(f)),t.exports=(0,s.default)("crc-8",function(t,r){o.Buffer.isBuffer(t)||(t=(0,a.default)(t));for(var e=~~r,n=0;n<t.length;n++){var i=t[n];e=255&f[255&(e^i)]}return e})},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),a=n(i),u=e(2),s=n(u),f=[0,94,188,226,97,63,221,131,194,156,126,32,163,253,31,65,157,195,33,127,252,162,64,30,95,1,227,189,62,96,130,220,35,125,159,193,66,28,254,160,225,191,93,3,128,222,60,98,190,224,2,92,223,129,99,61,124,34,192,158,29,67,161,255,70,24,250,164,39,121,155,197,132,218,56,102,229,187,89,7,219,133,103,57,186,228,6,88,25,71,165,251,120,38,196,154,101,59,217,135,4,90,184,230,167,249,27,69,198,152,122,36,248,166,68,26,153,199,37,123,58,100,134,216,91,5,231,185,140,210,48,110,237,179,81,15,78,16,242,172,47,113,147,205,17,79,173,243,112,46,204,146,211,141,111,49,178,236,14,80,175,241,19,77,206,144,114,44,109,51,209,143,12,82,176,238,50,108,142,208,83,13,239,177,240,174,76,18,145,207,45,115,202,148,118,40,171,245,23,73,8,86,180,234,105,55,213,139,87,9,235,181,54,104,138,212,149,203,41,119,244,170,72,22,233,183,85,11,136,214,52,106,43,117,151,201,74,20,246,168,116,42,200,150,21,75,169,247,182,232,10,84,215,137,107,53];"undefined"!=typeof Int32Array&&(f=new Int32Array(f)),t.exports=(0,s.default)("dallas-1-wire",function(t,r){o.Buffer.isBuffer(t)||(t=(0,a.default)(t));for(var e=~~r,n=0;n<t.length;n++){var i=t[n];e=255&f[255&(e^i)]}return e})},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),a=n(i),u=e(2),s=n(u),f=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];"undefined"!=typeof Int32Array&&(f=new Int32Array(f)),t.exports=(0,s.default)("crc-16",function(t,r){o.Buffer.isBuffer(t)||(t=(0,a.default)(t));for(var e=~~r,n=0;n<t.length;n++){var i=t[n];e=65535&(f[255&(e^i)]^e>>8)}return e})},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),a=n(i),u=e(2),s=n(u),f=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];"undefined"!=typeof Int32Array&&(f=new Int32Array(f)),t.exports=(0,s.default)("ccitt",function(t,r){o.Buffer.isBuffer(t)||(t=(0,a.default)(t));for(var e=void 0!==r?~~r:65535,n=0;n<t.length;n++){var i=t[n];e=65535&(f[255&(e>>8^i)]^e<<8)}return e})},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),a=n(i),u=e(2),s=n(u),f=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];"undefined"!=typeof Int32Array&&(f=new Int32Array(f)),t.exports=(0,s.default)("crc-16-modbus",function(t,r){o.Buffer.isBuffer(t)||(t=(0,a.default)(t));for(var e=void 0!==r?~~r:65535,n=0;n<t.length;n++){var i=t[n];e=65535&(f[255&(e^i)]^e>>8)}return e})},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),a=n(i),u=e(2),s=n(u);t.exports=(0,s.default)("xmodem",function(t,r){o.Buffer.isBuffer(t)||(t=(0,a.default)(t));for(var e=void 0!==r?~~r:0,n=0;n<t.length;n++){var i=t[n],u=e>>>8&255;u^=255&i,u^=u>>>4,e=e<<8&65535,e^=u,u=u<<5&65535,e^=u,u=u<<7&65535,e^=u}return e})},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),a=n(i),u=e(2),s=n(u),f=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];"undefined"!=typeof Int32Array&&(f=new Int32Array(f)),t.exports=(0,s.default)("kermit",function(t,r){o.Buffer.isBuffer(t)||(t=(0,a.default)(t));for(var e=void 0!==r?~~r:0,n=0;n<t.length;n++){var i=t[n];e=65535&(f[255&(e^i)]^e>>8)}return e})},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),a=n(i),u=e(2),s=n(u),f=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];"undefined"!=typeof Int32Array&&(f=new Int32Array(f)),t.exports=(0,s.default)("crc-24",function(t,r){o.Buffer.isBuffer(t)||(t=(0,a.default)(t));for(var e=void 0!==r?~~r:11994318,n=0;n<t.length;n++){var i=t[n];e=16777215&(f[255&(e>>16^i)]^e<<8)}return e})},function(t,r,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var o=e(0),i=e(1),a=n(i),u=e(2),s=n(u),f=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];"undefined"!=typeof Int32Array&&(f=new Int32Array(f)),t.exports=(0,s.default)("crc-32",function(t,r){o.Buffer.isBuffer(t)||(t=(0,a.default)(t));for(var e=0===r?0:-1^~~r,n=0;n<t.length;n++){var i=t[n];e=f[255&(e^i)]^e>>>8}return-1^e})},function(t,r,e){"use strict";t.exports=e(51)},function(t,r,e){"use strict";t.exports=e(6),e(52),e(53),e(54),e(55),e(57)},function(t,r,e){"use strict";var n=e(6);t.exports=n,n.prototype.done=function(t,r){(arguments.length?this.then.apply(this,arguments):this).then(null,function(t){setTimeout(function(){throw t},0)})}},function(t,r,e){"use strict";var n=e(6);t.exports=n,n.prototype.finally=function(t){return this.then(function(r){return n.resolve(t()).then(function(){return r})},function(r){return n.resolve(t()).then(function(){throw r})})}},function(t,r,e){"use strict";function n(t){var r=new o(o._44);return r._83=1,r._18=t,r}var o=e(6);t.exports=o;var i=n(!0),a=n(!1),u=n(null),s=n(void 0),f=n(0),c=n("");o.resolve=function(t){if(t instanceof o)return t;if(null===t)return u;if(void 0===t)return s;if(!0===t)return i;if(!1===t)return a;if(0===t)return f;if(""===t)return c;if("object"==typeof t||"function"==typeof t)try{var r=t.then;if("function"==typeof r)return new o(r.bind(t))}catch(t){return new o(function(r,e){e(t)})}return n(t)},o.all=function(t){var r=Array.prototype.slice.call(t);return new o(function(t,e){function n(a,u){if(u&&("object"==typeof u||"function"==typeof u)){if(u instanceof o&&u.then===o.prototype.then){for(;3===u._83;)u=u._18;return 1===u._83?n(a,u._18):(2===u._83&&e(u._18),void u.then(function(t){n(a,t)},e))}var s=u.then;if("function"==typeof s){return void new o(s.bind(u)).then(function(t){n(a,t)},e)}}r[a]=u,0==--i&&t(r)}if(0===r.length)return t([]);for(var i=r.length,a=0;a<r.length;a++)n(a,r[a])})},o.reject=function(t){return new o(function(r,e){e(t)})},o.race=function(t){return new o(function(r,e){t.forEach(function(t){o.resolve(t).then(r,e)})})},o.prototype.catch=function(t){return this.then(null,t)}},function(t,r,e){"use strict";function n(t,r){for(var e=[],n=0;n<r;n++)e.push("a"+n);var o=["return function ("+e.join(",")+") {","var self = this;","return new Promise(function (rs, rj) {","var res = fn.call(",["self"].concat(e).concat([u]).join(","),");","if (res &&",'(typeof res === "object" || typeof res === "function") &&','typeof res.then === "function"',") {rs(res);}","});","};"].join("");return Function(["Promise","fn"],o)(i,t)}function o(t){for(var r=Math.max(t.length-1,3),e=[],n=0;n<r;n++)e.push("a"+n);var o=["return function ("+e.join(",")+") {","var self = this;","var args;","var argLength = arguments.length;","if (arguments.length > "+r+") {","args = new Array(arguments.length + 1);","for (var i = 0; i < arguments.length; i++) {","args[i] = arguments[i];","}","}","return new Promise(function (rs, rj) {","var cb = "+u+";","var res;","switch (argLength) {",e.concat(["extra"]).map(function(t,r){return"case "+r+":res = fn.call("+["self"].concat(e.slice(0,r)).concat("cb").join(",")+");break;"}).join(""),"default:","args[argLength] = cb;","res = fn.apply(self, args);","}","if (res &&",'(typeof res === "object" || typeof res === "function") &&','typeof res.then === "function"',") {rs(res);}","});","};"].join("");return Function(["Promise","fn"],o)(i,t)}var i=e(6),a=e(56);t.exports=i,i.denodeify=function(t,r){return"number"==typeof r&&r!==1/0?n(t,r):o(t)};var u="function (err, res) {if (err) { rj(err); } else { rs(res); }}";i.nodeify=function(t){return function(){var r=Array.prototype.slice.call(arguments),e="function"==typeof r[r.length-1]?r.pop():null,n=this;try{return t.apply(this,arguments).nodeify(e,n)}catch(t){if(null===e||void 0===e)return new i(function(r,e){e(t)});a(function(){e.call(n,t)})}}},i.prototype.nodeify=function(t,r){if("function"!=typeof t)return this;this.then(function(e){a(function(){t.call(r,null,e)})},function(e){a(function(){t.call(r,e)})})}},function(t,r,e){"use strict";function n(){if(s.length)throw s.shift()}function o(t){var r;r=u.length?u.pop():new i,r.task=t,a(r)}function i(){this.task=null}var a=e(14),u=[],s=[],f=a.makeRequestCallFromTimer(n);t.exports=o,i.prototype.call=function(){try{this.task.call()}catch(t){o.onerror?o.onerror(t):(s.push(t),f())}finally{this.task=null,u[u.length]=this}}},function(t,r,e){"use strict";var n=e(6);t.exports=n,n.enableSynchronous=function(){n.prototype.isPending=function(){return 0==this.getState()},n.prototype.isFulfilled=function(){return 1==this.getState()},n.prototype.isRejected=function(){return 2==this.getState()},n.prototype.getValue=function(){if(3===this._83)return this._18.getValue();if(!this.isFulfilled())throw new Error("Cannot get a value of an unfulfilled promise.");return this._18},n.prototype.getReason=function(){if(3===this._83)return this._18.getReason();if(!this.isRejected())throw new Error("Cannot get a rejection reason of a non-rejected promise.");return this._18},n.prototype.getState=function(){return 3===this._83?this._18.getState():-1===this._83||-2===this._83?0:this._83}},n.disableSynchronous=function(){n.prototype.isPending=void 0,n.prototype.isFulfilled=void 0,n.prototype.isRejected=void 0,n.prototype.getValue=void 0,n.prototype.getReason=void 0,n.prototype.getState=void 0}}]); -
wp-promptpay/trunk/promptpay.php
r1727821 r1729504 4 4 Plugin URI: https://wordpress.org/plugins/promptpay/ 5 5 Description: PromptPay integration for WordPress 6 Version: 1. 0.06 Version: 1.2.0 7 7 Author: Nathachai Thongniran 8 8 Author URI: http://jojoee.com/ … … 12 12 */ 13 13 14 if ( ! defined( 'ABSPATH' ) ) { 15 exit; // Exit if accessed directly 16 } 17 14 18 define( 'PPY_BASE_FILE', plugin_basename( __FILE__ ) ); 15 19 define( 'PPY_PLUGIN_NAME', 'PromptPay' ); 20 21 // hack 22 // @todo refactor 23 class PromptPayFieldKey { 24 public function __construct() { 25 $this->field_promptpay_id = 'field_promptpay_id'; 26 $this->field_show_promptpay_logo = 'field_show_promptpay_logo'; 27 $this->field_show_promptpay_id = 'field_show_promptpay_id'; 28 $this->field_account_name = 'field_account_name'; 29 $this->field_shop_name = 'field_shop_name'; 30 } 31 } 16 32 17 33 class PromptPay { … … 24 40 $this->setting_section_id = 'ppy_setting_section_id'; 25 41 26 $this->options = get_option( $this->option_field_name ); 42 $this->field_key = new PromptPayFieldKey(); 43 $this->options = get_option( $this->option_field_name ); 27 44 28 45 // set default prop … … 45 62 // shortcode 46 63 add_shortcode( 'promptpayqr', array( $this, 'shortcode_qrcode' ) ); 64 65 // WooCommerce 66 add_action( 'woocommerce_order_details_after_order_table', array( $this, 'order_details_after_order_table' ) ); 67 } 68 69 /** ================================================================ WooCommerce 70 */ 71 72 /** 73 * @todo refactor 74 * 75 * @param WC_Order $order 76 */ 77 public function order_details_after_order_table( $order ) { 78 $payment_method = $order->get_payment_method(); 79 $total = $order->get_total(); 80 if ( $payment_method === 'bacs' ) { 81 // temporary 82 echo $this->shortcode_qrcode(); 83 } 47 84 } 48 85 … … 51 88 52 89 public function shortcode_qrcode() { 53 $options = $this->options; 54 $promptpay_id = $options['field_promptpay_id']; 55 $amount = 0; 56 $html = sprintf( '<div class="ppy-qrcode" data-promptpay-id="%s" data-amount="%f"></div>', 57 $promptpay_id, 58 $amount 90 $options = $this->options; 91 $html = sprintf( '<div class="ppy-card" 92 data-promptpay-id="%s" 93 data-amount="%f" 94 data-show-promptpay-logo="%s" 95 data-show-promptpay-id="%s" 96 data-account-name="%s" 97 data-shop-name="%s" 98 data-card-style="%s" 99 ></div>', 100 $options[ $this->field_key->field_promptpay_id ], 101 0, 102 $options[ $this->field_key->field_show_promptpay_logo ], 103 $options[ $this->field_key->field_show_promptpay_id ], 104 $options[ $this->field_key->field_account_name ], 105 $options[ $this->field_key->field_shop_name ], 106 1 59 107 ); 60 108 … … 108 156 // option field(s) 109 157 // - field_promptpay_id 158 // - field_show_promptpay_logo 159 // - field_show_promptpay_id 160 // - field_account_name 161 // - field_shop_name 110 162 add_settings_field( 111 'field_promptpay_id',163 $this->field_key->field_promptpay_id, 112 164 'PromptPay ID', 113 array( $this, 'field_promptpay_id_callback' ), 165 array( $this, $this->field_key->field_promptpay_id . '_callback' ), 166 $this->menu_page, 167 $this->setting_section_id 168 ); 169 add_settings_field( 170 $this->field_key->field_show_promptpay_logo, 171 'Show PromptPay logo', 172 array( $this, $this->field_key->field_show_promptpay_logo . '_callback' ), 173 $this->menu_page, 174 $this->setting_section_id 175 ); 176 add_settings_field( 177 $this->field_key->field_show_promptpay_id, 178 'Show PromptPay ID', 179 array( $this, $this->field_key->field_show_promptpay_id . '_callback' ), 180 $this->menu_page, 181 $this->setting_section_id 182 ); 183 add_settings_field( 184 $this->field_key->field_account_name, 185 'Account name', 186 array( $this, $this->field_key->field_account_name . '_callback' ), 187 $this->menu_page, 188 $this->setting_section_id 189 ); 190 add_settings_field( 191 $this->field_key->field_shop_name, 192 'Shop name', 193 array( $this, $this->field_key->field_shop_name . '_callback' ), 114 194 $this->menu_page, 115 195 $this->setting_section_id … … 126 206 // default 127 207 // [ 128 // 'field_promptpay_id' => '' 208 // 'field_promptpay_id' => '' 209 // 'field_show_promptpay_logo' => 1 210 // 'field_show_promptpay_id' => 1 211 // 'field_account_name' => '' 212 // 'field_shop_name' => '' 129 213 // ] 130 131 214 $options = $this->options; 132 215 133 if ( ! isset( $options['field_promptpay_id'] ) ) { 134 $options['field_promptpay_id'] = ''; 216 if ( ! isset( $options[ $this->field_key->field_promptpay_id ] ) ) { 217 $options[ $this->field_key->field_promptpay_id ] = ''; 218 } 219 220 if ( ! isset( $options[ $this->field_key->field_show_promptpay_logo ] ) ) { 221 $options[ $this->field_key->field_show_promptpay_logo ] = 1; 222 } 223 224 if ( ! isset( $options[ $this->field_key->field_show_promptpay_id ] ) ) { 225 $options[ $this->field_key->field_show_promptpay_id ] = 1; 226 } 227 228 if ( ! isset( $options[ $this->field_key->field_account_name ] ) ) { 229 $options[ $this->field_key->field_account_name ] = ''; 230 } 231 232 if ( ! isset( $options[ $this->field_key->field_shop_name ] ) ) { 233 $options[ $this->field_key->field_shop_name ] = ''; 135 234 } 136 235 … … 150 249 // text 151 250 $text_input_ids = array( 152 'field_promptpay_id', 251 $this->field_key->field_promptpay_id, 252 $this->field_key->field_account_name, 253 $this->field_key->field_shop_name 153 254 ); 154 255 foreach ( $text_input_ids as $text_input_id ) { … … 158 259 } 159 260 261 // number 262 $number_input_ids = array( 263 $this->field_key->field_show_promptpay_logo, 264 $this->field_key->field_show_promptpay_id 265 ); 266 foreach ( $number_input_ids as $number_input_id ) { 267 $result[ $number_input_id ] = isset( $input[ $number_input_id ] ) 268 ? sanitize_text_field( $input[ $number_input_id ] ) 269 : 0; 270 } 271 160 272 return $result; 161 273 } 162 274 163 275 public function print_section_info() { 164 print 'Enter your settings below:'; 276 printf( '%s<br>%s<pre>%s</pre>', 277 'Enter your settings below', 278 'and display it by shortcode', 279 '[promptpayqr]' 280 ); 165 281 } 166 282 … … 169 285 170 286 public function field_promptpay_id_callback() { 171 $field_id = 'field_promptpay_id';287 $field_id = $this->field_key->field_promptpay_id; 172 288 $field_name = $this->option_field_name . "[$field_id]"; 173 289 $field_value = $this->options[ $field_id ]; 174 290 175 printf( '<input type="text" id="%s" placeholder=" PromptPay ID" name="%s" value="%s" />',291 printf( '<input type="text" id="%s" placeholder="e.g. 1234567891234, 0841234567" name="%s" value="%s" />', 176 292 $field_id, 177 293 $field_name, 178 294 $field_value 179 295 ); 180 printf( '<br><span class="ppy-input-desc">e.g. 1234567891234, 0841234567</span>' ); 296 } 297 298 public function field_show_promptpay_logo_callback() { 299 $field_id = $this->field_key->field_show_promptpay_logo; 300 $field_name = $this->option_field_name . "[$field_id]"; 301 $field_value = 1; 302 $check_attr = checked( 1, $this->options[ $field_id ], false ); 303 304 printf( 305 '<input type="checkbox" id="%s" name="%s" value="%s" %s />', 306 $field_id, 307 $field_name, 308 $field_value, 309 $check_attr 310 ); 311 } 312 313 public function field_show_promptpay_id_callback() { 314 $field_id = $this->field_key->field_show_promptpay_id; 315 $field_name = $this->option_field_name . "[$field_id]"; 316 $field_value = 1; 317 $check_attr = checked( 1, $this->options[ $field_id ], false ); 318 319 printf( 320 '<input type="checkbox" id="%s" name="%s" value="%s" %s />', 321 $field_id, 322 $field_name, 323 $field_value, 324 $check_attr 325 ); 326 } 327 328 public function field_account_name_callback() { 329 $field_id = $this->field_key->field_account_name; 330 $field_name = $this->option_field_name . "[$field_id]"; 331 $field_value = $this->options[ $field_id ]; 332 333 printf( '<input type="text" id="%s" placeholder="Account name" name="%s" value="%s" />', 334 $field_id, 335 $field_name, 336 $field_value 337 ); 338 } 339 340 public function field_shop_name_callback() { 341 $field_id = $this->field_key->field_shop_name; 342 $field_name = $this->option_field_name . "[$field_id]"; 343 $field_value = $this->options[ $field_id ]; 344 345 printf( '<input type="text" id="%s" placeholder="Shop name" name="%s" value="%s" />', 346 $field_id, 347 $field_name, 348 $field_value 349 ); 181 350 } 182 351 -
wp-promptpay/trunk/readme.txt
r1727821 r1729504 3 3 Contributors: jojoee 4 4 Donate link: 5 Tags: payment, PromptPay, qrcode 5 Tags: payment, PromptPay, qrcode, woocommerce 6 6 Requires at least: 3.0.1 7 7 Tested up to: 4.8.1 … … 12 12 == Description == 13 13 14 PromptPay integration for WordPress 14 PromptPay integration for WordPress, contract creator if any 15 15 16 16 Features: 17 17 18 18 * Shortcode 19 * Support all Thai banks 20 * Support all themes 21 * Support all layouts / devices 22 * Integration with BACS WooCommerce 23 * No tracking 19 24 20 25 Compatible with all browsers: … … 41 46 1. Shortcode (screenshot-1.jpg) 42 47 48 2. WooCommerce (screenshot-2.jpg) 49 43 50 == Upgrade Notice == 44 51 … … 47 54 == Changelog == 48 55 49 = 1.0.0 (07 Sep 2016) = 56 = 1.2.0 (13 Sep 2017) = 57 * Integration with BACS WooCommerce 58 59 = 1.1.0 (13 Sep 2017) = 60 * Add more options 61 62 = 1.0.0 (07 Sep 2017) = 50 63 * First release 51 64 52 == Notes == 65 == TODO == 66 67 * [x] Screenshot 68 * [x] Integration with BACS WooCommerce 69 * [x] Option: promptpay id 70 * [ ] Option: amount 71 * [x] Option: show promptpay logo 72 * [x] Option: show promptpay id 73 * [x] Option: account name 74 * [x] Option: shop name 75 * [x] Option: card style 76 * [x] Option: integration with WooCommerce 77 * [x] Shortcode 78 * [ ] Shortcode: amount 79 * [ ] Shortcode: show promptpay logo 80 * [ ] Shortcode: show promptpay id 81 * [ ] Shortcode: account name 82 * [ ] Shortcode: shop name 83 * [ ] Shortcode: 3 card styles 84 * [ ] Shortcode: bank logo 85 * [ ] Shortcode: customer logo 86 * [ ] Pre-fill total (amount) on order-received page (WooCommerce) 87 * [ ] Create demo shortcode page 88 * [ ] Localization: Thai 89 * [ ] Live preview Shortcode on admin page 90 * [ ] Live preview: debounce when it's changed 91 * [x] Live preview: live validate 92 * [ ] Security: using PHP encode id into page then javascript decode it 93 * [ ] Support on IE 7-8 94 * [ ] Unit test: PHP 95 * [ ] Unit test: Javascript 96 * [ ] E2E test 97 98 == Notes (dev) == 53 99 54 100 * [WordPress Coding Standards](https://codex.wordpress.org/WordPress_Coding_Standards) 55 101 * 2 spaces for indent 56 102 * [Repository on Github](https://github.com/woodpeckerr/promptpay) 103 * `yarn build.watch` to dev 104 * `yarn build.prod && yarn zip` to build package 57 105 58 106 = Thank you = … … 61 109 * [PHP code syntax check](https://www.piliapp.com/php-syntax-check/) 62 110 * [dtinth/promptpay-qr](https://github.com/dtinth/promptpay-qr) 111 * Image and design from [Digio Merchant QR Generator](https://qr-generator.digio.co.th/)
Note: See TracChangeset
for help on using the changeset viewer.