imatrix-ui 2.8.97-dw-tmp2 → 2.8.97-dw-tmp4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/super-ui.css +1 -0
- package/lib/super-ui.umd.min.js +36 -1
- package/package.json +1 -2
- package/src/i18n/i18n.js +1 -1
- package/src/i18n/langs/cn.js +1 -1
- package/src/i18n/langs/en.js +1 -1
- package/src/permission.js +1 -1
- package/src/plugins.js +4 -4
- package/src/store/modules/permission.js +5 -0
- package/src/styles/index.scss +2 -2
- package/src/utils/permissionAuth.js +6 -0
- package/src/utils/request.js +1 -1
- package/src/views/login/index.vue +1 -1
- package/lib/css/super-ui.common~46f24e9d.f712732a.css +0 -1
- package/lib/css/super-ui.common~60a56baa.e6f54088.css +0 -1
- package/lib/css/super-ui.common~691e02b5.3387eefb.css +0 -1
- package/lib/css/super-ui.common~e2e93592.e9ec19a9.css +0 -1
- package/lib/css/super-ui.umd.min~46f24e9d.f712732a.css +0 -1
- package/lib/css/super-ui.umd.min~60a56baa.e6f54088.css +0 -1
- package/lib/css/super-ui.umd.min~691e02b5.3387eefb.css +0 -1
- package/lib/css/super-ui.umd.min~e2e93592.e9ec19a9.css +0 -1
- package/lib/css/super-ui.umd~46f24e9d.f712732a.css +0 -1
- package/lib/css/super-ui.umd~60a56baa.e6f54088.css +0 -1
- package/lib/css/super-ui.umd~691e02b5.3387eefb.css +0 -1
- package/lib/css/super-ui.umd~e2e93592.e9ec19a9.css +0 -1
- package/lib/css/vendors~super-ui.common~253ae210.b57e4bfb.css +0 -1
- package/lib/css/vendors~super-ui.umd.min~253ae210.b57e4bfb.css +0 -1
- package/lib/css/vendors~super-ui.umd~253ae210.b57e4bfb.css +0 -1
- package/lib/css/yarn.tinymce~97d7b732.ea366551.css +0 -1
- package/lib/super-ui.common.super-ui.common~46f24e9d.js +0 -12446
- package/lib/super-ui.common.super-ui.common~60a56baa.js +0 -2774
- package/lib/super-ui.common.super-ui.common~691e02b5.js +0 -3062
- package/lib/super-ui.common.super-ui.common~970f9218.js +0 -3729
- package/lib/super-ui.common.super-ui.common~bd3594d6.js +0 -5264
- package/lib/super-ui.common.super-ui.common~e2e93592.js +0 -6945
- package/lib/super-ui.common.vendors~super-ui.common~253ae210.js +0 -3504
- package/lib/super-ui.common.yarn.async-validator~7864cd12.js +0 -1225
- package/lib/super-ui.common.yarn.core-js~2b13b260.js +0 -7542
- package/lib/super-ui.common.yarn.gcommon~c5c7b9b4.js +0 -11
- package/lib/super-ui.common.yarn.gcommon~cd278a5f.js +0 -4846
- package/lib/super-ui.common.yarn.resize-observer-polyfill~7370204d.js +0 -942
- package/lib/super-ui.common.yarn.sortablejs~f811d8fd.js +0 -3714
- package/lib/super-ui.common.yarn.tinymce~253ae210.js +0 -568
- package/lib/super-ui.common.yarn.tinymce~29bc5d46.js +0 -2125
- package/lib/super-ui.common.yarn.tinymce~35f50c21.js +0 -34090
- package/lib/super-ui.common.yarn.tinymce~8a52df3b.js +0 -30088
- package/lib/super-ui.common.yarn.tinymce~97d7b732.js +0 -31
- package/lib/super-ui.common.yarn.tinymce~b5d80f29.js +0 -7936
- package/lib/super-ui.common.yarn.tinymce~c1068939.js +0 -13346
- package/lib/super-ui.common.yarn.vue-i18n~02576867.js +0 -2179
- package/lib/super-ui.common.yarn.vue-virtual-scroll-list~bd67cfcd.js +0 -1069
- package/lib/super-ui.common.yarn.zxing~3446ce64.js +0 -11996
- package/lib/super-ui.common.yarn.zxing~61a1471b.js +0 -11202
- package/lib/super-ui.common.yarn.zxing~b49f3034.js +0 -3576
- package/lib/super-ui.common.yarn.zxing~fd3cc9f3.js +0 -2916
- package/lib/super-ui.umd.min.super-ui.umd.min~46f24e9d.js +0 -2
- package/lib/super-ui.umd.min.super-ui.umd.min~60a56baa.js +0 -2
- package/lib/super-ui.umd.min.super-ui.umd.min~691e02b5.js +0 -2
- package/lib/super-ui.umd.min.super-ui.umd.min~970f9218.js +0 -2
- package/lib/super-ui.umd.min.super-ui.umd.min~bd3594d6.js +0 -2
- package/lib/super-ui.umd.min.super-ui.umd.min~e2e93592.js +0 -2
- package/lib/super-ui.umd.min.vendors~super-ui.umd.min~253ae210.js +0 -24
- package/lib/super-ui.umd.min.yarn.async-validator~7864cd12.js +0 -2
- package/lib/super-ui.umd.min.yarn.core-js~2b13b260.js +0 -2
- package/lib/super-ui.umd.min.yarn.gcommon~c5c7b9b4.js +0 -2
- package/lib/super-ui.umd.min.yarn.gcommon~cd278a5f.js +0 -26
- package/lib/super-ui.umd.min.yarn.resize-observer-polyfill~7370204d.js +0 -2
- package/lib/super-ui.umd.min.yarn.sortablejs~f811d8fd.js +0 -8
- package/lib/super-ui.umd.min.yarn.tinymce~253ae210.js +0 -2
- package/lib/super-ui.umd.min.yarn.tinymce~29bc5d46.js +0 -2
- package/lib/super-ui.umd.min.yarn.tinymce~35f50c21.js +0 -2
- package/lib/super-ui.umd.min.yarn.tinymce~8a52df3b.js +0 -2
- package/lib/super-ui.umd.min.yarn.tinymce~97d7b732.js +0 -2
- package/lib/super-ui.umd.min.yarn.tinymce~b5d80f29.js +0 -2
- package/lib/super-ui.umd.min.yarn.tinymce~c1068939.js +0 -2
- package/lib/super-ui.umd.min.yarn.vue-i18n~02576867.js +0 -7
- package/lib/super-ui.umd.min.yarn.vue-virtual-scroll-list~bd67cfcd.js +0 -8
- package/lib/super-ui.umd.min.yarn.zxing~3446ce64.js +0 -2
- package/lib/super-ui.umd.min.yarn.zxing~61a1471b.js +0 -2
- package/lib/super-ui.umd.min.yarn.zxing~b49f3034.js +0 -2
- package/lib/super-ui.umd.min.yarn.zxing~fd3cc9f3.js +0 -2
- package/lib/super-ui.umd.super-ui.umd~46f24e9d.js +0 -12446
- package/lib/super-ui.umd.super-ui.umd~60a56baa.js +0 -2774
- package/lib/super-ui.umd.super-ui.umd~691e02b5.js +0 -3062
- package/lib/super-ui.umd.super-ui.umd~970f9218.js +0 -3739
- package/lib/super-ui.umd.super-ui.umd~bd3594d6.js +0 -5264
- package/lib/super-ui.umd.super-ui.umd~e2e93592.js +0 -6945
- package/lib/super-ui.umd.vendors~super-ui.umd~253ae210.js +0 -3504
- package/lib/super-ui.umd.yarn.async-validator~7864cd12.js +0 -1225
- package/lib/super-ui.umd.yarn.core-js~2b13b260.js +0 -7542
- package/lib/super-ui.umd.yarn.gcommon~c5c7b9b4.js +0 -11
- package/lib/super-ui.umd.yarn.gcommon~cd278a5f.js +0 -4846
- package/lib/super-ui.umd.yarn.resize-observer-polyfill~7370204d.js +0 -942
- package/lib/super-ui.umd.yarn.sortablejs~f811d8fd.js +0 -3714
- package/lib/super-ui.umd.yarn.tinymce~253ae210.js +0 -568
- package/lib/super-ui.umd.yarn.tinymce~29bc5d46.js +0 -2125
- package/lib/super-ui.umd.yarn.tinymce~35f50c21.js +0 -34090
- package/lib/super-ui.umd.yarn.tinymce~8a52df3b.js +0 -30088
- package/lib/super-ui.umd.yarn.tinymce~97d7b732.js +0 -31
- package/lib/super-ui.umd.yarn.tinymce~b5d80f29.js +0 -7936
- package/lib/super-ui.umd.yarn.tinymce~c1068939.js +0 -13346
- package/lib/super-ui.umd.yarn.vue-i18n~02576867.js +0 -2179
- package/lib/super-ui.umd.yarn.vue-virtual-scroll-list~bd67cfcd.js +0 -1069
- package/lib/super-ui.umd.yarn.zxing~3446ce64.js +0 -11996
- package/lib/super-ui.umd.yarn.zxing~61a1471b.js +0 -11202
- package/lib/super-ui.umd.yarn.zxing~b49f3034.js +0 -3576
- package/lib/super-ui.umd.yarn.zxing~fd3cc9f3.js +0 -2916
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
(("undefined"!==typeof self?self:this)["webpackJsonpsuper_ui"]=("undefined"!==typeof self?self:this)["webpackJsonpsuper_ui"]||[]).push([[22],{"89c1":function(t,e,i){
|
|
2
|
-
/*!
|
|
3
|
-
* vue-virtual-scroll-list v2.3.3
|
|
4
|
-
* open source under the MIT license
|
|
5
|
-
* https://github.com/tangbc/vue-virtual-scroll-list#readme
|
|
6
|
-
*/
|
|
7
|
-
(function(e,s){t.exports=s(i("8bbf"))})(0,(function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function s(t,e,s){return e&&i(t.prototype,e),s&&i(t,s),t}function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function a(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function o(t){return h(t)||l(t)||u(t)||d()}function h(t){if(Array.isArray(t))return c(t)}function l(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function u(t,e){if(t){if("string"===typeof t)return c(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i<e;i++)s[i]=t[i];return s}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t;var f={FRONT:"FRONT",BEHIND:"BEHIND"},p={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},g=0,y=function(){function t(i,s){e(this,t),this.init(i,s)}return s(t,[{key:"init",value:function(t,e){this.param=t,this.callUpdate=e,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.lastCalcIndex=0,this.fixedSizeValue=0,this.calcType=p.INIT,this.offset=0,this.direction="",this.range=Object.create(null),t&&this.checkRange(0,t.keeps-1)}},{key:"destroy",value:function(){this.init(null,null)}},{key:"getRange",value:function(){var t=Object.create(null);return t.start=this.range.start,t.end=this.range.end,t.padFront=this.range.padFront,t.padBehind=this.range.padBehind,t}},{key:"isBehind",value:function(){return this.direction===f.BEHIND}},{key:"isFront",value:function(){return this.direction===f.FRONT}},{key:"getOffset",value:function(t){return(t<1?0:this.getIndexOffset(t))+this.param.slotHeaderSize}},{key:"updateParam",value:function(t,e){var i=this;this.param&&t in this.param&&("uniqueIds"===t&&this.sizes.forEach((function(t,s){e.includes(s)||i.sizes["delete"](s)})),this.param[t]=e)}},{key:"saveSize",value:function(t,e){this.sizes.set(t,e),this.calcType===p.INIT?(this.fixedSizeValue=e,this.calcType=p.FIXED):this.calcType===p.FIXED&&this.fixedSizeValue!==e&&(this.calcType=p.DYNAMIC,delete this.fixedSizeValue),this.calcType!==p.FIXED&&"undefined"!==typeof this.firstRangeTotalSize&&(this.sizes.size<Math.min(this.param.keeps,this.param.uniqueIds.length)?(this.firstRangeTotalSize=o(this.sizes.values()).reduce((function(t,e){return t+e}),0),this.firstRangeAverageSize=Math.round(this.firstRangeTotalSize/this.sizes.size)):delete this.firstRangeTotalSize)}},{key:"handleDataSourcesChange",value:function(){var t=this.range.start;this.isFront()?t-=g:this.isBehind()&&(t+=g),t=Math.max(t,0),this.updateRange(this.range.start,this.getEndByStart(t))}},{key:"handleSlotSizeChange",value:function(){this.handleDataSourcesChange()}},{key:"handleScroll",value:function(t){this.direction=t<this.offset?f.FRONT:f.BEHIND,this.offset=t,this.param&&(this.direction===f.FRONT?this.handleFront():this.direction===f.BEHIND&&this.handleBehind())}},{key:"handleFront",value:function(){var t=this.getScrollOvers();if(!(t>this.range.start)){var e=Math.max(t-this.param.buffer,0);this.checkRange(e,this.getEndByStart(e))}}},{key:"handleBehind",value:function(){var t=this.getScrollOvers();t<this.range.start+this.param.buffer||this.checkRange(t,this.getEndByStart(t))}},{key:"getScrollOvers",value:function(){var t=this.offset-this.param.slotHeaderSize;if(t<=0)return 0;if(this.isFixedType())return Math.floor(t/this.fixedSizeValue);var e=0,i=0,s=0,n=this.param.uniqueIds.length;while(e<=n){if(i=e+Math.floor((n-e)/2),s=this.getIndexOffset(i),s===t)return i;s<t?e=i+1:s>t&&(n=i-1)}return e>0?--e:0}},{key:"getIndexOffset",value:function(t){if(!t)return 0;for(var e=0,i=0,s=0;s<t;s++)i=this.sizes.get(this.param.uniqueIds[s]),e+="number"===typeof i?i:this.getEstimateSize();return this.lastCalcIndex=Math.max(this.lastCalcIndex,t-1),this.lastCalcIndex=Math.min(this.lastCalcIndex,this.getLastIndex()),e}},{key:"isFixedType",value:function(){return this.calcType===p.FIXED}},{key:"getLastIndex",value:function(){return this.param.uniqueIds.length-1}},{key:"checkRange",value:function(t,e){var i=this.param.keeps,s=this.param.uniqueIds.length;s<=i?(t=0,e=this.getLastIndex()):e-t<i-1&&(t=e-i+1),this.range.start!==t&&this.updateRange(t,e)}},{key:"updateRange",value:function(t,e){this.range.start=t,this.range.end=e,this.range.padFront=this.getPadFront(),this.range.padBehind=this.getPadBehind(),this.callUpdate(this.getRange())}},{key:"getEndByStart",value:function(t){var e=t+this.param.keeps-1,i=Math.min(e,this.getLastIndex());return i}},{key:"getPadFront",value:function(){return this.isFixedType()?this.fixedSizeValue*this.range.start:this.getIndexOffset(this.range.start)}},{key:"getPadBehind",value:function(){var t=this.range.end,e=this.getLastIndex();return this.isFixedType()?(e-t)*this.fixedSizeValue:this.lastCalcIndex===e?this.getIndexOffset(e)-this.getIndexOffset(t):(e-t)*this.getEstimateSize()}},{key:"getEstimateSize",value:function(){return this.isFixedType()?this.fixedSizeValue:this.firstRangeAverageSize||this.param.estimateSize}}]),t}(),m={dataKey:{type:[String,Function],required:!0},dataSources:{type:Array,required:!0},dataComponent:{type:[Object,Function],required:!0},keeps:{type:Number,default:30},extraProps:{type:Object},estimateSize:{type:Number,default:50},direction:{type:String,default:"vertical"},start:{type:Number,default:0},offset:{type:Number,default:0},topThreshold:{type:Number,default:0},bottomThreshold:{type:Number,default:0},pageMode:{type:Boolean,default:!1},rootTag:{type:String,default:"div"},wrapTag:{type:String,default:"div"},wrapClass:{type:String,default:""},wrapStyle:{type:Object},itemTag:{type:String,default:"div"},itemClass:{type:String,default:""},itemClassAdd:{type:Function},itemStyle:{type:Object},headerTag:{type:String,default:"div"},headerClass:{type:String,default:""},headerStyle:{type:Object},footerTag:{type:String,default:"div"},footerClass:{type:String,default:""},footerStyle:{type:Object},itemScopedSlots:{type:Object}},v={index:{type:Number},event:{type:String},tag:{type:String},horizontal:{type:Boolean},source:{type:Object},component:{type:[Object,Function]},slotComponent:{type:Function},uniqueKey:{type:[String,Number]},extraProps:{type:Object},scopedSlots:{type:Object}},S={event:{type:String},uniqueKey:{type:String},tag:{type:String},horizontal:{type:Boolean}},z={created:function(){this.shapeKey=this.horizontal?"offsetWidth":"offsetHeight"},mounted:function(){var t=this;"undefined"!==typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(){t.dispatchSizeChange()})),this.resizeObserver.observe(this.$el))},updated:function(){this.dispatchSizeChange()},beforeDestroy:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},methods:{getCurrentSize:function(){return this.$el?this.$el[this.shapeKey]:0},dispatchSizeChange:function(){this.$parent.$emit(this.event,this.uniqueKey,this.getCurrentSize(),this.hasInitial)}}},O=t.component("virtual-list-item",{mixins:[z],props:v,render:function(t){var e=this.tag,i=this.component,s=this.extraProps,n=void 0===s?{}:s,r=this.index,o=this.source,h=this.scopedSlots,l=void 0===h?{}:h,u=this.uniqueKey,c=this.slotComponent,d=a({},n,{source:o,index:r});return t(e,{key:u,attrs:{role:"listitem"}},[c?t("div",c({item:o,index:r,scope:d})):t(i,{props:d,scopedSlots:l})])}}),b=t.component("virtual-list-slot",{mixins:[z],props:S,render:function(t){var e=this.tag,i=this.uniqueKey;return t(e,{key:i,attrs:{role:i}},this.$slots["default"])}}),T={ITEM:"item_resize",SLOT:"slot_resize"},I={HEADER:"thead",FOOTER:"tfoot"},x=t.component("virtual-list",{props:m,data:function(){return{range:null}},watch:{"dataSources.length":function(){this.virtual.updateParam("uniqueIds",this.getUniqueIdFromDataSources()),this.virtual.handleDataSourcesChange()},keeps:function(t){this.virtual.updateParam("keeps",t),this.virtual.handleSlotSizeChange()},start:function(t){this.scrollToIndex(t)},offset:function(t){this.scrollToOffset(t)}},created:function(){this.isHorizontal="horizontal"===this.direction,this.directionKey=this.isHorizontal?"scrollLeft":"scrollTop",this.installVirtual(),this.$on(T.ITEM,this.onItemResized),(this.$slots.header||this.$slots.footer)&&this.$on(T.SLOT,this.onSlotResized)},activated:function(){this.scrollToOffset(this.virtual.offset)},mounted:function(){this.start?this.scrollToIndex(this.start):this.offset&&this.scrollToOffset(this.offset),this.pageMode&&(this.updatePageModeFront(),document.addEventListener("scroll",this.onScroll,{passive:!1}))},beforeDestroy:function(){this.virtual.destroy(),this.pageMode&&document.removeEventListener("scroll",this.onScroll)},methods:{getSize:function(t){return this.virtual.sizes.get(t)},getSizes:function(){return this.virtual.sizes.size},getOffset:function(){if(this.pageMode)return document.documentElement[this.directionKey]||document.body[this.directionKey];var t=this.$refs.root;return t?Math.ceil(t[this.directionKey]):0},getClientSize:function(){var t=this.isHorizontal?"clientWidth":"clientHeight";if(this.pageMode)return document.documentElement[t]||document.body[t];var e=this.$refs.root;return e?Math.ceil(e[t]):0},getScrollSize:function(){var t=this.isHorizontal?"scrollWidth":"scrollHeight";if(this.pageMode)return document.documentElement[t]||document.body[t];var e=this.$refs.root;return e?Math.ceil(e[t]):0},scrollToOffset:function(t){if(this.pageMode)document.body[this.directionKey]=t,document.documentElement[this.directionKey]=t;else{var e=this.$refs.root;e&&(e[this.directionKey]=t)}},scrollToIndex:function(t){if(t>=this.dataSources.length-1)this.scrollToBottom();else{var e=this.virtual.getOffset(t);this.scrollToOffset(e)}},scrollToBottom:function(){var t=this,e=this.$refs.shepherd;if(e){var i=e[this.isHorizontal?"offsetLeft":"offsetTop"];this.scrollToOffset(i),setTimeout((function(){t.getOffset()+t.getClientSize()<t.getScrollSize()&&t.scrollToBottom()}),3)}},updatePageModeFront:function(){var t=this.$refs.root;if(t){var e=t.getBoundingClientRect(),i=t.ownerDocument.defaultView,s=this.isHorizontal?e.left+i.pageXOffset:e.top+i.pageYOffset;this.virtual.updateParam("slotHeaderSize",s)}},reset:function(){this.virtual.destroy(),this.scrollToOffset(0),this.installVirtual()},installVirtual:function(){this.virtual=new y({slotHeaderSize:0,slotFooterSize:0,keeps:this.keeps,estimateSize:this.estimateSize,buffer:Math.round(this.keeps/3),uniqueIds:this.getUniqueIdFromDataSources()},this.onRangeChanged),this.range=this.virtual.getRange()},getUniqueIdFromDataSources:function(){var t=this.dataKey;return this.dataSources.map((function(e){return"function"===typeof t?t(e):e[t]}))},onItemResized:function(t,e){this.virtual.saveSize(t,e),this.$emit("resized",t,e)},onSlotResized:function(t,e,i){t===I.HEADER?this.virtual.updateParam("slotHeaderSize",e):t===I.FOOTER&&this.virtual.updateParam("slotFooterSize",e),i&&this.virtual.handleSlotSizeChange()},onRangeChanged:function(t){this.range=t},onScroll:function(t){var e=this.getOffset(),i=this.getClientSize(),s=this.getScrollSize();e<0||e+i>s+1||!s||(this.virtual.handleScroll(e),this.emitEvent(e,i,s,t))},emitEvent:function(t,e,i,s){this.$emit("scroll",s,this.virtual.getRange()),this.virtual.isFront()&&this.dataSources.length&&t-this.topThreshold<=0?this.$emit("totop"):this.virtual.isBehind()&&t+e+this.bottomThreshold>=i&&this.$emit("tobottom")},getRenderSlots:function(t){for(var e=[],i=this.range,s=i.start,n=i.end,r=this.dataSources,a=this.dataKey,o=this.itemClass,h=this.itemTag,l=this.itemStyle,u=this.isHorizontal,c=this.extraProps,d=this.dataComponent,f=this.itemScopedSlots,p=this.$scopedSlots&&this.$scopedSlots.item,g=s;g<=n;g++){var y=r[g];if(y){var m="function"===typeof a?a(y):y[a];"string"===typeof m||"number"===typeof m?e.push(t(O,{props:{index:g,tag:h,event:T.ITEM,horizontal:u,uniqueKey:m,source:y,extraProps:c,component:d,slotComponent:p,scopedSlots:f},style:l,class:"".concat(o).concat(this.itemClassAdd?" "+this.itemClassAdd(g):"")})):console.warn("Cannot get the data-key '".concat(a,"' from data-sources."))}else console.warn("Cannot get the index '".concat(g,"' from data-sources."))}return e}},render:function(t){var e=this.$slots,i=e.header,s=e.footer,n=this.range,r=n.padFront,a=n.padBehind,o=this.isHorizontal,h=this.pageMode,l=this.rootTag,u=this.wrapTag,c=this.wrapClass,d=this.wrapStyle,f=this.headerTag,p=this.headerClass,g=this.headerStyle,y=this.footerTag,m=this.footerClass,v=this.footerStyle,S={padding:o?"0px ".concat(a,"px 0px ").concat(r,"px"):"".concat(r,"px 0px ").concat(a,"px")},z=d?Object.assign({},d,S):S;return t(l,{ref:"root",on:{"&scroll":!h&&this.onScroll}},[i?t(b,{class:p,style:g,props:{tag:f,event:T.SLOT,uniqueKey:I.HEADER}},i):null,t(u,{class:c,attrs:{role:"group"},style:z},this.getRenderSlots(t)),s?t(b,{class:m,style:v,props:{tag:y,event:T.SLOT,uniqueKey:I.FOOTER}},s):null,t("div",{ref:"shepherd",style:{width:o?"0px":"100%",height:o?"100%":"0px"}})])}});return x}))}}]);
|
|
8
|
-
//# sourceMappingURL=super-ui.umd.min.yarn.vue-virtual-scroll-list~bd67cfcd.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(("undefined"!==typeof self?self:this)["webpackJsonpsuper_ui"]=("undefined"!==typeof self?self:this)["webpackJsonpsuper_ui"]||[]).push([[23],{"02dc":function(t,e,r){"use strict";var n=r("a363"),o=r("fb63"),i=r("ca08"),a=r("2f50"),s=r("63af"),u=r("aa17"),f=r("bb6f"),c=r("929b"),h=r("1533"),l=r("9068"),d=function(){function t(){}return t.buildBitArray=function(t){var e=2*t.length-1;null==t[t.length-1].getRightChar()&&(e-=1);for(var r=12*e,n=new l["a"](r),o=0,i=t[0],a=i.getRightChar().getValue(),s=11;s>=0;--s)0!=(a&1<<s)&&n.set(o),o++;for(s=1;s<t.length;++s){for(var u=t[s],f=u.getLeftChar().getValue(),c=11;c>=0;--c)0!=(f&1<<c)&&n.set(o),o++;if(null!=u.getRightChar()){var h=u.getRightChar().getValue();for(c=11;c>=0;--c)0!=(h&1<<c)&&n.set(o),o++}}return n},t}(),p=d,g=r("cedd"),_=function(){function t(t,e,r,n){this.leftchar=t,this.rightchar=e,this.finderpattern=r,this.maybeLast=n}return t.prototype.mayBeLast=function(){return this.maybeLast},t.prototype.getLeftChar=function(){return this.leftchar},t.prototype.getRightChar=function(){return this.rightchar},t.prototype.getFinderPattern=function(){return this.finderpattern},t.prototype.mustBeLast=function(){return null==this.rightchar},t.prototype.toString=function(){return"[ "+this.leftchar+", "+this.rightchar+" : "+(null==this.finderpattern?"null":this.finderpattern.getValue())+" ]"},t.equals=function(e,r){return e instanceof t&&(t.equalsOrNull(e.leftchar,r.leftchar)&&t.equalsOrNull(e.rightchar,r.rightchar)&&t.equalsOrNull(e.finderpattern,r.finderpattern))},t.equalsOrNull=function(e,r){return null===e?null===r:t.equals(e,r)},t.prototype.hashCode=function(){var t=this.leftchar.getValue()^this.rightchar.getValue()^this.finderpattern.getValue();return t},t}(),y=_,w=function(){function t(t,e,r){this.pairs=t,this.rowNumber=e,this.wasReversed=r}return t.prototype.getPairs=function(){return this.pairs},t.prototype.getRowNumber=function(){return this.rowNumber},t.prototype.isReversed=function(){return this.wasReversed},t.prototype.isEquivalent=function(t){return this.checkEqualitity(this,t)},t.prototype.toString=function(){return"{ "+this.pairs+" }"},t.prototype.equals=function(e,r){return e instanceof t&&(this.checkEqualitity(e,r)&&e.wasReversed===r.wasReversed)},t.prototype.checkEqualitity=function(t,e){var r;if(t&&e)return t.forEach((function(t,n){e.forEach((function(e){t.getLeftChar().getValue()===e.getLeftChar().getValue()&&t.getRightChar().getValue()===e.getRightChar().getValue()&&t.getFinderPatter().getValue()===e.getFinderPatter().getValue()&&(r=!0)}))})),r},t}(),A=w,E=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),v=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},I=function(t){function e(){var r=null!==t&&t.apply(this,arguments)||this;return r.pairs=new Array(e.MAX_PAIRS),r.rows=new Array,r.startEnd=[2],r}return E(e,t),e.prototype.decodeRow=function(t,r,n){this.pairs.length=0,this.startFromEven=!1;try{return e.constructResult(this.decodeRow2pairs(t,r))}catch(o){}return this.pairs.length=0,this.startFromEven=!0,e.constructResult(this.decodeRow2pairs(t,r))},e.prototype.reset=function(){this.pairs.length=0,this.rows.length=0},e.prototype.decodeRow2pairs=function(t,e){var r,n=!1;while(!n)try{this.pairs.push(this.retrieveNextPair(e,this.pairs,t))}catch(a){if(a instanceof i["a"]){if(!this.pairs.length)throw new i["a"];n=!0}}if(this.checkChecksum())return this.pairs;if(r=!!this.rows.length,this.storeRow(t,!1),r){var o=this.checkRowsBoolean(!1);if(null!=o)return o;if(o=this.checkRowsBoolean(!0),null!=o)return o}throw new i["a"]},e.prototype.checkRowsBoolean=function(t){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,t&&(this.rows=this.rows.reverse());var e=null;try{e=this.checkRows(new Array,0)}catch(r){console.log(r)}return t&&(this.rows=this.rows.reverse()),e},e.prototype.checkRows=function(t,r){for(var n,o,a=r;a<this.rows.length;a++){var s=this.rows[a];this.pairs.length=0;try{for(var u=(n=void 0,v(t)),f=u.next();!f.done;f=u.next()){var c=f.value;this.pairs.push(c.getPairs())}}catch(l){n={error:l}}finally{try{f&&!f.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}if(this.pairs.push(s.getPairs()),e.isValidSequence(this.pairs)){if(this.checkChecksum())return this.pairs;var h=new Array(t);h.push(s);try{return this.checkRows(h,a+1)}catch(d){console.log(d)}}}throw new i["a"]},e.isValidSequence=function(t){var r,n;try{for(var o=v(e.FINDER_PATTERN_SEQUENCES),i=o.next();!i.done;i=o.next()){var a=i.value;if(!(t.length>a.length)){for(var s=!0,u=0;u<t.length;u++)if(t[u].getFinderPattern().getValue()!=a[u]){s=!1;break}if(s)return!0}}}catch(f){r={error:f}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1},e.prototype.storeRow=function(t,r){var n=0,o=!1,i=!1;while(n<this.rows.length){var a=this.rows[n];if(a.getRowNumber()>t){i=a.isEquivalent(this.pairs);break}o=a.isEquivalent(this.pairs),n++}i||o||e.isPartialRow(this.pairs,this.rows)||(this.rows.push(n,new A(this.pairs,t,r)),this.removePartialRows(this.pairs,this.rows))},e.prototype.removePartialRows=function(t,e){var r,n,o,i,a,s;try{for(var u=v(e),f=u.next();!f.done;f=u.next()){var c=f.value;if(c.getPairs().length!==t.length){try{for(var h=(o=void 0,v(c.getPairs())),l=h.next();!l.done;l=h.next()){var d=l.value,p=!1;try{for(var g=(a=void 0,v(t)),_=g.next();!_.done;_=g.next()){var w=_.value;if(y.equals(d,w)){p=!0;break}}}catch(A){a={error:A}}finally{try{_&&!_.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}p||!1}}catch(E){o={error:E}}finally{try{l&&!l.done&&(i=h.return)&&i.call(h)}finally{if(o)throw o.error}}}}}catch(I){r={error:I}}finally{try{f&&!f.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}},e.isPartialRow=function(t,e){var r,n,o,i,a,s;try{for(var u=v(e),f=u.next();!f.done;f=u.next()){var c=f.value,h=!0;try{for(var l=(o=void 0,v(t)),d=l.next();!d.done;d=l.next()){var p=d.value,g=!1;try{for(var _=(a=void 0,v(c.getPairs())),y=_.next();!y.done;y=_.next()){var w=y.value;if(p.equals(w)){g=!0;break}}}catch(A){a={error:A}}finally{try{y&&!y.done&&(s=_.return)&&s.call(_)}finally{if(a)throw a.error}}if(!g){h=!1;break}}}catch(E){o={error:E}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}if(h)return!0}}catch(I){r={error:I}}finally{try{f&&!f.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}return!1},e.prototype.getRows=function(){return this.rows},e.constructResult=function(t){var e=p.buildBitArray(t),r=Object(g["a"])(e),o=r.parseInformation(),i=t[0].getFinderPattern().getResultPoints(),s=t[t.length-1].getFinderPattern().getResultPoints(),u=[i[0],i[1],s[0],s[1]];return new a["a"](o,null,null,u,n["a"].RSS_EXPANDED,null)},e.prototype.checkChecksum=function(){var t=this.pairs.get(0),e=t.getLeftChar(),r=t.getRightChar();if(null==r)return!1;for(var n=r.getChecksumPortion(),o=2,i=1;i<this.pairs.size();++i){var a=this.pairs.get(i);n+=a.getLeftChar().getChecksumPortion(),o++;var s=a.getRightChar();null!=s&&(n+=s.getChecksumPortion(),o++)}n%=211;var u=211*(o-4)+n;return u==e.getValue()},e.getNextSecondBar=function(t,e){var r;return t.get(e)?(r=t.getNextUnset(e),r=t.getNextSet(r)):(r=t.getNextSet(e),r=t.getNextUnset(r)),r},e.prototype.retrieveNextPair=function(t,r,n){var o,a=r.length%2==0;this.startFromEven&&(a=!a);var s=!0,u=-1;do{this.findNextPair(t,r,u),o=this.parseFoundFinderPattern(t,n,a),null==o?u=e.getNextSecondBar(t,this.startEnd[0]):s=!1}while(s);var f,c=this.decodeDataCharacter(t,o,a,!0);if(!this.isEmptyPair(r)&&r[r.length-1].mustBeLast())throw new i["a"];try{f=this.decodeDataCharacter(t,o,a,!1)}catch(h){f=null,console.log(h)}return new y(c,f,o,!0)},e.prototype.isEmptyPair=function(t){return 0===t.length},e.prototype.findNextPair=function(t,r,n){var o=this.getDecodeFinderCounters();o[0]=0,o[1]=0,o[2]=0,o[3]=0;var a,s=t.getSize();if(n>=0)a=n;else if(this.isEmptyPair(r))a=0;else{var u=r[r.length-1];a=u.getFinderPattern().getStartEnd()[1]}var f=r.length%2!=0;this.startFromEven&&(f=!f);var c=!1;while(a<s){if(c=!t.get(a),!c)break;a++}for(var h=0,l=a,d=a;d<s;d++)if(t.get(d)!=c)o[h]++;else{if(3==h){if(f&&e.reverseCounters(o),e.isFinderPattern(o))return this.startEnd[0]=l,void(this.startEnd[1]=d);f&&e.reverseCounters(o),l+=o[0]+o[1],o[0]=o[2],o[1]=o[3],o[2]=0,o[3]=0,h--}else h++;o[h]=1,c=!c}throw new i["a"]},e.reverseCounters=function(t){for(var e=t.length,r=0;r<e/2;++r){var n=t[r];t[r]=t[e-r-1],t[e-r-1]=n}},e.prototype.parseFoundFinderPattern=function(t,r,n){var o,i,a;if(n){var u=this.startEnd[0]-1;while(u>=0&&!t.get(u))u--;u++,o=this.startEnd[0]-u,i=u,a=this.startEnd[1]}else i=this.startEnd[0],a=t.getNextUnset(this.startEnd[1]+1),o=a-this.startEnd[1];var f,h=this.getDecodeFinderCounters();s["a"].arraycopy(h,0,h,1,h.length-1),h[0]=o;try{f=this.parseFinderValue(h,e.FINDER_PATTERNS)}catch(l){return null}return new c["a"](f,[i,a],i,a,r)},e.prototype.decodeDataCharacter=function(t,r,n,a){for(var s=this.getDataCharacterCounters(),u=0;u<s.length;u++)s[u]=0;if(a)e.recordPatternInReverse(t,r.getStartEnd()[0],s);else{e.recordPattern(t,r.getStartEnd()[1],s);for(var c=0,l=s.length-1;c<l;c++,l--){var d=s[c];s[c]=s[l],s[l]=d}}var p=17,g=o["a"].sum(new Int32Array(s))/p,_=(r.getStartEnd()[1]-r.getStartEnd()[0])/15;if(Math.abs(g-_)/_>.3)throw new i["a"];var y=this.getOddCounts(),w=this.getEvenCounts(),A=this.getOddRoundingErrors(),E=this.getEvenRoundingErrors();for(c=0;c<s.length;c++){var v=1*s[c]/g,I=v+.5;if(I<1){if(v<.3)throw new i["a"];I=1}else if(I>8){if(v>8.7)throw new i["a"];I=8}var S=c/2;0==(1&c)?(y[S]=I,A[S]=v-I):(w[S]=I,E[S]=v-I)}this.adjustOddEvenCounts(p);var C=4*r.getValue()+(n?0:2)+(a?0:1)-1,m=0,T=0;for(c=y.length-1;c>=0;c--){if(e.isNotA1left(r,n,a)){var N=e.WEIGHTS[C][2*c];T+=y[c]*N}m+=y[c]}var O=0;for(c=w.length-1;c>=0;c--)if(e.isNotA1left(r,n,a)){N=e.WEIGHTS[C][2*c+1];O+=w[c]*N}var R=T+O;if(0!=(1&m)||m>13||m<4)throw new i["a"];var D=(13-m)/2,b=e.SYMBOL_WIDEST[D],P=9-b,B=h["a"].getRSSvalue(y,b,!0),F=h["a"].getRSSvalue(w,P,!1),M=e.EVEN_TOTAL_SUBSET[D],L=e.GSUM[D],k=B*M+F+L;return new f["a"](k,R)},e.isNotA1left=function(t,e,r){return!(0==t.getValue()&&e&&r)},e.prototype.adjustOddEvenCounts=function(t){var r=o["a"].sum(new Int32Array(this.getOddCounts())),n=o["a"].sum(new Int32Array(this.getEvenCounts())),a=!1,s=!1;r>13?s=!0:r<4&&(a=!0);var u=!1,f=!1;n>13?f=!0:n<4&&(u=!0);var c=r+n-t,h=1==(1&r),l=0==(1&n);if(1==c)if(h){if(l)throw new i["a"];s=!0}else{if(!l)throw new i["a"];f=!0}else if(-1==c)if(h){if(l)throw new i["a"];a=!0}else{if(!l)throw new i["a"];u=!0}else{if(0!=c)throw new i["a"];if(h){if(!l)throw new i["a"];r<n?(a=!0,f=!0):(s=!0,u=!0)}else if(l)throw new i["a"]}if(a){if(s)throw new i["a"];e.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(s&&e.decrement(this.getOddCounts(),this.getOddRoundingErrors()),u){if(f)throw new i["a"];e.increment(this.getEvenCounts(),this.getOddRoundingErrors())}f&&e.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},e.SYMBOL_WIDEST=[7,5,4,3,1],e.EVEN_TOTAL_SUBSET=[4,20,52,104,204],e.GSUM=[0,348,1388,2948,3988],e.FINDER_PATTERNS=[Int32Array.from([1,8,4,1]),Int32Array.from([3,6,4,1]),Int32Array.from([3,4,6,1]),Int32Array.from([3,2,8,1]),Int32Array.from([2,6,5,1]),Int32Array.from([2,2,9,1])],e.WEIGHTS=[[1,3,9,27,81,32,96,77],[20,60,180,118,143,7,21,63],[189,145,13,39,117,140,209,205],[193,157,49,147,19,57,171,91],[62,186,136,197,169,85,44,132],[185,133,188,142,4,12,36,108],[113,128,173,97,80,29,87,50],[150,28,84,41,123,158,52,156],[46,138,203,187,139,206,196,166],[76,17,51,153,37,111,122,155],[43,129,176,106,107,110,119,146],[16,48,144,10,30,90,59,177],[109,116,137,200,178,112,125,164],[70,210,208,202,184,130,179,115],[134,191,151,31,93,68,204,190],[148,22,66,198,172,94,71,2],[6,18,54,162,64,192,154,40],[120,149,25,75,14,42,126,167],[79,26,78,23,69,207,199,175],[103,98,83,38,114,131,182,124],[161,61,183,127,170,88,53,159],[55,165,73,8,24,72,5,15],[45,135,194,160,58,174,100,89]],e.FINDER_PAT_A=0,e.FINDER_PAT_B=1,e.FINDER_PAT_C=2,e.FINDER_PAT_D=3,e.FINDER_PAT_E=4,e.FINDER_PAT_F=5,e.FINDER_PATTERN_SEQUENCES=[[e.FINDER_PAT_A,e.FINDER_PAT_A],[e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B],[e.FINDER_PAT_A,e.FINDER_PAT_C,e.FINDER_PAT_B,e.FINDER_PAT_D],[e.FINDER_PAT_A,e.FINDER_PAT_E,e.FINDER_PAT_B,e.FINDER_PAT_D,e.FINDER_PAT_C],[e.FINDER_PAT_A,e.FINDER_PAT_E,e.FINDER_PAT_B,e.FINDER_PAT_D,e.FINDER_PAT_D,e.FINDER_PAT_F],[e.FINDER_PAT_A,e.FINDER_PAT_E,e.FINDER_PAT_B,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_F,e.FINDER_PAT_F],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_D],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_E],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_F,e.FINDER_PAT_F],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_E,e.FINDER_PAT_F,e.FINDER_PAT_F]],e.MAX_PAIRS=11,e}(u["a"]);e["a"]=I},"0b22":function(t,e,r){"use strict";var n=r("2111"),o=function(){function t(t){this.information=t,this.generalDecoder=new n["a"](t)}return t.prototype.getInformation=function(){return this.information},t.prototype.getGeneralDecoder=function(){return this.generalDecoder},t}();e["a"]=o},"0b81":function(t,e,r){"use strict";var n=r("9068"),o=r("fe96"),i=r("64a7"),a=r("8c95"),s=r("ca08"),u=function(){function t(){}return t.prototype.decode=function(t,e){try{return this.doDecode(t,e)}catch(p){var r=e&&!0===e.get(o["a"].TRY_HARDER);if(r&&t.isRotateSupported()){var n=t.rotateCounterClockwise(),u=this.doDecode(n,e),f=u.getResultMetadata(),c=270;null!==f&&!0===f.get(i["a"].ORIENTATION)&&(c+=f.get(i["a"].ORIENTATION)%360),u.putMetadata(i["a"].ORIENTATION,c);var h=u.getResultPoints();if(null!==h)for(var l=n.getHeight(),d=0;d<h.length;d++)h[d]=new a["a"](l-h[d].getY()-1,h[d].getX());return u}throw new s["a"]}},t.prototype.reset=function(){},t.prototype.doDecode=function(t,e){var r,u=t.getWidth(),f=t.getHeight(),c=new n["a"](u),h=e&&!0===e.get(o["a"].TRY_HARDER),l=Math.max(1,f>>(h?8:5));r=h?f:15;for(var d=Math.trunc(f/2),p=0;p<r;p++){var g=Math.trunc((p+1)/2),_=0===(1&p),y=d+l*(_?g:-g);if(y<0||y>=f)break;try{c=t.getBlackRow(y,c)}catch(I){continue}for(var w=function(t){if(1===t&&(c.reverse(),e&&!0===e.get(o["a"].NEED_RESULT_POINT_CALLBACK))){var r=new Map;e.forEach((function(t,e){return r.set(e,t)})),r.delete(o["a"].NEED_RESULT_POINT_CALLBACK),e=r}try{var n=A.decodeRow(y,c,e);if(1===t){n.putMetadata(i["a"].ORIENTATION,180);var s=n.getResultPoints();null!==s&&(s[0]=new a["a"](u-s[0].getX()-1,s[0].getY()),s[1]=new a["a"](u-s[1].getX()-1,s[1].getY()))}return{value:n}}catch(f){}},A=this,E=0;E<2;E++){var v=w(E);if("object"===typeof v)return v.value}}throw new s["a"]},t.recordPattern=function(t,e,r){for(var n=r.length,o=0;o<n;o++)r[o]=0;var i=t.getSize();if(e>=i)throw new s["a"];var a=!t.get(e),u=0,f=e;while(f<i){if(t.get(f)!==a)r[u]++;else{if(++u===n)break;r[u]=1,a=!a}f++}if(u!==n&&(u!==n-1||f!==i))throw new s["a"]},t.recordPatternInReverse=function(e,r,n){var o=n.length,i=e.get(r);while(r>0&&o>=0)e.get(--r)!==i&&(o--,i=!i);if(o>=0)throw new s["a"];t.recordPattern(e,r+1,n)},t.patternMatchVariance=function(t,e,r){for(var n=t.length,o=0,i=0,a=0;a<n;a++)o+=t[a],i+=e[a];if(o<i)return Number.POSITIVE_INFINITY;var s=o/i;r*=s;for(var u=0,f=0;f<n;f++){var c=t[f],h=e[f]*s,l=c>h?c-h:h-c;if(l>r)return Number.POSITIVE_INFINITY;u+=l}return u/o},t}();e["a"]=u},1092:function(t,e,r){"use strict";var n=r("a7f2"),o=r("63af"),i=r("f0a7"),a=function(){function t(t){this.field=t,this.cachedGenerators=[],this.cachedGenerators.push(new n["a"](t,Int32Array.from([1])))}return t.prototype.buildGenerator=function(t){var e=this.cachedGenerators;if(t>=e.length)for(var r=e[e.length-1],o=this.field,i=e.length;i<=t;i++){var a=r.multiply(new n["a"](o,Int32Array.from([1,o.exp(i-1+o.getGeneratorBase())])));e.push(a),r=a}return e[t]},t.prototype.encode=function(t,e){if(0===e)throw new i["a"]("No error correction bytes");var r=t.length-e;if(r<=0)throw new i["a"]("No data bytes provided");var a=this.buildGenerator(e),s=new Int32Array(r);o["a"].arraycopy(t,0,s,0,r);var u=new n["a"](this.field,s);u=u.multiplyByMonomial(e,1);for(var f=u.divide(a)[1],c=f.getCoefficients(),h=e-c.length,l=0;l<h;l++)t[r+l]=0;o["a"].arraycopy(c,0,t,r+h,c.length)},t}();e["a"]=a},1533:function(t,e,r){"use strict";var n=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=function(){function t(){}return t.getRSSvalue=function(e,r,o){var i,a,s=0;try{for(var u=n(e),f=u.next();!f.done;f=u.next()){var c=f.value;s+=c}}catch(A){i={error:A}}finally{try{f&&!f.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}for(var h=0,l=0,d=e.length,p=0;p<d-1;p++){var g=void 0;for(g=1,l|=1<<p;g<e[p];g++,l&=~(1<<p)){var _=t.combins(s-g-1,d-p-2);if(o&&0===l&&s-g-(d-p-1)>=d-p-1&&(_-=t.combins(s-g-(d-p),d-p-2)),d-p-1>1){for(var y=0,w=s-g-(d-p-2);w>r;w--)y+=t.combins(s-g-w-1,d-p-3);_-=y*(d-1-p)}else s-g>r&&_--;h+=_}s-=g}return h},t.combins=function(t,e){var r,n;t-e>e?(n=e,r=t-e):(n=t-e,r=e);for(var o=1,i=1,a=t;a>r;a--)o*=a,i<=n&&(o/=i,i++);while(i<=n)o/=i,i++;return o},t}();e["a"]=o},2011:function(t,e,r){"use strict";var n=r("9068"),o=r("63af"),i=r("cb12"),a=r("6530"),s=r("f0a7"),u=function(){function t(t,e,r,n){if(this.width=t,this.height=e,this.rowSize=r,this.bits=n,void 0!==e&&null!==e||(e=t),this.height=e,t<1||e<1)throw new s["a"]("Both dimensions must be greater than 0");void 0!==r&&null!==r||(r=Math.floor((t+31)/32)),this.rowSize=r,void 0!==n&&null!==n||(this.bits=new Int32Array(this.rowSize*this.height))}return t.parseFromBooleanArray=function(e){for(var r=e.length,n=e[0].length,o=new t(n,r),i=0;i<r;i++)for(var a=e[i],s=0;s<n;s++)a[s]&&o.set(s,i);return o},t.parseFromString=function(e,r,n){if(null===e)throw new s["a"]("stringRepresentation cannot be null");var o=new Array(e.length),i=0,a=0,u=-1,f=0,c=0;while(c<e.length)if("\n"===e.charAt(c)||"\r"===e.charAt(c)){if(i>a){if(-1===u)u=i-a;else if(i-a!==u)throw new s["a"]("row lengths do not match");a=i,f++}c++}else if(e.substring(c,c+r.length)===r)c+=r.length,o[i]=!0,i++;else{if(e.substring(c,c+n.length)!==n)throw new s["a"]("illegal character encountered: "+e.substring(c));c+=n.length,o[i]=!1,i++}if(i>a){if(-1===u)u=i-a;else if(i-a!==u)throw new s["a"]("row lengths do not match");f++}for(var h=new t(u,f),l=0;l<i;l++)o[l]&&h.set(Math.floor(l%u),Math.floor(l/u));return h},t.prototype.get=function(t,e){var r=e*this.rowSize+Math.floor(t/32);return 0!==(this.bits[r]>>>(31&t)&1)},t.prototype.set=function(t,e){var r=e*this.rowSize+Math.floor(t/32);this.bits[r]|=1<<(31&t)&4294967295},t.prototype.unset=function(t,e){var r=e*this.rowSize+Math.floor(t/32);this.bits[r]&=~(1<<(31&t)&4294967295)},t.prototype.flip=function(t,e){var r=e*this.rowSize+Math.floor(t/32);this.bits[r]^=1<<(31&t)&4294967295},t.prototype.xor=function(t){if(this.width!==t.getWidth()||this.height!==t.getHeight()||this.rowSize!==t.getRowSize())throw new s["a"]("input matrix dimensions do not match");for(var e=new n["a"](Math.floor(this.width/32)+1),r=this.rowSize,o=this.bits,i=0,a=this.height;i<a;i++)for(var u=i*r,f=t.getRow(i,e).getBitArray(),c=0;c<r;c++)o[u+c]^=f[c]},t.prototype.clear=function(){for(var t=this.bits,e=t.length,r=0;r<e;r++)t[r]=0},t.prototype.setRegion=function(t,e,r,n){if(e<0||t<0)throw new s["a"]("Left and top must be nonnegative");if(n<1||r<1)throw new s["a"]("Height and width must be at least 1");var o=t+r,i=e+n;if(i>this.height||o>this.width)throw new s["a"]("The region must fit inside the matrix");for(var a=this.rowSize,u=this.bits,f=e;f<i;f++)for(var c=f*a,h=t;h<o;h++)u[c+Math.floor(h/32)]|=1<<(31&h)&4294967295},t.prototype.getRow=function(t,e){null===e||void 0===e||e.getSize()<this.width?e=new n["a"](this.width):e.clear();for(var r=this.rowSize,o=this.bits,i=t*r,a=0;a<r;a++)e.setBulk(32*a,o[i+a]);return e},t.prototype.setRow=function(t,e){o["a"].arraycopy(e.getBitArray(),0,this.bits,t*this.rowSize,this.rowSize)},t.prototype.rotate180=function(){for(var t=this.getWidth(),e=this.getHeight(),r=new n["a"](t),o=new n["a"](t),i=0,a=Math.floor((e+1)/2);i<a;i++)r=this.getRow(i,r),o=this.getRow(e-1-i,o),r.reverse(),o.reverse(),this.setRow(i,o),this.setRow(e-1-i,r)},t.prototype.getEnclosingRectangle=function(){for(var t=this.width,e=this.height,r=this.rowSize,n=this.bits,o=t,i=e,a=-1,s=-1,u=0;u<e;u++)for(var f=0;f<r;f++){var c=n[u*r+f];if(0!==c){if(u<i&&(i=u),u>s&&(s=u),32*f<o){var h=0;while(0===(c<<31-h&4294967295))h++;32*f+h<o&&(o=32*f+h)}if(32*f+31>a){h=31;while(c>>>h===0)h--;32*f+h>a&&(a=32*f+h)}}}return a<o||s<i?null:Int32Array.from([o,i,a-o+1,s-i+1])},t.prototype.getTopLeftOnBit=function(){var t=this.rowSize,e=this.bits,r=0;while(r<e.length&&0===e[r])r++;if(r===e.length)return null;var n=r/t,o=r%t*32,i=e[r],a=0;while(0===(i<<31-a&4294967295))a++;return o+=a,Int32Array.from([o,n])},t.prototype.getBottomRightOnBit=function(){var t=this.rowSize,e=this.bits,r=e.length-1;while(r>=0&&0===e[r])r--;if(r<0)return null;var n=Math.floor(r/t),o=32*Math.floor(r%t),i=e[r],a=31;while(i>>>a===0)a--;return o+=a,Int32Array.from([o,n])},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRowSize=function(){return this.rowSize},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.width===r.width&&this.height===r.height&&this.rowSize===r.rowSize&&i["a"].equals(this.bits,r.bits)},t.prototype.hashCode=function(){var t=this.width;return t=31*t+this.width,t=31*t+this.height,t=31*t+this.rowSize,t=31*t+i["a"].hashCode(this.bits),t},t.prototype.toString=function(t,e,r){return void 0===t&&(t="X "),void 0===e&&(e=" "),void 0===r&&(r="\n"),this.buildToString(t,e,r)},t.prototype.buildToString=function(t,e,r){for(var n=new a["a"],o=0,i=this.height;o<i;o++){for(var s=0,u=this.width;s<u;s++)n.append(this.get(s,o)?t:e);n.append(r)}return n.toString()},t.prototype.clone=function(){return new t(this.width,this.height,this.rowSize,this.bits.slice())},t}();e["a"]=u},2111:function(t,e,r){"use strict";var n=r("7978"),o=r("9cca"),i=r("6530"),a=function(){function t(t,e){e?this.decodedInformation=null:(this.finished=t,this.decodedInformation=e)}return t.prototype.getDecodedInformation=function(){return this.decodedInformation},t.prototype.isFinished=function(){return this.finished},t}(),s=a,u=function(){function t(t){this.newPosition=t}return t.prototype.getNewPosition=function(){return this.newPosition},t}(),f=u,c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=function(t){function e(e,r){var n=t.call(this,e)||this;return n.value=r,n}return c(e,t),e.prototype.getValue=function(){return this.value},e.prototype.isFNC1=function(){return this.value===e.FNC1},e.FNC1="$",e}(f),l=h,d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),p=function(t){function e(e,r,n){var o=t.call(this,e)||this;return n?(o.remaining=!0,o.remainingValue=o.remainingValue):(o.remaining=!1,o.remainingValue=0),o.newString=r,o}return d(e,t),e.prototype.getNewString=function(){return this.newString},e.prototype.isRemaining=function(){return this.remaining},e.prototype.getRemainingValue=function(){return this.remainingValue},e}(f),g=p,_=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),y=function(t){function e(e,r,o){var i=t.call(this,e)||this;if(r<0||r>10||o<0||o>10)throw new n["a"];return i.firstDigit=r,i.secondDigit=o,i}return _(e,t),e.prototype.getFirstDigit=function(){return this.firstDigit},e.prototype.getSecondDigit=function(){return this.secondDigit},e.prototype.getValue=function(){return 10*this.firstDigit+this.secondDigit},e.prototype.isFirstDigitFNC1=function(){return this.firstDigit===e.FNC1},e.prototype.isSecondDigitFNC1=function(){return this.secondDigit===e.FNC1},e.prototype.isAnyFNC1=function(){return this.firstDigit===e.FNC1||this.secondDigit===e.FNC1},e.FNC1=10,e}(f),w=y,A=r("ca08"),E=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},v=function(){function t(){}return t.parseFieldsInGeneralPurpose=function(e){var r,n,o,i,a,s,u,f;if(!e)return null;if(e.length<2)throw new A["a"];var c=e.substring(0,2);try{for(var h=E(t.TWO_DIGIT_DATA_LENGTH),l=h.next();!l.done;l=h.next()){var d=l.value;if(d[0]===c)return d[1]===t.VARIABLE_LENGTH?t.processVariableAI(2,d[2],e):t.processFixedAI(2,d[1],e)}}catch(C){r={error:C}}finally{try{l&&!l.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}if(e.length<3)throw new A["a"];var p=e.substring(0,3);try{for(var g=E(t.THREE_DIGIT_DATA_LENGTH),_=g.next();!_.done;_=g.next()){d=_.value;if(d[0]===p)return d[1]===t.VARIABLE_LENGTH?t.processVariableAI(3,d[2],e):t.processFixedAI(3,d[1],e)}}catch(m){o={error:m}}finally{try{_&&!_.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}try{for(var y=E(t.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),w=y.next();!w.done;w=y.next()){d=w.value;if(d[0]===p)return d[1]===t.VARIABLE_LENGTH?t.processVariableAI(4,d[2],e):t.processFixedAI(4,d[1],e)}}catch(T){a={error:T}}finally{try{w&&!w.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}if(e.length<4)throw new A["a"];var v=e.substring(0,4);try{for(var I=E(t.FOUR_DIGIT_DATA_LENGTH),S=I.next();!S.done;S=I.next()){d=S.value;if(d[0]===v)return d[1]===t.VARIABLE_LENGTH?t.processVariableAI(4,d[2],e):t.processFixedAI(4,d[1],e)}}catch(N){u={error:N}}finally{try{S&&!S.done&&(f=I.return)&&f.call(I)}finally{if(u)throw u.error}}throw new A["a"]},t.processFixedAI=function(e,r,n){if(n.length<e)throw new A["a"];var o=n.substring(0,e);if(n.length<e+r)throw new A["a"];var i=n.substring(e,e+r),a=n.substring(e+r),s="("+o+")"+i,u=t.parseFieldsInGeneralPurpose(a);return null==u?s:s+u},t.processVariableAI=function(e,r,n){var o,i=n.substring(0,e);o=n.length<e+r?n.length:e+r;var a=n.substring(e,o),s=n.substring(o),u="("+i+")"+a,f=t.parseFieldsInGeneralPurpose(s);return null==f?u:u+f},t.VARIABLE_LENGTH=[],t.TWO_DIGIT_DATA_LENGTH=[["00",18],["01",14],["02",14],["10",t.VARIABLE_LENGTH,20],["11",6],["12",6],["13",6],["15",6],["17",6],["20",2],["21",t.VARIABLE_LENGTH,20],["22",t.VARIABLE_LENGTH,29],["30",t.VARIABLE_LENGTH,8],["37",t.VARIABLE_LENGTH,8],["90",t.VARIABLE_LENGTH,30],["91",t.VARIABLE_LENGTH,30],["92",t.VARIABLE_LENGTH,30],["93",t.VARIABLE_LENGTH,30],["94",t.VARIABLE_LENGTH,30],["95",t.VARIABLE_LENGTH,30],["96",t.VARIABLE_LENGTH,30],["97",t.VARIABLE_LENGTH,3],["98",t.VARIABLE_LENGTH,30],["99",t.VARIABLE_LENGTH,30]],t.THREE_DIGIT_DATA_LENGTH=[["240",t.VARIABLE_LENGTH,30],["241",t.VARIABLE_LENGTH,30],["242",t.VARIABLE_LENGTH,6],["250",t.VARIABLE_LENGTH,30],["251",t.VARIABLE_LENGTH,30],["253",t.VARIABLE_LENGTH,17],["254",t.VARIABLE_LENGTH,20],["400",t.VARIABLE_LENGTH,30],["401",t.VARIABLE_LENGTH,30],["402",17],["403",t.VARIABLE_LENGTH,30],["410",13],["411",13],["412",13],["413",13],["414",13],["420",t.VARIABLE_LENGTH,20],["421",t.VARIABLE_LENGTH,15],["422",3],["423",t.VARIABLE_LENGTH,15],["424",3],["425",3],["426",3]],t.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH=[["310",6],["311",6],["312",6],["313",6],["314",6],["315",6],["316",6],["320",6],["321",6],["322",6],["323",6],["324",6],["325",6],["326",6],["327",6],["328",6],["329",6],["330",6],["331",6],["332",6],["333",6],["334",6],["335",6],["336",6],["340",6],["341",6],["342",6],["343",6],["344",6],["345",6],["346",6],["347",6],["348",6],["349",6],["350",6],["351",6],["352",6],["353",6],["354",6],["355",6],["356",6],["357",6],["360",6],["361",6],["362",6],["363",6],["364",6],["365",6],["366",6],["367",6],["368",6],["369",6],["390",t.VARIABLE_LENGTH,15],["391",t.VARIABLE_LENGTH,18],["392",t.VARIABLE_LENGTH,15],["393",t.VARIABLE_LENGTH,18],["703",t.VARIABLE_LENGTH,30]],t.FOUR_DIGIT_DATA_LENGTH=[["7001",13],["7002",t.VARIABLE_LENGTH,30],["7003",10],["8001",14],["8002",t.VARIABLE_LENGTH,20],["8003",t.VARIABLE_LENGTH,30],["8004",t.VARIABLE_LENGTH,30],["8005",6],["8006",18],["8007",t.VARIABLE_LENGTH,30],["8008",t.VARIABLE_LENGTH,12],["8018",18],["8020",t.VARIABLE_LENGTH,25],["8100",6],["8101",10],["8102",2],["8110",t.VARIABLE_LENGTH,70],["8200",t.VARIABLE_LENGTH,70]],t}(),I=v,S=function(){function t(t){this.buffer=new i["a"],this.information=t}return t.prototype.decodeAllCodes=function(t,e){var r=e,n=null;do{var o=this.decodeGeneralPurposeField(r,n),i=I.parseFieldsInGeneralPurpose(o.getNewString());if(null!=i&&t.append(i),n=o.isRemaining()?""+o.getRemainingValue():null,r===o.getNewPosition())break;r=o.getNewPosition()}while(1);return t.toString()},t.prototype.isStillNumeric=function(t){if(t+7>this.information.getSize())return t+4<=this.information.getSize();for(var e=t;e<t+3;++e)if(this.information.get(e))return!0;return this.information.get(t+3)},t.prototype.decodeNumeric=function(t){if(t+7>this.information.getSize()){var e=this.extractNumericValueFromBitArray(t,4);return new w(this.information.getSize(),0===e?w.FNC1:e-1,w.FNC1)}var r=this.extractNumericValueFromBitArray(t,7),n=(r-8)/11,o=(r-8)%11;return new w(t+7,n,o)},t.prototype.extractNumericValueFromBitArray=function(e,r){return t.extractNumericValueFromBitArray(this.information,e,r)},t.extractNumericValueFromBitArray=function(t,e,r){for(var n=0,o=0;o<r;++o)t.get(e+o)&&(n|=1<<r-o-1);return n},t.prototype.decodeGeneralPurposeField=function(t,e){this.buffer.setLengthToZero(),null!=e&&this.buffer.append(e),this.current.setPosition(t);var r=this.parseBlocks();return null!=r&&r.isRemaining()?new g(this.current.getPosition(),this.buffer.toString(),r.getRemainingValue()):new g(this.current.getPosition(),this.buffer.toString())},t.prototype.parseBlocks=function(){var t,e;do{var r=this.current.getPosition();this.current.isAlpha()?(e=this.parseAlphaBlock(),t=e.isFinished()):this.current.isIsoIec646()?(e=this.parseIsoIec646Block(),t=e.isFinished()):(e=this.parseNumericBlock(),t=e.isFinished());var n=r!==this.current.getPosition();if(!n&&!t)break}while(!t);return e.getDecodedInformation()},t.prototype.parseNumericBlock=function(){while(this.isStillNumeric(this.current.getPosition())){var t=this.decodeNumeric(this.current.getPosition());if(this.current.setPosition(t.getNewPosition()),t.isFirstDigitFNC1()){var e=void 0;return e=t.isSecondDigitFNC1()?new g(this.current.getPosition(),this.buffer.toString()):new g(this.current.getPosition(),this.buffer.toString(),t.getSecondDigit()),new s(!0,e)}if(this.buffer.append(t.getFirstDigit()),t.isSecondDigitFNC1()){e=new g(this.current.getPosition(),this.buffer.toString());return new s(!0,e)}this.buffer.append(t.getSecondDigit())}return this.isNumericToAlphaNumericLatch(this.current.getPosition())&&(this.current.setAlpha(),this.current.incrementPosition(4)),new s(!1)},t.prototype.parseIsoIec646Block=function(){while(this.isStillIsoIec646(this.current.getPosition())){var t=this.decodeIsoIec646(this.current.getPosition());if(this.current.setPosition(t.getNewPosition()),t.isFNC1()){var e=new g(this.current.getPosition(),this.buffer.toString());return new s(!0,e)}this.buffer.append(t.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setAlpha()),new s(!1)},t.prototype.parseAlphaBlock=function(){while(this.isStillAlpha(this.current.getPosition())){var t=this.decodeAlphanumeric(this.current.getPosition());if(this.current.setPosition(t.getNewPosition()),t.isFNC1()){var e=new g(this.current.getPosition(),this.buffer.toString());return new s(!0,e)}this.buffer.append(t.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setIsoIec646()),new s(!1)},t.prototype.isStillIsoIec646=function(t){if(t+5>this.information.getSize())return!1;var e=this.extractNumericValueFromBitArray(t,5);if(e>=5&&e<16)return!0;if(t+7>this.information.getSize())return!1;var r=this.extractNumericValueFromBitArray(t,7);if(r>=64&&r<116)return!0;if(t+8>this.information.getSize())return!1;var n=this.extractNumericValueFromBitArray(t,8);return n>=232&&n<253},t.prototype.decodeIsoIec646=function(t){var e=this.extractNumericValueFromBitArray(t,5);if(15===e)return new l(t+5,l.FNC1);if(e>=5&&e<15)return new l(t+5,"0"+(e-5));var r=this.extractNumericValueFromBitArray(t,7);if(r>=64&&r<90)return new l(t+7,""+(r+1));if(r>=90&&r<116)return new l(t+7,""+(r+7));var o,i=this.extractNumericValueFromBitArray(t,8);switch(i){case 232:o="!";break;case 233:o='"';break;case 234:o="%";break;case 235:o="&";break;case 236:o="'";break;case 237:o="(";break;case 238:o=")";break;case 239:o="*";break;case 240:o="+";break;case 241:o=",";break;case 242:o="-";break;case 243:o=".";break;case 244:o="/";break;case 245:o=":";break;case 246:o=";";break;case 247:o="<";break;case 248:o="=";break;case 249:o=">";break;case 250:o="?";break;case 251:o="_";break;case 252:o=" ";break;default:throw new n["a"]}return new l(t+8,o)},t.prototype.isStillAlpha=function(t){if(t+5>this.information.getSize())return!1;var e=this.extractNumericValueFromBitArray(t,5);if(e>=5&&e<16)return!0;if(t+6>this.information.getSize())return!1;var r=this.extractNumericValueFromBitArray(t,6);return r>=16&&r<63},t.prototype.decodeAlphanumeric=function(t){var e=this.extractNumericValueFromBitArray(t,5);if(15===e)return new l(t+5,l.FNC1);if(e>=5&&e<15)return new l(t+5,"0"+(e-5));var r,n=this.extractNumericValueFromBitArray(t,6);if(n>=32&&n<58)return new l(t+6,""+(n+33));switch(n){case 58:r="*";break;case 59:r=",";break;case 60:r="-";break;case 61:r=".";break;case 62:r="/";break;default:throw new o["a"]("Decoding invalid alphanumeric value: "+n)}return new l(t+6,r)},t.prototype.isAlphaTo646ToAlphaLatch=function(t){if(t+1>this.information.getSize())return!1;for(var e=0;e<5&&e+t<this.information.getSize();++e)if(2===e){if(!this.information.get(t+2))return!1}else if(this.information.get(t+e))return!1;return!0},t.prototype.isAlphaOr646ToNumericLatch=function(t){if(t+3>this.information.getSize())return!1;for(var e=t;e<t+3;++e)if(this.information.get(e))return!1;return!0},t.prototype.isNumericToAlphaNumericLatch=function(t){if(t+1>this.information.getSize())return!1;for(var e=0;e<4&&e+t<this.information.getSize();++e)if(this.information.get(t+e))return!1;return!0},t}();e["a"]=S},"2ec9":function(t,e,r){"use strict";var n=r("4f55"),o=r("2011"),i=r("a0cf"),a=r("ca08"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.sampleGrid=function(t,e,r,n,o,a,s,u,f,c,h,l,d,p,g,_,y,w,A){var E=i["a"].quadrilateralToQuadrilateral(n,o,a,s,u,f,c,h,l,d,p,g,_,y,w,A);return this.sampleGridWithTransform(t,e,r,E)},e.prototype.sampleGridWithTransform=function(t,e,r,i){if(e<=0||r<=0)throw new a["a"];for(var s=new o["a"](e,r),u=new Float32Array(2*e),f=0;f<r;f++){for(var c=u.length,h=f+.5,l=0;l<c;l+=2)u[l]=l/2+.5,u[l+1]=h;i.transformPoints(u),n["a"].checkAndNudgePoints(t,u);try{for(l=0;l<c;l+=2)t.get(Math.floor(u[l]),Math.floor(u[l+1]))&&s.set(l/2,f)}catch(d){throw new a["a"]}}return s},e}(n["a"]);e["a"]=u},"34c8":function(t,e,r){"use strict";var n=r("547e"),o=r("a7f2"),i=r("8285"),a=r("9cca"),s=function(){function t(t){this.field=t}return t.prototype.decode=function(t,e){for(var r=this.field,a=new o["a"](r,t),s=new Int32Array(e),u=!0,f=0;f<e;f++){var c=a.evaluateAt(r.exp(f+r.getGeneratorBase()));s[s.length-1-f]=c,0!==c&&(u=!1)}if(!u){var h=new o["a"](r,s),l=this.runEuclideanAlgorithm(r.buildMonomial(e,1),h,e),d=l[0],p=l[1],g=this.findErrorLocations(d),_=this.findErrorMagnitudes(p,g);for(f=0;f<g.length;f++){var y=t.length-1-r.log(g[f]);if(y<0)throw new i["a"]("Bad error location");t[y]=n["a"].addOrSubtract(t[y],_[f])}}},t.prototype.runEuclideanAlgorithm=function(t,e,r){if(t.getDegree()<e.getDegree()){var n=t;t=e,e=n}var o=this.field,s=t,u=e,f=o.getZero(),c=o.getOne();while(u.getDegree()>=(r/2|0)){var h=s,l=f;if(s=u,f=c,s.isZero())throw new i["a"]("r_{i-1} was zero");u=h;var d=o.getZero(),p=s.getCoefficient(s.getDegree()),g=o.inverse(p);while(u.getDegree()>=s.getDegree()&&!u.isZero()){var _=u.getDegree()-s.getDegree(),y=o.multiply(u.getCoefficient(u.getDegree()),g);d=d.addOrSubtract(o.buildMonomial(_,y)),u=u.addOrSubtract(s.multiplyByMonomial(_,y))}if(c=d.multiply(f).addOrSubtract(l),u.getDegree()>=s.getDegree())throw new a["a"]("Division algorithm failed to reduce polynomial?")}var w=c.getCoefficient(0);if(0===w)throw new i["a"]("sigmaTilde(0) was zero");var A=o.inverse(w),E=c.multiplyScalar(A),v=u.multiplyScalar(A);return[E,v]},t.prototype.findErrorLocations=function(t){var e=t.getDegree();if(1===e)return Int32Array.from([t.getCoefficient(1)]);for(var r=new Int32Array(e),n=0,o=this.field,a=1;a<o.getSize()&&n<e;a++)0===t.evaluateAt(a)&&(r[n]=o.inverse(a),n++);if(n!==e)throw new i["a"]("Error locator degree does not match number of roots");return r},t.prototype.findErrorMagnitudes=function(t,e){for(var r=e.length,n=new Int32Array(r),o=this.field,i=0;i<r;i++){for(var a=o.inverse(e[i]),s=1,u=0;u<r;u++)if(i!==u){var f=o.multiply(e[u],a),c=0===(1&f)?1|f:-2&f;s=o.multiply(s,c)}n[i]=o.multiply(t.evaluateAt(a),o.inverse(s)),0!==o.getGeneratorBase()&&(n[i]=o.multiply(n[i],a))}return n},t}();e["a"]=s},"3d59":function(t,e,r){"use strict";var n=r("a363"),o=r("2d92"),i=r("fe96"),a=r("7978"),s=r("ca08"),u=r("2f50"),f=r("8c95"),c=r("0b81"),h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.findStartPattern=function(t){for(var r=t.getSize(),n=t.getNextSet(0),o=0,i=Int32Array.from([0,0,0,0,0,0]),a=n,u=!1,f=6,h=n;h<r;h++)if(t.get(h)!==u)i[o]++;else{if(o===f-1){for(var l=e.MAX_AVG_VARIANCE,d=-1,p=e.CODE_START_A;p<=e.CODE_START_C;p++){var g=c["a"].patternMatchVariance(i,e.CODE_PATTERNS[p],e.MAX_INDIVIDUAL_VARIANCE);g<l&&(l=g,d=p)}if(d>=0&&t.isRange(Math.max(0,a-(h-a)/2),a,!1))return Int32Array.from([a,h,d]);a+=i[0]+i[1],i=i.slice(2,i.length-1),i[o-1]=0,i[o]=0,o--}else o++;i[o]=1,u=!u}throw new s["a"]},e.decodeCode=function(t,r,n){c["a"].recordPattern(t,n,r);for(var o=e.MAX_AVG_VARIANCE,i=-1,a=0;a<e.CODE_PATTERNS.length;a++){var u=e.CODE_PATTERNS[a],f=this.patternMatchVariance(r,u,e.MAX_INDIVIDUAL_VARIANCE);f<o&&(o=f,i=a)}if(i>=0)return i;throw new s["a"]},e.prototype.decodeRow=function(t,r,c){var h,l=c&&!0===c.get(i["a"].ASSUME_GS1),d=e.findStartPattern(r),p=d[2],g=0,_=new Uint8Array(20);switch(_[g++]=p,p){case e.CODE_START_A:h=e.CODE_CODE_A;break;case e.CODE_START_B:h=e.CODE_CODE_B;break;case e.CODE_START_C:h=e.CODE_CODE_C;break;default:throw new a["a"]}var y=!1,w=!1,A="",E=d[0],v=d[1],I=Int32Array.from([0,0,0,0,0,0]),S=0,C=0,m=p,T=0,N=!0,O=!1,R=!1;while(!y){var D=w;switch(w=!1,S=C,C=e.decodeCode(r,I,v),_[g++]=C,C!==e.CODE_STOP&&(N=!0),C!==e.CODE_STOP&&(T++,m+=T*C),E=v,v+=I.reduce((function(t,e){return t+e}),0),C){case e.CODE_START_A:case e.CODE_START_B:case e.CODE_START_C:throw new a["a"]}switch(h){case e.CODE_CODE_A:if(C<64)A+=R===O?String.fromCharCode(" ".charCodeAt(0)+C):String.fromCharCode(" ".charCodeAt(0)+C+128),R=!1;else if(C<96)A+=R===O?String.fromCharCode(C-64):String.fromCharCode(C+64),R=!1;else switch(C!==e.CODE_STOP&&(N=!1),C){case e.CODE_FNC_1:l&&(0===A.length?A+="]C1":A+=String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_A:!O&&R?(O=!0,R=!1):O&&R?(O=!1,R=!1):R=!0;break;case e.CODE_SHIFT:w=!0,h=e.CODE_CODE_B;break;case e.CODE_CODE_B:h=e.CODE_CODE_B;break;case e.CODE_CODE_C:h=e.CODE_CODE_C;break;case e.CODE_STOP:y=!0;break}break;case e.CODE_CODE_B:if(C<96)A+=R===O?String.fromCharCode(" ".charCodeAt(0)+C):String.fromCharCode(" ".charCodeAt(0)+C+128),R=!1;else switch(C!==e.CODE_STOP&&(N=!1),C){case e.CODE_FNC_1:l&&(0===A.length?A+="]C1":A+=String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_B:!O&&R?(O=!0,R=!1):O&&R?(O=!1,R=!1):R=!0;break;case e.CODE_SHIFT:w=!0,h=e.CODE_CODE_A;break;case e.CODE_CODE_A:h=e.CODE_CODE_A;break;case e.CODE_CODE_C:h=e.CODE_CODE_C;break;case e.CODE_STOP:y=!0;break}break;case e.CODE_CODE_C:if(C<100)C<10&&(A+="0"),A+=C;else switch(C!==e.CODE_STOP&&(N=!1),C){case e.CODE_FNC_1:l&&(0===A.length?A+="]C1":A+=String.fromCharCode(29));break;case e.CODE_CODE_A:h=e.CODE_CODE_A;break;case e.CODE_CODE_B:h=e.CODE_CODE_B;break;case e.CODE_STOP:y=!0;break}break}D&&(h=h===e.CODE_CODE_A?e.CODE_CODE_B:e.CODE_CODE_A)}var b=v-E;if(v=r.getNextUnset(v),!r.isRange(v,Math.min(r.getSize(),v+(v-E)/2),!1))throw new s["a"];if(m-=T*S,m%103!==S)throw new o["a"];var P=A.length;if(0===P)throw new s["a"];P>0&&N&&(A=h===e.CODE_CODE_C?A.substring(0,P-2):A.substring(0,P-1));for(var B=(d[1]+d[0])/2,F=E+b/2,M=_.length,L=new Uint8Array(M),k=0;k<M;k++)L[k]=_[k];var G=[new f["a"](B,t),new f["a"](F,t)];return new u["a"](A,L,0,G,n["a"].CODE_128,(new Date).getTime())},e.CODE_PATTERNS=[Int32Array.from([2,1,2,2,2,2]),Int32Array.from([2,2,2,1,2,2]),Int32Array.from([2,2,2,2,2,1]),Int32Array.from([1,2,1,2,2,3]),Int32Array.from([1,2,1,3,2,2]),Int32Array.from([1,3,1,2,2,2]),Int32Array.from([1,2,2,2,1,3]),Int32Array.from([1,2,2,3,1,2]),Int32Array.from([1,3,2,2,1,2]),Int32Array.from([2,2,1,2,1,3]),Int32Array.from([2,2,1,3,1,2]),Int32Array.from([2,3,1,2,1,2]),Int32Array.from([1,1,2,2,3,2]),Int32Array.from([1,2,2,1,3,2]),Int32Array.from([1,2,2,2,3,1]),Int32Array.from([1,1,3,2,2,2]),Int32Array.from([1,2,3,1,2,2]),Int32Array.from([1,2,3,2,2,1]),Int32Array.from([2,2,3,2,1,1]),Int32Array.from([2,2,1,1,3,2]),Int32Array.from([2,2,1,2,3,1]),Int32Array.from([2,1,3,2,1,2]),Int32Array.from([2,2,3,1,1,2]),Int32Array.from([3,1,2,1,3,1]),Int32Array.from([3,1,1,2,2,2]),Int32Array.from([3,2,1,1,2,2]),Int32Array.from([3,2,1,2,2,1]),Int32Array.from([3,1,2,2,1,2]),Int32Array.from([3,2,2,1,1,2]),Int32Array.from([3,2,2,2,1,1]),Int32Array.from([2,1,2,1,2,3]),Int32Array.from([2,1,2,3,2,1]),Int32Array.from([2,3,2,1,2,1]),Int32Array.from([1,1,1,3,2,3]),Int32Array.from([1,3,1,1,2,3]),Int32Array.from([1,3,1,3,2,1]),Int32Array.from([1,1,2,3,1,3]),Int32Array.from([1,3,2,1,1,3]),Int32Array.from([1,3,2,3,1,1]),Int32Array.from([2,1,1,3,1,3]),Int32Array.from([2,3,1,1,1,3]),Int32Array.from([2,3,1,3,1,1]),Int32Array.from([1,1,2,1,3,3]),Int32Array.from([1,1,2,3,3,1]),Int32Array.from([1,3,2,1,3,1]),Int32Array.from([1,1,3,1,2,3]),Int32Array.from([1,1,3,3,2,1]),Int32Array.from([1,3,3,1,2,1]),Int32Array.from([3,1,3,1,2,1]),Int32Array.from([2,1,1,3,3,1]),Int32Array.from([2,3,1,1,3,1]),Int32Array.from([2,1,3,1,1,3]),Int32Array.from([2,1,3,3,1,1]),Int32Array.from([2,1,3,1,3,1]),Int32Array.from([3,1,1,1,2,3]),Int32Array.from([3,1,1,3,2,1]),Int32Array.from([3,3,1,1,2,1]),Int32Array.from([3,1,2,1,1,3]),Int32Array.from([3,1,2,3,1,1]),Int32Array.from([3,3,2,1,1,1]),Int32Array.from([3,1,4,1,1,1]),Int32Array.from([2,2,1,4,1,1]),Int32Array.from([4,3,1,1,1,1]),Int32Array.from([1,1,1,2,2,4]),Int32Array.from([1,1,1,4,2,2]),Int32Array.from([1,2,1,1,2,4]),Int32Array.from([1,2,1,4,2,1]),Int32Array.from([1,4,1,1,2,2]),Int32Array.from([1,4,1,2,2,1]),Int32Array.from([1,1,2,2,1,4]),Int32Array.from([1,1,2,4,1,2]),Int32Array.from([1,2,2,1,1,4]),Int32Array.from([1,2,2,4,1,1]),Int32Array.from([1,4,2,1,1,2]),Int32Array.from([1,4,2,2,1,1]),Int32Array.from([2,4,1,2,1,1]),Int32Array.from([2,2,1,1,1,4]),Int32Array.from([4,1,3,1,1,1]),Int32Array.from([2,4,1,1,1,2]),Int32Array.from([1,3,4,1,1,1]),Int32Array.from([1,1,1,2,4,2]),Int32Array.from([1,2,1,1,4,2]),Int32Array.from([1,2,1,2,4,1]),Int32Array.from([1,1,4,2,1,2]),Int32Array.from([1,2,4,1,1,2]),Int32Array.from([1,2,4,2,1,1]),Int32Array.from([4,1,1,2,1,2]),Int32Array.from([4,2,1,1,1,2]),Int32Array.from([4,2,1,2,1,1]),Int32Array.from([2,1,2,1,4,1]),Int32Array.from([2,1,4,1,2,1]),Int32Array.from([4,1,2,1,2,1]),Int32Array.from([1,1,1,1,4,3]),Int32Array.from([1,1,1,3,4,1]),Int32Array.from([1,3,1,1,4,1]),Int32Array.from([1,1,4,1,1,3]),Int32Array.from([1,1,4,3,1,1]),Int32Array.from([4,1,1,1,1,3]),Int32Array.from([4,1,1,3,1,1]),Int32Array.from([1,1,3,1,4,1]),Int32Array.from([1,1,4,1,3,1]),Int32Array.from([3,1,1,1,4,1]),Int32Array.from([4,1,1,1,3,1]),Int32Array.from([2,1,1,4,1,2]),Int32Array.from([2,1,1,2,1,4]),Int32Array.from([2,1,1,2,3,2]),Int32Array.from([2,3,3,1,1,1,2])],e.MAX_AVG_VARIANCE=.25,e.MAX_INDIVIDUAL_VARIANCE=.7,e.CODE_SHIFT=98,e.CODE_CODE_C=99,e.CODE_CODE_B=100,e.CODE_CODE_A=101,e.CODE_FNC_1=102,e.CODE_FNC_2=97,e.CODE_FNC_3=96,e.CODE_FNC_4_A=101,e.CODE_FNC_4_B=100,e.CODE_START_A=103,e.CODE_START_B=104,e.CODE_START_C=105,e.CODE_STOP=106,e}(c["a"]);e["a"]=l},"4f55":function(t,e,r){"use strict";var n=r("ca08"),o=function(){function t(){}return t.checkAndNudgePoints=function(t,e){for(var r=t.getWidth(),o=t.getHeight(),i=!0,a=0;a<e.length&&i;a+=2){var s=Math.floor(e[a]),u=Math.floor(e[a+1]);if(s<-1||s>r||u<-1||u>o)throw new n["a"];i=!1,-1===s?(e[a]=0,i=!0):s===r&&(e[a]=r-1,i=!0),-1===u?(e[a+1]=0,i=!0):u===o&&(e[a+1]=o-1,i=!0)}i=!0;for(a=e.length-2;a>=0&&i;a-=2){s=Math.floor(e[a]),u=Math.floor(e[a+1]);if(s<-1||s>r||u<-1||u>o)throw new n["a"];i=!1,-1===s?(e[a]=0,i=!0):s===r&&(e[a]=r-1,i=!0),-1===u?(e[a+1]=0,i=!0):u===o&&(e[a+1]=o-1,i=!0)}},t}();e["a"]=o},"547e":function(t,e,r){"use strict";var n=r("a7f2"),o=r("f6ed"),i=r("ea29"),a=r("f0a7"),s=r("8635"),u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(t){function e(e,r,o){var i=t.call(this)||this;i.primitive=e,i.size=r,i.generatorBase=o;for(var a=new Int32Array(r),s=1,u=0;u<r;u++)a[u]=s,s*=2,s>=r&&(s^=e,s&=r-1);i.expTable=a;var f=new Int32Array(r);for(u=0;u<r-1;u++)f[a[u]]=u;return i.logTable=f,i.zero=new n["a"](i,Int32Array.from([0])),i.one=new n["a"](i,Int32Array.from([1])),i}return u(e,t),e.prototype.getZero=function(){return this.zero},e.prototype.getOne=function(){return this.one},e.prototype.buildMonomial=function(t,e){if(t<0)throw new a["a"];if(0===e)return this.zero;var r=new Int32Array(t+1);return r[0]=e,new n["a"](this,r)},e.prototype.inverse=function(t){if(0===t)throw new s["a"];return this.expTable[this.size-this.logTable[t]-1]},e.prototype.multiply=function(t,e){return 0===t||0===e?0:this.expTable[(this.logTable[t]+this.logTable[e])%(this.size-1)]},e.prototype.getSize=function(){return this.size},e.prototype.getGeneratorBase=function(){return this.generatorBase},e.prototype.toString=function(){return"GF(0x"+i["a"].toHexString(this.primitive)+","+this.size+")"},e.prototype.equals=function(t){return t===this},e.AZTEC_DATA_12=new e(4201,4096,1),e.AZTEC_DATA_10=new e(1033,1024,1),e.AZTEC_DATA_6=new e(67,64,1),e.AZTEC_PARAM=new e(19,16,1),e.QR_CODE_FIELD_256=new e(285,256,0),e.DATA_MATRIX_FIELD_256=new e(301,256,1),e.AZTEC_DATA_8=e.DATA_MATRIX_FIELD_256,e.MAXICODE_FIELD_64=e.AZTEC_DATA_6,e}(o["a"]);e["a"]=f},5641:function(t,e,r){"use strict";var n=r("bd7a"),o=r("2011"),i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(e){var r=t.call(this,e)||this;return r.matrix=null,r}return i(e,t),e.prototype.getBlackMatrix=function(){if(null!==this.matrix)return this.matrix;var r=this.getLuminanceSource(),n=r.getWidth(),i=r.getHeight();if(n>=e.MINIMUM_DIMENSION&&i>=e.MINIMUM_DIMENSION){var a=r.getMatrix(),s=n>>e.BLOCK_SIZE_POWER;0!==(n&e.BLOCK_SIZE_MASK)&&s++;var u=i>>e.BLOCK_SIZE_POWER;0!==(i&e.BLOCK_SIZE_MASK)&&u++;var f=e.calculateBlackPoints(a,s,u,n,i),c=new o["a"](n,i);e.calculateThresholdForBlock(a,s,u,n,i,f,c),this.matrix=c}else this.matrix=t.prototype.getBlackMatrix.call(this);return this.matrix},e.prototype.createBinarizer=function(t){return new e(t)},e.calculateThresholdForBlock=function(t,r,n,o,i,a,s){for(var u=i-e.BLOCK_SIZE,f=o-e.BLOCK_SIZE,c=0;c<n;c++){var h=c<<e.BLOCK_SIZE_POWER;h>u&&(h=u);for(var l=e.cap(c,2,n-3),d=0;d<r;d++){var p=d<<e.BLOCK_SIZE_POWER;p>f&&(p=f);for(var g=e.cap(d,2,r-3),_=0,y=-2;y<=2;y++){var w=a[l+y];_+=w[g-2]+w[g-1]+w[g]+w[g+1]+w[g+2]}var A=_/25;e.thresholdBlock(t,p,h,A,o,s)}}},e.cap=function(t,e,r){return t<e?e:t>r?r:t},e.thresholdBlock=function(t,r,n,o,i,a){for(var s=0,u=n*i+r;s<e.BLOCK_SIZE;s++,u+=i)for(var f=0;f<e.BLOCK_SIZE;f++)(255&t[u+f])<=o&&a.set(r+f,n+s)},e.calculateBlackPoints=function(t,r,n,o,i){for(var a=i-e.BLOCK_SIZE,s=o-e.BLOCK_SIZE,u=new Array(n),f=0;f<n;f++){u[f]=new Int32Array(r);var c=f<<e.BLOCK_SIZE_POWER;c>a&&(c=a);for(var h=0;h<r;h++){var l=h<<e.BLOCK_SIZE_POWER;l>s&&(l=s);for(var d=0,p=255,g=0,_=0,y=c*o+l;_<e.BLOCK_SIZE;_++,y+=o){for(var w=0;w<e.BLOCK_SIZE;w++){var A=255&t[y+w];d+=A,A<p&&(p=A),A>g&&(g=A)}if(g-p>e.MIN_DYNAMIC_RANGE)for(_++,y+=o;_<e.BLOCK_SIZE;_++,y+=o)for(w=0;w<e.BLOCK_SIZE;w++)d+=255&t[y+w]}var E=d>>2*e.BLOCK_SIZE_POWER;if(g-p<=e.MIN_DYNAMIC_RANGE&&(E=p/2,f>0&&h>0)){var v=(u[f-1][h]+2*u[f][h-1]+u[f-1][h-1])/4;p<v&&(E=v)}u[f][h]=E}}return u},e.BLOCK_SIZE_POWER=3,e.BLOCK_SIZE=1<<e.BLOCK_SIZE_POWER,e.BLOCK_SIZE_MASK=e.BLOCK_SIZE-1,e.MINIMUM_DIMENSION=5*e.BLOCK_SIZE,e.MIN_DYNAMIC_RANGE=24,e}(n["a"]);e["a"]=a},6099:function(t,e,r){"use strict";var n=r("f0a7"),o=function(){function t(t){this.bytes=t,this.byteOffset=0,this.bitOffset=0}return t.prototype.getBitOffset=function(){return this.bitOffset},t.prototype.getByteOffset=function(){return this.byteOffset},t.prototype.readBits=function(t){if(t<1||t>32||t>this.available())throw new n["a"](""+t);var e=0,r=this.bitOffset,o=this.byteOffset,i=this.bytes;if(r>0){var a=8-r,s=t<a?t:a,u=a-s,f=255>>8-s<<u;e=(i[o]&f)>>u,t-=s,r+=s,8===r&&(r=0,o++)}if(t>0){while(t>=8)e=e<<8|255&i[o],o++,t-=8;if(t>0){u=8-t,f=255>>u<<u;e=e<<t|(i[o]&f)>>u,r+=t}}return this.bitOffset=r,this.byteOffset=o,e},t.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},t}();e["a"]=o},"67f0":function(t,e,r){"use strict";var n,o=r("7978"),i=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};(function(t){t[t["Cp437"]=0]="Cp437",t[t["ISO8859_1"]=1]="ISO8859_1",t[t["ISO8859_2"]=2]="ISO8859_2",t[t["ISO8859_3"]=3]="ISO8859_3",t[t["ISO8859_4"]=4]="ISO8859_4",t[t["ISO8859_5"]=5]="ISO8859_5",t[t["ISO8859_6"]=6]="ISO8859_6",t[t["ISO8859_7"]=7]="ISO8859_7",t[t["ISO8859_8"]=8]="ISO8859_8",t[t["ISO8859_9"]=9]="ISO8859_9",t[t["ISO8859_10"]=10]="ISO8859_10",t[t["ISO8859_11"]=11]="ISO8859_11",t[t["ISO8859_13"]=12]="ISO8859_13",t[t["ISO8859_14"]=13]="ISO8859_14",t[t["ISO8859_15"]=14]="ISO8859_15",t[t["ISO8859_16"]=15]="ISO8859_16",t[t["SJIS"]=16]="SJIS",t[t["Cp1250"]=17]="Cp1250",t[t["Cp1251"]=18]="Cp1251",t[t["Cp1252"]=19]="Cp1252",t[t["Cp1256"]=20]="Cp1256",t[t["UnicodeBigUnmarked"]=21]="UnicodeBigUnmarked",t[t["UTF8"]=22]="UTF8",t[t["ASCII"]=23]="ASCII",t[t["Big5"]=24]="Big5",t[t["GB18030"]=25]="GB18030",t[t["EUC_KR"]=26]="EUC_KR"})(n||(n={}));var a=function(){function t(e,r,n){for(var o,a,s=[],u=3;u<arguments.length;u++)s[u-3]=arguments[u];this.valueIdentifier=e,this.name=n,this.values="number"===typeof r?Int32Array.from([r]):r,this.otherEncodingNames=s,t.VALUE_IDENTIFIER_TO_ECI.set(e,this),t.NAME_TO_ECI.set(n,this);for(var f=this.values,c=0,h=f.length;c!==h;c++){var l=f[c];t.VALUES_TO_ECI.set(l,this)}try{for(var d=i(s),p=d.next();!p.done;p=d.next()){var g=p.value;t.NAME_TO_ECI.set(g,this)}}catch(_){o={error:_}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}}return t.prototype.getValueIdentifier=function(){return this.valueIdentifier},t.prototype.getName=function(){return this.name},t.prototype.getValue=function(){return this.values[0]},t.getCharacterSetECIByValue=function(e){if(e<0||e>=900)throw new o["a"]("incorect value");var r=t.VALUES_TO_ECI.get(e);if(void 0===r)throw new o["a"]("incorect value");return r},t.getCharacterSetECIByName=function(e){var r=t.NAME_TO_ECI.get(e);if(void 0===r)throw new o["a"]("incorect value");return r},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.getName()===r.getName()},t.VALUE_IDENTIFIER_TO_ECI=new Map,t.VALUES_TO_ECI=new Map,t.NAME_TO_ECI=new Map,t.Cp437=new t(n.Cp437,Int32Array.from([0,2]),"Cp437"),t.ISO8859_1=new t(n.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),t.ISO8859_2=new t(n.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),t.ISO8859_3=new t(n.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),t.ISO8859_4=new t(n.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),t.ISO8859_5=new t(n.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),t.ISO8859_6=new t(n.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),t.ISO8859_7=new t(n.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),t.ISO8859_8=new t(n.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),t.ISO8859_9=new t(n.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),t.ISO8859_10=new t(n.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),t.ISO8859_11=new t(n.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),t.ISO8859_13=new t(n.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),t.ISO8859_14=new t(n.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),t.ISO8859_15=new t(n.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),t.ISO8859_16=new t(n.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),t.SJIS=new t(n.SJIS,20,"SJIS","Shift_JIS"),t.Cp1250=new t(n.Cp1250,21,"Cp1250","windows-1250"),t.Cp1251=new t(n.Cp1251,22,"Cp1251","windows-1251"),t.Cp1252=new t(n.Cp1252,23,"Cp1252","windows-1252"),t.Cp1256=new t(n.Cp1256,24,"Cp1256","windows-1256"),t.UnicodeBigUnmarked=new t(n.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),t.UTF8=new t(n.UTF8,26,"UTF8","UTF-8"),t.ASCII=new t(n.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),t.Big5=new t(n.Big5,28,"Big5"),t.GB18030=new t(n.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),t.EUC_KR=new t(n.EUC_KR,30,"EUC_KR","EUC-KR"),t}();e["a"]=a},"7a37":function(t,e,r){"use strict";var n=function(){function t(t,e){this.bits=t,this.points=e}return t.prototype.getBits=function(){return this.bits},t.prototype.getPoints=function(){return this.points},t}();e["a"]=n},"7bb2":function(t,e,r){"use strict";var n=r("a363"),o=r("2d92"),i=r("7978"),a=r("ca08"),s=r("0b81"),u=r("2f50"),f=r("8c95"),c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(t){function e(e,r){void 0===e&&(e=!1),void 0===r&&(r=!1);var n=t.call(this)||this;return n.usingCheckDigit=e,n.extendedMode=r,n.decodeRowResult="",n.counters=new Int32Array(9),n}return c(e,t),e.prototype.decodeRow=function(t,r,i){var s,c,l,d,p=this.counters;p.fill(0),this.decodeRowResult="";var g,_,y=e.findAsteriskPattern(r,p),w=r.getNextSet(y[1]),A=r.getSize();do{e.recordPattern(r,w,p);var E=e.toNarrowWidePattern(p);if(E<0)throw new a["a"];g=e.patternToChar(E),this.decodeRowResult+=g,_=w;try{for(var v=(s=void 0,h(p)),I=v.next();!I.done;I=v.next()){var S=I.value;w+=S}}catch(F){s={error:F}}finally{try{I&&!I.done&&(c=v.return)&&c.call(v)}finally{if(s)throw s.error}}w=r.getNextSet(w)}while("*"!==g);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var C=0;try{for(var m=h(p),T=m.next();!T.done;T=m.next()){S=T.value;C+=S}}catch(M){l={error:M}}finally{try{T&&!T.done&&(d=m.return)&&d.call(m)}finally{if(l)throw l.error}}var N,O=w-_-C;if(w!==A&&2*O<C)throw new a["a"];if(this.usingCheckDigit){for(var R=this.decodeRowResult.length-1,D=0,b=0;b<R;b++)D+=e.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(b));if(this.decodeRowResult.charAt(R)!==e.ALPHABET_STRING.charAt(D%43))throw new o["a"];this.decodeRowResult=this.decodeRowResult.substring(0,R)}if(0===this.decodeRowResult.length)throw new a["a"];N=this.extendedMode?e.decodeExtended(this.decodeRowResult):this.decodeRowResult;var P=(y[1]+y[0])/2,B=_+C/2;return new u["a"](N,null,0,[new f["a"](P,t),new f["a"](B,t)],n["a"].CODE_39,(new Date).getTime())},e.findAsteriskPattern=function(t,r){for(var n=t.getSize(),o=t.getNextSet(0),i=0,s=o,u=!1,f=r.length,c=o;c<n;c++)if(t.get(c)!==u)r[i]++;else{if(i===f-1){if(this.toNarrowWidePattern(r)===e.ASTERISK_ENCODING&&t.isRange(Math.max(0,s-Math.floor((c-s)/2)),s,!1))return[s,c];s+=r[0]+r[1],r.copyWithin(0,2,2+i-1),r[i-1]=0,r[i]=0,i--}else i++;r[i]=1,u=!u}throw new a["a"]},e.toNarrowWidePattern=function(t){var e,r,n,o=t.length,i=0;do{var a=2147483647;try{for(var s=(e=void 0,h(t)),u=s.next();!u.done;u=s.next()){var f=u.value;f<a&&f>i&&(a=f)}}catch(p){e={error:p}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}i=a,n=0;for(var c=0,l=0,d=0;d<o;d++){f=t[d];f>i&&(l|=1<<o-1-d,n++,c+=f)}if(3===n){for(d=0;d<o&&n>0;d++){f=t[d];if(f>i&&(n--,2*f>=c))return-1}return l}}while(n>3);return-1},e.patternToChar=function(t){for(var r=0;r<e.CHARACTER_ENCODINGS.length;r++)if(e.CHARACTER_ENCODINGS[r]===t)return e.ALPHABET_STRING.charAt(r);if(t===e.ASTERISK_ENCODING)return"*";throw new a["a"]},e.decodeExtended=function(t){for(var e=t.length,r="",n=0;n<e;n++){var o=t.charAt(n);if("+"===o||"$"===o||"%"===o||"/"===o){var a=t.charAt(n+1),s="\0";switch(o){case"+":if(!(a>="A"&&a<="Z"))throw new i["a"];s=String.fromCharCode(a.charCodeAt(0)+32);break;case"$":if(!(a>="A"&&a<="Z"))throw new i["a"];s=String.fromCharCode(a.charCodeAt(0)-64);break;case"%":if(a>="A"&&a<="E")s=String.fromCharCode(a.charCodeAt(0)-38);else if(a>="F"&&a<="J")s=String.fromCharCode(a.charCodeAt(0)-11);else if(a>="K"&&a<="O")s=String.fromCharCode(a.charCodeAt(0)+16);else if(a>="P"&&a<="T")s=String.fromCharCode(a.charCodeAt(0)+43);else if("U"===a)s="\0";else if("V"===a)s="@";else if("W"===a)s="`";else{if("X"!==a&&"Y"!==a&&"Z"!==a)throw new i["a"];s=""}break;case"/":if(a>="A"&&a<="O")s=String.fromCharCode(a.charCodeAt(0)-32);else{if("Z"!==a)throw new i["a"];s=":"}break}r+=s,n++}else r+=o}return r},e.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",e.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],e.ASTERISK_ENCODING=148,e}(s["a"]);e["a"]=l},"7f3b":function(t,e,r){"use strict";var n=r("8c95"),o=r("fb63"),i=r("ca08"),a=function(){function t(e,r,n,o){this.image=e,this.height=e.getHeight(),this.width=e.getWidth(),void 0!==r&&null!==r||(r=t.INIT_SIZE),void 0!==n&&null!==n||(n=e.getWidth()/2|0),void 0!==o&&null!==o||(o=e.getHeight()/2|0);var a=r/2|0;if(this.leftInit=n-a,this.rightInit=n+a,this.upInit=o-a,this.downInit=o+a,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new i["a"]}return t.prototype.detect=function(){var t=this.leftInit,e=this.rightInit,r=this.upInit,n=this.downInit,o=!1,a=!0,s=!1,u=!1,f=!1,c=!1,h=!1,l=this.width,d=this.height;while(a){a=!1;var p=!0;while((p||!u)&&e<l)p=this.containsBlackPoint(r,n,e,!1),p?(e++,a=!0,u=!0):u||e++;if(e>=l){o=!0;break}var g=!0;while((g||!f)&&n<d)g=this.containsBlackPoint(t,e,n,!0),g?(n++,a=!0,f=!0):f||n++;if(n>=d){o=!0;break}var _=!0;while((_||!c)&&t>=0)_=this.containsBlackPoint(r,n,t,!1),_?(t--,a=!0,c=!0):c||t--;if(t<0){o=!0;break}var y=!0;while((y||!h)&&r>=0)y=this.containsBlackPoint(t,e,r,!0),y?(r--,a=!0,h=!0):h||r--;if(r<0){o=!0;break}a&&(s=!0)}if(!o&&s){for(var w=e-t,A=null,E=1;null===A&&E<w;E++)A=this.getBlackPointOnSegment(t,n-E,t+E,n);if(null==A)throw new i["a"];var v=null;for(E=1;null===v&&E<w;E++)v=this.getBlackPointOnSegment(t,r+E,t+E,r);if(null==v)throw new i["a"];var I=null;for(E=1;null===I&&E<w;E++)I=this.getBlackPointOnSegment(e,r+E,e-E,r);if(null==I)throw new i["a"];var S=null;for(E=1;null===S&&E<w;E++)S=this.getBlackPointOnSegment(e,n-E,e-E,n);if(null==S)throw new i["a"];return this.centerEdges(S,A,I,v)}throw new i["a"]},t.prototype.getBlackPointOnSegment=function(t,e,r,i){for(var a=o["a"].round(o["a"].distance(t,e,r,i)),s=(r-t)/a,u=(i-e)/a,f=this.image,c=0;c<a;c++){var h=o["a"].round(t+c*s),l=o["a"].round(e+c*u);if(f.get(h,l))return new n["a"](h,l)}return null},t.prototype.centerEdges=function(e,r,o,i){var a=e.getX(),s=e.getY(),u=r.getX(),f=r.getY(),c=o.getX(),h=o.getY(),l=i.getX(),d=i.getY(),p=t.CORR;return a<this.width/2?[new n["a"](l-p,d+p),new n["a"](u+p,f+p),new n["a"](c-p,h-p),new n["a"](a+p,s-p)]:[new n["a"](l+p,d+p),new n["a"](u+p,f-p),new n["a"](c-p,h+p),new n["a"](a-p,s-p)]},t.prototype.containsBlackPoint=function(t,e,r,n){var o=this.image;if(n){for(var i=t;i<=e;i++)if(o.get(i,r))return!0}else for(var a=t;a<=e;a++)if(o.get(r,a))return!0;return!1},t.INIT_SIZE=10,t.CORR=1,t}();e["a"]=a},9068:function(t,e,r){"use strict";var n=r("f0a7"),o=r("cb12"),i=r("ea29"),a=r("63af"),s=function(){function t(e,r){void 0===e?(this.size=0,this.bits=new Int32Array(1)):(this.size=e,this.bits=void 0===r||null===r?t.makeArray(e):r)}return t.prototype.getSize=function(){return this.size},t.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},t.prototype.ensureCapacity=function(e){if(e>32*this.bits.length){var r=t.makeArray(e);a["a"].arraycopy(this.bits,0,r,0,this.bits.length),this.bits=r}},t.prototype.get=function(t){return 0!==(this.bits[Math.floor(t/32)]&1<<(31&t))},t.prototype.set=function(t){this.bits[Math.floor(t/32)]|=1<<(31&t)},t.prototype.flip=function(t){this.bits[Math.floor(t/32)]^=1<<(31&t)},t.prototype.getNextSet=function(t){var e=this.size;if(t>=e)return e;var r=this.bits,n=Math.floor(t/32),o=r[n];o&=~((1<<(31&t))-1);var a=r.length;while(0===o){if(++n===a)return e;o=r[n]}var s=32*n+i["a"].numberOfTrailingZeros(o);return s>e?e:s},t.prototype.getNextUnset=function(t){var e=this.size;if(t>=e)return e;var r=this.bits,n=Math.floor(t/32),o=~r[n];o&=~((1<<(31&t))-1);var a=r.length;while(0===o){if(++n===a)return e;o=~r[n]}var s=32*n+i["a"].numberOfTrailingZeros(o);return s>e?e:s},t.prototype.setBulk=function(t,e){this.bits[Math.floor(t/32)]=e},t.prototype.setRange=function(t,e){if(e<t||t<0||e>this.size)throw new n["a"];if(e!==t){e--;for(var r=Math.floor(t/32),o=Math.floor(e/32),i=this.bits,a=r;a<=o;a++){var s=a>r?0:31&t,u=a<o?31:31&e,f=(2<<u)-(1<<s);i[a]|=f}}},t.prototype.clear=function(){for(var t=this.bits.length,e=this.bits,r=0;r<t;r++)e[r]=0},t.prototype.isRange=function(t,e,r){if(e<t||t<0||e>this.size)throw new n["a"];if(e===t)return!0;e--;for(var o=Math.floor(t/32),i=Math.floor(e/32),a=this.bits,s=o;s<=i;s++){var u=s>o?0:31&t,f=s<i?31:31&e,c=(2<<f)-(1<<u)&4294967295;if((a[s]&c)!==(r?c:0))return!1}return!0},t.prototype.appendBit=function(t){this.ensureCapacity(this.size+1),t&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++},t.prototype.appendBits=function(t,e){if(e<0||e>32)throw new n["a"]("Num bits must be between 0 and 32");this.ensureCapacity(this.size+e);for(var r=e;r>0;r--)this.appendBit(1===(t>>r-1&1))},t.prototype.appendBitArray=function(t){var e=t.size;this.ensureCapacity(this.size+e);for(var r=0;r<e;r++)this.appendBit(t.get(r))},t.prototype.xor=function(t){if(this.size!==t.size)throw new n["a"]("Sizes don't match");for(var e=this.bits,r=0,o=e.length;r<o;r++)e[r]^=t.bits[r]},t.prototype.toBytes=function(t,e,r,n){for(var o=0;o<n;o++){for(var i=0,a=0;a<8;a++)this.get(t)&&(i|=1<<7-a),t++;e[r+o]=i}},t.prototype.getBitArray=function(){return this.bits},t.prototype.reverse=function(){for(var t=new Int32Array(this.bits.length),e=Math.floor((this.size-1)/32),r=e+1,n=this.bits,o=0;o<r;o++){var i=n[o];i=i>>1&1431655765|(1431655765&i)<<1,i=i>>2&858993459|(858993459&i)<<2,i=i>>4&252645135|(252645135&i)<<4,i=i>>8&16711935|(16711935&i)<<8,i=i>>16&65535|(65535&i)<<16,t[e-o]=i}if(this.size!==32*r){var a=32*r-this.size,s=t[0]>>>a;for(o=1;o<r;o++){var u=t[o];s|=u<<32-a,t[o-1]=s,s=u>>>a}t[r-1]=s}this.bits=t},t.makeArray=function(t){return new Int32Array(Math.floor((t+31)/32))},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.size===r.size&&o["a"].equals(this.bits,r.bits)},t.prototype.hashCode=function(){return 31*this.size+o["a"].hashCode(this.bits)},t.prototype.toString=function(){for(var t="",e=0,r=this.size;e<r;e++)0===(7&e)&&(t+=" "),t+=this.get(e)?"X":".";return t},t.prototype.clone=function(){return new t(this.size,this.bits.slice())},t}();e["a"]=s},"929b":function(t,e,r){"use strict";var n=r("8c95"),o=function(){function t(t,e,r,o,i){this.value=t,this.startEnd=e,this.value=t,this.startEnd=e,this.resultPoints=new Array,this.resultPoints.push(new n["a"](r,i)),this.resultPoints.push(new n["a"](o,i))}return t.prototype.getValue=function(){return this.value},t.prototype.getStartEnd=function(){return this.startEnd},t.prototype.getResultPoints=function(){return this.resultPoints},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.value===r.value},t.prototype.hashCode=function(){return this.value},t}();e["a"]=o},a0cf:function(t,e,r){"use strict";var n=function(){function t(t,e,r,n,o,i,a,s,u){this.a11=t,this.a21=e,this.a31=r,this.a12=n,this.a22=o,this.a32=i,this.a13=a,this.a23=s,this.a33=u}return t.quadrilateralToQuadrilateral=function(e,r,n,o,i,a,s,u,f,c,h,l,d,p,g,_){var y=t.quadrilateralToSquare(e,r,n,o,i,a,s,u),w=t.squareToQuadrilateral(f,c,h,l,d,p,g,_);return w.times(y)},t.prototype.transformPoints=function(t){for(var e=t.length,r=this.a11,n=this.a12,o=this.a13,i=this.a21,a=this.a22,s=this.a23,u=this.a31,f=this.a32,c=this.a33,h=0;h<e;h+=2){var l=t[h],d=t[h+1],p=o*l+s*d+c;t[h]=(r*l+i*d+u)/p,t[h+1]=(n*l+a*d+f)/p}},t.prototype.transformPointsWithValues=function(t,e){for(var r=this.a11,n=this.a12,o=this.a13,i=this.a21,a=this.a22,s=this.a23,u=this.a31,f=this.a32,c=this.a33,h=t.length,l=0;l<h;l++){var d=t[l],p=e[l],g=o*d+s*p+c;t[l]=(r*d+i*p+u)/g,e[l]=(n*d+a*p+f)/g}},t.squareToQuadrilateral=function(e,r,n,o,i,a,s,u){var f=e-n+i-s,c=r-o+a-u;if(0===f&&0===c)return new t(n-e,i-n,e,o-r,a-o,r,0,0,1);var h=n-i,l=s-i,d=o-a,p=u-a,g=h*p-l*d,_=(f*p-l*c)/g,y=(h*c-f*d)/g;return new t(n-e+_*n,s-e+y*s,e,o-r+_*o,u-r+y*u,r,_,y,1)},t.quadrilateralToSquare=function(e,r,n,o,i,a,s,u){return t.squareToQuadrilateral(e,r,n,o,i,a,s,u).buildAdjoint()},t.prototype.buildAdjoint=function(){return new t(this.a22*this.a33-this.a23*this.a32,this.a23*this.a31-this.a21*this.a33,this.a21*this.a32-this.a22*this.a31,this.a13*this.a32-this.a12*this.a33,this.a11*this.a33-this.a13*this.a31,this.a12*this.a31-this.a11*this.a32,this.a12*this.a23-this.a13*this.a22,this.a13*this.a21-this.a11*this.a23,this.a11*this.a22-this.a12*this.a21)},t.prototype.times=function(e){return new t(this.a11*e.a11+this.a21*e.a12+this.a31*e.a13,this.a11*e.a21+this.a21*e.a22+this.a31*e.a23,this.a11*e.a31+this.a21*e.a32+this.a31*e.a33,this.a12*e.a11+this.a22*e.a12+this.a32*e.a13,this.a12*e.a21+this.a22*e.a22+this.a32*e.a23,this.a12*e.a31+this.a22*e.a32+this.a32*e.a33,this.a13*e.a11+this.a23*e.a12+this.a33*e.a13,this.a13*e.a21+this.a23*e.a22+this.a33*e.a23,this.a13*e.a31+this.a23*e.a32+this.a33*e.a33)},t}();e["a"]=n},a652:function(t,e,r){"use strict";var n=function(){function t(t,e,r,n,o,i){void 0===o&&(o=-1),void 0===i&&(i=-1),this.rawBytes=t,this.text=e,this.byteSegments=r,this.ecLevel=n,this.structuredAppendSequenceNumber=o,this.structuredAppendParity=i,this.numBits=void 0===t||null===t?0:8*t.length}return t.prototype.getRawBytes=function(){return this.rawBytes},t.prototype.getNumBits=function(){return this.numBits},t.prototype.setNumBits=function(t){this.numBits=t},t.prototype.getText=function(){return this.text},t.prototype.getByteSegments=function(){return this.byteSegments},t.prototype.getECLevel=function(){return this.ecLevel},t.prototype.getErrorsCorrected=function(){return this.errorsCorrected},t.prototype.setErrorsCorrected=function(t){this.errorsCorrected=t},t.prototype.getErasures=function(){return this.erasures},t.prototype.setErasures=function(t){this.erasures=t},t.prototype.getOther=function(){return this.other},t.prototype.setOther=function(t){this.other=t},t.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},t.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},t.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},t}();e["a"]=n},a793:function(t,e,r){"use strict";var n=r("a363"),o=r("fe96"),i=r("ca08"),a=r("3d59"),s=r("7bb2"),u=r("be139"),f=r("2f50"),c=r("0b81"),h=r("d0cb"),l=r("ab23"),d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),p=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},g=function(t){function e(){var e=t.call(this)||this;return e.decodeMiddleCounters=Int32Array.from([0,0,0,0]),e}return d(e,t),e.prototype.decodeMiddle=function(t,e,r){var n,o,i,a,s=this.decodeMiddleCounters;s[0]=0,s[1]=0,s[2]=0,s[3]=0;for(var u=t.getSize(),f=e[1],c=0;c<4&&f<u;c++){var h=l["a"].decodeDigit(t,s,f,l["a"].L_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+h);try{for(var d=(n=void 0,p(s)),g=d.next();!g.done;g=d.next()){var _=g.value;f+=_}}catch(E){n={error:E}}finally{try{g&&!g.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}}var y=l["a"].findGuardPattern(t,f,!0,l["a"].MIDDLE_PATTERN,new Int32Array(l["a"].MIDDLE_PATTERN.length).fill(0));f=y[1];for(c=0;c<4&&f<u;c++){h=l["a"].decodeDigit(t,s,f,l["a"].L_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+h);try{for(var w=(i=void 0,p(s)),A=w.next();!A.done;A=w.next()){_=A.value;f+=_}}catch(v){i={error:v}}finally{try{A&&!A.done&&(a=w.return)&&a.call(w)}finally{if(i)throw i.error}}}return{rowOffset:f,resultString:r}},e.prototype.getBarcodeFormat=function(){return n["a"].EAN_8},e}(l["a"]),_=g,y=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ean13Reader=new h["a"],e}return y(e,t),e.prototype.getBarcodeFormat=function(){return n["a"].UPC_A},e.prototype.decode=function(t,e){return this.maybeReturnResult(this.ean13Reader.decode(t))},e.prototype.decodeRow=function(t,e,r){return this.maybeReturnResult(this.ean13Reader.decodeRow(t,e,r))},e.prototype.decodeMiddle=function(t,e,r){return this.ean13Reader.decodeMiddle(t,e,r)},e.prototype.maybeReturnResult=function(t){var e=t.getText();if("0"===e.charAt(0)){var r=new f["a"](e.substring(1),null,null,t.getResultPoints(),n["a"].UPC_A);return null!=t.getResultMetadata()&&r.putAllMetadata(t.getResultMetadata()),r}throw new i["a"]},e.prototype.reset=function(){this.ean13Reader.reset()},e}(l["a"]),A=w,E=r("6530"),v=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),I=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},S=function(t){function e(){var e=t.call(this)||this;return e.decodeMiddleCounters=new Int32Array(4),e}return v(e,t),e.prototype.decodeMiddle=function(t,r,n){var o,i,a=this.decodeMiddleCounters.map((function(t){return t}));a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=t.getSize(),u=r[1],f=0,c=0;c<6&&u<s;c++){var h=e.decodeDigit(t,a,u,e.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+h%10);try{for(var l=(o=void 0,I(a)),d=l.next();!d.done;d=l.next()){var p=d.value;u+=p}}catch(g){o={error:g}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}h>=10&&(f|=1<<5-c)}return e.determineNumSysAndCheckDigit(new E["a"](n),f),u},e.prototype.decodeEnd=function(t,r){return e.findGuardPatternWithoutCounters(t,r,!0,e.MIDDLE_END_PATTERN)},e.prototype.checkChecksum=function(t){return l["a"].checkChecksum(e.convertUPCEtoUPCA(t))},e.determineNumSysAndCheckDigit=function(t,e){for(var r=0;r<=1;r++)for(var n=0;n<10;n++)if(e===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[r][n])return t.insert(0,"0"+r),void t.append("0"+n);throw i["a"].getNotFoundInstance()},e.prototype.getBarcodeFormat=function(){return n["a"].UPC_E},e.convertUPCEtoUPCA=function(t){var e=t.slice(1,7).split("").map((function(t){return t.charCodeAt(0)})),r=new E["a"];r.append(t.charAt(0));var n=e[5];switch(n){case 0:case 1:case 2:r.appendChars(e,0,2),r.append(n),r.append("0000"),r.appendChars(e,2,3);break;case 3:r.appendChars(e,0,3),r.append("00000"),r.appendChars(e,3,2);break;case 4:r.appendChars(e,0,4),r.append("00000"),r.append(e[4]);break;default:r.appendChars(e,0,5),r.append("0000"),r.append(n);break}return t.length>=8&&r.append(t.charAt(7)),r.toString()},e.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),e.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,1])],e}(l["a"]),C=S,m=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),T=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},N=function(t){function e(e){var r=t.call(this)||this,i=null==e?null:e.get(o["a"].POSSIBLE_FORMATS),a=[];return null!=i&&(i.indexOf(n["a"].EAN_13)>-1&&a.push(new h["a"]),i.indexOf(n["a"].UPC_A)>-1&&a.push(new A),i.indexOf(n["a"].EAN_8)>-1&&a.push(new _),i.indexOf(n["a"].UPC_E)>-1&&a.push(new C)),0===a.length&&(a.push(new h["a"]),a.push(new A),a.push(new _),a.push(new C)),r.readers=a,r}return m(e,t),e.prototype.decodeRow=function(t,e,r){var a,s;try{for(var u=T(this.readers),c=u.next();!c.done;c=u.next()){var h=c.value;try{var l=h.decodeRow(t,e,r),d=l.getBarcodeFormat()===n["a"].EAN_13&&"0"===l.getText().charAt(0),p=null==r?null:r.get(o["a"].POSSIBLE_FORMATS),g=null==p||p.includes(n["a"].UPC_A);if(d&&g){var _=l.getRawBytes(),y=new f["a"](l.getText().substring(1),_,_?_.length:null,l.getResultPoints(),n["a"].UPC_A);return y.putAllMetadata(l.getResultMetadata()),y}return l}catch(w){}}}catch(A){a={error:A}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(a)throw a.error}}throw new i["a"]},e.prototype.reset=function(){var t,e;try{for(var r=T(this.readers),n=r.next();!n.done;n=r.next()){var o=n.value;o.reset()}}catch(i){t={error:i}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},e}(c["a"]),O=N,R=r("02dc"),D=r("e4f9"),b=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),P=function(t){function e(e){var r=t.call(this)||this;r.readers=[];var i=e?e.get(o["a"].POSSIBLE_FORMATS):null,f=e&&void 0!==e.get(o["a"].ASSUME_CODE_39_CHECK_DIGIT);return i&&((i.includes(n["a"].EAN_13)||i.includes(n["a"].UPC_A)||i.includes(n["a"].EAN_8)||i.includes(n["a"].UPC_E))&&r.readers.push(new O(e)),i.includes(n["a"].CODE_39)&&r.readers.push(new s["a"](f)),i.includes(n["a"].CODE_128)&&r.readers.push(new a["a"]),i.includes(n["a"].ITF)&&r.readers.push(new u["a"]),i.includes(n["a"].RSS_14)&&r.readers.push(new D["a"]),i.includes(n["a"].RSS_EXPANDED)&&(console.warn("RSS Expanded reader IS NOT ready for production yet! use at your own risk."),r.readers.push(new R["a"]))),0===r.readers.length&&(r.readers.push(new O(e)),r.readers.push(new s["a"]),r.readers.push(new O(e)),r.readers.push(new a["a"]),r.readers.push(new u["a"]),r.readers.push(new D["a"])),r}return b(e,t),e.prototype.decodeRow=function(t,e,r){for(var n=0;n<this.readers.length;n++)try{return this.readers[n].decodeRow(t,e,r)}catch(o){}throw new i["a"]},e.prototype.reset=function(){this.readers.forEach((function(t){return t.reset()}))},e}(c["a"]);e["a"]=P},a7f2:function(t,e,r){"use strict";var n=r("f6ed"),o=r("63af"),i=r("f0a7"),a=function(){function t(t,e){if(0===e.length)throw new i["a"];this.field=t;var r=e.length;if(r>1&&0===e[0]){var n=1;while(n<r&&0===e[n])n++;n===r?this.coefficients=Int32Array.from([0]):(this.coefficients=new Int32Array(r-n),o["a"].arraycopy(e,n,this.coefficients,0,this.coefficients.length))}else this.coefficients=e}return t.prototype.getCoefficients=function(){return this.coefficients},t.prototype.getDegree=function(){return this.coefficients.length-1},t.prototype.isZero=function(){return 0===this.coefficients[0]},t.prototype.getCoefficient=function(t){return this.coefficients[this.coefficients.length-1-t]},t.prototype.evaluateAt=function(t){if(0===t)return this.getCoefficient(0);var e,r=this.coefficients;if(1===t){e=0;for(var o=0,i=r.length;o!==i;o++){var a=r[o];e=n["a"].addOrSubtract(e,a)}return e}e=r[0];var s=r.length,u=this.field;for(o=1;o<s;o++)e=n["a"].addOrSubtract(u.multiply(t,e),r[o]);return e},t.prototype.addOrSubtract=function(e){if(!this.field.equals(e.field))throw new i["a"]("GenericGFPolys do not have same GenericGF field");if(this.isZero())return e;if(e.isZero())return this;var r=this.coefficients,a=e.coefficients;if(r.length>a.length){var s=r;r=a,a=s}var u=new Int32Array(a.length),f=a.length-r.length;o["a"].arraycopy(a,0,u,0,f);for(var c=f;c<a.length;c++)u[c]=n["a"].addOrSubtract(r[c-f],a[c]);return new t(this.field,u)},t.prototype.multiply=function(e){if(!this.field.equals(e.field))throw new i["a"]("GenericGFPolys do not have same GenericGF field");if(this.isZero()||e.isZero())return this.field.getZero();for(var r=this.coefficients,o=r.length,a=e.coefficients,s=a.length,u=new Int32Array(o+s-1),f=this.field,c=0;c<o;c++)for(var h=r[c],l=0;l<s;l++)u[c+l]=n["a"].addOrSubtract(u[c+l],f.multiply(h,a[l]));return new t(f,u)},t.prototype.multiplyScalar=function(e){if(0===e)return this.field.getZero();if(1===e)return this;for(var r=this.coefficients.length,n=this.field,o=new Int32Array(r),i=this.coefficients,a=0;a<r;a++)o[a]=n.multiply(i[a],e);return new t(n,o)},t.prototype.multiplyByMonomial=function(e,r){if(e<0)throw new i["a"];if(0===r)return this.field.getZero();for(var n=this.coefficients,o=n.length,a=new Int32Array(o+e),s=this.field,u=0;u<o;u++)a[u]=s.multiply(n[u],r);return new t(s,a)},t.prototype.divide=function(t){if(!this.field.equals(t.field))throw new i["a"]("GenericGFPolys do not have same GenericGF field");if(t.isZero())throw new i["a"]("Divide by 0");var e=this.field,r=e.getZero(),n=this,o=t.getCoefficient(t.getDegree()),a=e.inverse(o);while(n.getDegree()>=t.getDegree()&&!n.isZero()){var s=n.getDegree()-t.getDegree(),u=e.multiply(n.getCoefficient(n.getDegree()),a),f=t.multiplyByMonomial(s,u),c=e.buildMonomial(s,u);r=r.addOrSubtract(c),n=n.addOrSubtract(f)}return[r,n]},t.prototype.toString=function(){for(var t="",e=this.getDegree();e>=0;e--){var r=this.getCoefficient(e);if(0!==r){if(r<0?(t+=" - ",r=-r):t.length>0&&(t+=" + "),0===e||1!==r){var n=this.field.log(r);0===n?t+="1":1===n?t+="a":(t+="a^",t+=n)}0!==e&&(1===e?t+="x":(t+="x^",t+=e))}}return t},t}();e["a"]=a},aa17:function(t,e,r){"use strict";var n=r("fb63"),o=r("ca08"),i=r("0b81"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=function(t){function e(){var e=t.call(this)||this;return e.decodeFinderCounters=new Int32Array(4),e.dataCharacterCounters=new Int32Array(8),e.oddRoundingErrors=new Array(4),e.evenRoundingErrors=new Array(4),e.oddCounts=new Array(e.dataCharacterCounters.length/2),e.evenCounts=new Array(e.dataCharacterCounters.length/2),e}return a(e,t),e.prototype.getDecodeFinderCounters=function(){return this.decodeFinderCounters},e.prototype.getDataCharacterCounters=function(){return this.dataCharacterCounters},e.prototype.getOddRoundingErrors=function(){return this.oddRoundingErrors},e.prototype.getEvenRoundingErrors=function(){return this.evenRoundingErrors},e.prototype.getOddCounts=function(){return this.oddCounts},e.prototype.getEvenCounts=function(){return this.evenCounts},e.prototype.parseFinderValue=function(t,r){for(var n=0;n<r.length;n++)if(i["a"].patternMatchVariance(t,r[n],e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return n;throw new o["a"]},e.count=function(t){return n["a"].sum(new Int32Array(t))},e.increment=function(t,e){for(var r=0,n=e[0],o=1;o<t.length;o++)e[o]>n&&(n=e[o],r=o);t[r]++},e.decrement=function(t,e){for(var r=0,n=e[0],o=1;o<t.length;o++)e[o]<n&&(n=e[o],r=o);t[r]--},e.isFinderPattern=function(t){var r,n,o=t[0]+t[1],i=o+t[2]+t[3],a=o/i;if(a>=e.MIN_FINDER_PATTERN_RATIO&&a<=e.MAX_FINDER_PATTERN_RATIO){var u=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER;try{for(var c=s(t),h=c.next();!h.done;h=c.next()){var l=h.value;l>f&&(f=l),l<u&&(u=l)}}catch(d){r={error:d}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return f<10*u}return!1},e.MAX_AVG_VARIANCE=.2,e.MAX_INDIVIDUAL_VARIANCE=.45,e.MIN_FINDER_PATTERN_RATIO=9.5/12,e.MAX_FINDER_PATTERN_RATIO=12.5/14,e}(i["a"]);e["a"]=u},ab23:function(t,e,r){"use strict";var n=r("a363"),o=r("fe96"),i=r("2f50"),a=r("64a7"),s=r("8c95"),u=r("0b81"),f=r("ca08"),c=r("7978"),h=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.decodeRowStringBuffer="",e}return h(e,t),e.findStartGuardPattern=function(t){var r,n=!1,o=0,i=Int32Array.from([0,0,0]);while(!n){i=Int32Array.from([0,0,0]),r=e.findGuardPattern(t,o,!1,this.START_END_PATTERN,i);var a=r[0];o=r[1];var s=a-(o-a);s>=0&&(n=t.isRange(s,a,!1))}return r},e.checkChecksum=function(t){return e.checkStandardUPCEANChecksum(t)},e.checkStandardUPCEANChecksum=function(t){var r=t.length;if(0===r)return!1;var n=parseInt(t.charAt(r-1),10);return e.getStandardUPCEANChecksum(t.substring(0,r-1))===n},e.getStandardUPCEANChecksum=function(t){for(var e=t.length,r=0,n=e-1;n>=0;n-=2){var o=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(o<0||o>9)throw new c["a"];r+=o}r*=3;for(n=e-2;n>=0;n-=2){o=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(o<0||o>9)throw new c["a"];r+=o}return(1e3-r)%10},e.decodeEnd=function(t,r){return e.findGuardPattern(t,r,!1,e.START_END_PATTERN,new Int32Array(e.START_END_PATTERN.length).fill(0))},e.findGuardPatternWithoutCounters=function(t,e,r,n){return this.findGuardPattern(t,e,r,n,new Int32Array(n.length))},e.findGuardPattern=function(t,r,n,o,i){var a=t.getSize();r=n?t.getNextUnset(r):t.getNextSet(r);for(var s=0,c=r,h=o.length,l=n,d=r;d<a;d++)if(t.get(d)!==l)i[s]++;else{if(s===h-1){if(u["a"].patternMatchVariance(i,o,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return Int32Array.from([c,d]);c+=i[0]+i[1];for(var p=i.slice(2,i.length-1),g=0;g<s-1;g++)i[g]=p[g];i[s-1]=0,i[s]=0,s--}else s++;i[s]=1,l=!l}throw new f["a"]},e.decodeDigit=function(t,r,n,o){this.recordPattern(t,n,r);for(var i=this.MAX_AVG_VARIANCE,a=-1,s=o.length,c=0;c<s;c++){var h=o[c],l=u["a"].patternMatchVariance(r,h,e.MAX_INDIVIDUAL_VARIANCE);l<i&&(i=l,a=c)}if(a>=0)return a;throw new f["a"]},e.MAX_AVG_VARIANCE=.48,e.MAX_INDIVIDUAL_VARIANCE=.7,e.START_END_PATTERN=Int32Array.from([1,1,1]),e.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),e.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),e.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])],e}(u["a"]),d=l,p=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},g=function(){function t(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return t.prototype.decodeRow=function(e,r,o){var a=this.decodeRowStringBuffer,u=this.decodeMiddle(r,o,a),f=a.toString(),c=t.parseExtensionString(f),h=[new s["a"]((o[0]+o[1])/2,e),new s["a"](u,e)],l=new i["a"](f,null,0,h,n["a"].UPC_EAN_EXTENSION,(new Date).getTime());return null!=c&&l.putAllMetadata(c),l},t.prototype.decodeMiddle=function(e,r,n){var o,i,a=this.decodeMiddleCounters;a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=e.getSize(),u=r[1],c=0,h=0;h<5&&u<s;h++){var l=d.decodeDigit(e,a,u,d.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+l%10);try{for(var g=(o=void 0,p(a)),_=g.next();!_.done;_=g.next()){var y=_.value;u+=y}}catch(A){o={error:A}}finally{try{_&&!_.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}l>=10&&(c|=1<<4-h),4!==h&&(u=e.getNextSet(u),u=e.getNextUnset(u))}if(5!==n.length)throw new f["a"];var w=this.determineCheckDigit(c);if(t.extensionChecksum(n.toString())!==w)throw new f["a"];return u},t.extensionChecksum=function(t){for(var e=t.length,r=0,n=e-2;n>=0;n-=2)r+=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);r*=3;for(n=e-1;n>=0;n-=2)r+=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);return r*=3,r%10},t.prototype.determineCheckDigit=function(t){for(var e=0;e<10;e++)if(t===this.CHECK_DIGIT_ENCODINGS[e])return e;throw new f["a"]},t.parseExtensionString=function(e){if(5!==e.length)return null;var r=t.parseExtension5String(e);return null==r?null:new Map([[a["a"].SUGGESTED_PRICE,r]])},t.parseExtension5String=function(t){var e;switch(t.charAt(0)){case"0":e="£";break;case"5":e="$";break;case"9":switch(t){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}e="";break;default:e="";break}var r=parseInt(t.substring(1)),n=(r/100).toString(),o=r%100,i=o<10?"0"+o:o.toString();return e+n+"."+i},t}(),_=g,y=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},w=function(){function t(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return t.prototype.decodeRow=function(e,r,o){var a=this.decodeRowStringBuffer,u=this.decodeMiddle(r,o,a),f=a.toString(),c=t.parseExtensionString(f),h=[new s["a"]((o[0]+o[1])/2,e),new s["a"](u,e)],l=new i["a"](f,null,0,h,n["a"].UPC_EAN_EXTENSION,(new Date).getTime());return null!=c&&l.putAllMetadata(c),l},t.prototype.decodeMiddle=function(t,e,r){var n,o,i=this.decodeMiddleCounters;i[0]=0,i[1]=0,i[2]=0,i[3]=0;for(var a=t.getSize(),s=e[1],u=0,c=0;c<2&&s<a;c++){var h=d.decodeDigit(t,i,s,d.L_AND_G_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+h%10);try{for(var l=(n=void 0,y(i)),p=l.next();!p.done;p=l.next()){var g=p.value;s+=g}}catch(_){n={error:_}}finally{try{p&&!p.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}h>=10&&(u|=1<<1-c),1!==c&&(s=t.getNextSet(s),s=t.getNextUnset(s))}if(2!==r.length)throw new f["a"];if(parseInt(r.toString())%4!==u)throw new f["a"];return s},t.parseExtensionString=function(t){return 2!==t.length?null:new Map([[a["a"].ISSUE_NUMBER,parseInt(t)]])},t}(),A=w,E=function(){function t(){}return t.decodeRow=function(t,e,r){var n=d.findGuardPattern(e,r,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{var o=new _;return o.decodeRow(t,e,n)}catch(a){var i=new A;return i.decodeRow(t,e,n)}},t.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),t}(),v=E,I=r("2d92"),S=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),C=function(t){function e(){var r=t.call(this)||this;r.decodeRowStringBuffer="",e.L_AND_G_PATTERNS=e.L_PATTERNS.map((function(t){return Int32Array.from(t)}));for(var n=10;n<20;n++){for(var o=e.L_PATTERNS[n-10],i=new Int32Array(o.length),a=0;a<o.length;a++)i[a]=o[o.length-a-1];e.L_AND_G_PATTERNS[n]=i}return r}return S(e,t),e.prototype.decodeRow=function(t,r,u){var h=e.findStartGuardPattern(r),l=null==u?null:u.get(o["a"].NEED_RESULT_POINT_CALLBACK);if(null!=l){var d=new s["a"]((h[0]+h[1])/2,t);l.foundPossibleResultPoint(d)}var p=this.decodeMiddle(r,h,this.decodeRowStringBuffer),g=p.rowOffset,_=p.resultString;if(null!=l){var y=new s["a"](g,t);l.foundPossibleResultPoint(y)}var w=e.decodeEnd(r,g);if(null!=l){var A=new s["a"]((w[0]+w[1])/2,t);l.foundPossibleResultPoint(A)}var E=w[1],S=E+(E-w[0]);if(S>=r.getSize()||!r.isRange(E,S,!1))throw new f["a"];var C=_.toString();if(C.length<8)throw new c["a"];if(!e.checkChecksum(C))throw new I["a"];var m=(h[1]+h[0])/2,T=(w[1]+w[0])/2,N=this.getBarcodeFormat(),O=[new s["a"](m,t),new s["a"](T,t)],R=new i["a"](C,null,0,O,N,(new Date).getTime()),D=0;try{var b=v.decodeRow(t,r,w[1]);R.putMetadata(a["a"].UPC_EAN_EXTENSION,b.getText()),R.putAllMetadata(b.getResultMetadata()),R.addResultPoints(b.getResultPoints()),D=b.getText().length}catch(M){}var P=null==u?null:u.get(o["a"].ALLOWED_EAN_EXTENSIONS);if(null!=P){var B=!1;for(var F in P)if(D.toString()===F){B=!0;break}if(!B)throw new f["a"]}return N===n["a"].EAN_13||n["a"].UPC_A,R},e.checkChecksum=function(t){return e.checkStandardUPCEANChecksum(t)},e.checkStandardUPCEANChecksum=function(t){var r=t.length;if(0===r)return!1;var n=parseInt(t.charAt(r-1),10);return e.getStandardUPCEANChecksum(t.substring(0,r-1))===n},e.getStandardUPCEANChecksum=function(t){for(var e=t.length,r=0,n=e-1;n>=0;n-=2){var o=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(o<0||o>9)throw new c["a"];r+=o}r*=3;for(n=e-2;n>=0;n-=2){o=t.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(o<0||o>9)throw new c["a"];r+=o}return(1e3-r)%10},e.decodeEnd=function(t,r){return e.findGuardPattern(t,r,!1,e.START_END_PATTERN,new Int32Array(e.START_END_PATTERN.length).fill(0))},e}(d);e["a"]=C},acf3:function(t,e,r){"use strict";var n,o=r("a652"),i=r("6099"),a=r("6530"),s=r("78c7"),u=r("f823"),f=r("7978"),c=r("9cca");(function(t){t[t["PAD_ENCODE"]=0]="PAD_ENCODE",t[t["ASCII_ENCODE"]=1]="ASCII_ENCODE",t[t["C40_ENCODE"]=2]="C40_ENCODE",t[t["TEXT_ENCODE"]=3]="TEXT_ENCODE",t[t["ANSIX12_ENCODE"]=4]="ANSIX12_ENCODE",t[t["EDIFACT_ENCODE"]=5]="EDIFACT_ENCODE",t[t["BASE256_ENCODE"]=6]="BASE256_ENCODE"})(n||(n={}));var h=function(){function t(){}return t.decode=function(t){var e=new i["a"](t),r=new a["a"],s=new a["a"],u=new Array,c=n.ASCII_ENCODE;do{if(c===n.ASCII_ENCODE)c=this.decodeAsciiSegment(e,r,s);else{switch(c){case n.C40_ENCODE:this.decodeC40Segment(e,r);break;case n.TEXT_ENCODE:this.decodeTextSegment(e,r);break;case n.ANSIX12_ENCODE:this.decodeAnsiX12Segment(e,r);break;case n.EDIFACT_ENCODE:this.decodeEdifactSegment(e,r);break;case n.BASE256_ENCODE:this.decodeBase256Segment(e,r,u);break;default:throw new f["a"]}c=n.ASCII_ENCODE}}while(c!==n.PAD_ENCODE&&e.available()>0);return s.length()>0&&r.append(s.toString()),new o["a"](t,r.toString(),0===u.length?null:u,null)},t.decodeAsciiSegment=function(t,e,r){var o=!1;do{var i=t.readBits(8);if(0===i)throw new f["a"];if(i<=128)return o&&(i+=128),e.append(String.fromCharCode(i-1)),n.ASCII_ENCODE;if(129===i)return n.PAD_ENCODE;if(i<=229){var a=i-130;a<10&&e.append("0"),e.append(""+a)}else switch(i){case 230:return n.C40_ENCODE;case 231:return n.BASE256_ENCODE;case 232:e.append(String.fromCharCode(29));break;case 233:case 234:break;case 235:o=!0;break;case 236:e.append("[)>05"),r.insert(0,"");break;case 237:e.append("[)>06"),r.insert(0,"");break;case 238:return n.ANSIX12_ENCODE;case 239:return n.TEXT_ENCODE;case 240:return n.EDIFACT_ENCODE;case 241:break;default:if(254!==i||0!==t.available())throw new f["a"];break}}while(t.available()>0);return n.ASCII_ENCODE},t.decodeC40Segment=function(t,e){var r=!1,n=[],o=0;do{if(8===t.available())return;var i=t.readBits(8);if(254===i)return;this.parseTwoBytes(i,t.readBits(8),n);for(var a=0;a<3;a++){var s=n[a];switch(o){case 0:if(s<3)o=s+1;else{if(!(s<this.C40_BASIC_SET_CHARS.length))throw new f["a"];var u=this.C40_BASIC_SET_CHARS[s];r?(e.append(String.fromCharCode(u.charCodeAt(0)+128)),r=!1):e.append(u)}break;case 1:r?(e.append(String.fromCharCode(s+128)),r=!1):e.append(String.fromCharCode(s)),o=0;break;case 2:if(s<this.C40_SHIFT2_SET_CHARS.length){u=this.C40_SHIFT2_SET_CHARS[s];r?(e.append(String.fromCharCode(u.charCodeAt(0)+128)),r=!1):e.append(u)}else switch(s){case 27:e.append(String.fromCharCode(29));break;case 30:r=!0;break;default:throw new f["a"]}o=0;break;case 3:r?(e.append(String.fromCharCode(s+224)),r=!1):e.append(String.fromCharCode(s+96)),o=0;break;default:throw new f["a"]}}}while(t.available()>0)},t.decodeTextSegment=function(t,e){var r=!1,n=[],o=0;do{if(8===t.available())return;var i=t.readBits(8);if(254===i)return;this.parseTwoBytes(i,t.readBits(8),n);for(var a=0;a<3;a++){var s=n[a];switch(o){case 0:if(s<3)o=s+1;else{if(!(s<this.TEXT_BASIC_SET_CHARS.length))throw new f["a"];var u=this.TEXT_BASIC_SET_CHARS[s];r?(e.append(String.fromCharCode(u.charCodeAt(0)+128)),r=!1):e.append(u)}break;case 1:r?(e.append(String.fromCharCode(s+128)),r=!1):e.append(String.fromCharCode(s)),o=0;break;case 2:if(s<this.TEXT_SHIFT2_SET_CHARS.length){u=this.TEXT_SHIFT2_SET_CHARS[s];r?(e.append(String.fromCharCode(u.charCodeAt(0)+128)),r=!1):e.append(u)}else switch(s){case 27:e.append(String.fromCharCode(29));break;case 30:r=!0;break;default:throw new f["a"]}o=0;break;case 3:if(!(s<this.TEXT_SHIFT3_SET_CHARS.length))throw new f["a"];u=this.TEXT_SHIFT3_SET_CHARS[s];r?(e.append(String.fromCharCode(u.charCodeAt(0)+128)),r=!1):e.append(u),o=0;break;default:throw new f["a"]}}}while(t.available()>0)},t.decodeAnsiX12Segment=function(t,e){var r=[];do{if(8===t.available())return;var n=t.readBits(8);if(254===n)return;this.parseTwoBytes(n,t.readBits(8),r);for(var o=0;o<3;o++){var i=r[o];switch(i){case 0:e.append("\r");break;case 1:e.append("*");break;case 2:e.append(">");break;case 3:e.append(" ");break;default:if(i<14)e.append(String.fromCharCode(i+44));else{if(!(i<40))throw new f["a"];e.append(String.fromCharCode(i+51))}break}}}while(t.available()>0)},t.parseTwoBytes=function(t,e,r){var n=(t<<8)+e-1,o=Math.floor(n/1600);r[0]=o,n-=1600*o,o=Math.floor(n/40),r[1]=o,r[2]=n-40*o},t.decodeEdifactSegment=function(t,e){do{if(t.available()<=16)return;for(var r=0;r<4;r++){var n=t.readBits(6);if(31===n){var o=8-t.getBitOffset();return void(8!==o&&t.readBits(o))}0===(32&n)&&(n|=64),e.append(String.fromCharCode(n))}}while(t.available()>0)},t.decodeBase256Segment=function(t,e,r){var n,o=1+t.getByteOffset(),i=this.unrandomize255State(t.readBits(8),o++);if(n=0===i?t.available()/8|0:i<250?i:250*(i-249)+this.unrandomize255State(t.readBits(8),o++),n<0)throw new f["a"];for(var a=new Uint8Array(n),h=0;h<n;h++){if(t.available()<8)throw new f["a"];a[h]=this.unrandomize255State(t.readBits(8),o++)}r.push(a);try{e.append(s["a"].decode(a,u["a"].ISO88591))}catch(l){throw new c["a"]("Platform does not support required encoding: "+l.message)}},t.unrandomize255State=function(t,e){var r=149*e%255+1,n=t-r;return n>=0?n:n+256},t.C40_BASIC_SET_CHARS=["*","*","*"," ","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"],t.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],t.TEXT_BASIC_SET_CHARS=["*","*","*"," ","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"],t.TEXT_SHIFT2_SET_CHARS=t.C40_SHIFT2_SET_CHARS,t.TEXT_SHIFT3_SET_CHARS=["`","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","{","|","}","~",String.fromCharCode(127)],t}();e["a"]=h},bb6f:function(t,e,r){"use strict";var n=function(){function t(t,e){this.value=t,this.checksumPortion=e}return t.prototype.getValue=function(){return this.value},t.prototype.getChecksumPortion=function(){return this.checksumPortion},t.prototype.toString=function(){return this.value+"("+this.checksumPortion+")"},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.value===r.value&&this.checksumPortion===r.checksumPortion},t.prototype.hashCode=function(){return this.value^this.checksumPortion},t}();e["a"]=n},bd7a:function(t,e,r){"use strict";var n=r("5622"),o=r("9068"),i=r("2011"),a=r("ca08"),s=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(t){function e(r){var n=t.call(this,r)||this;return n.luminances=e.EMPTY,n.buckets=new Int32Array(e.LUMINANCE_BUCKETS),n}return s(e,t),e.prototype.getBlackRow=function(t,r){var n=this.getLuminanceSource(),i=n.getWidth();void 0===r||null===r||r.getSize()<i?r=new o["a"](i):r.clear(),this.initArrays(i);for(var a=n.getRow(t,this.luminances),s=this.buckets,u=0;u<i;u++)s[(255&a[u])>>e.LUMINANCE_SHIFT]++;var f=e.estimateBlackPoint(s);if(i<3)for(u=0;u<i;u++)(255&a[u])<f&&r.set(u);else{var c=255&a[0],h=255&a[1];for(u=1;u<i-1;u++){var l=255&a[u+1];(4*h-c-l)/2<f&&r.set(u),c=h,h=l}}return r},e.prototype.getBlackMatrix=function(){var t=this.getLuminanceSource(),r=t.getWidth(),n=t.getHeight(),o=new i["a"](r,n);this.initArrays(r);for(var a=this.buckets,s=1;s<5;s++)for(var u=Math.floor(n*s/5),f=t.getRow(u,this.luminances),c=Math.floor(4*r/5),h=Math.floor(r/5);h<c;h++){var l=255&f[h];a[l>>e.LUMINANCE_SHIFT]++}var d=e.estimateBlackPoint(a),p=t.getMatrix();for(s=0;s<n;s++){var g=s*r;for(h=0;h<r;h++){l=255&p[g+h];l<d&&o.set(h,s)}}return o},e.prototype.createBinarizer=function(t){return new e(t)},e.prototype.initArrays=function(t){this.luminances.length<t&&(this.luminances=new Uint8ClampedArray(t));for(var r=this.buckets,n=0;n<e.LUMINANCE_BUCKETS;n++)r[n]=0},e.estimateBlackPoint=function(t){for(var r=t.length,n=0,o=0,i=0,s=0;s<r;s++)t[s]>i&&(o=s,i=t[s]),t[s]>n&&(n=t[s]);var u=0,f=0;for(s=0;s<r;s++){var c=s-o,h=t[s]*c*c;h>f&&(u=s,f=h)}if(o>u){var l=o;o=u,u=l}if(u-o<=r/16)throw new a["a"];var d=u-1,p=-1;for(s=u-1;s>o;s--){var g=s-o;h=g*g*(u-s)*(n-t[s]);h>p&&(d=s,p=h)}return d<<e.LUMINANCE_SHIFT},e.LUMINANCE_BITS=5,e.LUMINANCE_SHIFT=8-e.LUMINANCE_BITS,e.LUMINANCE_BUCKETS=1<<e.LUMINANCE_BITS,e.EMPTY=Uint8ClampedArray.from([0]),e}(n["a"]);e["a"]=u},be139:function(t,e,r){"use strict";var n=r("a363"),o=r("fe96"),i=r("7978"),a=r("ca08"),s=r("2f50"),u=r("8c95"),f=r("6530"),c=r("63af"),h=r("0b81"),l=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),d=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.narrowLineWidth=-1,e}return l(e,t),e.prototype.decodeRow=function(t,r,a){var c,h,l=this.decodeStart(r),p=this.decodeEnd(r),g=new f["a"];e.decodeMiddle(r,l[1],p[0],g);var _=g.toString(),y=null;null!=a&&(y=a.get(o["a"].ALLOWED_LENGTHS)),null==y&&(y=e.DEFAULT_ALLOWED_LENGTHS);var w=_.length,A=!1,E=0;try{for(var v=d(y),I=v.next();!I.done;I=v.next()){var S=I.value;if(w===S){A=!0;break}S>E&&(E=S)}}catch(T){c={error:T}}finally{try{I&&!I.done&&(h=v.return)&&h.call(v)}finally{if(c)throw c.error}}if(!A&&w>E&&(A=!0),!A)throw new i["a"];var C=[new u["a"](l[1],t),new u["a"](p[0],t)],m=new s["a"](_,null,0,C,n["a"].ITF,(new Date).getTime());return m},e.decodeMiddle=function(t,r,n,o){var i=new Int32Array(10),a=new Int32Array(5),s=new Int32Array(5);i.fill(0),a.fill(0),s.fill(0);while(r<n){h["a"].recordPattern(t,r,i);for(var u=0;u<5;u++){var f=2*u;a[u]=i[f],s[u]=i[f+1]}var c=e.decodeDigit(a);o.append(c.toString()),c=this.decodeDigit(s),o.append(c.toString()),i.forEach((function(t){r+=t}))}},e.prototype.decodeStart=function(t){var r=e.skipWhiteSpace(t),n=e.findGuardPattern(t,r,e.START_PATTERN);return this.narrowLineWidth=(n[1]-n[0])/4,this.validateQuietZone(t,n[0]),n},e.prototype.validateQuietZone=function(t,e){var r=10*this.narrowLineWidth;r=r<e?r:e;for(var n=e-1;r>0&&n>=0;n--){if(t.get(n))break;r--}if(0!==r)throw new a["a"]},e.skipWhiteSpace=function(t){var e=t.getSize(),r=t.getNextSet(0);if(r===e)throw new a["a"];return r},e.prototype.decodeEnd=function(t){t.reverse();try{var r=e.skipWhiteSpace(t),n=void 0;try{n=e.findGuardPattern(t,r,e.END_PATTERN_REVERSED[0])}catch(i){i instanceof a["a"]&&(n=e.findGuardPattern(t,r,e.END_PATTERN_REVERSED[1]))}this.validateQuietZone(t,n[0]);var o=n[0];return n[0]=t.getSize()-n[1],n[1]=t.getSize()-o,n}finally{t.reverse()}},e.findGuardPattern=function(t,r,n){var o=n.length,i=new Int32Array(o),s=t.getSize(),u=!1,f=0,l=r;i.fill(0);for(var d=r;d<s;d++)if(t.get(d)!==u)i[f]++;else{if(f===o-1){if(h["a"].patternMatchVariance(i,n,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return[l,d];l+=i[0]+i[1],c["a"].arraycopy(i,2,i,0,f-1),i[f-1]=0,i[f]=0,f--}else f++;i[f]=1,u=!u}throw new a["a"]},e.decodeDigit=function(t){for(var r=e.MAX_AVG_VARIANCE,n=-1,o=e.PATTERNS.length,i=0;i<o;i++){var s=e.PATTERNS[i],u=h["a"].patternMatchVariance(t,s,e.MAX_INDIVIDUAL_VARIANCE);u<r?(r=u,n=i):u===r&&(n=-1)}if(n>=0)return n%10;throw new a["a"]},e.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],e.MAX_AVG_VARIANCE=.38,e.MAX_INDIVIDUAL_VARIANCE=.5,e.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],e.START_PATTERN=Int32Array.from([1,1,1,1]),e.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])],e}(h["a"]);e["a"]=p},be40:function(t,e,r){"use strict";var n=r("2ec9"),o=function(){function t(){}return t.setGridSampler=function(e){t.gridSampler=e},t.getInstance=function(){return t.gridSampler},t.gridSampler=new n["a"],t}();e["a"]=o},cedd:function(t,e,r){"use strict";var n=r("9cca"),o=r("2111"),i=r("0b22"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){function e(e){return t.call(this,e)||this}return a(e,t),e.prototype.encodeCompressedGtin=function(t,e){t.append("(01)");var r=t.length();t.append("9"),this.encodeCompressedGtinWithoutAI(t,e,r)},e.prototype.encodeCompressedGtinWithoutAI=function(t,r,n){for(var o=0;o<4;++o){var i=this.getGeneralDecoder().extractNumericValueFromBitArray(r+10*o,10);i/100===0&&t.append("0"),i/10===0&&t.append("0"),t.append(i)}e.appendCheckDigit(t,n)},e.appendCheckDigit=function(t,e){for(var r=0,n=0;n<13;n++){var o=t.charAt(n+e).charCodeAt(0)-"0".charCodeAt(0);r+=0===(1&n)?3*o:o}r=10-r%10,10===r&&(r=0),t.append(r)},e.GTIN_SIZE=40,e}(i["a"]),u=s,f=r("6530"),c=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=function(t){function e(e){return t.call(this,e)||this}return c(e,t),e.prototype.parseInformation=function(){var t=new f["a"];t.append("(01)");var r=t.length(),n=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE,4);return t.append(n),this.encodeCompressedGtinWithoutAI(t,e.HEADER_SIZE+4,r),this.getGeneralDecoder().decodeAllCodes(t,e.HEADER_SIZE+44)},e.HEADER_SIZE=4,e}(u),l=h,d=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),p=function(t){function e(e){return t.call(this,e)||this}return d(e,t),e.prototype.parseInformation=function(){var t=new f["a"];return this.getGeneralDecoder().decodeAllCodes(t,e.HEADER_SIZE)},e.HEADER_SIZE=5,e}(i["a"]),g=p,_=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),y=function(t){function e(e){return t.call(this,e)||this}return _(e,t),e.prototype.encodeCompressedWeight=function(t,e,r){var n=this.getGeneralDecoder().extractNumericValueFromBitArray(e,r);this.addWeightCode(t,n);for(var o=this.checkWeight(n),i=1e5,a=0;a<5;++a)o/i===0&&t.append("0"),i/=10;t.append(o)},e}(u),w=y,A=r("ca08"),E=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),v=function(t){function e(e){return t.call(this,e)||this}return E(e,t),e.prototype.parseInformation=function(){if(this.getInformation().getSize()!=e.HEADER_SIZE+w.GTIN_SIZE+e.WEIGHT_SIZE)throw new A["a"];var t=new f["a"];return this.encodeCompressedGtin(t,e.HEADER_SIZE),this.encodeCompressedWeight(t,e.HEADER_SIZE+w.GTIN_SIZE,e.WEIGHT_SIZE),t.toString()},e.HEADER_SIZE=5,e.WEIGHT_SIZE=15,e}(w),I=v,S=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),C=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype.addWeightCode=function(t,e){t.append("(3103)")},e.prototype.checkWeight=function(t){return t},e}(I),m=C,T=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),N=function(t){function e(e){return t.call(this,e)||this}return T(e,t),e.prototype.addWeightCode=function(t,e){e<1e4?t.append("(3202)"):t.append("(3203)")},e.prototype.checkWeight=function(t){return t<1e4?t:t-1e4},e}(I),O=N,R=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),D=function(t){function e(e){return t.call(this,e)||this}return R(e,t),e.prototype.parseInformation=function(){if(this.getInformation().getSize()<e.HEADER_SIZE+u.GTIN_SIZE)throw new A["a"];var t=new f["a"];this.encodeCompressedGtin(t,e.HEADER_SIZE);var r=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE+u.GTIN_SIZE,e.LAST_DIGIT_SIZE);t.append("(392"),t.append(r),t.append(")");var n=this.getGeneralDecoder().decodeGeneralPurposeField(e.HEADER_SIZE+u.GTIN_SIZE+e.LAST_DIGIT_SIZE,null);return t.append(n.getNewString()),t.toString()},e.HEADER_SIZE=8,e.LAST_DIGIT_SIZE=2,e}(u),b=D,P=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),B=function(t){function e(e){return t.call(this,e)||this}return P(e,t),e.prototype.parseInformation=function(){if(this.getInformation().getSize()<e.HEADER_SIZE+u.GTIN_SIZE)throw new A["a"];var t=new f["a"];this.encodeCompressedGtin(t,e.HEADER_SIZE);var r=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE+u.GTIN_SIZE,e.LAST_DIGIT_SIZE);t.append("(393"),t.append(r),t.append(")");var n=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE+u.GTIN_SIZE+e.LAST_DIGIT_SIZE,e.FIRST_THREE_DIGITS_SIZE);n/100==0&&t.append("0"),n/10==0&&t.append("0"),t.append(n);var o=this.getGeneralDecoder().decodeGeneralPurposeField(e.HEADER_SIZE+u.GTIN_SIZE+e.LAST_DIGIT_SIZE+e.FIRST_THREE_DIGITS_SIZE,null);return t.append(o.getNewString()),t.toString()},e.HEADER_SIZE=8,e.LAST_DIGIT_SIZE=2,e.FIRST_THREE_DIGITS_SIZE=10,e}(u),F=B,M=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),L=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.dateCode=n,o.firstAIdigits=r,o}return M(e,t),e.prototype.parseInformation=function(){if(this.getInformation().getSize()!=e.HEADER_SIZE+e.GTIN_SIZE+e.WEIGHT_SIZE+e.DATE_SIZE)throw new A["a"];var t=new f["a"];return this.encodeCompressedGtin(t,e.HEADER_SIZE),this.encodeCompressedWeight(t,e.HEADER_SIZE+e.GTIN_SIZE,e.WEIGHT_SIZE),this.encodeCompressedDate(t,e.HEADER_SIZE+e.GTIN_SIZE+e.WEIGHT_SIZE),t.toString()},e.prototype.encodeCompressedDate=function(t,r){var n=this.getGeneralDecoder().extractNumericValueFromBitArray(r,e.DATE_SIZE);if(38400!=n){t.append("("),t.append(this.dateCode),t.append(")");var o=n%32;n/=32;var i=n%12+1;n/=12;var a=n;a/10==0&&t.append("0"),t.append(a),i/10==0&&t.append("0"),t.append(i),o/10==0&&t.append("0"),t.append(o)}},e.prototype.addWeightCode=function(t,e){t.append("("),t.append(this.firstAIdigits),t.append(e/1e5),t.append(")")},e.prototype.checkWeight=function(t){return t%1e5},e.HEADER_SIZE=8,e.WEIGHT_SIZE=20,e.DATE_SIZE=16,e}(w),k=L;function G(t){try{if(t.get(1))return new l(t);if(!t.get(2))return new g(t);var e=o["a"].extractNumericValueFromBitArray(t,1,4);switch(e){case 4:return new m(t);case 5:return new O(t)}var r=o["a"].extractNumericValueFromBitArray(t,1,5);switch(r){case 12:return new b(t);case 13:return new F(t)}var i=o["a"].extractNumericValueFromBitArray(t,1,7);switch(i){case 56:return new k(t,"310","11");case 57:return new k(t,"320","11");case 58:return new k(t,"310","13");case 59:return new k(t,"320","13");case 60:return new k(t,"310","15");case 61:return new k(t,"320","15");case 62:return new k(t,"310","17");case 63:return new k(t,"320","17")}}catch(a){throw console.log(a),new n["a"]("unknown decoder: "+t)}}r.d(e,"a",(function(){return G}))},d0cb:function(t,e,r){"use strict";var n=r("a363"),o=r("ab23"),i=r("ca08"),a=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=function(t){function e(){var e=t.call(this)||this;return e.decodeMiddleCounters=Int32Array.from([0,0,0,0]),e}return a(e,t),e.prototype.decodeMiddle=function(t,r,n){var i,a,u,f,c=this.decodeMiddleCounters;c[0]=0,c[1]=0,c[2]=0,c[3]=0;for(var h=t.getSize(),l=r[1],d=0,p=0;p<6&&l<h;p++){var g=o["a"].decodeDigit(t,c,l,o["a"].L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+g%10);try{for(var _=(i=void 0,s(c)),y=_.next();!y.done;y=_.next()){var w=y.value;l+=w}}catch(I){i={error:I}}finally{try{y&&!y.done&&(a=_.return)&&a.call(_)}finally{if(i)throw i.error}}g>=10&&(d|=1<<5-p)}n=e.determineFirstDigit(n,d);var A=o["a"].findGuardPattern(t,l,!0,o["a"].MIDDLE_PATTERN,new Int32Array(o["a"].MIDDLE_PATTERN.length).fill(0));l=A[1];for(p=0;p<6&&l<h;p++){g=o["a"].decodeDigit(t,c,l,o["a"].L_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+g);try{for(var E=(u=void 0,s(c)),v=E.next();!v.done;v=E.next()){w=v.value;l+=w}}catch(S){u={error:S}}finally{try{v&&!v.done&&(f=E.return)&&f.call(E)}finally{if(u)throw u.error}}}return{rowOffset:l,resultString:n}},e.prototype.getBarcodeFormat=function(){return n["a"].EAN_13},e.determineFirstDigit=function(t,e){for(var r=0;r<10;r++)if(e===this.FIRST_DIGIT_ENCODINGS[r])return t=String.fromCharCode("0".charCodeAt(0)+r)+t,t;throw new i["a"]},e.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26],e}(o["a"]);e["a"]=u},e4f9:function(t,e,r){"use strict";var n=r("aa17"),o=r("bb6f"),i=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(t){function e(e,r,n){var o=t.call(this,e,r)||this;return o.count=0,o.finderPattern=n,o}return i(e,t),e.prototype.getFinderPattern=function(){return this.finderPattern},e.prototype.getCount=function(){return this.count},e.prototype.incrementCount=function(){this.count++},e}(o["a"]),s=a,u=r("2f50"),f=r("fe96"),c=r("ca08"),h=r("6530"),l=r("a363"),d=r("8c95"),p=r("929b"),g=r("fb63"),_=r("1533"),y=r("63af"),w=r("0b81"),A=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},t(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),E=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.possibleLeftPairs=[],e.possibleRightPairs=[],e}return A(e,t),e.prototype.decodeRow=function(t,r,n){var o,i,a,s,u=this.decodePair(r,!1,t,n);e.addOrTally(this.possibleLeftPairs,u),r.reverse();var f=this.decodePair(r,!0,t,n);e.addOrTally(this.possibleRightPairs,f),r.reverse();try{for(var h=E(this.possibleLeftPairs),l=h.next();!l.done;l=h.next()){var d=l.value;if(d.getCount()>1)try{for(var p=(a=void 0,E(this.possibleRightPairs)),g=p.next();!g.done;g=p.next()){var _=g.value;if(_.getCount()>1&&e.checkChecksum(d,_))return e.constructResult(d,_)}}catch(y){a={error:y}}finally{try{g&&!g.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}}}catch(w){o={error:w}}finally{try{l&&!l.done&&(i=h.return)&&i.call(h)}finally{if(o)throw o.error}}throw new c["a"]},e.addOrTally=function(t,e){var r,n;if(null!=e){var o=!1;try{for(var i=E(t),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.getValue()===e.getValue()){s.incrementCount(),o=!0;break}}}catch(u){r={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}o||t.push(e)}},e.prototype.reset=function(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0},e.constructResult=function(t,e){for(var r=4537077*t.getValue()+e.getValue(),n=new String(r).toString(),o=new h["a"],i=13-n.length;i>0;i--)o.append("0");o.append(n);var a=0;for(i=0;i<13;i++){var s=o.charAt(i).charCodeAt(0)-"0".charCodeAt(0);a+=0===(1&i)?3*s:s}a=10-a%10,10===a&&(a=0),o.append(a.toString());var f=t.getFinderPattern().getResultPoints(),c=e.getFinderPattern().getResultPoints();return new u["a"](o.toString(),null,0,[f[0],f[1],c[0],c[1]],l["a"].RSS_14,(new Date).getTime())},e.checkChecksum=function(t,e){var r=(t.getChecksumPortion()+16*e.getChecksumPortion())%79,n=9*t.getFinderPattern().getValue()+e.getFinderPattern().getValue();return n>72&&n--,n>8&&n--,r===n},e.prototype.decodePair=function(t,e,r,n){try{var o=this.findFinderPattern(t,e),i=this.parseFoundFinderPattern(t,r,e,o),a=null==n?null:n.get(f["a"].NEED_RESULT_POINT_CALLBACK);if(null!=a){var u=(o[0]+o[1])/2;e&&(u=t.getSize()-1-u),a.foundPossibleResultPoint(new d["a"](u,r))}var c=this.decodeDataCharacter(t,i,!0),h=this.decodeDataCharacter(t,i,!1);return new s(1597*c.getValue()+h.getValue(),c.getChecksumPortion()+4*h.getChecksumPortion(),i)}catch(l){return null}},e.prototype.decodeDataCharacter=function(t,r,n){for(var i=this.getDataCharacterCounters(),a=0;a<i.length;a++)i[a]=0;if(n)w["a"].recordPatternInReverse(t,r.getStartEnd()[0],i);else{w["a"].recordPattern(t,r.getStartEnd()[1]+1,i);for(var s=0,u=i.length-1;s<u;s++,u--){var f=i[s];i[s]=i[u],i[u]=f}}var h=n?16:15,l=g["a"].sum(new Int32Array(i))/h,d=this.getOddCounts(),p=this.getEvenCounts(),y=this.getOddRoundingErrors(),A=this.getEvenRoundingErrors();for(s=0;s<i.length;s++){var E=i[s]/l,v=Math.floor(E+.5);v<1?v=1:v>8&&(v=8);var I=Math.floor(s/2);0===(1&s)?(d[I]=v,y[I]=E-v):(p[I]=v,A[I]=E-v)}this.adjustOddEvenCounts(n,h);var S=0,C=0;for(s=d.length-1;s>=0;s--)C*=9,C+=d[s],S+=d[s];var m=0,T=0;for(s=p.length-1;s>=0;s--)m*=9,m+=p[s],T+=p[s];var N=C+3*m;if(n){if(0!==(1&S)||S>12||S<4)throw new c["a"];var O=(12-S)/2,R=e.OUTSIDE_ODD_WIDEST[O],D=9-R,b=_["a"].getRSSvalue(d,R,!1),P=_["a"].getRSSvalue(p,D,!0),B=e.OUTSIDE_EVEN_TOTAL_SUBSET[O],F=e.OUTSIDE_GSUM[O];return new o["a"](b*B+P+F,N)}if(0!==(1&T)||T>10||T<4)throw new c["a"];O=(10-T)/2,R=e.INSIDE_ODD_WIDEST[O],D=9-R,b=_["a"].getRSSvalue(d,R,!0),P=_["a"].getRSSvalue(p,D,!1);var M=e.INSIDE_ODD_TOTAL_SUBSET[O];F=e.INSIDE_GSUM[O];return new o["a"](P*M+b+F,N)},e.prototype.findFinderPattern=function(t,e){var r=this.getDecodeFinderCounters();r[0]=0,r[1]=0,r[2]=0,r[3]=0;var o=t.getSize(),i=!1,a=0;while(a<o){if(i=!t.get(a),e===i)break;a++}for(var s=0,u=a,f=a;f<o;f++)if(t.get(f)!==i)r[s]++;else{if(3===s){if(n["a"].isFinderPattern(r))return[u,f];u+=r[0]+r[1],r[0]=r[2],r[1]=r[3],r[2]=0,r[3]=0,s--}else s++;r[s]=1,i=!i}throw new c["a"]},e.prototype.parseFoundFinderPattern=function(t,r,n,o){var i=t.get(o[0]),a=o[0]-1;while(a>=0&&i!==t.get(a))a--;a++;var s=o[0]-a,u=this.getDecodeFinderCounters(),f=new Int32Array(u.length);y["a"].arraycopy(u,0,f,1,u.length-1),f[0]=s;var c=this.parseFinderValue(f,e.FINDER_PATTERNS),h=a,l=o[1];return n&&(h=t.getSize()-1-h,l=t.getSize()-1-l),new p["a"](c,[a,o[1]],h,l,r)},e.prototype.adjustOddEvenCounts=function(t,e){var r=g["a"].sum(new Int32Array(this.getOddCounts())),o=g["a"].sum(new Int32Array(this.getEvenCounts())),i=!1,a=!1,s=!1,u=!1;t?(r>12?a=!0:r<4&&(i=!0),o>12?u=!0:o<4&&(s=!0)):(r>11?a=!0:r<5&&(i=!0),o>10?u=!0:o<4&&(s=!0));var f=r+o-e,h=(1&r)===(t?1:0),l=1===(1&o);if(1===f)if(h){if(l)throw new c["a"];a=!0}else{if(!l)throw new c["a"];u=!0}else if(-1===f)if(h){if(l)throw new c["a"];i=!0}else{if(!l)throw new c["a"];s=!0}else{if(0!==f)throw new c["a"];if(h){if(!l)throw new c["a"];r<o?(i=!0,u=!0):(a=!0,s=!0)}else if(l)throw new c["a"]}if(i){if(a)throw new c["a"];n["a"].increment(this.getOddCounts(),this.getOddRoundingErrors())}if(a&&n["a"].decrement(this.getOddCounts(),this.getOddRoundingErrors()),s){if(u)throw new c["a"];n["a"].increment(this.getEvenCounts(),this.getOddRoundingErrors())}u&&n["a"].decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},e.OUTSIDE_EVEN_TOTAL_SUBSET=[1,10,34,70,126],e.INSIDE_ODD_TOTAL_SUBSET=[4,20,48,81],e.OUTSIDE_GSUM=[0,161,961,2015,2715],e.INSIDE_GSUM=[0,336,1036,1516],e.OUTSIDE_ODD_WIDEST=[8,6,4,3,1],e.INSIDE_ODD_WIDEST=[2,4,6,8],e.FINDER_PATTERNS=[Int32Array.from([3,8,2,1]),Int32Array.from([3,5,5,1]),Int32Array.from([3,3,7,1]),Int32Array.from([3,1,9,1]),Int32Array.from([2,7,4,1]),Int32Array.from([2,5,6,1]),Int32Array.from([2,3,8,1]),Int32Array.from([1,5,7,1]),Int32Array.from([1,3,9,1])],e}(n["a"]);e["a"]=v},ee54:function(t,e,r){"use strict";var n=r("a363"),o=r("2011"),i=r("fe96"),a=r("ca08"),s=r("2f50"),u=r("64a7"),f=r("63af"),c=r("2d92"),h=r("547e"),l=r("34c8"),d=r("7978"),p=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},g=function(){function t(t,e,r){this.ecCodewords=t,this.ecBlocks=[e],r&&this.ecBlocks.push(r)}return t.prototype.getECCodewords=function(){return this.ecCodewords},t.prototype.getECBlocks=function(){return this.ecBlocks},t}(),_=function(){function t(t,e){this.count=t,this.dataCodewords=e}return t.prototype.getCount=function(){return this.count},t.prototype.getDataCodewords=function(){return this.dataCodewords},t}(),y=function(){function t(t,e,r,n,o,i){var a,s;this.versionNumber=t,this.symbolSizeRows=e,this.symbolSizeColumns=r,this.dataRegionSizeRows=n,this.dataRegionSizeColumns=o,this.ecBlocks=i;var u=0,f=i.getECCodewords(),c=i.getECBlocks();try{for(var h=p(c),l=h.next();!l.done;l=h.next()){var d=l.value;u+=d.getCount()*(d.getDataCodewords()+f)}}catch(g){a={error:g}}finally{try{l&&!l.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}this.totalCodewords=u}return t.prototype.getVersionNumber=function(){return this.versionNumber},t.prototype.getSymbolSizeRows=function(){return this.symbolSizeRows},t.prototype.getSymbolSizeColumns=function(){return this.symbolSizeColumns},t.prototype.getDataRegionSizeRows=function(){return this.dataRegionSizeRows},t.prototype.getDataRegionSizeColumns=function(){return this.dataRegionSizeColumns},t.prototype.getTotalCodewords=function(){return this.totalCodewords},t.prototype.getECBlocks=function(){return this.ecBlocks},t.getVersionForDimensions=function(e,r){var n,o;if(0!==(1&e)||0!==(1&r))throw new d["a"];try{for(var i=p(t.VERSIONS),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.symbolSizeRows===e&&s.symbolSizeColumns===r)return s}}catch(u){n={error:u}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}throw new d["a"]},t.prototype.toString=function(){return""+this.versionNumber},t.buildVersions=function(){return[new t(1,10,10,8,8,new g(5,new _(1,3))),new t(2,12,12,10,10,new g(7,new _(1,5))),new t(3,14,14,12,12,new g(10,new _(1,8))),new t(4,16,16,14,14,new g(12,new _(1,12))),new t(5,18,18,16,16,new g(14,new _(1,18))),new t(6,20,20,18,18,new g(18,new _(1,22))),new t(7,22,22,20,20,new g(20,new _(1,30))),new t(8,24,24,22,22,new g(24,new _(1,36))),new t(9,26,26,24,24,new g(28,new _(1,44))),new t(10,32,32,14,14,new g(36,new _(1,62))),new t(11,36,36,16,16,new g(42,new _(1,86))),new t(12,40,40,18,18,new g(48,new _(1,114))),new t(13,44,44,20,20,new g(56,new _(1,144))),new t(14,48,48,22,22,new g(68,new _(1,174))),new t(15,52,52,24,24,new g(42,new _(2,102))),new t(16,64,64,14,14,new g(56,new _(2,140))),new t(17,72,72,16,16,new g(36,new _(4,92))),new t(18,80,80,18,18,new g(48,new _(4,114))),new t(19,88,88,20,20,new g(56,new _(4,144))),new t(20,96,96,22,22,new g(68,new _(4,174))),new t(21,104,104,24,24,new g(56,new _(6,136))),new t(22,120,120,18,18,new g(68,new _(6,175))),new t(23,132,132,20,20,new g(62,new _(8,163))),new t(24,144,144,22,22,new g(62,new _(8,156),new _(2,155))),new t(25,8,18,6,16,new g(7,new _(1,5))),new t(26,8,32,6,14,new g(11,new _(1,10))),new t(27,12,26,10,24,new g(14,new _(1,16))),new t(28,12,36,10,16,new g(18,new _(1,22))),new t(29,16,36,14,16,new g(24,new _(1,32))),new t(30,16,48,14,22,new g(28,new _(1,49)))]},t.VERSIONS=t.buildVersions(),t}(),w=y,A=r("f0a7"),E=function(){function t(e){var r=e.getHeight();if(r<8||r>144||0!==(1&r))throw new d["a"];this.version=t.readVersion(e),this.mappingBitMatrix=this.extractDataRegion(e),this.readMappingMatrix=new o["a"](this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}return t.prototype.getVersion=function(){return this.version},t.readVersion=function(t){var e=t.getHeight(),r=t.getWidth();return w.getVersionForDimensions(e,r)},t.prototype.readCodewords=function(){var t=new Int8Array(this.version.getTotalCodewords()),e=0,r=4,n=0,o=this.mappingBitMatrix.getHeight(),i=this.mappingBitMatrix.getWidth(),a=!1,s=!1,u=!1,f=!1;do{if(r!==o||0!==n||a)if(r!==o-2||0!==n||0===(3&i)||s)if(r!==o+4||2!==n||0!==(7&i)||u)if(r!==o-2||0!==n||4!==(7&i)||f){do{r<o&&n>=0&&!this.readMappingMatrix.get(n,r)&&(t[e++]=255&this.readUtah(r,n,o,i)),r-=2,n+=2}while(r>=0&&n<i);r+=1,n+=3;do{r>=0&&n<i&&!this.readMappingMatrix.get(n,r)&&(t[e++]=255&this.readUtah(r,n,o,i)),r+=2,n-=2}while(r<o&&n>=0);r+=3,n+=1}else t[e++]=255&this.readCorner4(o,i),r-=2,n+=2,f=!0;else t[e++]=255&this.readCorner3(o,i),r-=2,n+=2,u=!0;else t[e++]=255&this.readCorner2(o,i),r-=2,n+=2,s=!0;else t[e++]=255&this.readCorner1(o,i),r-=2,n+=2,a=!0}while(r<o||n<i);if(e!==this.version.getTotalCodewords())throw new d["a"];return t},t.prototype.readModule=function(t,e,r,n){return t<0&&(t+=r,e+=4-(r+4&7)),e<0&&(e+=n,t+=4-(n+4&7)),this.readMappingMatrix.set(e,t),this.mappingBitMatrix.get(e,t)},t.prototype.readUtah=function(t,e,r,n){var o=0;return this.readModule(t-2,e-2,r,n)&&(o|=1),o<<=1,this.readModule(t-2,e-1,r,n)&&(o|=1),o<<=1,this.readModule(t-1,e-2,r,n)&&(o|=1),o<<=1,this.readModule(t-1,e-1,r,n)&&(o|=1),o<<=1,this.readModule(t-1,e,r,n)&&(o|=1),o<<=1,this.readModule(t,e-2,r,n)&&(o|=1),o<<=1,this.readModule(t,e-1,r,n)&&(o|=1),o<<=1,this.readModule(t,e,r,n)&&(o|=1),o},t.prototype.readCorner1=function(t,e){var r=0;return this.readModule(t-1,0,t,e)&&(r|=1),r<<=1,this.readModule(t-1,1,t,e)&&(r|=1),r<<=1,this.readModule(t-1,2,t,e)&&(r|=1),r<<=1,this.readModule(0,e-2,t,e)&&(r|=1),r<<=1,this.readModule(0,e-1,t,e)&&(r|=1),r<<=1,this.readModule(1,e-1,t,e)&&(r|=1),r<<=1,this.readModule(2,e-1,t,e)&&(r|=1),r<<=1,this.readModule(3,e-1,t,e)&&(r|=1),r},t.prototype.readCorner2=function(t,e){var r=0;return this.readModule(t-3,0,t,e)&&(r|=1),r<<=1,this.readModule(t-2,0,t,e)&&(r|=1),r<<=1,this.readModule(t-1,0,t,e)&&(r|=1),r<<=1,this.readModule(0,e-4,t,e)&&(r|=1),r<<=1,this.readModule(0,e-3,t,e)&&(r|=1),r<<=1,this.readModule(0,e-2,t,e)&&(r|=1),r<<=1,this.readModule(0,e-1,t,e)&&(r|=1),r<<=1,this.readModule(1,e-1,t,e)&&(r|=1),r},t.prototype.readCorner3=function(t,e){var r=0;return this.readModule(t-1,0,t,e)&&(r|=1),r<<=1,this.readModule(t-1,e-1,t,e)&&(r|=1),r<<=1,this.readModule(0,e-3,t,e)&&(r|=1),r<<=1,this.readModule(0,e-2,t,e)&&(r|=1),r<<=1,this.readModule(0,e-1,t,e)&&(r|=1),r<<=1,this.readModule(1,e-3,t,e)&&(r|=1),r<<=1,this.readModule(1,e-2,t,e)&&(r|=1),r<<=1,this.readModule(1,e-1,t,e)&&(r|=1),r},t.prototype.readCorner4=function(t,e){var r=0;return this.readModule(t-3,0,t,e)&&(r|=1),r<<=1,this.readModule(t-2,0,t,e)&&(r|=1),r<<=1,this.readModule(t-1,0,t,e)&&(r|=1),r<<=1,this.readModule(0,e-2,t,e)&&(r|=1),r<<=1,this.readModule(0,e-1,t,e)&&(r|=1),r<<=1,this.readModule(1,e-1,t,e)&&(r|=1),r<<=1,this.readModule(2,e-1,t,e)&&(r|=1),r<<=1,this.readModule(3,e-1,t,e)&&(r|=1),r},t.prototype.extractDataRegion=function(t){var e=this.version.getSymbolSizeRows(),r=this.version.getSymbolSizeColumns();if(t.getHeight()!==e)throw new A["a"]("Dimension of bitMatrix must match the version size");for(var n=this.version.getDataRegionSizeRows(),i=this.version.getDataRegionSizeColumns(),a=e/n|0,s=r/i|0,u=a*n,f=s*i,c=new o["a"](f,u),h=0;h<a;++h)for(var l=h*n,d=0;d<s;++d)for(var p=d*i,g=0;g<n;++g)for(var _=h*(n+2)+1+g,y=l+g,w=0;w<i;++w){var E=d*(i+2)+1+w;if(t.get(E,_)){var v=p+w;c.set(v,y)}}return c},t}(),v=E,I=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},S=function(){function t(t,e){this.numDataCodewords=t,this.codewords=e}return t.getDataBlocks=function(e,r){var n,o,i,a,s=r.getECBlocks(),u=0,f=s.getECBlocks();try{for(var c=I(f),h=c.next();!h.done;h=c.next()){var l=h.value;u+=l.getCount()}}catch(P){n={error:P}}finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}var d=new Array(u),p=0;try{for(var g=I(f),_=g.next();!_.done;_=g.next()){l=_.value;for(var y=0;y<l.getCount();y++){var w=l.getDataCodewords(),E=s.getECCodewords()+w;d[p++]=new t(w,new Uint8Array(E))}}}catch(B){i={error:B}}finally{try{_&&!_.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}var v=d[0].codewords.length,S=v-s.getECCodewords(),C=S-1,m=0;for(y=0;y<C;y++)for(var T=0;T<p;T++)d[T].codewords[y]=e[m++];var N=24===r.getVersionNumber(),O=N?8:p;for(T=0;T<O;T++)d[T].codewords[S-1]=e[m++];var R=d[0].codewords.length;for(y=S;y<R;y++)for(T=0;T<p;T++){var D=N?(T+8)%p:T,b=N&&D>7?y-1:y;d[D].codewords[b]=e[m++]}if(m!==e.length)throw new A["a"];return d},t.prototype.getNumDataCodewords=function(){return this.numDataCodewords},t.prototype.getCodewords=function(){return this.codewords},t}(),C=S,m=r("acf3"),T=function(t){var e="function"===typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},N=function(){function t(){this.rsDecoder=new l["a"](h["a"].DATA_MATRIX_FIELD_256)}return t.prototype.decode=function(t){var e,r,n=new v(t),o=n.getVersion(),i=n.readCodewords(),a=C.getDataBlocks(i,o),s=0;try{for(var u=T(a),f=u.next();!f.done;f=u.next()){var c=f.value;s+=c.getNumDataCodewords()}}catch(w){e={error:w}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}for(var h=new Uint8Array(s),l=a.length,d=0;d<l;d++){var p=a[d],g=p.getCodewords(),_=p.getNumDataCodewords();this.correctErrors(g,_);for(var y=0;y<_;y++)h[y*l+d]=g[y]}return m["a"].decode(h)},t.prototype.correctErrors=function(t,e){var r=new Int32Array(t);try{this.rsDecoder.decode(r,t.length-e)}catch(o){throw new c["a"]}for(var n=0;n<e;n++)t[n]=r[n]},t}(),O=N,R=r("7f3b"),D=r("7a37"),b=r("be40"),P=r("8c95"),B=function(){function t(t){this.image=t,this.rectangleDetector=new R["a"](this.image)}return t.prototype.detect=function(){var e=this.rectangleDetector.detect(),r=this.detectSolid1(e);if(r=this.detectSolid2(r),r[3]=this.correctTopRight(r),!r[3])throw new a["a"];r=this.shiftToModuleCenter(r);var n=r[0],o=r[1],i=r[2],s=r[3],u=this.transitionsBetween(n,s)+1,f=this.transitionsBetween(i,s)+1;1===(1&u)&&(u+=1),1===(1&f)&&(f+=1),4*u<7*f&&4*f<7*u&&(u=f=Math.max(u,f));var c=t.sampleGrid(this.image,n,o,i,s,u,f);return new D["a"](c,[n,o,i,s])},t.shiftPoint=function(t,e,r){var n=(e.getX()-t.getX())/(r+1),o=(e.getY()-t.getY())/(r+1);return new P["a"](t.getX()+n,t.getY()+o)},t.moveAway=function(t,e,r){var n=t.getX(),o=t.getY();return n<e?n-=1:n+=1,o<r?o-=1:o+=1,new P["a"](n,o)},t.prototype.detectSolid1=function(t){var e=t[0],r=t[1],n=t[3],o=t[2],i=this.transitionsBetween(e,r),a=this.transitionsBetween(r,n),s=this.transitionsBetween(n,o),u=this.transitionsBetween(o,e),f=i,c=[o,e,r,n];return f>a&&(f=a,c[0]=e,c[1]=r,c[2]=n,c[3]=o),f>s&&(f=s,c[0]=r,c[1]=n,c[2]=o,c[3]=e),f>u&&(c[0]=n,c[1]=o,c[2]=e,c[3]=r),c},t.prototype.detectSolid2=function(e){var r=e[0],n=e[1],o=e[2],i=e[3],a=this.transitionsBetween(r,i),s=t.shiftPoint(n,o,4*(a+1)),u=t.shiftPoint(o,n,4*(a+1)),f=this.transitionsBetween(s,r),c=this.transitionsBetween(u,i);return f<c?(e[0]=r,e[1]=n,e[2]=o,e[3]=i):(e[0]=n,e[1]=o,e[2]=i,e[3]=r),e},t.prototype.correctTopRight=function(e){var r=e[0],n=e[1],o=e[2],i=e[3],a=this.transitionsBetween(r,i),s=this.transitionsBetween(n,i),u=t.shiftPoint(r,n,4*(s+1)),f=t.shiftPoint(o,n,4*(a+1));a=this.transitionsBetween(u,i),s=this.transitionsBetween(f,i);var c=new P["a"](i.getX()+(o.getX()-n.getX())/(a+1),i.getY()+(o.getY()-n.getY())/(a+1)),h=new P["a"](i.getX()+(r.getX()-n.getX())/(s+1),i.getY()+(r.getY()-n.getY())/(s+1));if(!this.isValid(c))return this.isValid(h)?h:null;if(!this.isValid(h))return c;var l=this.transitionsBetween(u,c)+this.transitionsBetween(f,c),d=this.transitionsBetween(u,h)+this.transitionsBetween(f,h);return l>d?c:h},t.prototype.shiftToModuleCenter=function(e){var r=e[0],n=e[1],o=e[2],i=e[3],a=this.transitionsBetween(r,i)+1,s=this.transitionsBetween(o,i)+1,u=t.shiftPoint(r,n,4*s),f=t.shiftPoint(o,n,4*a);a=this.transitionsBetween(u,i)+1,s=this.transitionsBetween(f,i)+1,1===(1&a)&&(a+=1),1===(1&s)&&(s+=1);var c,h,l=(r.getX()+n.getX()+o.getX()+i.getX())/4,d=(r.getY()+n.getY()+o.getY()+i.getY())/4;return r=t.moveAway(r,l,d),n=t.moveAway(n,l,d),o=t.moveAway(o,l,d),i=t.moveAway(i,l,d),u=t.shiftPoint(r,n,4*s),u=t.shiftPoint(u,i,4*a),c=t.shiftPoint(n,r,4*s),c=t.shiftPoint(c,o,4*a),f=t.shiftPoint(o,i,4*s),f=t.shiftPoint(f,n,4*a),h=t.shiftPoint(i,o,4*s),h=t.shiftPoint(h,r,4*a),[u,c,f,h]},t.prototype.isValid=function(t){return t.getX()>=0&&t.getX()<this.image.getWidth()&&t.getY()>0&&t.getY()<this.image.getHeight()},t.sampleGrid=function(t,e,r,n,o,i,a){var s=b["a"].getInstance();return s.sampleGrid(t,i,a,.5,.5,i-.5,.5,i-.5,a-.5,.5,a-.5,e.getX(),e.getY(),o.getX(),o.getY(),n.getX(),n.getY(),r.getX(),r.getY())},t.prototype.transitionsBetween=function(t,e){var r=Math.trunc(t.getX()),n=Math.trunc(t.getY()),o=Math.trunc(e.getX()),i=Math.trunc(e.getY()),a=Math.abs(i-n)>Math.abs(o-r);if(a){var s=r;r=n,n=s,s=o,o=i,i=s}for(var u=Math.abs(o-r),f=Math.abs(i-n),c=-u/2,h=n<i?1:-1,l=r<o?1:-1,d=0,p=this.image.get(a?n:r,a?r:n),g=r,_=n;g!==o;g+=l){var y=this.image.get(a?_:g,a?g:_);if(y!==p&&(d++,p=y),c+=f,c>0){if(_===i)break;_+=h,c-=u}}return d},t}(),F=B,M=function(){function t(){this.decoder=new O}return t.prototype.decode=function(e,r){var o,a;if(void 0===r&&(r=null),null!=r&&r.has(i["a"].PURE_BARCODE)){var c=t.extractPureBits(e.getBlackMatrix());o=this.decoder.decode(c),a=t.NO_POINTS}else{var h=new F(e.getBlackMatrix()).detect();o=this.decoder.decode(h.getBits()),a=h.getPoints()}var l=o.getRawBytes(),d=new s["a"](o.getText(),l,8*l.length,a,n["a"].DATA_MATRIX,f["a"].currentTimeMillis()),p=o.getByteSegments();null!=p&&d.putMetadata(u["a"].BYTE_SEGMENTS,p);var g=o.getECLevel();return null!=g&&d.putMetadata(u["a"].ERROR_CORRECTION_LEVEL,g),d},t.prototype.reset=function(){},t.extractPureBits=function(t){var e=t.getTopLeftOnBit(),r=t.getBottomRightOnBit();if(null==e||null==r)throw new a["a"];var n=this.moduleSize(e,t),i=e[1],s=r[1],u=e[0],f=r[0],c=(f-u+1)/n,h=(s-i+1)/n;if(c<=0||h<=0)throw new a["a"];var l=n/2;i+=l,u+=l;for(var d=new o["a"](c,h),p=0;p<h;p++)for(var g=i+p*n,_=0;_<c;_++)t.get(u+_*n,g)&&d.set(_,p);return d},t.moduleSize=function(t,e){var r=e.getWidth(),n=t[0],o=t[1];while(n<r&&e.get(n,o))n++;if(n===r)throw new a["a"];var i=n-t[0];if(0===i)throw new a["a"];return i},t.NO_POINTS=[],t}();e["a"]=M},f6ed:function(t,e,r){"use strict";var n=r("f0a7"),o=function(){function t(){}return t.prototype.exp=function(t){return this.expTable[t]},t.prototype.log=function(t){if(0===t)throw new n["a"];return this.logTable[t]},t.addOrSubtract=function(t,e){return t^e},t}();e["a"]=o},f823:function(t,e,r){"use strict";var n=r("fe96"),o=r("67f0"),i=r("78c7"),a=function(){function t(){}return t.castAsNonUtf8Char=function(t,e){void 0===e&&(e=null);var r=e?e.getName():this.ISO88591;return i["a"].decode(new Uint8Array([t]),r)},t.guessEncoding=function(e,r){if(null!==r&&void 0!==r&&void 0!==r.get(n["a"].CHARACTER_SET))return r.get(n["a"].CHARACTER_SET).toString();for(var o=e.length,i=!0,a=!0,s=!0,u=0,f=0,c=0,h=0,l=0,d=0,p=0,g=0,_=0,y=0,w=0,A=e.length>3&&239===e[0]&&187===e[1]&&191===e[2],E=0;E<o&&(i||a||s);E++){var v=255&e[E];s&&(u>0?0===(128&v)?s=!1:u--:0!==(128&v)&&(0===(64&v)?s=!1:(u++,0===(32&v)?f++:(u++,0===(16&v)?c++:(u++,0===(8&v)?h++:s=!1))))),i&&(v>127&&v<160?i=!1:v>159&&(v<192||215===v||247===v)&&w++),a&&(l>0?v<64||127===v||v>252?a=!1:l--:128===v||160===v||v>239?a=!1:v>160&&v<224?(d++,g=0,p++,p>_&&(_=p)):v>127?(l++,p=0,g++,g>y&&(y=g)):(p=0,g=0))}return s&&u>0&&(s=!1),a&&l>0&&(a=!1),s&&(A||f+c+h>0)?t.UTF8:a&&(t.ASSUME_SHIFT_JIS||_>=3||y>=3)?t.SHIFT_JIS:i&&a?2===_&&2===d||10*w>=o?t.SHIFT_JIS:t.ISO88591:i?t.ISO88591:a?t.SHIFT_JIS:s?t.UTF8:t.PLATFORM_DEFAULT_ENCODING},t.format=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=-1;function o(t,r,o,i,a,s){if("%%"===t)return"%";if(void 0!==e[++n]){t=i?parseInt(i.substr(1)):void 0;var u,f=a?parseInt(a.substr(1)):void 0;switch(s){case"s":u=e[n];break;case"c":u=e[n][0];break;case"f":u=parseFloat(e[n]).toFixed(t);break;case"p":u=parseFloat(e[n]).toPrecision(t);break;case"e":u=parseFloat(e[n]).toExponential(t);break;case"x":u=parseInt(e[n]).toString(f||16);break;case"d":u=parseFloat(parseInt(e[n],f||10).toPrecision(t)).toFixed(0);break}u="object"===typeof u?JSON.stringify(u):(+u).toString(f);var c=parseInt(o),h=o&&o[0]+""==="0"?"0":" ";while(u.length<c)u=void 0!==r?u+h:h+u;return u}}var i=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return t.replace(i,o)},t.getBytes=function(t,e){return i["a"].encode(t,e)},t.getCharCode=function(t,e){return void 0===e&&(e=0),t.charCodeAt(e)},t.getCharAt=function(t){return String.fromCharCode(t)},t.SHIFT_JIS=o["a"].SJIS.getName(),t.GB2312="GB2312",t.ISO88591=o["a"].ISO8859_1.getName(),t.EUC_JP="EUC_JP",t.UTF8=o["a"].UTF8.getName(),t.PLATFORM_DEFAULT_ENCODING=t.UTF8,t.ASSUME_SHIFT_JIS=!1,t}();e["a"]=a},fb63:function(t,e,r){"use strict";var n=function(){function t(){}return t.round=function(t){return NaN===t?0:t<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:t>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t+(t<0?-.5:.5)|0},t.distance=function(t,e,r,n){var o=t-r,i=e-n;return Math.sqrt(o*o+i*i)},t.sum=function(t){for(var e=0,r=0,n=t.length;r!==n;r++){var o=t[r];e+=o}return e},t}();e["a"]=n}}]);
|
|
2
|
-
//# sourceMappingURL=super-ui.umd.min.yarn.zxing~3446ce64.js.map
|