aicfe-answer-card 0.2.6 → 0.2.8

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/card.js CHANGED
@@ -1,6 +1,6 @@
1
1
  module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s="4089")}({"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),a={};a[i]="z",t.exports="[object z]"===String(a)},"0366":function(t,e,n){var r=n("4625"),i=n("59ed"),a=n("40d5"),o=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:a?o(t,e):function(){return t.apply(e,arguments)}}},"04f8":function(t,e,n){var r=n("2d00"),i=n("d039"),a=n("da84"),o=a.String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"06cf":function(t,e,n){var r=n("83ab"),i=n("c65b"),a=n("d1e7"),o=n("5c6c"),s=n("fc6a"),c=n("a04b"),u=n("1a2d"),l=n("0cfb"),h=Object.getOwnPropertyDescriptor;e.f=r?h:function(t,e){if(t=s(t),e=c(e),l)try{return h(t,e)}catch(n){}if(u(t,e))return o(!i(a.f,t,e),t[e])}},"07fa":function(t,e,n){var r=n("50c4");t.exports=function(t){return r(t.length)}},"0b83":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-end-mark-box",class:"mark-".concat(t.type)},[t._v(" "+t._s(t.title)+"请在框中画 ✓"),e("div",{staticClass:"check-box"})])},i=[],a={name:"AcEndMarkBox",props:{title:{type:String,default:""},type:{type:String,default:""}}},o=a,s=n("2877"),c=Object(s["a"])(o,r,i,!1,null,null,null),u=c.exports;u.install=function(t){t.component(u.name,u)};e["default"]=u},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),a=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(t,e,n){var r=n("e330"),i=Error,a=r("".replace),o=function(t){return String(i(t).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(o);t.exports=function(t,e){if(c&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=a(t,s,"");return t}},"0d51":function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},"13d2":function(t,e,n){var r=n("e330"),i=n("d039"),a=n("1626"),o=n("1a2d"),s=n("83ab"),c=n("5e77").CONFIGURABLE,u=n("8925"),l=n("69f3"),h=l.enforce,d=l.get,f=String,p=Object.defineProperty,g=r("".slice),m=r("".replace),y=r([].join),v=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),_=String(String).split("String"),b=t.exports=function(t,e,n){"Symbol("===g(f(e),0,7)&&(e="["+m(f(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||c&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),v&&n&&o(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=h(t);return o(r,"source")||(r.source=y(_,"string"==typeof e?e:"")),t};Function.prototype.toString=b((function(){return a(this)&&d(this).source||u(this)}),"toString")},"13d5":function(t,e,n){"use strict";var r=n("23e7"),i=n("d58f").left,a=n("a640"),o=n("2d00"),s=n("605d"),c=!s&&o>79&&o<83,u=c||!a("reduce");r({target:"Array",proto:!0,forced:u},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},"13ed":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"mark-point"},[e("div",{staticClass:"mark-point__top-left",style:3===t.layout&&{top:"20px",left:"20px"},attrs:{"data-export_name":"左上标志点","data-scan-type":"absolute"}},[e("div",{staticClass:"mark-point__box"},t._l(t.pageShiftBinary,(function(t,n){return e("div",{staticClass:"mark-point__group"},[e("div",{key:n,class:[Number(t)?"mark-point__half":"mark-point__full"]})])})),0)]),e("div",{staticClass:"mark-point__top-right",style:3===t.layout&&{top:"20px",right:"20px"},attrs:{"data-export_name":"右上标志点","data-scan-type":"absolute"}},[e("div",{staticClass:"mark-point__box"},t._l(t.pageShiftBinary,(function(t,n){return e("div",{staticClass:"mark-point__group"},[e("div",{key:n,class:[Number(t)?"mark-point__half":"mark-point__full"]})])})),0)]),e("div",{staticClass:"mark-point__bottom-left",style:3===t.layout&&{bottom:"20px",left:"20px"},attrs:{"data-export_name":"左下标志点","data-scan-type":"absolute"}},[e("div",{staticClass:"mark-point__box"},t._l(t.pageShiftBinary,(function(t,n){return e("div",{staticClass:"mark-point__group"},[e("div",{key:n,class:[Number(t)?"mark-point__half":"mark-point__full"]})])})),0)]),e("div",{staticClass:"mark-point__bottom-center",style:3===t.layout&&{bottom:"20px"},attrs:{"data-export_name":"底部中心标志点_".concat(t.pageIndex),"data-scan-type":"absolute"}},[e("div",{staticClass:"mark-point__full"})]),e("div",{staticClass:"mark-point__bottom-right",style:3===t.layout&&{bottom:"20px",right:"20px"},attrs:{"data-export_name":"右下标志点","data-scan-type":"absolute"}},[e("div",{staticClass:"mark-point__box"},t._l(t.pageShiftBinary,(function(t,n){return e("div",{staticClass:"mark-point__group"},[e("div",{key:n,class:[Number(t)?"mark-point__half":"mark-point__full"]})])})),0)]),1===t.layout?e("div",{staticClass:"mark-point__top-center__one mark-point__full",attrs:{"data-export_name":"顶部中心标志点_".concat(t.pageIndex,"_0"),"data-scan-type":"absolute"}}):t._e(),2===t.layout?e("div",[e("div",{staticClass:"mark-point__center-left__two mark-point__full",attrs:{"data-export_name":"顶部中心标志点_".concat(t.pageIndex,"_0"),"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-right__two mark-point__full",attrs:{"data-export_name":"顶部中心标志点_".concat(t.pageIndex,"_1"),"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-zero mark-point__full",attrs:{"data-export_name":"分栏中心标志点_".concat(t.pageIndex,"_0"),"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center mark-point__full",attrs:{"data-export_name":"分栏中心标志点_".concat(t.pageIndex,"_1"),"data-scan-type":"absolute"}})]):t._e(),3===t.layout?e("div",[e("div",{staticClass:"mark-point__center-left__three mark-point__full",attrs:{"data-export_name":"顶部中心标志点_".concat(t.pageIndex,"_0"),"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-right__three mark-point__full",attrs:{"data-export_name":"顶部中心标志点_".concat(t.pageIndex,"_1"),"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-center__three mark-point__full",attrs:{"data-export_name":"顶部中心标志点_".concat(t.pageIndex,"_2"),"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-three__zero mark-point__full",attrs:{"data-export_name":"分栏中心标志点_".concat(t.pageIndex,"_0"),"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-three__left mark-point__full",attrs:{"data-export_name":"分栏中心标志点_".concat(t.pageIndex,"_1"),"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-three__right mark-point__full",attrs:{"data-export_name":"分栏中心标志点_".concat(t.pageIndex,"_2"),"data-scan-type":"absolute"}})]):t._e(),e("div",{staticClass:"mark-point__left-one mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__left-two mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__right-one mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__right-two mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}}),2===t.layout?e("div",[e("div",{staticClass:"mark-point__center-one mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-two mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}})]):t._e(),3===t.layout?e("div",[e("div",{staticClass:"mark-point__center-left_one mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-left_two mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-right_one mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}}),e("div",{staticClass:"mark-point__center-right_two mark-point__pencil",style:t.positionStyle,attrs:{"data-scan-type":"absolute"}})]):t._e()])},i=[],a={name:"AcMarkPoint",props:{pageIndex:{type:Number}},computed:{pageShiftBinary:function(){var t=this.pageIndex.toString(2).padStart(4,"0");return t.split("")},layout:function(){return this.$store.getters["AC/layout"]},positionStyle:function(){var t={"--coords":3===this.layout?"20px":"30px"};return t}}},o=a,s=n("2877"),c=Object(s["a"])(o,r,i,!1,null,null,null),u=c.exports;u.install=function(t){t.component(u.name,u)};e["default"]=u},"14d9":function(t,e,n){"use strict";var r=n("23e7"),i=n("7b0b"),a=n("07fa"),o=n("3a34"),s=n("3511"),c=n("d039"),u=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},h=u||!l();r({target:"Array",proto:!0,arity:1,forced:h},{push:function(t){var e=i(this),n=a(e),r=arguments.length;s(n+r);for(var c=0;c<r;c++)e[n]=arguments[c],n++;return o(e,n),n}})},1626:function(t,e,n){var r=n("8ea1"),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},"182d":function(t,e,n){var r=n("f8cd"),i=RangeError;t.exports=function(t,e){var n=r(t);if(n%e)throw i("Wrong offset");return n}},"19aa":function(t,e,n){var r=n("3a9b"),i=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw i("Incorrect invocation")}},"1a2d":function(t,e,n){var r=n("e330"),i=n("7b0b"),a=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(i(t),e)}},"1d02":function(t,e,n){"use strict";var r=n("ebb5"),i=n("a258").findLastIndex,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("findLastIndex",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},"1d80":function(t,e,n){var r=n("7234"),i=TypeError;t.exports=function(t){if(r(t))throw i("Can't call method on "+t);return t}},"1fb5":function(t,e,n){"use strict";e.byteLength=l,e.toByteArray=d,e.fromByteArray=g;for(var r=[],i=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=o.length;s<c;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function l(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function h(t,e,n){return 3*(e+n)/4-n}function d(t){var e,n,r=u(t),o=r[0],s=r[1],c=new a(h(t,o,s)),l=0,d=s>0?o-4:o;for(n=0;n<d;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,c[l++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e),c}function f(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function p(t,e,n){for(var r,i=[],a=e;a<n;a+=3)r=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),i.push(f(r));return i.join("")}function g(t){for(var e,n=t.length,i=n%3,a=[],o=16383,s=0,c=n-i;s<c;s+=o)a.push(p(t,s,s+o>c?c:s+o));return 1===i?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"21a6":function(t,e,n){(function(n){var r,i,a;(function(n,o){i=[],r=o,a="function"===typeof r?r.apply(e,i):r,void 0===a||(t.exports=a)})(0,(function(){"use strict";function e(t,e){return"undefined"==typeof e?e={autoBom:!1}:"object"!=typeof e&&(e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function r(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){c(r.response,e,n)},r.onerror=function(){},r.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function a(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,n){var s=o.URL||o.webkitURL,c=document.createElement("a");e=e||t.name||"download",c.download=e,c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?a(c):i(c.href)?r(t,e,n):a(c,c.target="_blank")):(c.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(c.href)}),4e4),setTimeout((function(){a(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,o){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,o),n);else if(i(t))r(t,n,o);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){a(s)}))}}:function(t,e,n,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return r(t,e,n);var a="application/octet-stream"===t.type,c=/constructor/i.test(o.HTMLElement)||o.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&c||s)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},l.readAsDataURL(t)}else{var h=o.URL||o.webkitURL,d=h.createObjectURL(t);i?i.location=d:location.href=d,i=null,setTimeout((function(){h.revokeObjectURL(d)}),4e4)}});o.saveAs=c.saveAs=c,t.exports=c}))}).call(this,n("c8ba"))},"23cb":function(t,e,n){var r=n("5926"),i=Math.max,a=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):a(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,a=n("9112"),o=n("cb2d"),s=n("6374"),c=n("e893"),u=n("94ca");t.exports=function(t,e){var n,l,h,d,f,p,g=t.target,m=t.global,y=t.stat;if(l=m?r:y?r[g]||s(g,{}):(r[g]||{}).prototype,l)for(h in e){if(f=e[h],t.dontCallGetSet?(p=i(l,h),d=p&&p.value):d=l[h],n=u(m?h:g+(y?".":"#")+h,t.forced),!n&&void 0!==d){if(typeof f==typeof d)continue;c(f,d)}(t.sham||d&&d.sham)&&a(f,"sham",!0),o(l,h,f,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),a=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,a)}},2638:function(t,e,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e,n=1;n<arguments.length;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},r.apply(this,arguments)}var i=["attrs","props","domProps"],a=["class","style","directives"],o=["on","nativeOn"],s=function(t){return t.reduce((function(t,e){for(var n in e)if(t[n])if(-1!==i.indexOf(n))t[n]=r({},t[n],e[n]);else if(-1!==a.indexOf(n)){var s=t[n]instanceof Array?t[n]:[t[n]],u=e[n]instanceof Array?e[n]:[e[n]];t[n]=[].concat(s,u)}else if(-1!==o.indexOf(n))for(var l in e[n])if(t[n][l]){var h=t[n][l]instanceof Array?t[n][l]:[t[n][l]],d=e[n][l]instanceof Array?e[n][l]:[e[n][l]];t[n][l]=[].concat(h,d)}else t[n][l]=e[n][l];else if("hook"===n)for(var f in e[n])t[n][f]=t[n][f]?c(t[n][f],e[n][f]):e[n][f];else t[n]=e[n];else t[n]=e[n];return t}),{})},c=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=s},2834:function(t,e,n){"use strict";var r=n("ebb5"),i=n("e330"),a=n("59ed"),o=n("dfb9"),s=r.aTypedArray,c=r.getTypedArrayConstructor,u=r.exportTypedArrayMethod,l=i(r.TypedArrayPrototype.sort);u("toSorted",(function(t){void 0!==t&&a(t);var e=s(this),n=o(c(e),e);return l(n,t)}))},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,a,o,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},"2b16":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],style:{"--layout":t.layout},attrs:{visible:t.currentVisible,"custom-class":"ac-preview",top:"20px"},on:{"update:visible":function(e){t.currentVisible=e},opened:t.handleOpen,close:function(e){t.imgList=[]}}},[t._l(t.imgList,(function(t,n){return e("img",{key:n,staticClass:"ac-preview__item",attrs:{src:t}})})),t.imgList.length?e("i",{staticClass:"el-icon-circle-close",attrs:{slot:"footer"},on:{click:function(e){t.currentVisible=!1}},slot:"footer"}):t._e()],2)},i=[],a=n("5dcc"),o={name:"AcPreview",props:{visible:{type:Boolean,default:!1},selector:{type:String,required:!0}},computed:{currentVisible:{get:function(){return this.visible},set:function(t){this.$emit("update:visible",t)}},layout:function(){return this.$store.getters["AC/layout"]}},data:function(){return{imgList:[],loading:!1}},methods:{handleOpen:function(){var t=this,e=$(this.selector);e.length&&(this.loading=!0,Object(a["b"])(e).then((function(e){t.imgList=e,t.loading=!1})).catch((function(){t.loading=!1})))}}},s=o,c=n("2877"),u=Object(c["a"])(s,r,i,!1,null,null,null),l=u.exports;l.install=function(t){t.component(l.name,l)};e["default"]=l},"2ba4":function(t,e,n){var r=n("40d5"),i=Function.prototype,a=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},"2d00":function(t,e,n){var r,i,a=n("da84"),o=n("342f"),s=a.process,c=a.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(r=l.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(r=o.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},"342f":function(t,e){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3511:function(t,e){var n=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw n("Maximum allowed index exceeded");return t}},"3a34":function(t,e,n){"use strict";var r=n("83ab"),i=n("e8b5"),a=TypeError,o=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(i(t)&&!o(t,"length").writable)throw a("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a9b":function(t,e,n){var r=n("e330");t.exports=r({}.isPrototypeOf)},"3bbe":function(t,e,n){var r=n("1626"),i=String,a=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw a("Can't set "+i(t)+" as a prototype")}},"3c5d":function(t,e,n){"use strict";var r=n("da84"),i=n("c65b"),a=n("ebb5"),o=n("07fa"),s=n("182d"),c=n("7b0b"),u=n("d039"),l=r.RangeError,h=r.Int8Array,d=h&&h.prototype,f=d&&d.set,p=a.aTypedArray,g=a.exportTypedArrayMethod,m=!u((function(){var t=new Uint8ClampedArray(2);return i(f,t,{length:1,0:3},1),3!==t[1]})),y=m&&a.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var t=new h(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));g("set",(function(t){p(this);var e=s(arguments.length>1?arguments[1]:void 0,1),n=c(t);if(m)return i(f,this,n,e);var r=this.length,a=o(n),u=0;if(a+e>r)throw l("Wrong length");while(u<a)this[e+u]=n[u++]}),!m||y)},4089:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-card"},[e("div",{staticClass:"ac-card__left"},[e("div",{staticClass:"ac-card__content",style:{width:"".concat(1===t.layout?980:1960,"px")}},[t.paperTree.length?[1===t.acMode?e("ac-lattice",{ref:"latticeCard"}):e("ac-sweep",{ref:"sweepCard"})]:t._e()],2)]),t.showConfig?e("ac-answer-config",t._b({on:{download:t.download,save:t.save}},"ac-answer-config",t.config,!1)):t._e()],1)},i=[];function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t){if(Array.isArray(t))return a(t)}function s(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function c(t,e){if(t){if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}n("d9e2");function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(t){return o(t)||s(t)||c(t)||u()}var h=n("639e"),d=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-lattice"},[e("ac-virtual",{on:{change:t.setDomList}}),e("ac-panel",{attrs:{"dom-list":t.domList}})],1)},f=[],p=(n("14d9"),n("b7ef"),n("907a"),n("986a"),n("1d02"),n("3c5d"),n("6ce5"),n("2834"),n("4ea1"),n("a38e"));function g(t,e,n){return e=Object(p["a"])(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var v=n("53ca");function _(){
2
2
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
3
- _=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(O){c=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var a=e&&e.prototype instanceof d?e:d,o=Object.create(a.prototype),s=new E(i||[]);return r(o,"_invoke",{value:A(t,n,s)}),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(O){return{type:"throw",arg:O}}}t.wrap=u;var h={};function d(){}function f(){}function p(){}var g={};c(g,a,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(S([])));y&&y!==e&&n.call(y,a)&&(g=y);var b=p.prototype=d.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function i(r,a,o,s){var c=l(t[r],t,a);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==Object(v["a"])(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,o,s)}),(function(t){i("throw",t,o,s)})):e.resolve(h).then((function(t){u.value=t,o(u)}),(function(t){return i("throw",t,o,s)}))}s(c.arg)}var a;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function A(t,e,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return I()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=x(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function x(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:I}}function I(){return{value:void 0,done:!0}}return f.prototype=p,r(b,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:f,configurable:!0}),f.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(C.prototype),c(C.prototype,o,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise);var o=new C(u(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},w(b),c(b,s,"Generator"),c(b,a,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return o.type="throw",o.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function b(t,e,n,r,i,a,o){try{var s=t[a](o),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,i)}function w(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function o(t){b(a,r,i,o,s,"next",t)}function s(t){b(a,r,i,o,s,"throw",t)}o(void 0)}))}}var C=n("d4ec"),A=n("bee2"),x=n("4e0a"),k=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-question ck-content",attrs:{"data-key":t.dataKey}},[t.formatChoices.length||"hand"===t.readType?e("div",{staticClass:"ac-question__prefix"},[e("ac-answer-box",{attrs:{label:t.formatChoices.length?t.showQuestion?"答案":t.plainTitle:"得分",direction:t.formatChoices.length?"column":"row",width:t.formatChoices.length&&!t.showQuestion?144:128}})],1):t._e(),!t.formatChoices.length||t.showQuestion?e("div",{staticClass:"ac-question__content"},[t.formatTitle||t.formatPrefix?e("div",{staticClass:"ac-question__title",style:t.titleAlign?{"text-align":t.titleAlign}:""},[t.formatPrefix?e("div",{staticClass:"ac-question__title-prefix",class:{"is-float":!!t.formatTitle,"is-bold":t.showQuestion},domProps:{innerHTML:t._s(t.formatPrefix)}}):t._e(),t.formatTitle?e("div",{staticClass:"ac-question__title-inner",domProps:{innerHTML:t._s(t.formatTitle)}}):t._e()]):t._e(),t.formatChoices.length?e("ac-choice",{attrs:{list:t.formatChoices,wrap:t.choiceWrap}}):t._e()],1):t._e()])},T=[],E=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-choice"},[t.wrap?[e("div",{staticClass:"ac-choice__list"},t._l(t.list,(function(t,n){return e("ac-choice-item",{key:n,attrs:{identifier:t.identifier,content:t.content}})})),1),t.list.length%2?t._e():e("div",{staticClass:"ac-choice__list--half"},t._l(Array(t.list.length/2).fill(""),(function(n,r){return e("div",{key:r,staticClass:"row-direction"},t._l(t.list.slice(2*r,2*r+2),(function(t,n){return e("ac-choice-item",{key:n,attrs:{identifier:t.identifier,content:t.content}})})),1)})),0),e("div",{staticClass:"ac-choice__list--all"},[e("div",{staticClass:"row-direction"},t._l(t.list,(function(t,n){return e("ac-choice-item",{key:n,attrs:{identifier:t.identifier,content:t.content}})})),1)])]:e("div",{staticClass:"ac-choice__list--nowrap"},t._l(t.list,(function(t,n){return e("ac-choice-item",{key:n,attrs:{identifier:t.identifier,content:t.content}})})),1)],2)},S=[],I=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-choice__item"},[t.identifier?e("div",{staticClass:"ac-choice__prefix"},[t._v(t._s(t.identifier)+".")]):t._e(),t.content?e("div",{staticClass:"ac-choice__content",domProps:{innerHTML:t._s(t.content)}}):t._e()])},O=[],B={name:"AcChoiceItem",props:{identifier:{type:String,default:""},content:{type:String,default:""}}},L=B,P=n("2877"),R=Object(P["a"])(L,I,O,!1,null,null,null),j=R.exports,M={name:"AcChoice",components:{AcChoiceItem:j},props:{list:{type:Array,default:function(){return[]}},wrap:{type:Boolean,default:!0}}},z=M,N=Object(P["a"])(z,E,S,!1,null,null,null),D=N.exports,U=n("fbd7"),H={name:"AcQuestion",components:{AcChoice:D,AcAnswerBox:U["default"]},props:{title:{type:String,default:""},titleEditable:{type:Boolean,default:!0},titleAlign:{type:String,default:""},prefix:{type:String,default:""},prefixEditable:{type:Boolean,default:!1},choices:{type:Array,default:function(){return[]}},choiceEditable:{type:Boolean,default:!0},choiceWrap:{type:Boolean,default:!0},dataKey:{type:String,default:""},plainTitle:{type:String,default:""}},computed:{editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},formatTitle:function(){var t=this;return(this.editTitleList.find((function(e){return e.dataKey===t.dataKey}))||{}).title||(this.showQuestion?this.title:"")},formatPrefix:function(){return this.showQuestion?this.prefix:this.plainTitle},formatChoices:function(){var t=this;return(this.editTitleList.find((function(e){return e.dataKey===t.dataKey}))||{}).choices||this.choices||[]},readType:function(){return this.$store.getters["AC/readType"]},showQuestion:function(){return this.$store.getters["AC/showQuestion"]}}},F=H,K=Object(P["a"])(F,k,T,!1,null,null,null),W=K.exports;W.install=function(t){t.component(W.name,W)};var V,Y,Z=W,G=n("8f60"),Q=n("e6c4"),X=n("0b83"),q=function(){window.MathJax&&(window.MathJax.Hub.Config({showProcessingMessages:!1,messageStyle:"none",jax:["input/TeX","output/HTML-CSS"],tex2jax:{inlineMath:[["\\(","\\)"],["\\[","\\]"]],displayMath:[],skipTags:["script","noscript","style","textarea","pre"]},"HTML-CSS":{showMathMenu:!1}}),window.isAcMathJaxConfig=!0)},J=function(t){if(window.MathJax)return window.isAcMathJaxConfig||q(),new Promise((function(e){window.MathJax.Hub.Queue(["Typeset",window.MathJax.Hub,document.getElementById(t)]),window.MathJax.Hub.Queue((function(){e()}))}))},tt=n("5dcc"),et={name:"AcVirtual",components:{AcEssay:x["default"],AcQuestion:Z,AcAnswerBox:U["default"],AcGraffiti:G["default"],AcBasicInfo:Q["default"],AcEndMarkBox:X["default"]},data:function(){return{continueObjectiveCount:0}},computed:{editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},showQuestion:function(){return this.$store.getters["AC/showQuestion"]},readType:function(){return this.$store.getters["AC/readType"]},paperTree:function(){return this.$store.getters["AC/paperTree"]}},updated:function(){var t=this;this.handleLatex().then((function(){return t.getDomList()}))},mounted:function(){var t=this;this.handleLatex().then((function(){return t.getDomList()}))},methods:{handleLatex:function(){return J("math-virtual")||Promise.resolve()},getEditedTitle:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).title||""},getEditedKey:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).editKey||""},getEssayTitle:function(t,e){return(this.editEssayList.find((function(e){return e.dataKey===t}))||{}).title||e},splitDom:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="",r=0,i=0,a=[],o=[];if(t){if(t.childNodes.length){var s=t.childNodes[t.childNodes.length-1];t.childNodes.length>1&&(2!==t.childNodes.length||"\n"!==s.textContent)?o=t.childNodes:t.childNodes[0].childNodes.length&&"FIGURE"!==t.childNodes[0].nodeName&&(o=t.childNodes[0].childNodes)}o.length||(o=t.childNodes)}for(var c=0;c<o.length;c++){var u=o[c];if(-1===["P","DIV","IMG","FIGURE"].indexOf(u.nodeName))try{"#text"===u.nodeName?n+=u.textContent:n+=u.outerHTML}catch(g){}else{var l=getComputedStyle(u),h=Number(l.marginTop.replace("px",""))||0,d=Number(l.marginBottom.replace("px",""))||0,f=Object(tt["c"])(u);a.length&&(f-=i),n+=u.outerHTML,r+=f+$(u).outerHeight()+h+d,a.push({type:e,content:n,height:r}),n="",r=0,i=Object(tt["c"])(u)+$(u).outerHeight()+h+d}}if(n){var p=$(t).outerHeight();a.push({type:e,content:n,height:a.length?p-i:p})}return a},getDomList:function(){var t=this,e=function(e,n,i){var a={dataKey:i,children:[],updatePage:e.updatePage,updatePiece:e.updatePiece},o=null,s=0;if((e.title||e.prefix)&&(t.showQuestion||!e.choices)){var c=n.find(".ac-question__title")[0],u=n.find(".ac-question__title-inner")[0],l=n.find(".ac-question__title-prefix")[0],h=n.find(".ac-answer-box")[0],d=getComputedStyle(c),f=Number(d.paddingTop.replace("px",""))||0,p=Number(d.paddingBottom.replace("px",""))||0,g=[];if(u?(g=t.splitDom(u,"questionTitleItem"),g.length&&(h&&(s=$(h).outerHeight(),g[0].answerBoxHeight=s,g[0].needAnswerBox=!0,o=g[0]),g[0].prefix=(null===l||void 0===l?void 0:l.outerHTML)||"",g[0].height+=f,g[g.length-1].height+=p,g.forEach((function(t,n){t.hasChoice=e.choices&&e.choices.length,t.titleAlign=e.titleAlign,e.hideMoveUp&&(t.hideMoveUp=e.hideMoveUp),e.hideMoveDown&&(t.hideMoveDown=e.hideMoveDown)})))):l&&(g=[{type:"questionTitleItem",prefix:l.outerHTML,height:Math.max($(l).outerHeight()+f+p,h?$(h).outerHeight():0),content:"",needAnswerBox:!!h}]),g.length){var m={children:g};a.children.push(m)}}if(e.choices)if(t.showQuestion){var y={},v=n.find(".ac-choice")[0];if(!1===e.choiceWrap)Object.assign(y,{type:"choiceItem",height:$(v).outerHeight(),content:v.outerHTML});else{var _=$(v).outerWidth(),b=$(v).find(".ac-choice__list").outerWidth();if(_>=b*e.choices.length)Object.assign(y,{type:"choiceItem",height:$(v).find(".ac-choice__list--all").outerHeight(),content:$(v).find(".ac-choice__list--all")[0].outerHTML});else{y.children=[];var w=$(v).find(".ac-choice__list .ac-choice__item"),C="ac-choice__list";!(e.choices.length%2)&&_>=2*b&&(C="ac-choice__list--half",w=$(v).find(".ac-choice__list--half .row-direction")),Array.from(w).forEach((function(t){y.children.push({type:"choiceItem",height:$(t).outerHeight(),content:t.outerHTML,wrapperClass:C})}))}}a.children.push(y)}else{var A=n.find(".ac-answer-box")[0];a.children.push({type:"plainBox",boxContent:e.plainTitle,height:t.continueObjectiveCount%5===0?$(A).outerHeight():0}),t.continueObjectiveCount++}else t.continueObjectiveCount=0;if(o){var x=0,k=function t(e){e.forEach((function(e){e.children?t(e.children):x+=e.height}))};k(a.children),s-x>0&&(o.height+=s-x)}if(r.push(a),e.essay){var T={type:"essay",essay:Object.assign({rowCount:4},e.essay),dataKey:i};if(e.essay.title){var E=n.find(".ac-essay__title")[0];T.essay.titleChildren=t.splitDom(E)}r.push(T)}e.dimensions&&r.push({type:"dimension",dimensions:e.dimensions,dataKey:i})},n=function n(a){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];a.forEach((function(a,s){var c=[].concat(l(o),[a[a.idProp||"id"]||s]),u=i.find(".ac-virtual__section[data-key=".concat(c.join("_"),"]"));if(Array.isArray(a.children)&&a.children.length){t.continueObjectiveCount=0;var h=u.find(".ac-virtual__title")[0];if(h||"complex"===a.code){var d={};if("complex"===a.code){var f=u.find(".ac-material__title-prefix")[0],p=u.find(".ac-material__title-inner")[0],g=[];p?(g=t.splitDom(p,"materialItem"),g.length&&(g[0].prefix=(null===f||void 0===f?void 0:f.outerHTML)||"",g[0].height+=16,g[0].isEditMaterial=a.isEditMaterial)):f&&(g=[{type:"materialItem",prefix:f.outerHTML,height:$(f).outerHeight()+16,content:"",isEditMaterial:a.isEditMaterial}]),d={dataKey:c.join("_"),children:g}}else d={dataKey:c.join("_"),height:$(h).outerHeight(),content:h.innerHTML,updatePage:a.updatePage,updatePiece:a.updatePiece};r.push(d)}if(a.prefixMarker){var m=u.find(".ac-end-mark-box.mark-prefix")[0];r.push({dataKey:c.join("_"),height:$(m).outerHeight(),content:m.outerHTML,type:"prefixMarker"})}if(n(a.children,c),a.suffixMarker){var y=u.find(".ac-end-mark-box.mark-suffix")[0];r.push({dataKey:c.join("_"),height:$(y).outerHeight(),content:y.outerHTML,type:"suffixMarker"})}}else{if("graffiti"===t.readType){var v=u.find(".ac-graffiti__wrapper")[0];v&&r.push({type:"graffiti",dataKey:c.join("_"),height:$(v).outerHeight(),content:v.innerHTML})}e(a,u,c.join("_"))}}))},r=[],i=$(".ac-virtual"),a=i.find(".ac-basicInfo");if(a){var o=a.find(".ac-basicInfo__title"),s=a.find(".ac-attention"),c=a.find(".ac-basic-info__edu");r.push({type:"basicInfo",headHeight:null===o||void 0===o?void 0:o.outerHeight(),attentionHeight:null===s||void 0===s?void 0:s.outerHeight(),eduHeight:null===c||void 0===c?void 0:c.outerHeight()})}n(this.paperTree),this.$emit("change",r)},getTitle:function(t,e){var n=this.$createElement,r=t.title,i=t.prefix,a=t.plainTitle,o=t.code,s=this.editTitleList.find((function(t){return t.dataKey===e})),c=s||{},u=c.title,l=c.editKey,h=s?u:this.showQuestion||"complex"!==o?r:"",d=this.showQuestion?i:a;return h||d?n("div",{class:"ac-".concat("complex"===o?"material":"virtual","__title")},[d?n("div",{class:"ac-".concat("complex"===o?"material":"virtual","__title-prefix").concat(this.showQuestion?" is-bold":"").concat(h?" is-float":"")},[d]):null,h?n("div",{key:"virtual_title_".concat(l),class:"ac-".concat("complex"===o?"material":"virtual","__title-inner ck-content"),domProps:{innerHTML:h}}):null]):null},getList:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=this.$createElement,i=t.map((function(t,i){var a=[].concat(l(n),[t[t.idProp||"id"]||i]);return r("div",{key:"".concat(i,"_").concat(t[t.idProp||"id"]||""),class:"ac-virtual__section",attrs:{"data-key":a.join("_")}},[Array.isArray(t.children)&&t.children.length?r("div",[e.getTitle(t,a.join("_")),t.prefixMarker?r("ac-end-mark-box",{attrs:{type:"prefix",title:t.prefixMarker.title}}):null,e.getList(t.children,a),t.suffixMarker?r("ac-end-mark-box",{attrs:{type:"suffix",title:t.suffixMarker.title}}):null]):r("div",["graffiti"!==e.readType||t.choices?null:r("ac-graffiti",{attrs:{scanName:t.scanName,score:t.score}}),r("ac-question",{key:"virtual_question_".concat(e.getEditedKey(a.join("_"))),props:y({},Object.assign({dataKey:a.join("_")},t))}),t.essay?r("ac-essay",{props:y({},Object.assign(t.essay,{title:e.getEssayTitle(a.join("_"),t.essay.title)}))}):null])])}));return i}},render:function(){var t=arguments[0];return t("div",{class:"ac-virtual",attrs:{id:"math-virtual"},key:"virtual_"+this.readType},[t("ac-basic-info"),this.getList(this.paperTree)])}},nt=et,rt=Object(P["a"])(nt,V,Y,!1,null,null,null),it=rt.exports;it.install=function(t){t.component(it.name,it)};var at=it,ot=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-panel"},[t._l(t.formatPanelList,(function(n,r){return e("div",{key:r,staticClass:"ac-panel__item"},[e("div",{staticClass:"ac-piece__wrapper",style:{width:1===t.layout?"980px":"1960px"},attrs:{"data-page":r+1}},[t._l(n,(function(n,i){return e("ac-piece",{key:i,attrs:{"data-piece":r*t.layout+i,"data-page":r,list:n},on:{edit:t.handleEdit}})})),t.layout-n.length?e("div",{staticClass:"ac-piece"},[e("ac-restrict")],1):t._e(),"graffiti"===t.readType||t.scanSheet?e("ac-mark-point",{attrs:{"page-index":r}}):t._e(),e("div",{staticClass:"ac-piece__footer"},[t._v(" "+t._s("第".concat(r+1,"页,共").concat(t.formatPanelList.length,"页"))+" ")])],2)])})),e("ac-editor",{attrs:{visible:t.visible,content:t.editing.content||"",title:t.editorTitle},on:{"update:visible":function(e){t.visible=e},submit:t.handleSubmit}})],2)},st=[],ct=(n("13d5"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-dimension",attrs:{"data-key":t.dataKey,"data-dimension-index":t.dimensionIndex}},[e("ul",{staticClass:"ac-dimension__inner"},[e("li",{staticClass:"ac-dimension__item"},[t._v(" "+t._s("body"===t.type?t.dimension:"")+" ")]),e("li",{staticClass:"ac-dimension__item"},["header"===t.type?e("span",[t._v("自我评价")]):e("ul",{staticClass:"dimension-stars"},t._l(5,(function(t){return e("i",{key:t,staticClass:"el-icon-star-off"})})),0)]),e("li",{staticClass:"ac-dimension__item"},["header"===t.type?e("span",[t._v("同伴评价")]):e("ul",{staticClass:"dimension-stars"},t._l(5,(function(t){return e("i",{key:t,staticClass:"el-icon-star-off"})})),0)])])])}),ut=[],lt={name:"AcDimension",props:{dimension:{type:String,default:""},type:{type:String,default:"body"},dataKey:{type:String,default:""},dimensionIndex:{type:Number,default:0}}},ht=lt,dt=Object(P["a"])(ht,ct,ut,!1,null,null,null),ft=dt.exports;ft.install=function(t){t.component(ft.name,ft)};var pt,gt,mt=ft,yt={bind:function(t,e){t._handleMouseEnter=function(){return e.value(!0)},t._handleMouseLeave=function(){return e.value(!1)},t.addEventListener("mouseenter",t._handleMouseEnter),t.addEventListener("mouseleave",t._handleMouseLeave)},unbind:function(t){t.removeEventListener("mouseenter",t._handleMouseEnter),t.removeEventListener("mouseleave",t._handleMouseLeave)}},vt={Hover:yt},_t={name:"AcPiece",components:{AcEssay:x["default"],AcAnswerBox:U["default"],AcBasicInfo:Q["default"],AcDimension:mt},props:{list:{type:Array,default:function(){return[]}}},inject:["contentEditable","paddingBlock","movable","deletable","editType","editCallback","deleteCallback","moveCallback","lineCallback"],directives:{hover:vt.Hover},data:function(){return{rowCountList:{},activePrefixKey:""}},computed:{paperTree:function(){return this.$store.getters["AC/paperTree"]},readType:function(){return this.$store.getters["AC/readType"]},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},sizeType:function(){return this.$store.getters["AC/sizeType"]},pieceHeight:function(){return"K"===this.sizeType?"1357px":"1386px"},piecePadding:function(){return"number"===typeof this.paddingBlock?"".concat(this.paddingBlock,"px 0px"):"".concat(this.paddingBlock[0]||0,"px 0px ").concat(this.paddingBlock[1]||0,"px")},setActivePrefixKey:function(){var t=this;return Object(tt["a"])((function(e){t.activePrefixKey=e}),100)}},methods:{getPlainTitle:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).title||""},isWithSpace:function(t){var e=!1,n=t.split("_"),r=this.paperTree||[];return n.forEach((function(t,i){var a=r.find((function(e,n){return(e[e.idProp||"id"]||n).toString()===t}))||{};r=a.children||[],i===n.length-1&&(e=a.choices&&a.choices.length)})),e},getSourceNode:function(t){var e=null,n=function n(r){for(var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=0;a<r.length;a++){var o=r[a],s=[].concat(l(i),[o[o.idProp||"id"]||a]);if(t===s.join("_")){e=o;break}o.children&&o.children.length&&n(o.children,s)}};return n(this.paperTree||[]),e},handleClick:function(t,e){"text"===this.editType?this.editCallback&&this.editCallback(this.getSourceNode(t)):this.$emit("edit",t,e)},handleMove:function(t,e){this.moveCallback&&this.moveCallback(t,this.getSourceNode(e))},handleDelete:function(t){this.deleteCallback&&this.deleteCallback(this.getSourceNode(t))},handleLine:function(t,e){this.lineCallback&&this.lineCallback(t,this.getSourceNode(e))},handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:e})},handleHover:function(t,e){this.setActivePrefixKey(t?e.charAt(0):"")},getContent:function(t,e){var n=this,r=this.$createElement,i=null;switch(t.type){case"question":this.$set(this.rowCountList,t.dataKey,t.rowCount||void 0),i=r("div",{key:"question_".concat(e),attrs:{"data-key":t.dataKey||""},class:"ac-question ck-content".concat(this.activePrefixKey===t.dataKey[0]?" ac-edit-visible":""),directives:[{name:"hover",value:function(e){return n.handleHover(e,t.dataKey)}}]},[t.answerBoxType?r("div",{class:"ac-question__prefix"},[r("ac-answer-box",{attrs:{label:"answer"===t.answerBoxType?"答案":"得分",direction:"answer"===t.answerBoxType?"column":"row"}})]):null,r("div",{class:"ac-question__content"+("hand"!==this.readType&&!this.isWithSpace(t.dataKey)||t.answerBoxType?"":" with-space")},[this.movable||this.deletable||this.contentEditable&&t.editBtn?r("div",{class:"ac-question__operation ac-edit-handler"},[this.movable&&!t.hideMoveUp?r("i",{class:"el-icon-top",on:{click:function(){return n.handleMove("up",t.dataKey)}}}):null,this.movable&&!t.hideMoveDown?r("i",{class:"el-icon-bottom",on:{click:function(){return n.handleMove("down",t.dataKey)}}}):null,this.deletable?r("i",{class:"el-icon-delete",on:{click:function(){return n.handleDelete(t.dataKey)}}}):null,this.contentEditable&&t.editBtn?r("i",{class:"el-icon-edit-outline",on:{click:function(){return n.handleClick(t.dataKey,t.editBtn)}}}):null]):null,t.isTable?r("div",{class:"ac-question__line"},[r("span",["行数:"]),r("el-input-number",{attrs:{size:"small",value:this.rowCountList[t.dataKey],min:1,max:100,step:1,"step-strictly":!0},on:{change:function(e){return n.handleLine(e,t.dataKey)}}})]):null,r("div",{domProps:{innerHTML:t.content.join("")}})])]);break;case"essay":i=r("ac-essay",{key:"essay_".concat(e),attrs:{"data-key":t.dataKey||""},props:y({},t.content[0]),class:"".concat(this.activePrefixKey===t.dataKey[0]?"ac-edit-visible":""),directives:[{name:"hover",value:function(e){return n.handleHover(e,t.dataKey)}}]});break;case"dimension":i=t.content.map((function(n,i){return r("ac-dimension",{key:"dimension_".concat(e,"_").concat(i),attrs:{"data-key":t.dataKey||""},props:y({},n)})}));break;case"material":i=r("div",{key:"material_".concat(e),attrs:{"data-key":t.dataKey||""},class:"ac-material ck-content",directives:[{name:"hover",value:function(e){return n.handleHover(e,t.dataKey)}}]},[t.editBtn&&this.contentEditable?r("el-button",{class:"ac-material__edit",attrs:{type:"primary",size:"small"},on:{click:function(){return n.handleClick(t.dataKey,t.editBtn)}}},[t.editBtn]):null,r("div",{domProps:{innerHTML:t.content.join("")}})]);break;case"plainBox":i=r("div",{key:"question_".concat(e),attrs:{"data-key":t.dataKey||""},class:"ac-question is-box".concat(t.isFollowBox?" is-follow":"")},[r("div",{class:"ac-question__prefix"},[r("ac-answer-box",{attrs:{label:this.getPlainTitle(t.dataKey)||t.boxContent,width:144,editable:!0,dataKey:t.dataKey}})])]);break;case"graffiti":i=r("div",{key:e,attrs:{"data-key":t.dataKey||""},class:"ac-graffiti__wrapper",domProps:{innerHTML:t.content}});break;case"basicInfo":i=r("ac-basic-info",{props:y({},t)});break;case"prefixMarker":i=r("div",{key:e,attrs:{"data-key":t.dataKey||""},class:"ac-prefix-marker",directives:[{name:"hover",value:function(e){return n.handleHover(e,t.dataKey)}}]},[r("div",{domProps:{innerHTML:t.content}})]);break;case"suffixMarker":i=r("div",{key:e,attrs:{"data-key":t.dataKey||""},class:"ac-suffix-marker",directives:[{name:"hover",value:function(e){return n.handleHover(e,t.dataKey)}}]},[r("div",{domProps:{innerHTML:t.content}})]);break;default:i=r("div",{key:e,attrs:{"data-key":t.dataKey||""},class:"ac-piece__section".concat(this.activePrefixKey===t.dataKey[0]?" ac-edit-visible":""),directives:[{name:"hover",value:function(e){return n.handleHover(e,t.dataKey)}}]},[this.movable||this.deletable||this.contentEditable?r("div",{class:"ac-section__operation ac-edit-handler"},[this.movable&&!t.hideMoveUp?r("i",{class:"el-icon-top",on:{click:function(){return n.handleMove("up",t.dataKey)}}}):null,this.movable&&!t.hideMoveDown?r("i",{class:"el-icon-bottom",on:{click:function(){return n.handleMove("down",t.dataKey)}}}):null,this.deletable?r("i",{class:"el-icon-delete",on:{click:function(){return n.handleDelete(t.dataKey)}}}):null,this.contentEditable?r("i",{class:"el-icon-edit-outline",on:{click:function(){return n.handleClick(t.dataKey)}}}):null]):null,r("div",{domProps:{innerHTML:t.content}})])}return i}},render:function(){var t=this,e=arguments[0];return e("div",{class:"ac-piece",style:{height:this.pieceHeight,padding:this.piecePadding}},[this.list.map((function(e,n){return t.getContent(e,n)}))])}},bt=_t,wt=Object(P["a"])(bt,pt,gt,!1,null,null,null),Ct=wt.exports;Ct.install=function(t){t.component(Ct.name,Ct)};var At=Ct,xt=n("6bdf"),kt=n("13ed"),Tt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-restrict",style:{width:t.$store.getters["AC/layout"]>2?"580px":"868px",height:"number"===typeof t.height?"".concat(t.height,"px"):t.height,marginTop:"".concat(t.marginTop,"px")}})},Et=[],St={name:"AcRestrict",props:{height:{type:[Number,String],default:"100%"},marginTop:{type:Number,default:0}}},It=St,Ot=Object(P["a"])(It,Tt,Et,!1,null,null,null),Bt=Ot.exports;Bt.install=function(t){t.component(Bt.name,Bt)};var Lt=Bt,Pt={name:"AcPanel",components:{AcPiece:At,AcEditor:xt["default"],AcMarkPoint:kt["default"],AcRestrict:Lt},props:{domList:{type:Array,default:function(){return[]}}},inject:["showStudentInfo","paddingBlock","scanSheet"],data:function(){return{panelList:[],visible:!1,editing:{},headHeight:0,attentionHeight:0,eduHeight:0,editorTitle:"编辑题目"}},computed:{formatPanelList:function(){var t=this,e=[];return this.panelList.forEach((function(n,r){r%t.layout===0?e.push([n]):e[e.length-1].push(n)})),e},paperTree:function(){return this.$store.getters["AC/paperTree"]},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},panelFlag:function(){return this.$store.getters["AC/panelFlag"]},showAttention:function(){return this.$store.getters["AC/showAttention"]},patchwork:function(){return this.$store.getters["AC/patchwork"]},showEducationId:function(){return this.$store.getters["AC/showEducationId"]},readType:function(){return this.$store.getters["AC/readType"]},layout:function(){return this.$store.getters["AC/layout"]},latticeAttention:function(){return this.$store.getters["AC/latticeAttention"]},stuInfoLength:function(){return this.$store.getters["AC/studentInfo"].length},eduIdLength:function(){return this.$store.getters["AC/educationIdValue"]},registrationType:function(){return this.$store.getters["AC/registrationNumberType"]},sizeType:function(){return this.$store.getters["AC/sizeType"]},pieceHeight:function(){var t="number"===typeof this.paddingBlock?2*this.paddingBlock:this.paddingBlock.reduce((function(t,e){return t+e}),0);return("K"===this.sizeType?1357:1386)-(t+10)},rowConfig:function(){return this.$store.getters["AC/rowConfig"]}},watch:{domList:function(t){t.length&&this.getPanelList()},panelFlag:function(){this.getPanelList()}},methods:{getRowCount:function(t,e){var n=this.editEssayList.find((function(e){return e.dataKey===t}))||{};return"number"===typeof n.row?n.row:e},getBgType:function(t,e){var n=this.editEssayList.find((function(e){return e.dataKey===t}))||{};return"number"===typeof n.bgType?n.bgType:e},handleEdit:function(t,e){var n={dataKey:t,content:"",hasChoice:!1},r=this.editTitleList.find((function(e){return e.dataKey===t}));if(r){var i=r.title,a=void 0===i?"":i,o=r.choices,s=void 0===o?[]:o;n.content+=a||"",s.length&&(n.hasChoice=!0,n.content+=s.map((function(t){return"<div class='ac-editor__choice'>".concat(t.identifier,".").concat(t.content,"</div>")})).join(""))}else{var c=t.split("_"),u=this.paperTree||[];c.forEach((function(t,e){var r=u.find((function(e,n){return(e[e.idProp||"id"]||n).toString()===t}))||{};u=r.children||[],e===c.length-1&&(n.content+=r.title||"",r.choices&&r.choices.length&&(n.hasChoice=!0,n.content+=r.choices.map((function(t){return"<div class='ac-editor__choice'>".concat(t.identifier,".").concat(t.content,"</div>")})).join("")))}))}this.editing=n,this.editorTitle=e,this.visible=!0},handleSubmit:function(t){var e=this.editing,n=e.dataKey,r=e.hasChoice,i={dataKey:n};if(r){var a=t.match(/<(p.*?\/p|figure.*?\/figure)>/g),o=/>[A-O]{1}[.\s.、]{0,1}/,s="",c=[],u=null;a.forEach((function(t){var e=t.match(o);if(e){var n=t.replace(o,">");u={identifier:e[0][1],content:"<p></p>"===n?"":n},c.push(u)}else u?u.content+=t:s+=t})),Object.assign(i,{title:s,choices:c})}else i.title=t;this.$store.dispatch("AC/paper/setEditTitle",i)},getBasicInfo:function(t){var e=null;return t&&!this.scanSheet||(e={hideStudentInfo:!this.showStudentInfo,hideAttention:!this.showAttention,height:this.headHeight+(this.showAttention?this.attentionHeight:0)+this.eduHeight}),e},getPanelList:function(){var t=this,e=[],n=0;e[n]=[];var r=this.pieceHeight,i=e[n],a=[],o=function(){var e=t.getBasicInfo(n);e&&(r-=e.height,i.push(Object.assign({type:"basicInfo"},e)))},s=function(){n++,e[n]=[],r=t.pieceHeight,i=e[n],o()},c=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0,a=["","inner"].includes(i)?0:30,o=r-(n?32:0)-a;return Math.floor((o+e)/(t+e))},u=function(t,e,n){var r="编辑题目",a=!1,o="",s="",c=!1,u=!1,l=!1,h=t.map((function(t){var e="";switch(t.type){case"choice":e="<div class=".concat(t.className,">").concat(t.children.join(""),"</div>");break;case"questionTitle":a=t.isFirst,u=t.hideMoveUp,l=t.hideMoveDown,t.needAnswerBox&&(o="score"),t.hasChoice&&t.needAnswerBox&&(o="answer");var i=t.children.join("");e="<div class='ac-question__title' ".concat(t.titleAlign?'style="text-align: '.concat(t.titleAlign,'"'):"",">").concat(t.prefix||"").concat(i?"<div class='ac-question__title-inner'>".concat(i,"</div>"):"","</div>");break;case"essayArea":e=t.essayConfig;break;case"dimensionItem":e=t.payload;break;case"material":a=t.isFirst,r=t.isEditMaterial?"编辑材料":"",n="material";var h=t.children.join("");e="<div class='ac-material__title'>".concat(t.prefix||"").concat(h?"<div class='ac-material__title-inner'>".concat(h,"</div>"):"","</div>");break;case"plainBox":n="plainBox",s=t.boxContent,c=t.isFollow;break;default:e=t.content}return e}));t.length=0,i.push({type:n,dataKey:e,content:h,editBtn:a?r:"",hideMoveUp:!!a&&u,hideMoveDown:!!a&&l,answerBoxType:o,boxContent:s,isFollowBox:c})},l=function(e,n,i){var a=e.rowHeight,o=e.rowGap,l=e.titleChildren,h=e.borderType,d=t.getRowCount(n,e.rowCount),f=t.getBgType(n,e.bgType),p=t.rowConfig[f]||{};a="number"===typeof a?a:p.rowHeight||0,o="number"===typeof o?o:p.rowGap||0,r<30&&s();var g={type:"essayArea"};if(l){var m="";l.forEach((function(t,a){r>=t.height+(a?0:32)?(m+=t.content,r-=t.height+(a?0:32)):(m&&i.push({type:"essayArea",essayConfig:Object.assign({},e,{row:0,title:m,rowCount:d,bgType:f})}),i.length&&u(i,n,"essay"),s(),m=t.content,r-=t.height+32)})),m?Object.assign(g,{essayConfig:Object.assign({},e,{row:0,title:m,rowCount:d})}):g=null}else g=null;if(!d)return g?i.push(g):(i.push({type:"essayArea",essayConfig:Object.assign({},e,{rowCount:0,row:0,bgType:f})}),r-=30),void u(i,n,"essay");var y=d;while(y){var v=c(a,o,!g,h);if(v<1)g&&(i.push(g),g=null),i.length&&u(i,n,"essay"),s();else if(v<y)i.push({type:"essayArea",essayConfig:Object.assign({},e,{startRow:d-y,row:v,rowCount:d,bgType:f,title:g&&g.essayConfig?g.essayConfig.title:""})}),g&&(g=null),u(i,n,"essay"),s(),y-=v;else{i.push({type:"essayArea",essayConfig:Object.assign({},e,{startRow:d-y,row:y,rowCount:d,bgType:f,title:g&&g.essayConfig?g.essayConfig.title:""})});var _=["","inner"].includes(h)?0:30;r-=y*(a+o)-o+(g?0:32)+_,y=0,g&&(g=null)}}},h=function(t,e,n){var i=t.length+1,a=i;while(a){var o=Math.floor(r/46);if(o<1)n.length&&u(n,e,"dimension"),s();else if(o<a){for(var c=i-a,l=0;l<o;l++){var h=c+l-1;n.push({type:"dimensionItem",payload:{type:c+l===0?"header":"body",dimension:t[h]||"",dimensionIndex:h}})}u(n,e,"dimension"),s(),a-=o}else{for(var d=i-a,f=0;f<a;f++){var p=d+f-1;n.push({type:"dimensionItem",payload:{type:d+f===0?"header":"body",dimension:t[p]||"",dimensionIndex:p}})}r-=46*a,a=0}}},d=function t(e,n,i){e.forEach((function(e,a){if(e.children)t(e.children,n,i);else{var o=e.height;if(!a&&e.answerBoxHeight&&(o=Math.max(o,e.answerBoxHeight)),r<o&&(i.length&&u(i,n,"question"),s(),["questionTitleItem","materialItem"].includes(e.type)&&a&&(e.height+=16)),r>=e.height){switch(e.type){case"choiceItem":i.length&&"choice"===i[i.length-1].type?i[i.length-1].children.push(e.content):i.push({type:"choice",className:e.wrapperClass,children:[e.content]});break;case"questionTitleItem":i.length&&"questionTitle"===i[i.length-1].type?i[i.length-1].children.push(e.content):i.push({type:"questionTitle",prefix:e.prefix,children:[e.content],hideMoveUp:e.hideMoveUp,hideMoveDown:e.hideMoveDown,isFirst:!a,hasChoice:e.hasChoice,needAnswerBox:e.needAnswerBox,titleAlign:e.titleAlign});break;case"materialItem":i.length&&"material"===i[i.length-1].type?i[i.length-1].children.push(e.content):i.push({type:"material",prefix:e.prefix,children:[e.content],isFirst:!a,isEditMaterial:e.isEditMaterial});break;case"plainBox":i.push({type:"plainBox",isFollow:!e.height,boxContent:e.boxContent});break;default:i.push(e.content)}r-=e.height}}}))},f=JSON.parse(JSON.stringify(this.domList));f.forEach((function(n){if(n){if(n.updatePiece)s();else if(n.updatePage)for(var c=2*t.layout,f=c-(e.length%c||c)+1,p=0;p<f;p++)s();n.children?n.children&&(d(n.children,n.dataKey,a),a.length&&u(a,n.dataKey,"question")):"essay"===n.type?(l(n.essay,n.dataKey,a),a.length&&u(a,n.dataKey,"essay")):"dimension"===n.type?(h(n.dimensions,n.dataKey,a),a.length&&u(a,n.dataKey,"dimension")):"basicInfo"===n.type?(t.headHeight=n.headHeight||0,t.attentionHeight=t.latticeAttention.height||n.attentionHeight||0,t.showStudentInfo&&(t.showEducationId?t.eduHeight=t.eduIdLength>10&&0!==t.registrationType?48*Math.ceil(t.stuInfoLength/3)+30+310:310:t.eduHeight=48*Math.ceil(t.stuInfoLength/3)),o()):(r<n.height&&s(),r>=n.height&&(i.push({type:n.type||"",dataKey:n.dataKey,content:n.content}),r-=n.height))}})),this.panelList=e}}},Rt=Pt,jt=Object(P["a"])(Rt,ot,st,!1,null,null,null),Mt=jt.exports;Mt.install=function(t){t.component(Mt.name,Mt)};var zt=Mt,Nt=n("cf03"),Dt=n.n(Nt),Ut=n("c4e3"),$t=n.n(Ut),Ht=n("21a6"),Ft=n.n(Ht),Kt={name:"AcLattice",components:{AcVirtual:at,AcPanel:zt},inject:["uploadOss","paperTitle","scanSheet"],data:function(){return{domList:[],questionRects:[]}},computed:{educationIdValue:function(){return this.$store.getters["AC/educationIdValue"]},registrationNumberType:function(){return this.$store.getters["AC/registrationNumberType"]},candidateNumColor:function(){return this.$store.getters["AC/candidateNumColor"]},layout:function(){return this.$store.getters["AC/layout"]},sizeType:function(){return this.$store.getters["AC/sizeType"]},paperTree:function(){return this.$store.getters["AC/paperTree"]},readType:function(){return this.$store.getters["AC/readType"]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},UploadAdapter:function(){var t=this.uploadOss;return function(){function e(t){Object(C["a"])(this,e),this.file=t}return Object(A["a"])(e,[{key:"upload",value:function(){var e=this;return new Promise((function(n,r){t(e.file,n)}))}}]),e}()}},methods:{setDomList:function(t){this.domList=t},getPageImage:function(){return new Promise((function(t,e){var n=$(".ac-panel .ac-piece__wrapper");Object(tt["b"])(n).then((function(e){return t(e)})).catch((function(){return t([])}))}))},download:function(){var t=this;return w(_().mark((function e(){var n,r,i,a,o,s;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.scanSheet){e.next=4;break}return e.next=3,t.downloadSweep();case 3:return e.abrupt("return",e.sent);case 4:return e.next=6,t.getPositionData();case 6:return n=e.sent,e.next=9,t.getPdfFile();case 9:return r=e.sent,i=r.file,a=r.urlList,o="".concat(("K"===t.sizeType?195:210)*t.layout,"mm*").concat("K"===t.sizeType?270:297,"mm"),s={file:i,positionList:n,paperSize:o,pageImgs:a},e.abrupt("return",s);case 15:case"end":return e.stop()}}),e)})))()},getPdfFile:function(){var t=this;return w(_().mark((function e(){var n,r,i,a;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getPageImage();case 2:return n=e.sent,r="K"===t.sizeType?1===t.layout?[552.76,765.35]:[765.35,1105.51]:1===t.layout?"a4":"a3",i=new Dt.a(1===t.layout?"p":"l","pt",r),n.forEach((function(e,r){var a=1===t.layout?"K"===t.sizeType?552.76:595.28:"K"===t.sizeType?1105.51:1190.55,o="K"===t.sizeType?765.35:841.89;i.addImage(e,"JPEG",0,0,a,o),r!==n.length-1&&i.addPage()})),a=i.output("blob"),e.abrupt("return",{file:a,urlList:n});case 8:case"end":return e.stop()}}),e)})))()},downloadSweep:function(){var t=this;return w(_().mark((function e(){var n,r,i,a,o,s;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!($(".ac-piece__wrapper").length>16)){e.next=3;break}return t.$message({showClose:!0,message:"扫描答题卡不能超过16页",type:"error"}),e.abrupt("return");case 3:return e.next=5,t.getPdfFile();case 5:return n=e.sent,r=n.file,i=n.urlList,e.next=10,t.getZipContent();case 10:return a=e.sent,o=$(".ac-panel .ac-piece__wrapper")[0],s={questionRects:t.questionRects,intrinsicWidth:$(o).outerWidth(),intrinsicHeight:$(o).outerHeight()},e.abrupt("return",{file:r,pageImgs:i,zipFile:a,rectInfo:s});case 14:case"end":return e.stop()}}),e)})))()},pxToNumber:function(t){return Number((t||"").replace("px",""))},getSweepData:function(){var t=this,e=[],n=function(e,n){var r=n.essayInfo,i=n.isObjective,a=[];return e.forEach((function(e){var n=$(e).parents(".ac-piece__wrapper"),i=$(n).find(".mark-point__top-left")[0],o=$(i).offset(),s=o.left,c=o.top,u=$(e).offset().left-s,l=u+$(e).outerWidth(),h=$(e).offset().top-c,d=h+$(e).outerHeight(),f=Number(n.data("page")),p=a.find((function(t){return t.pageNum===f}));if(p)p.left=Math.min(p.left,u),p.right=Math.max(p.right,l),p.top=Math.min(p.top,h),p.bottom=Math.max(p.bottom,d);else{var g={pageNum:f,left:u,right:l,top:h,bottom:d};if(r&&5===r.bgType){var m=getComputedStyle(e),y=t.pxToNumber(m.getPropertyValue("--row")),v=t.pxToNumber(m.getPropertyValue("--row-height")),_=t.pxToNumber(m.getPropertyValue("--row-gap")),b=t.pxToNumber(m.getPropertyValue("--column"));g.rowInfo={Row:y,RowGap:_,Size:v,Column:b};for(var w=[],C=0;C<y;C++)w.push({Type:"AnswerArea",Page:"第".concat(f,"页"),X:Math.floor(u),Y:Math.floor(h+C*v+(C+1)*_),Width:b*v,Height:v,Index:C});w.length&&(g.children=w)}a.push(g)}})),a.map((function(t){var e=t.pageNum,n=t.left,r=t.right,a=t.top,o=t.bottom,s=t.rowInfo,c=t.children,u={Type:"AnswerArea",Page:"第".concat(e,"页"),X:Math.floor(n),Y:Math.floor(a),Width:Math.ceil(r-n),Height:Math.ceil(o-a)};return i&&(u.QuestionType="Objective"),s&&Object.assign(u,y({},s)),c&&(u.Children=c),u}))},r=function t(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];r.forEach((function(r,a){var o=[].concat(l(i),[r[r.idProp||"id"]||a]);if(r.scanInfo){var s=[],c=$(".ac-panel");if(Array.isArray(r.children)&&r.children.length)r.children.forEach((function(t,e){var n=[].concat(l(o),[t[t.idProp||"id"]||e]),r=c.find("div[data-key=".concat(n.join("_"),"] .ac-essay"));s.push.apply(s,l(r))}));else{var u=o.join("_"),h="div[data-key=".concat(u,"]");r.choices?h="div[data-key=".concat(u,"] .ac-answer-box"):r.essay?h="wrapper"===r.essay.sweepRange?"div[data-key=".concat(u,"] .ac-essay"):"div[data-key=".concat(u,"] .ac-essay__area"):r.table&&(h="div[data-key=".concat(u,"] .ac-table__area-of-piece"));var d=c.find(h);s.push.apply(s,l(d))}var f=n(s,{essayInfo:r.essay,isObjective:Boolean(r.choices)});e.push.apply(e,l(f.map((function(t){return y(y({},t),r.scanInfo)}))))}else Array.isArray(r.children)&&r.children.length&&t(r.children,o)}))};return r(this.paperTree),e},getPositionData:function(){var t=this;return w(_().mark((function e(){var n,r,i,a,o;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=[],r=function(e,n,r){var i=r||$(e).parents(".ac-piece__wrapper"),a=i.offset(),o=a.left,s=a.top,c=$(e).offset(),u=c.left,l=c.top,h=u-o,d=h+$(e).outerWidth(),f=l-s,p=f+$(e).outerHeight(),g={page_left_top:"(".concat(t.pxToAU(h),",").concat(t.pxToAU(f),")"),page_right_bottom:"(".concat(t.pxToAU(d),",").concat(t.pxToAU(p),")"),question_page:i.data("page")};if("hand"===t.readType&&n){var m=$(e).find(".ac-answer-box")[0];if(m){var y=$(m).offset(),v=y.left,_=y.top;Object.assign(g,{mark_left_top:"(".concat(t.pxToAU(v-o),",").concat(t.pxToAU(_-s),")"),mark_right_bottom:"(".concat(t.pxToAU(v-o+$(m).outerWidth()),",").concat(t.pxToAU(_-s+$(m).outerHeight()),")")})}}return g},i=function(e){var n=[];return e.forEach((function(t){var e=$(t).parents(".ac-piece__wrapper"),r=e.data("page"),i=e.offset(),a=i.left,o=i.top,s=$(t).offset(),c=s.left,u=s.top,l=c-a,h=l+$(t).outerWidth(),d=u-o,f=d+$(t).outerHeight(),p=n.find((function(t){return t.question_page===r}));p?(p.leftPosition=Math.min(p.leftPosition,l),p.rightPosition=Math.max(p.rightPosition,h),p.topPosition=Math.min(p.topPosition,d),p.bottomPosition=Math.max(p.bottomPosition,f)):n.push({question_page:r,leftPosition:l,rightPosition:h,topPosition:d,bottomPosition:f})})),n.map((function(e){var n=e.leftPosition,r=e.rightPosition,i=e.topPosition,a=e.bottomPosition,o=e.question_page;return{page_left_top:"(".concat(t.pxToAU(n),",").concat(t.pxToAU(i),")"),page_right_bottom:"(".concat(t.pxToAU(r),",").concat(t.pxToAU(a),")"),question_page:o}}))},a=function(t,e){var a=e.join("_"),o=$(".ac-panel"),s=l(o.find("div[data-key=".concat(a,"]"))),c=[],u={},h={};if(t.prefixMarker){var d=o.find(".ac-prefix-marker[data-key=".concat(a,"]"));Object.assign(u,r(d))}if(t.suffixMarker){var f=o.find(".ac-suffix-marker[data-key=".concat(a,"]"));Object.assign(h,r(f))}var p=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[];return e.forEach((function(e,a){var s=[],u=[].concat(l(n),[a]),h=o.find("div[data-key=".concat(u.join("_"),"]"));if(s.push.apply(s,l(h)),e.children&&s.push.apply(s,l(t(e.children,u))),e.positionInfo){var d=i(s);c.push.apply(c,l(d.map((function(t){return y(y({},t),e.positionInfo)}))))}r.push.apply(r,s)})),r};s.push.apply(s,l(p(t.children,e)));var g=i(s);n.push.apply(n,l(g.map((function(e){return y(y({subQuestionPositions:c,prefixMarkerInfo:u,suffixMarkerInfo:h},e),t.positionInfo)}))))},o=function e(o){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];o.forEach((function(o,c){var u=[].concat(l(s),[o[o.idProp||"id"]||c]);if(o.prefixMarker||o.suffixMarker)a(o,u);else if(Array.isArray(o.children)&&o.children.length)e(o.children,u);else{var h=u.join("_"),d=$(".ac-panel");if(o.choices){var f=d.find(".ac-question[data-key=".concat(h,"] .ac-answer-box"))[0];f&&n.push(Object.assign(r(f),o.positionInfo||{}))}else if(o.essay){var p=t.editEssayList.find((function(t){return t.dataKey===h}))||{},g="number"===typeof p.row?0===p.row:0===o.essay.rowCount,m=p.title||o.essay.title,v=[];if(g){var _=m?".ac-essay__wrapper[data-key=".concat(h,"]"):".ac-question[data-key=".concat(h,"]");v=d.find(_)}else v=d.find("".concat("hand"===t.readType?".ac-question[data-key=".concat(h,"],"):"",".ac-essay__wrapper[data-key=").concat(h,"]").concat("area"===o.essay.range?" .ac-essay__area":""));for(var b=0;b<v.length;b++){var w=r(v[b],!0);n.push(Object.assign(w,o.positionInfo||{}))}}else if(o.dimensions){for(var C=d.find(".ac-dimension[data-key=".concat(h,"]")),A=i(Array.from(C)),x=[],k={count:5,width:t.pxToAU(32),height:t.pxToAU(32),gap:t.pxToAU(4)},T=0;T<C.length;T++){var E=C[T],S=Number($(E).data("dimension-index"));if(-1!==S){var I=$(E).find(".dimension-stars")[0],O=$(E).find(".dimension-stars")[1],B=$(I).find("i")[0],L=$(O).find("i")[0];x.push({dimension:o.dimensions[S],dimensionIndex:S,selfStars:y(y({},r(B)),k),partnerStars:y(y({},r(L)),k)})}}n.push.apply(n,l(A.map((function(t){return y(y({subQuestionPositions:x},t),o.positionInfo)}))))}else for(var P=d.find(".ac-question[data-key=".concat(h,"]")),R=0;R<P.length;R++){var j=r(P[R],!0);n.push(Object.assign(j,o.positionInfo||{}))}}}))},o(t.paperTree),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})))()},pxToAU:function(t){var e="K"===this.sizeType?195:210;return Math.floor(t*e*8/294*100)/100},getZipContent:function(){var t=this;return w(_().mark((function e(){var n,r,i,a,o,s,c,u,l;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.paperTitle.replace(/[_]/g,"-"),r=$(".ac-piece__wrapper"),i=1===t.registrationNumberType,a=new $t.a,o="".concat(n,"模板_").concat(n,"_").concat(2===t.layout?"A3":"A4","_").concat("#000000"===t.candidateNumColor?"黑白":"彩色","_").concat(r.length,"_").concat(i?"涂点":"条码","_").concat(i?"10":"-1","_").concat(i?t.educationIdValue:"-1","_涂点_涂点.xml"),a.file(o,t.getXMLData()),s=[],Array.from(r).forEach((function(t,e){s.push({dom:t,name:"".concat(e+1,".png")}),e%2||(s.push({dom:$(t).find(".mark-point__top-left .mark-point__box")[0],name:"第".concat(e+1,"页_zuoshang.jpg")}),s.push({dom:$(t).find(".mark-point__top-right .mark-point__box")[0],name:"第".concat(e+1,"页_youshang.jpg")}),s.push({dom:$(t).find(".mark-point__bottom-left .mark-point__box")[0],name:"第".concat(e+1,"页_zuoxia.jpg")}),s.push({dom:$(t).find(".mark-point__bottom-right .mark-point__box")[0],name:"第".concat(e+1,"页_youxia.jpg")}))})),e.next=10,Object(tt["b"])(s.map((function(t){return t.dom})),1);case 10:return c=e.sent,c.forEach((function(t,e){var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),o=i.length,c=new Uint8Array(o);while(o--)c[o]=i.charCodeAt(o);a.file(s[e].name,new Blob([c],{type:r}),{base64:!0})})),e.next=14,a.generateAsync({type:"blob"});case 14:return u=e.sent,l="".concat(n,"模板.zip"),Ft()(u,l),e.abrupt("return",new File([u],l,{type:"zip"}));case 18:case"end":return e.stop()}}),e)})))()},getXMLData:function(){var t=this,e=[],n=$(".ac-piece__wrapper"),r=function(n,r){var i=$(n).offset(),a=i.left,o=i.top,s=$(n).find(".mark-point__top-left")[0],c=$(s).offset(),u=c.left,l=c.top,h=$(n).find("[data-export_name]");Array.from(h).forEach((function(n){var i=$(n),s=i.data("export_name");if(s){var c="absolute"===i.data("scan-type"),h={Type:"AnswerArea",Name:s,Page:r,X:Math.floor(i.offset().left-(c?a:u)),Y:Math.floor(i.offset().top-(c?o:l)),Width:Math.ceil(i.outerWidth()),Height:Math.ceil(i.outerHeight())};"考号"===i.data("export_name")&&(h.Rows=10,h.Columns=t.educationIdValue),e.push(h)}}))};Array.from(n).forEach((function(t,e){r(t,"第".concat(e+1,"页"))})),this.questionRects=this.getSweepData(),e.push.apply(e,l(this.questionRects));var i='<?xml version="1.0" encoding="utf-8"?>';return i+='<answerSheet isNew="true" isTFishProject="true" layout="'.concat(this.layout,'">'),i+=this.getXMLStringFromArray(e),i+="</answerSheet>",i},getXMLStringFromArray:function(t){var e=this,n=function(t){return Object.keys(t).map((function(n){return"Type"===n?"":"Children"===n?"<Children>".concat(e.getXMLStringFromArray(t[n]),"</Children>"):"<".concat(n,">").concat(t[n],"</").concat(n,">")})).join("")};return t.map((function(t){return"<".concat(t.Type,">").concat(n(t),"</").concat(t.Type,">")})).join("")}}},Wt=Kt,Vt=Object(P["a"])(Wt,d,f,!1,null,null,null),Yt=Vt.exports,Zt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-sweep"},[e("ac-sweep-virtual",{attrs:{tree:t.sweepPaperTree},on:{change:t.setDomList}}),e("ac-sweep-panel",{attrs:{"dom-list":t.domList}})],1)},Gt=[],Qt=function(){var t=this,e=t._self._c;return e("div",{class:["ac-sweep__choice",t.showBorder&&"is-border",t.isShowBorderBottom&&"is-border-bottom"],attrs:{"data-key":t.dataKey}},[Array.isArray(t.listData)?t._l(t.listData,(function(n,r){return e("div",{key:r,staticClass:"ac-sweep__choice-wrapper"},[e("ul",{class:["ac-sweep__choice-box"],style:{gridTemplateColumns:"row"===t.objectiveOrder?"repeat(".concat(n.questionsWidth.length,", auto)"):"repeat(".concat(Math.ceil(n.questions.length/n.questionsWidth.length),", auto)"),gridTemplateRows:"repeat(".concat(Math.ceil(n.questions.length/n.questionsWidth.length),", auto)"),gridAutoFlow:t.objectiveOrder}},t._l(n.questions,(function(n,i){return e("li",{key:"".concat(r,"_").concat(i),ref:"choiceEach_".concat(r,"_").concat(i),refInFor:!0,staticClass:"ac-sweep__choice-each"},[e("span",{staticClass:"choice-title",style:{width:t.isComplex?"50px":"20px"},attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,"".concat(r,"_").concat(i))}}},[t._v(" "+t._s(t.getBeforeChinese(n.title))+" ")]),e("div",{staticClass:"ac-sweep__choice-item"},t._l(n.choices,(function(n,a){return e("span",{key:"".concat(r,"_").concat(i,"_").concat(a),staticClass:"ac-sweep__choice-option"},[t._v(" "+t._s(n.identifier)+" ")])})),0)])})),0)])})):[e("div",{staticClass:"ac-sweep__choice-wrapper"},[e("ul",{staticClass:"ac-sweep__choice-box"},[e("li",[e("span",{staticClass:"choice-title",attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,"0")}}},[t._v(" "+t._s(t.getBeforeChinese(t.list.title))+" ")]),e("div",{staticClass:"ac-sweep__choice-item"},t._l(t.list.choices,(function(n,r){return e("span",{key:r,staticClass:"ac-sweep__choice-option"},[t._v(" "+t._s(n.identifier)+" ")])})),0)])])])]],2)},Xt=[],qt={name:"AcSweepChoice",components:{},props:{list:{type:[Array,Object]},showBorder:{type:Boolean,default:!0},isShowBorderBottom:{type:Boolean,default:!1},isComplex:{type:Boolean,default:!1},dataKey:{type:[String,Number]}},computed:{layout:function(){return this.$store.getters["AC/layout"]},objectiveOrder:function(){return this.$store.getters["AC/objectiveOrder"]}},watch:{objectiveOrder:function(t){this.convertTree(this.list)}},mounted:function(){this.convertTree(this.list)},data:function(){return{listData:null}},methods:{getBeforeChinese:function(t){var e=/[\u4e00-\u9fa5]/;if(t){var n=t.search(e);return-1===n?t:t.slice(0,n)}},handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:"".concat(this.dataKey,"_").concat(e)})},convertTree:function(t){if(Array.isArray(t)){for(var e=[],n=0;n<t.length;n++){var r=t[n];"single_choice"===r.code?(0!==n&&"single_choice"===t[n-1].code||e.push({questions:[],questionsWidth:[]}),e[e.length-1].questions.push(r)):"multiple_choice"===r.code?(0!==n&&"multiple_choice"===t[n-1].code||e.push({questions:[],questionsWidth:[]}),e[e.length-1].questions.push(r)):"judgment"===r.code&&(0!==n&&"judgment"===t[n-1].code||e.push({questions:[],questionsWidth:[]}),e[e.length-1].questions.push(r))}this.listData=e,this.getChoiceWidth(this.listData)}},getChoiceWidth:function(t){var e=this;t.forEach((function(t){t.questions.forEach((function(n){t.questionsWidth.push(6+(e.isComplex?50:20)+30*n.choices.length-8+28)}))})),this.listData.forEach((function(t){t.questionsWidth=e.designLayout(e.objectiveOrder,t.questionsWidth)}))},designLayout:function(t,e){var n=$(".ac-sweep__choice").innerWidth()-64,r=function(t){return t.reduce((function(t,e){return Math.max(t,e)}),0)},i=function(t){return t.reduce((function(t,e){return Math.min(t,e)}),n)},a=function(t,r){var i=[];return e.forEach((function(n,a){var o="row"===r?a%t:Math.floor(a/(e.length/t));i[o]=Math.max(i[o]||0,n)})),n-i.reduce((function(t,e){return t+e}),0)},o=r(e),s=i(e),c=Math.floor(n/o),u=c,l=!0;while(l){var h=a(u,t);h<s||u>=e.length?l=!1:u+=1}var d=Array(u).fill("").map((function(n,r){return e.filter((function(n,i){if("row"===t)return i%u===r;var a=Math.ceil(e.length/u);return i<(r+1)*a&&i>=r*a}))}));return d}}},Jt=qt,te=Object(P["a"])(Jt,Qt,Xt,!1,null,null,null),ee=te.exports;ee.install=function(t){t.component(ee.name,ee)};var ne=ee,re=function(){var t=this,e=t._self._c;return e("div",{class:["ac-sweep__composite",t.showBorder&&"is-border",t.isShowBorderBottom&&"is-border-bottom",t.isComplex&&"is-padding",t.isHideBorderTop&&"hide-border-top",t.isPaddingTop&&"is-padding-top",t.isHidePaddingTop&&"is-hide-padding-top"],attrs:{"data-key":t.dataKey,type:"composite","page-index":t.pageIndex}},[t.getLiContent?e("div",{ref:"compositeContent",staticClass:"ac-sweep__composite-title",domProps:{innerHTML:t._s(t.getLiContent)}}):e("div",{ref:"compositeContent",staticClass:"ac-sweep__composite-title",domProps:{innerHTML:t._s(t.getTitle)}}),e("el-button",{staticClass:"edit-btn",attrs:{type:"primary",size:"small"},on:{click:t.handleEdit}},[t._v(" 编辑答题区 ")]),e("ac-editor",{attrs:{visible:t.editorVisible,content:t.editContent,title:"编辑答题区","editor-id":"essay-editor_".concat(Date.now().toString(36))},on:{"update:visible":function(e){t.editorVisible=e},submit:t.handleSubmit}})],1)},ie=[],ae={name:"AcSweepComposite",components:{AcEditor:xt["default"]},props:{title:{type:String,default:""},blankNum:{type:Number,default:0},showBorder:{type:Boolean,default:!0},isShowBorderBottom:{type:Boolean,default:!1},isHideBorderTop:{type:Boolean,default:!1},dataKey:{type:String,default:""},isComplex:{type:Boolean,default:!1},isPaddingTop:{type:Boolean,default:!1},isHidePaddingTop:{type:Boolean,default:!1},pageIndex:{type:Number,default:0}},computed:{editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},getTitle:function(){var t=new Array(this.blankNum).fill("").map((function(){return'<span style="display: inline-block; height: 40px; vertical-align: text-top"><u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</u></span>'}));return'<span style="height: 40px;">'.concat(this.title,"</span>").concat(t.join("、"))},getLiContent:function(){var t=this,e=this.editTitleList.find((function(e){return e.dataKey===t.dataKey}))||{};return e.title}},watch:{},mounted:function(){},data:function(){return{editorVisible:!1,editContent:""}},methods:{getFullTitle:function(){var t=this;return(this.editTitleList.find((function(e){return e.dataKey===t.dataKey}))||{}).title||this.$refs.compositeContent.innerHTML},handleEdit:function(){this.editContent=this.getFullTitle(),this.editorVisible=!0},handleSubmit:function(t){this.$store.dispatch("AC/paper/setEditTitle",{dataKey:this.dataKey,title:t}),this.$store.dispatch("AC/paper/resetPanel")}}},oe=ae,se=Object(P["a"])(oe,re,ie,!1,null,null,null),ce=se.exports;ce.install=function(t){t.component(ce.name,ce)};var ue,le,he=ce,de={name:"AcSweepComplex",components:{AcSweepChoice:ne,AcSweepCompletion:he,AcEssay:x["default"],AcEditor:xt["default"]},props:{list:{type:[Array,Object]},isShowBorderBottom:{type:Boolean,default:!1},dataKey:{type:String,default:""}},computed:{editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},getLiContent:function(){var t=this,e=this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{};return e.title}},watch:{},created:function(){this.init()},data:function(){return{listTree:null,editorVisible:!1,editContent:""}},methods:{init:function(){this.listTree=this.convertTree(this.list)},getEditedKey:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).editKey||""},getEssayTitle:function(t,e){return(this.editEssayList.find((function(e){return e.dataKey===t}))||{}).title||e},convertTree:function(t){for(var e=t.children,n=[],r=0;r<e.length;r++){var i=e[r];("single_choice"===i.code||"multiple_choice"===i.code||"judgment"===i.code)&&r<e.length-1&&("single_choice"===e[r+1].code||"multiple_choice"===e[r+1].code||"judgment"===e[r+1].code)?(n.push([i,e[r+1]]),r++):n.push(i)}return t.children=n,t},getFullTitle:function(){var t=this;return(this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{}).title||this.listTree.title},editTitle:function(){this.editContent=this.getFullTitle(),this.editorVisible=!0},handleSubmit:function(t){this.$store.dispatch("AC/essay/setEssayTitle",{dataKey:this.dataKey,title:t}),this.editorVisible=!1},getList:function(t){var e=this,n=this.$createElement;return t.map((function(t,r){return n("div",{key:"".concat(r,"_").concat(t[t.idProp||"id"]||""),class:!t.code&&!Array.isArray(t)&&"ac-sweep__virtual-section",attrs:{"data-key":t.dataKey,"question-code":t.code}},[Array.isArray(t.children)&&t.children.length&&"complex"!==t.code?n("div",{class:"ac-sweep__virtual-box"},[!t.code&&e.getTitle(t,t.dataKey),e.getList(t.children)]):n("div",[Array.isArray(t)||"single_choice"===t.code||"multiple_choice"===t.code||"judgment"===t.code?n("ac-sweep-choice",{props:y({},{list:t,showBorder:!1,dataKey:t.dataKey,isComplex:!0})}):null,"completion"===t.code?n("ac-sweep-completion",{key:"virtual_question_".concat(e.getEditedKey(t.dataKey)),props:y({},Object.assign({dataKey:t.dataKey,isComplex:!0},t))}):null,"subjectivity"===t.code?n("ac-essay",{props:y({},Object.assign(t.essay,{title:e.getEssayTitle(t.dataKey,t.title),hiddenBorderBoth:!1}))}):null,"complex"===t.code?n("ac-sweep-complex",{props:y({},{list:t,dataKey:t.dataKey})}):null])])}))}},render:function(){var t=arguments[0];return t("div",{class:"ac-sweep__complex ".concat(this.isShowBorderBottom&&"is-border-bottom")},[t("p",{class:"ac-sweep__complex-title",on:{click:this.editTitle},domProps:{innerHTML:this.getLiContent?this.getLiContent:this.listTree.title}}),this.getList(this.listTree.children),t("ac-editor",{attrs:{visible:this.editorVisible,content:this.editContent,title:"编辑答题区",editorId:"essay-editor_".concat(Date.now().toString(36))},on:{submit:this.handleSubmit}})])}},fe=de,pe=Object(P["a"])(fe,ue,le,!1,null,null,null),ge=pe.exports;ge.install=function(t){t.component(ge.name,ge)};var me,ye,ve=ge,_e={name:"AcSweepVirtual",components:{AcSweepChoice:ne,AcSweepCompletion:he,AcSweepComplex:ve,AcEssay:x["default"],AcBasicInfo:Q["default"]},props:{tree:{type:Array,default:function(){return[]}}},computed:{sweepPaperTree:function(){return this.$store.getters["AC/sweepPaperTree"]},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},objectiveOrder:function(){return this.$store.getters["AC/objectiveOrder"]},layout:function(){return this.$store.getters["AC/layout"]},panelFlag:function(){return this.$store.getters["AC/panelFlag"]},patchwork:function(){return this.$store.getters["AC/patchwork"]},readType:function(){return this.$store.getters["AC/readType"]}},watch:{panelFlag:function(){var t=this;this.$nextTick((function(){return t.getDomList()}))}},updated:function(){var t=this;this.handleLatex().then((function(){return t.getDomList()}))},mounted:function(){var t=this;this.handleLatex().then((function(){return t.getDomList()}))},data:function(){return{}},methods:{handleLatex:function(){return J("math-virtual")||Promise.resolve()},handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:e})},getEditedKey:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).editKey||""},getEssayTitle:function(t,e){return(this.editEssayList.find((function(e){return e.dataKey===t}))||{}).title||e},getTitle:function(t,e){var n=this,r=this.$createElement,i=t.title;return r("div",{class:"ac-sweep__virtual-head",attrs:{contenteditable:!0,"data-key":e},domProps:{innerHTML:i},on:{blur:function(t){return n.handleBlur(t,e)}}})},getList:function(t){var e=this,n=this.$createElement;return t.map((function(r,i){return n("div",{key:"".concat(i,"_").concat(r[r.idProp||"id"]||""),class:!r.code&&!Array.isArray(r)&&"ac-sweep__virtual-section",attrs:{"data-key":r.dataKey||i,"question-code":r.code}},[Array.isArray(r.children)&&r.children.length&&"complex"!==r.code?n("div",{class:"ac-sweep__virtual-box"},[!r.code&&e.getTitle(r,r.dataKey||i),e.getList(r.children)]):n("div",[(e.layout>1?i%(2*e.layout)===0:e.patchwork?(i+1)%4===1:i%2===0)?n("ac-basic-info"):null,Array.isArray(r)||"single_choice"===r.code||"multiple_choice"===r.code||"judgment"===r.code?n("ac-sweep-choice",{props:y({},{list:r,isShowBorderBottom:i===t.length-1,dataKey:r.dataKey||i})}):null,"completion"===r.code?n("ac-sweep-completion",{key:"virtual_question_".concat(e.getEditedKey(r.dataKey)),props:y({},Object.assign({dataKey:r.dataKey},r,{isShowBorderBottom:i===t.length-1,isPaddingTop:t[i-1]&&"completion"!==t[i-1].code&&"complexTitle"!==t[i-1].code,isHidePaddingTop:t[i-1]&&"completion"===t[i-1].code}))}):null,"subjectivity"===r.code?n("ac-essay",{props:y({},Object.assign(r.essay,{title:e.getEssayTitle(r.dataKey,r.title)}))}):null,"complex"===r.code?n("ac-sweep-complex",{props:y({},{list:r,isShowBorderBottom:i===t.length-1,dataKey:r.dataKey})}):null])])}))},splitDom:function(t){for(var e="",n=0,r=0,i=[],a=t.childNodes||[],o=0;o<a.length;o++){var s=a[o];if(-1===["P","DIV","IMG"].indexOf(s.nodeName))try{"#text"===s.nodeName?e+=s.textContent:e+=s.outerHTML}catch(f){}else{var c=getComputedStyle(s),u=Number(c.marginTop.replace("px",""))||0,l=Number(c.marginBottom.replace("px",""))||0,h=s.offsetTop;i.length&&(h-=r),e+=s.outerHTML,n+=h+$(s).outerHeight()+u+l,i.push({content:e,height:n}),e="",n=0,r=s.offsetTop+$(s).outerHeight()+u+l}}if(e){var d=$(t).outerHeight();i.push({content:e,height:i.length?d-r:d})}return i},getDomList:function(){var t=this,e=function(e){e.forEach((function(e,n){var r=u.find(".ac-sweep__virtual-section[data-key=".concat(n,"]")),i=r.find(".ac-sweep__virtual-head")[0];i&&c.push({type:"sectionHead",height:t.editTitleList.find((function(t){return t.dataKey===n}))?t.editTitleList.find((function(t){return t.dataKey===n})).height:$(i).outerHeight(),content:i.innerHTML,dataKey:$(i).data("key")}),Array.isArray(e.children)&&e.children&&e.children.forEach((function(t,n){var i=t.dataKey,a=r.find("div[data-key=".concat(i,"]"))[0];s(t,a,!1,n===e.children.length-1,i)}))}))},n=function(e,n){var r=t.layout>2?520:808,i=function(t){return t.reduce((function(t,e){return Math.max(t,e.width)}),0)},a=function(t){return t.reduce((function(t,e){return Math.min(t,e.width)}),r)},o=function(t,e){var i=[];return n.forEach((function(r,a){var o="row"===e?a%t:Math.floor(a/(n.length/t));i[o]=Math.max(i[o]||0,r.width)})),r-i.reduce((function(t,e){return t+e}),0)},s=i(n),c=a(n),u=Math.floor(r/s),l=u,h=!0;while(h){var d=o(l,e);d<c||l>=n.length?(h=!1,d<0&&(l-=1)):l+=1}var f=Array(l).fill("").map((function(t,r){return n.filter((function(t,i){if("row"===e)return i%l===r;var a=Math.ceil(n.length/l);return i<(r+1)*a&&i>=r*a}))}));return f.forEach((function(t){var e=i(t);t.forEach((function(t){t.columnWidth=e}))})),f},r=function(e,r){if(Array.isArray(e)){for(var o=[],s=0;s<e.length;s++){var c=e[s];"single_choice"===c.code?(0!==s&&"single_choice"===e[s-1].code||o.push([]),o[o.length-1].push(c)):"multiple_choice"===c.code?(0!==s&&"multiple_choice"===e[s-1].code||o.push([]),o[o.length-1].push(c)):"judgment"===c.code&&(0!==s&&"judgment"===e[s-1].code||o.push([]),o[o.length-1].push(c))}var u=[];return o.forEach((function(e){e.forEach((function(t){t.width=(i(t.title)?a(t.title):23)+6+30*t.choices.length-8+18}));for(var r=n(t.objectiveOrder,e),o=r[0].length,s=function(t){u.push(r.map((function(e){return e.find((function(e,n){return n===t}))})))},c=0;c<o;c++)s(c)})),u}},i=function(t){var e=o(t),n=/[\u4e00-\u9fa5()()]/;return n.test(e)},a=function(t){var e=o(t).length;return e>6?56:6===e?48:e<6?40:void 0},o=function(t){var e=/[\u4e00-\u9fa5]/;if(t){var n=t.search(e);return-1===n?t:t.slice(0,n)}},s=function e(n,i,a,o,s){if(Array.isArray(n)){var u=r(n,a);u.forEach((function(t,e){c.push({height:0===e||u.length-1===e?44:24,type:"objective",isComplex:a,isShowBorderBottom:o,dataKey:s,list:t})}))}else switch(n.code){case"single_choice":case"multiple_choice":case"judgment":c.push(Object.assign({height:44,type:"objective",isComplex:a,isShowBorderBottom:o},n));break;case"completion":var l=$(i).find(".ac-sweep__composite-title")[0],h=t.splitDom(l);h.forEach((function(t){t.type="completionItem",t.isComplex=a})),!h.length||a&&"graffiti"!==t.readType||(h[0].height+=15),"graffiti"===t.readType&&c.push({type:"graffiti",height:30,scanName:n.scanName,score:n.score,isComplex:a,hideBottomBorder:!0,dataKey:n.dataKey,hidePadding:!0}),c.push({type:"completion",isComplex:a,isShowBorderBottom:o,dataKey:n.dataKey,height:$(l).outerHeight(),children:h});break;case"subjectivity":var d=$(i).find(".ac-essay__title")[0];"graffiti"===t.readType&&c.push({type:"graffiti",height:30,scanName:n.scanName,score:n.score,isComplex:a,hideBottomBorder:!0,dataKey:n.dataKey,hidePadding:!0}),c.push({type:"essay",dataKey:s,essay:Object.assign({rowCount:4,dataKey:n.dataKey,isComplex:a,titleChildren:t.splitDom(d)},n.essay)});break;case"complex":var f=$(i).find(".ac-sweep__complex-title")[0],p=t.splitDom(f);p.length&&(p[0].type="complexTitleItem"),c.push({type:n.title?"complexTitle":null,children:p}),n.children&&n.children.forEach((function(t,r){var a=$(i).find("div[data-key=".concat(t.dataKey,"]"));e(t,a,!0,r===n.children.length-1,t.dataKey)}));break}},c=[],u=$(".ac-virtual"),l=u.find(".ac-basicInfo");if(l){var h=l.find(".ac-basicInfo__title"),d=l.find(".ac-attention"),f=l.find(".ac-basic-info__edu");c.push({type:"basicInfo",headHeight:null===h||void 0===h?void 0:h.outerHeight(),attentionHeight:null===d||void 0===d?void 0:d.outerHeight(),eduHeight:null===f||void 0===f?void 0:f.outerHeight()})}e(this.tree),this.$emit("change",c)}},render:function(){var t=arguments[0];return t("div",{class:"ac-virtual",attrs:{id:"math-virtual"},style:{width:this.$store.getters["AC/layout"]>2?"690px":"978px"}},[this.getList(this.tree)])}},be=_e,we=Object(P["a"])(be,me,ye,!1,null,null,null),Ce=we.exports;Ce.install=function(t){t.component(Ce.name,Ce)};var Ae=Ce,xe=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-panel"},[t._l(t.formatPanelList,(function(n,r){return e("div",{key:r,staticClass:"ac-panel__item"},[e("div",{staticClass:"ac-piece__wrapper",attrs:{"data-page-type":n.flat().length?"":"restrict"}},[n.length?t._l(n,(function(n,i){return e("ac-sweep-piece",{key:i,attrs:{"data-piece":r*t.layout+i,"data-page":r,list:n,"page-index":r}})})):e("div",{staticClass:"ac-piece"},[e("ac-restrict",{attrs:{height:1250}})],1),e("ac-mark-point",{attrs:{"page-index":r}}),t.isAddFooter?e("div",{staticClass:"ac-piece__footer"},[t._v(" "+t._s("第".concat(r+1,"页,共").concat(t.formatPanelList.length,"页"))+" ")]):t._e()],2)])})),e("ac-editor",{attrs:{visible:t.visible,content:t.editing.content||""},on:{"update:visible":function(e){t.visible=e},submit:t.handleSubmit}})],2)},ke=[],Te=n("2638"),Ee=n.n(Te),Se=function(){var t=this,e=t._self._c;return e("div",{class:["objective","is-border",t.isShowBorderBottom&&"is-border-bottom",t.isHideBorderTop&&"is-hide_Border-top"]},[Array.isArray(t.list)?t._l(t.list,(function(n,r){return e("div",{key:r,class:["ac-sweep__choice-wrapper"],style:{display:"flex",flexWrap:"wrap"}},t._l(n.list,(function(i,a){return e("div",{key:"".concat(r,"_").concat(a),staticClass:"ac-sweep__choice-each",style:{width:i&&"".concat(i.columnWidth,"px"),height:i&&"".concat(n.height,"px"),lineHeight:i&&"".concat(24,"px"),paddingTop:"".concat(0===r&&n.height-24,"px"),paddingBottom:"".concat(r===t.list.length-1&&n.height&&i-24,"px"),whiteSpace:"nowrap"},attrs:{"data-key":i&&i.dataKey,type:"objective","page-index":t.pageIndex}},[e("span",{staticClass:"choice-title",style:{width:i&&t.isHasBrackets(i.title)?"".concat(t.convertWidth(i.title),"px"):"23px"},attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,i.dataKey)}}},[t._v(" "+t._s(i&&t.getBeforeChinese(i.title))+" ")]),e("div",{staticClass:"ac-sweep__choice-item"},t._l(i&&i.choices,(function(n,o){return e("span",{key:"".concat(r,"_").concat(a,"_").concat(o),staticClass:"ac-sweep__choice-option"},[t._v(" "+t._s("judgment"!==i.code?n.identifier:t.judgmentMode?"T"===n.identifier?"✓":"×":n.identifier)+" ")])})),0)])})),0)})):[t.list.list?e("div",{class:["ac-sweep__choice-wrapper"],style:{display:"flex",flexWrap:"wrap",paddingTop:"10px",paddingBottom:"10px"}},t._l(t.list.list,(function(n,r){return e("div",{key:"".concat(r),staticClass:"ac-sweep__choice-each",style:{width:n&&"".concat(n.columnWidth,"px"),height:n&&"".concat(t.list.height-20,"px"),lineHeight:n&&"".concat(24,"px"),whiteSpace:"nowrap"},attrs:{"data-key":n&&n.dataKey,type:"objective","page-index":t.pageIndex}},[e("span",{staticClass:"choice-title",style:{width:n&&t.isHasBrackets(n.title)?"".concat(t.convertWidth(n.title),"px"):"23px"},attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,n.dataKey)}}},[t._v(" "+t._s(n&&t.getBeforeChinese(n.title))+" ")]),e("div",{staticClass:"ac-sweep__choice-item"},t._l(n&&n.choices,(function(i,a){return e("span",{key:"".concat(r,"_").concat(a),staticClass:"ac-sweep__choice-option"},[t._v(" "+t._s("judgment"!==n.code?i.identifier:t.judgmentMode?"T"===i.identifier?"✓":"×":i.identifier)+" ")])})),0)])})),0):e("div",{class:["ac-sweep__choice-wrapper"],style:{display:"flex",flexWrap:"wrap"}},[e("div",{staticClass:"ac-sweep__choice-each",style:{width:"".concat(t.list.columnWidth,"px"),height:"".concat(t.list.height,"px"),lineHeight:"".concat(t.list.height,"px"),whiteSpace:"nowrap"},attrs:{"data-key":t.list.dataKey,type:"objective","page-index":t.pageIndex}},[e("span",{staticClass:"choice-title",style:{width:t.isHasBrackets(t.list.title)?"".concat(t.convertWidth(t.list.title),"px"):"23px"},attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,t.list.dataKey)}}},[t._v(" "+t._s(t.getBeforeChinese(t.list.title))+" ")]),e("div",{staticClass:"ac-sweep__choice-item"},t._l(t.list.choices,(function(n,r){return e("span",{key:r,staticClass:"ac-sweep__choice-option"},[t._v(" "+t._s("judgment"!==t.list.code?n.identifier:t.judgmentMode?"T"===n.identifier?"✓":"×":n.identifier)+" ")])})),0)])])]],2)},Ie=[],Oe={name:"AcObjective",components:{},props:{list:{type:[Array,Object]},isHideBorderTop:{type:Boolean,default:!1},isShowBorderBottom:{type:Boolean,default:!1},pageIndex:{type:Number,default:0}},computed:{objectiveOrder:function(){return this.$store.getters["AC/objectiveOrder"]},judgmentMode:function(){return this.$store.getters["AC/judgmentMode"]}},watch:{},mounted:function(){},data:function(){return{}},methods:{getBeforeChinese:function(t){var e=/[\u4e00-\u9fa5]/;if(t){var n=t.search(e);if(-1===n)return t;var r=t.slice(0,n);return r.endsWith(".")?r.slice(0,-1):r}},isHasBrackets:function(t){var e=this.getBeforeChinese(t),n=/[\u4e00-\u9fa5()()]/;return n.test(e)},convertWidth:function(t){var e=this.getBeforeChinese(t).length;return e>6?56:6===e?48:e<6?40:void 0},handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:"".concat(e)})}}},Be=Oe,Le=Object(P["a"])(Be,Se,Ie,!1,null,null,null),Pe=Le.exports;Pe.install=function(t){t.component(Pe.name,Pe)};var Re,je,Me=Pe,ze={name:"AcSweepPiece",components:{AcEssay:x["default"],AcBasicInfo:Q["default"],AcSweepCompletion:he,AcObjective:Me,AcEditor:xt["default"],AcRestrict:Lt,AcGraffiti:G["default"]},props:{list:{type:Array,default:function(){return[]}},pageIndex:{type:Number,default:0}},computed:{pieceHeight:function(){return"1386px"},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},getLiContent:function(){var t=this,e=this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{};return e.title},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},sweepList:function(){return this.transformTree(this.list)},layout:function(){return this.$store.getters["AC/layout"]}},data:function(){return{editorVisible:!1,editContent:""}},methods:{handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:e,height:t.target.offsetHeight}),this.$store.dispatch("AC/paper/resetPanel")},editTitle:function(t){var e=this;this.editContent=(this.editEssayList.find((function(t){return t.dataKey===e.dataKey}))||{}).title||t,this.editorVisible=!0},getPlainTitle:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).title||""},handleSubmit:function(t){this.$store.dispatch("AC/essay/setEssayTitle",{dataKey:this.dataKey,title:t}),this.editorVisible=!1},transformTree:function(t){var e=this,n=new Set(["objective"]);return t.reduce((function(r,i,a){i.children&&(i.children=e.transformTree(i.children));var o=r[r.length-1];return o&&n.has(t[a-1].type)&&n.has(i.type)?(Array.isArray(o)?o.push(i):r[r.length-1]=[o,i],r):(r.push(i),r)}),[])},getContent:function(t,e){var n=this,r=this.$createElement,i=null;switch(!0){case"basicInfo"===t.type:i=r("ac-basic-info",{props:y({},t)});break;case"complexTitle"===t.type:i=r("div",{class:"ac-sweep__complex",style:{borderBottom:this.sweepList.length-1===e&&"1px solid #000"}},[r("p",{class:"ac-sweep__complex-title",on:{click:function(){return n.editTitle(t.content[0])}},domProps:{innerHTML:this.getLiContent?this.getLiContent:t.content[0]}})]);break;case"sectionHead"===t.type:i=r("div",{class:"ac-sweep__virtual-head",style:{marginTop:t.isMarginTop&&"30px"},attrs:{contenteditable:!0,dataKey:t.dataKey},domProps:{innerHTML:t.content},on:{blur:function(e){return n.handleBlur(e,t.dataKey)}}});break;case"graffiti"===t.type:i=r("ac-graffiti",{props:y({},Object.assign(t,{hideTopBorder:this.sweepList[e-1]&&"essay"===this.sweepList[e-1].type}))});break;case"completion"===t.type:i=r("ac-sweep-completion",{props:y({},Object.assign(t,{dataKey:t.dataKey,title:this.getPlainTitle(t.dataKey)||t.content[0],isHideBorderTop:0!==e&&this.sweepList[e-1]&&["completion","complexTitle"].includes(this.sweepList[e-1].type),isPaddingTop:0==e||this.sweepList[e-1]&&"completion"!==this.sweepList[e-1].type&&"complexTitle"!==this.sweepList[e-1].type,isHidePaddingTop:this.sweepList[e-1]&&"completion"===this.sweepList[e-1].type,pageIndex:this.pageIndex+1,isShowBorderBottom:e===this.sweepList.length-1||this.sweepList[e+1]&&["sectionHead","restrict"].includes(this.sweepList[e+1].type)}))});break;case"objective"===t.type||Array.isArray(t):i=r("ac-objective",{props:y({},{list:t,isHideBorderTop:0!==e&&this.sweepList[e-1]&&"essay"===this.sweepList[e-1].type,pageIndex:this.pageIndex+1,isShowBorderBottom:e===this.sweepList.length-1||!!this.sweepList[e+1]&&["sectionHead","restrict"].includes(this.sweepList[e+1].type)})});break;case"essay"===t.type:i=r("ac-essay",{key:"essay_".concat(e),attrs:{"data-key":t.essayConfig.dataKey||"","page-index":this.pageIndex+1,"li-editable":!0},props:y({},y(y({},t.essayConfig),{},{hiddenBorderTop:0!==e&&"complexTitle"===this.sweepList[e-1].type,hiddenBorderBottom:e!==this.sweepList.length-1&&this.sweepList[e+1]&&("essay"===this.sweepList[e+1].type||"completion"===this.sweepList[e+1].type||"complexTitle"===this.sweepList[e+1].type),column:3===this.layout?13:20}))});break;case"restrict"===t.type:i=r("ac-restrict",{props:y({},{height:t.height,marginTop:30})});break}return i}},render:function(){var t=this,e=arguments[0];return e("div",{class:"ac-piece",style:{height:this.pieceHeight}},[e("div",{class:this.$store.getters["AC/layout"]>2?"ac-module__ThreeColumn":"ac-module__column",style:{margin:"0 auto"}},[this.sweepList.length?this.sweepList.map((function(e,n){return t.getContent(e,n)})):e("ac-restrict",{props:y({},{height:1250})}),e("ac-editor",Ee()([{attrs:{visible:this.editorVisible}},{on:{"update:visible":function(e){return t.editorVisible=e}}},{attrs:{content:this.editContent,title:"编辑答题区",editorId:"essay-editor_".concat(Date.now().toString(36))},on:{submit:this.handleSubmit}}]))])])}},Ne=ze,De=Object(P["a"])(Ne,Re,je,!1,null,null,null),Ue=De.exports;Ue.install=function(t){t.component(Ue.name,Ue)};var $e=Ue,He={name:"AcSweepPanel",components:{AcSweepPiece:$e,AcEditor:xt["default"],AcMarkPoint:kt["default"],AcRestrict:Lt},props:{domList:{type:Array,default:function(){return[]}}},computed:{formatPanelList:function(){var t=this,e=[];if(this.panelList.length)if(this.panelList.forEach((function(n,r){r%t.layout===0?e.push([n]):e[e.length-1].push(n)})),1===this.layout&&e.length%2)e.push([]);else if(2===this.layout)e[e.length-1].length%2&&e[e.length-1].push([]),(1===e.length||e.length%2)&&e.push(l(Array(2).fill([])));else if(3===this.layout){var n;3!==e[e.length-1].length&&(n=e[e.length-1]).push.apply(n,l(Array(3-e[e.length-1].length).fill([]))),(1===e.length||e.length%2)&&e.push(l(Array(3).fill([])))}return e},pieceHeight:function(){return 1240},panelFlag:function(){return this.$store.getters["AC/panelFlag"]},showAttention:function(){return this.$store.getters["AC/showAttention"]},patchwork:function(){return this.$store.getters["AC/patchwork"]},showEducationId:function(){return this.$store.getters["AC/showEducationId"]},readType:function(){return this.$store.getters["AC/readType"]},scansionAttention:function(){return this.$store.getters["AC/scansionAttention"]},stuInfoLength:function(){return this.$store.getters["AC/studentInfo"].length},eduIdLength:function(){return this.$store.getters["AC/educationIdValue"]},registrationType:function(){return this.$store.getters["AC/registrationNumberType"]},layout:function(){return this.$store.getters["AC/layout"]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},isAddFooter:function(){return this.$store.getters["AC/addFooter"]}},watch:{domList:function(t){t.length&&this.getPanelList()}},mounted:function(){},data:function(){return{panelList:[],visible:!1,editing:{},headHeight:0,attentionHeight:0,eduHeight:0}},methods:{getRowCount:function(t,e){var n=this.editEssayList.find((function(e){return e.dataKey===t}))||{};return"number"===typeof n.row?n.row:e},getBgType:function(t,e){var n=this.editEssayList.find((function(e){return e.dataKey===t}))||{};return"number"===typeof n.bgType?n.bgType:e},handleSubmit:function(t){var e=this.editing,n=e.dataKey,r=e.hasChoice,i={dataKey:n};if(r){var a=t.match(/<(p.*?\/p|figure.*?\/figure)>/g),o=/>[A-O]{1}[.\s.、]{0,1}/,s="",c=[],u=null;a.forEach((function(t){var e=t.match(o);if(e){var n=t.replace(o,">");u={identifier:e[0][1],content:"<p></p>"===n?"":n},c.push(u)}else u?u.content+=t:s+=t})),Object.assign(i,{title:s,choices:c})}else i.title=t;this.$store.dispatch("AC/paper/setEditTitle",i)},getBasicInfo:function(t){var e=null;return(this.layout>1?t%(2*this.layout)===0:this.patchwork?(t+1)%4===1:t%2===0)&&(e={hideAttention:!this.showAttention||0!==t,height:this.headHeight+(this.showAttention&&0===t?this.attentionHeight:0)+this.eduHeight}),e},getPanelList:function(){var t=this,e=[],n=0;e[n]=[];var r=this.pieceHeight,i=e[n],a=[],o=function(){var e=t.getBasicInfo(n);e&&(r-=e.height,i.push(Object.assign({type:"basicInfo"},e)))},s=function(){var a=e[n];if(n++,e[n]=[],r=t.pieceHeight,i=e[n],o(),"graffiti"===a[a.length-1].type){var s=a[a.length-1];a.pop(),i.push(s),r-=30}},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:40,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=r-(n?62:30);return Math.floor((i+e)/(t+e))},u=function(t,e){var n="",r="",a=t.map((function(t){var e="";switch(t.type){case"completion":n="completion",r=t.height+1,e="".concat(t.children.join(""));break;case"complexTitle":n="complexTitle",r=t.height,e="".concat(t.children.join(""));break}return e}));t.length=0,i.push({height:r,type:n,isComplex:e.isComplex,isShowBorderBottom:e.isShowBorderBottom,dataKey:e.dataKey,content:a})},l=function(t,e){t.forEach((function(t,n){if("completionItem"===t.type&&!t.isComplex){var a=i[i.length-1];a&&("completion"===a.type||n)||(t.height+=15)}if("completionItem"===t.type&&t.isComplex){var o=i[i.length-1];o&&("completion"===o.type||"graffiti"===o.type||n)||(t.height+=15)}if(r<t.height&&(e.length&&u(e,t),s()),r>=t.height){switch(t.type){case"completionItem":e.length&&"completion"===e[e.length-1].type?e[e.length-1].children.push(t.content):e.push({type:"completion",height:t.height,children:[t.content]});break;case"complexTitleItem":e.length&&"complexTitle"===e[e.length-1].type?e[e.length-1].children.push(t.content):e.push({type:"complexTitle",height:t.height,children:[t.content]});break}r-=t.height}}))},h=function(e,n){var a=e.rowHeight,o=void 0===a?40:a,u=e.rowGap,l=void 0===u?15:u,h=e.titleChildren,d=t.getRowCount(n,e.rowCount),f=t.getBgType(n,e.bgType);r<30&&s();var p={type:"essay"};if(h){var g="";h.forEach((function(t,n){r>=t.height+(n?0:32)?(g+=t.content,r-=t.height+(n?0:32)):(g&&i.push({type:"essay",essayConfig:Object.assign({},e,{row:0,title:g,rowCount:d,bgType:f})}),s(),g=t.content,r-=t.height+32)})),g?Object.assign(p,{essayConfig:Object.assign({},e,{row:0,title:g,rowCount:d})}):p=null}else p=null;if(d){var m=d;while(m){var y=c(o,l,!p);y<1?(p&&(i.push(p),p=null),s()):y<m?(i.push({type:"essay",essayConfig:Object.assign({},e,{startRow:d-m,row:y,rowCount:d,bgType:f,title:p&&p.essayConfig?p.essayConfig.title:""})}),p&&(p=null),s(),m-=y):(i.push({type:"essay",essayConfig:Object.assign({},e,{startRow:d-m,row:m,rowCount:d,bgType:f,title:p&&p.essayConfig?p.essayConfig.title:""})}),r-=m*(o+l)-l+(p?30:62),m=0,p&&(p=null))}}else p?i.push(p):(i.push({type:"essay",essayConfig:Object.assign({},e,{rowCount:0,row:0,bgType:f})}),r-=30)},d=JSON.parse(JSON.stringify(this.domList));d.forEach((function(e,n){"essay"===e.type?h(e.essay,e.dataKey):"complexTitle"===e.type?(l(e.children,a,e),a.length&&u(a,e)):"completion"===e.type?(r<e.height&&s(),r>=e.height&&(l(e.children,a,e),a.length&&u(a,e))):"basicInfo"===e.type?(t.headHeight=e.headHeight||0,t.attentionHeight=t.scansionAttention.height||e.attentionHeight||0,t.registrationType?t.layout<3?t.eduHeight=t.eduIdLength>10?48*Math.ceil(t.stuInfoLength/3)+30+310:310:t.eduHeight=48*Math.ceil(t.stuInfoLength/3)+14+310:t.eduHeight=t.layout<3?310:48*Math.ceil(t.stuInfoLength/3)+310,o()):(r<e.height&&s(),r>=e.height&&("sectionHead"===e.type&&"basicInfo"!==d[n-1].type&&1240!==r&&(e.height+=30,e.isMarginTop=!0),i.push(e),r-=e.height))})),r>54&&e[e.length-1].push({type:"restrict",height:r-30}),e.length>16&&1===this.layout&&(this.$store.dispatch("AC/answerConfig/setAnswerCardLayout",2),this.$store.dispatch("AC/answerConfig/setDisableOneLayout",!0)),this.panelList=e}}},Fe=He,Ke=Object(P["a"])(Fe,xe,ke,!1,null,null,null),We=Ke.exports;We.install=function(t){t.component(We.name,We)};var Ve=We,Ye={name:"AcSweep",components:{AcSweepVirtual:Ae,AcSweepPanel:Ve},inject:["uploadOss","paperTitle"],data:function(){return{domList:[],sweepPaperTree:[]}},computed:{educationIdValue:function(){return this.$store.getters["AC/educationIdValue"]},registrationNumberType:function(){return this.$store.getters["AC/registrationNumberType"]},candidateNumColor:function(){return this.$store.getters["AC/candidateNumColor"]},layout:function(){return this.$store.getters["AC/layout"]},sizeType:function(){return this.$store.getters["AC/sizeType"]},readType:function(){return this.$store.getters["AC/readType"]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},UploadAdapter:function(){var t=this.uploadOss;return function(){function e(t){Object(C["a"])(this,e),this.file=t}return Object(A["a"])(e,[{key:"upload",value:function(){var e=this;return new Promise((function(n,r){t(e.file,n)}))}}]),e}()},patchwork:function(){return this.$store.getters["AC/patchwork"]},downloadType:function(){return this.$store.getters["AC/downloadType"]},downloadSize:function(){return this.$store.getters["AC/downloadSize"]}},created:function(){this.init()},methods:{init:function(){this.sweepPaperTree=this.transformTree(this.createDataKey(this.$store.getters["AC/sweepPaperTree"]))},createDataKey:function(t){var e=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e.forEach((function(e,r){var i=n?"".concat(n,"_").concat(r):"".concat(r);e.code&&(e.dataKey=i),e.children&&t(e.children,i)}))};return e(t),t},transformTree:function(t){var e=this,n=new Set(["single_choice","multiple_choice","judgment"]);return t.reduce((function(r,i,a){i.children&&(i.children=e.transformTree(i.children));var o=r[r.length-1];return o&&n.has(t[a-1].code)&&n.has(i.code)?(Array.isArray(o)?o.push(i):r[r.length-1]=[o,i],r):(r.push(i),r)}),[])},setDomList:function(t){this.domList=t},getPageImage:function(){return new Promise((function(t,e){var n=$(".ac-panel .ac-piece__wrapper");Object(tt["b"])(n).then((function(e){return t(e)})).catch((function(){return t([])}))}))},download:function(){var t=this;return w(_().mark((function e(){var n,r,i,a,o,s,c,u,l,h,d;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!($(".ac-piece__wrapper").length>16)){e.next=3;break}return t.$message({showClose:!0,message:"涂点形式答题卡不能超过16页,请更换调整作答区域或更换试卷",type:"error"}),e.abrupt("return");case 3:return e.next=5,t.getZipContent();case 5:if(n=e.sent,r=n||"","PDF"!==t.downloadType){e.next=25;break}return e.next=10,t.getPageImage();case 10:return i=e.sent,a=new Dt.a(1===t.layout?"p":"l","pt",1===t.layout?"a4":"a3"),i.forEach((function(e,n){var r=1===t.layout?595.28:1190.55,o=841.89;a.addImage(e,"JPEG",0,0,r,o),n!==i.length-1&&a.addPage()})),o="".concat(t.paperTitle,".pdf"),a.save(o),s=a.output("blob"),s.name=o,c=new t.UploadAdapter(s),e.next=20,c.upload();case 20:return u=e.sent,l="https://"+u.url,e.abrupt("return",{scanZipUrl:r,scanPdfUrl:l});case 25:if("PNG"!==t.downloadType){e.next=31;break}return e.next=28,t.getPngZip();case 28:return h=e.sent,d=h||"",e.abrupt("return",{scanZipUrl:r,scanPdfUrl:d});case 31:case"end":return e.stop()}}),e)})))()},getZipContent:function(){var t=this;return w(_().mark((function e(){var n,r,i,a,o,s,c,u,l,h,d,f;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.paperTitle.replace(/[_]/g,"-"),r=$(".ac-piece__wrapper"),i=1===t.registrationNumberType,a=new $t.a,o="".concat(n,"模板_").concat(n,"_").concat(t.downloadSize,"_").concat("#000000"===t.candidateNumColor?"黑白":"彩色","_").concat(r.length,"_").concat(i?"涂点":"条码","_").concat(i?"10":"-1","_").concat(i?t.educationIdValue:"-1","_涂点_涂点.xml"),a.file(o,t.getXMLData()),s=[],Array.from(r).forEach((function(t,e){s.push({dom:t,name:"".concat(e+1,".png")}),e%2||(s.push({dom:$(t).find(".mark-point__top-left .mark-point__box")[0],name:"第".concat(e+1,"页_zuoshang.jpg")}),s.push({dom:$(t).find(".mark-point__top-right .mark-point__box")[0],name:"第".concat(e+1,"页_youshang.jpg")}),s.push({dom:$(t).find(".mark-point__bottom-left .mark-point__box")[0],name:"第".concat(e+1,"页_zuoxia.jpg")}),s.push({dom:$(t).find(".mark-point__bottom-right .mark-point__box")[0],name:"第".concat(e+1,"页_youxia.jpg")}))})),e.next=10,Object(tt["b"])(s.map((function(t){return t.dom})),1);case 10:return c=e.sent,c.forEach((function(t,e){var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),o=i.length,c=new Uint8Array(o);while(o--)c[o]=i.charCodeAt(o);a.file(s[e].name,new Blob([c],{type:r}),{base64:!0})})),e.next=14,a.generateAsync({type:"blob"});case 14:return u=e.sent,l="".concat(n,"模板.zip"),h=new File([u],l,{type:"zip"}),Ft()(u,l),d=new t.UploadAdapter(h),e.next=21,d.upload();case 21:return f=e.sent,e.abrupt("return","https://"+f.url);case 23:case"end":return e.stop()}}),e)})))()},getPngZip:function(){var t=this;return w(_().mark((function e(){var n,r,i,a,o,s,c,u,l,h;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.paperTitle.replace(/[_]/g,"-"),r=$(".ac-piece__wrapper"),i=new $t.a,a=[],Array.from(r).forEach((function(t,e){a.push({dom:t,name:"".concat(e+1,".png")})})),e.next=7,Object(tt["b"])(a.map((function(t){return t.dom})));case 7:return o=e.sent,o.forEach((function(t,e){var n=t.split(","),r=n[0].match(/:(.*?);/)[1],o=atob(n[1]),s=o.length,c=new Uint8Array(s);while(s--)c[s]=o.charCodeAt(s);i.file(a[e].name,new Blob([c],{type:r}),{base64:!0})})),e.next=11,i.generateAsync({type:"blob"});case 11:return s=e.sent,c="".concat(n,".zip"),u=new File([s],c,{type:"zip"}),Ft()(s,c),l=new t.UploadAdapter(u),e.next=18,l.upload();case 18:return h=e.sent,e.abrupt("return","https://"+h.url);case 20:case"end":return e.stop()}}),e)})))()},getXMLData:function(){var t=this,e=[],n=$(".ac-piece__wrapper"),r=function(n,r){var i=$(n).offset(),a=i.left,o=i.top,s=$(n).find(".mark-point__top-left")[0],c=$(s).offset(),u=c.left,l=c.top,h=$(n).find("[data-export_name]");Array.from(h).forEach((function(n){var i=$(n),s="absolute"===i.data("scan-type"),c={Type:"AnswerArea",Name:i.data("export_name"),Page:r,X:Math.floor(i.offset().left-(s?a:u)),Y:Math.floor(i.offset().top-(s?o:l)),Width:i.outerWidth(),Height:i.outerHeight()};String(c.X).indexOf(".")>-1&&(c.X=Math.floor(c.X),c.Width+=1),String(c.Y).indexOf(".")>-1&&(c.Y=Math.floor(c.Y),c.Height+=1),c.Width=Math.ceil(c.Width),c.Height=Math.ceil(c.Height),"考号"===i.data("export_name")&&(c.Rows=10,c.Columns=t.educationIdValue),e.push(c)}))},i=function(t,n){var r=$(t).find(".mark-point__top-left")[0],i=$(r).offset(),a=i.left,o=i.top,s=$(t).find("[data-scan-type=review]");Array.from(s).forEach((function(t){var r=$(t),i={Type:"ReviewArea",Name:r.data("scan-name"),Page:n,X:r.offset().left-a,Y:r.offset().top-o,Width:r.outerWidth(),Height:r.outerHeight(),MaxScore:r.data("scan-score")};String(i.X).indexOf(".")>-1&&(i.X=Math.floor(i.X),i.Width+=1),String(i.Y).indexOf(".")>-1&&(i.Y=Math.floor(i.Y),i.Height+=1),i.Width=Math.ceil(i.Width),i.Height=Math.ceil(i.Height),e.push(i)}))},a=[],o=function(t,e){var r=n.find(".ac-sweep__choice-each[data-key=".concat(t.dataKey,"]"))[0],i=($(r).find(".choice-title")[0],$(r).find(".ac-sweep__choice-item")[0]),o=r.getAttribute("page-index"),s=$(e[o-1]).find(".mark-point__top-left")[0],c=$(s).offset(),u=c.left,l=c.top,h={Type:"AnswerArea",Name:t.scanName,Page:"第".concat(o,"页"),X:$(i).offset().left-u+5,Y:$(i).offset().top-l-1,Width:$(i).outerWidth()-3,Height:$(i).outerHeight()+3,Rows:1,Columns:t.choices.length,Horizon:0};String(h.X).indexOf(".")>-1&&(h.X=Math.floor(h.X),h.Width+=1),String(h.Y).indexOf(".")>-1&&(h.Y=Math.floor(h.Y),h.Height+=1),h.Width=Math.ceil(h.Width),h.Height=Math.ceil(h.Height),a.push(h)},s=function t(e){var r=$(".ac-piece__wrapper");e.forEach((function(e){if(e.children)t(e.children);else if("completion"===e.code)for(var i=n.find(".ac-sweep__composite[data-key=".concat(e.dataKey,"]")),s=0;s<i.length;s++){var c=i[s].getAttribute("page-index"),u=$(r[c-1]).find(".mark-point__top-left")[0],l=$(u).offset(),h=l.left,d=l.top,f={Type:"AnswerArea",Name:"".concat(e.scanName).concat(s>0?"_"+s:""),Page:"第".concat(c,"页"),X:Math.floor($(i[s]).offset().left-h),Y:Math.floor($(i[s]).offset().top-d),Width:Math.ceil($(i[s]).outerWidth()),Height:Math.ceil($(i[s]).outerHeight())};a.push(f)}else if(Array.isArray(e)||"single_choice"===e.code||"multiple_choice"===e.code||"judgment"===e.code)Array.isArray(e)?e.forEach((function(t){o(t,r)})):o(e,r);else if("subjectivity"===e.code)for(var p=n.find(".ac-essay__wrapper[data-key=".concat(e.dataKey,"]")),g=0;g<p.length;g++){var m=p[g].getAttribute("page-index"),y=$(r[m-1]).find(".mark-point__top-left")[0],v=$(y).offset(),_=v.left,b=v.top,w={Type:"AnswerArea",Name:"".concat(e.scanName).concat(g>0?"_"+g:""),Page:"第".concat(m,"页"),X:Math.floor($(p[g]).offset().left-_),Y:Math.floor($(p[g]).offset().top-b),Width:Math.ceil($(p[g]).outerWidth()),Height:Math.ceil($(p[g]).outerHeight())};a.push(w)}}))};s(this.sweepPaperTree);var c=function(t){var e={};return t.forEach((function(t){var n=t.Page;e[n]||(e[n]=[]),e[n].push(t)})),Object.values(e)},u=c(a);Array.from(n).forEach((function(t,n){"restrict"!==$(t).data("piece-type")&&(r(t,"第".concat(n+1,"页")),i(t,"第".concat(n+1,"页")),Array.isArray(u[n])?e.push.apply(e,l(u[n])):e.push(u[n]))}));var h='<?xml version="1.0" encoding="utf-8"?>';return h+='<answerSheet isNew="true" isYcProject="true" layout="'.concat(this.layout,'" isScrabbled="').concat(this.patchwork,'">'),h+=this.getXMLStringFromArray(e),h+="</answerSheet>",h},getXMLStringFromArray:function(t){var e=function(t){return Object.keys(t).map((function(e){return"Type"!==e?"<".concat(e,">").concat(t[e],"</").concat(e,">"):""})).join("")};return t.map((function(t){return t?"<".concat(t.Type,">").concat(e(t),"</").concat(t.Type,">"):""})).join("")}}},Ze=Ye,Ge=Object(P["a"])(Ze,Zt,Gt,!1,null,null,null),Qe=Ge.exports,Xe={name:"AcCard",components:{AcAnswerConfig:h["default"],AcLattice:Yt,AcSweep:Qe},props:{title:{type:String,default:""},paperTitle:{type:String,default:""},tree:{type:Array,default:function(){return[]}},baseInfoList:{type:Array,default:function(){return[]}},mode:{type:Number,default:0},config:{type:Object,default:function(){return null}},uploadOss:{type:Function,default:function(){}},ClassicEditor:{type:Function,default:function(){}},contentEditable:{type:Boolean,default:!0},showConfig:{type:Boolean,default:!0},showStudentInfo:{type:Boolean,default:!0},saveInfo:{type:Object,default:null},paddingBlock:{type:[Number,Array],default:68},movable:{type:Boolean,default:!1},deletable:{type:Boolean,default:!1},editType:{type:String,default:"editor"},essayType:{type:Array,default:function(){return[0,1,2]}},essaySize:{type:Object,default:null},scanSheet:{type:Boolean,default:!1}},provide:function(){return{uploadOss:this.uploadOss,ClassicEditor:this.ClassicEditor,contentEditable:this.contentEditable,showStudentInfo:this.showStudentInfo,paperTitle:this.title||this.paperTitle,paddingBlock:this.paddingBlock,movable:this.movable,deletable:this.deletable,editType:this.editType,editCallback:this.editCallback,deleteCallback:this.deleteCallback,lineCallback:this.lineCallback,moveCallback:this.moveCallback,essayType:this.essayType,scanSheet:this.scanSheet}},data:function(){return{paperTree:[]}},computed:{layout:function(){return this.$store.getters["AC/layout"]},acMode:function(){return this.$store.getters["AC/answerCardMode"]}},watch:{tree:function(){this.initTree()},saveInfo:function(){this.handleSaveInfo()},title:function(){this.$store.dispatch("AC/paper/setTitle",this.title)}},beforeCreate:function(){if(!Promise.allSettled){var t=function(t){return{status:"rejected",reason:t}},e=function(t){return{status:"fulfilled",value:t}};Promise.allSettled=function(n){return Promise.all(n.map((function(n){return Promise.resolve(n).then(e,t)})))}}},created:function(){this.init(),this.baseInfoList&&(this.$store.dispatch("AC/answerConfig/setStudentInfo",[]),this.$store.dispatch("AC/answerConfig/setStudentInfo",this.baseInfoList))},methods:{init:function(){this.essaySize&&this.$store.dispatch("AC/essay/setRowSize",this.essaySize),this.$store.dispatch("AC/essay/resetEssay"),this.$store.dispatch("AC/paper/setTitle",this.title),this.$store.dispatch("AC/answerConfig/setAnswerCardMode",this.mode),this.handleSaveInfo(),this.initTree()},handleSaveInfo:function(){var t=this;if(this.saveInfo){var e={},n={},r={};Object.keys(this.saveInfo).forEach((function(i){switch(i){case"title":case"editTitleList":case"candidateNumColor":case"scansionAttention":case"latticeAttention":e[i]=t.saveInfo[i];break;case"editEssayList":r[i]=t.saveInfo[i];break;case"answerCardMode":case"layout":case"showAttention":case"studentInfo":case"educationIdValue":case"registrationNumberType":case"readType":case"patchwork":case"showQuestion":case"sizeType":case"showEducationId":case"objectiveOrder":case"judgmentMode":case"addFooter":n[i]=t.saveInfo[i];break}})),this.$store.dispatch("AC/paper/setSaveState",e),this.$store.dispatch("AC/essay/setSaveState",r),this.$store.dispatch("AC/answerConfig/setSaveState",n)}},initTree:function(){var t=this,e=this.$store.getters["AC/editTitleList"],n=this.$store.getters["AC/editEssayList"].filter((function(t){return!!t.title}));Object(tt["d"])(this.tree.concat([].concat(l(e),l(n)))).then((function(){t.paperTree=t.tree,t.$store.dispatch(0===t.mode?"AC/paper/setSweepPaperTree":"AC/paper/setPaperTree",t.paperTree)}))},download:function(){var t=this;this.$emit("before-download"),this.save(),1===this.acMode?this.$refs.latticeCard&&this.$refs.latticeCard.download().then((function(e){t.$emit("download",e)})):0===this.acMode&&this.$refs.sweepCard&&this.$refs.sweepCard.download().then((function(e){t.$emit("download",e)}))},save:function(){var t=this,e=["title","editTitleList","candidateNumColor","editEssayList","answerCardMode","layout","showAttention","studentInfo","educationIdValue","registrationNumberType","readType","patchwork"],n=["latticeAttention","showQuestion","sizeType","showEducationId"],r=["scansionAttention","objectiveOrder","judgmentMode","addFooter"],i={},a=this.$store.getters["AC/answerCardMode"];e.concat(0===a?r:n).forEach((function(e){i[e]=t.$store.getters["AC/".concat(e)]})),this.$emit("save",i)},editCallback:function(t){this.$emit("edit-title",t)},deleteCallback:function(t){this.$emit("delete",t)},lineCallback:function(t,e){this.$emit("lineChanged",t,e)},moveCallback:function(t,e){this.$emit("move",t,e)}}},qe=Xe,Je=Object(P["a"])(qe,r,i,!1,null,null,null),tn=Je.exports;tn.install=function(t){t.component(tn.name,tn)};e["default"]=tn},"40d5":function(t,e,n){var r=n("d039");t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,r="/";e.cwd=function(){return r},e.chdir=function(e){t||(t=n("df7c")),r=t.resolve(e,r)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"44ad":function(t,e,n){var r=n("e330"),i=n("d039"),a=n("c6b6"),o=Object,s=r("".split);t.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?s(t,""):o(t)}:o},4625:function(t,e,n){var r=n("c6b6"),i=n("e330");t.exports=function(t){if("Function"===r(t))return i(t)}},"485a":function(t,e,n){var r=n("c65b"),i=n("1626"),a=n("861d"),o=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!a(s=r(n,t)))return s;if(i(n=t.valueOf)&&!a(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!a(s=r(n,t)))return s;throw o("Can't convert object to primitive value")}},"4b11":function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"4d64":function(t,e,n){var r=n("fc6a"),i=n("23cb"),a=n("07fa"),o=function(t){return function(e,n,o){var s,c=r(e),u=a(c),l=i(o,u);if(t&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},"4e0a":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-essay__wrapper",style:{"--padding-inline":t.paddingInline+"px"},attrs:{"data-key":t.dataKey,type:"essay","page-index":t.pageIndex}},[e("div",{staticClass:"ac-essay",class:{"is-wrapper":"outer"===t.borderType,"is-editable":t.editable,"is-hidden__border-both":t.hiddenBorderBoth||!(t.row||t.title),"is-hidden__border-bottom":t.hiddenBorderBottom||!(t.row||t.title),"is-hidden__border-top":t.hiddenBorderTop||!(t.row||t.title)}},[t.title?e("div",{staticClass:"ac-essay__title ck-content",domProps:{innerHTML:t._s(t.title)}}):t._e(),t.row?e("div",{staticClass:"ac-essay__container"},[e("div",{staticClass:"ac-essay__area",class:t.rowClass,style:t.areaStyle},[["empty","block","spell_field"].includes(t.rowType)?t._e():[t._l(t.itemList,(function(n,r){return[t.getLiContent(r)?e("li",{key:"li_".concat(r),staticClass:"ac-essay__area-item",class:{"with-top":t.topLineVisible&&!r,"is-editable":"line"===t.rowType&&t.liEditable},domProps:{innerHTML:t._s(t.getLiContent(r))},on:{blur:function(e){return t.handleBlur(e,r)}}}):e("li",{key:r,staticClass:"ac-essay__area-item",class:{"with-top":t.topLineVisible&&!r,"is-editable":"line"===t.rowType&&t.liEditable,"is-first-column":!(r%t.formatColumn)},on:{blur:function(e){return t.handleBlur(e,r)}}},[t.showPrefix&&"line"===t.rowType?e("span",{staticClass:"ac-essay__area-prefix"},[t._v(" 【"+t._s(r+t.startRow+1)+"】 ")]):t._e(),t.wordCountStep&&["write","grid","write_plain"].includes(t.rowType)?e("span",[t._v(" "+t._s(t.getWordCount(r))+" ")]):t._e()])]}))],"spell_field"===t.rowType?t._l(Array(t.row).fill(""),(function(n,r){return e("li",{key:r,staticClass:"ac-essay__area-item"},[e("div",{staticClass:"ac-essay__area-spell"}),t._l(Array(t.formatColumn).fill(""),(function(t,n){return e("div",{key:n,staticClass:"ac-essay__area-field"})}))],2)})):t._e()],2),t.editable?e("div",{staticClass:"ac-essay__tool ac-edit-handler"},[t.rowEditable?[e("span",[t._v("行数:")]),e("el-input-number",{attrs:{size:"small",min:1,max:100},on:{change:t.handleRowChange},model:{value:t.rowNum,callback:function(e){t.rowNum=e},expression:"rowNum"}})]:t._e(),t.typeEditable?e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.openType}},[t._v(" 背景风格 ")]):t._e(),t.titleEditable?e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.handleEdit}},[t._v(" 编辑答题区 ")]):t._e()],2):t._e()]):t._e()]),e("ac-editor",{attrs:{visible:t.editorVisible,content:t.editContent,title:"编辑答题区","editor-id":"essay-editor_".concat(Date.now().toString(36))},on:{"update:visible":function(e){t.editorVisible=e},submit:t.handleSubmit}}),e("el-dialog",{attrs:{"custom-class":"ac-essay__dialog",visible:t.typeVisible,title:"设置背景风格",width:"770px"},on:{"update:visible":function(e){t.typeVisible=e}}},[e("div",{staticClass:"ac-bg"},[t.essayType.includes(0)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":0===t.currentType},on:{click:function(e){t.currentType=0}}},[e("i",{staticClass:"el-icon-success"}),t.essayType.length<4?e("div",{staticClass:"ac-bg__title"},[t._v("空白纸")]):t._e(),e("div",{staticClass:"ac-bg__wrapper"})]):t._e(),t.essayType.includes(1)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":1===t.currentType},on:{click:function(e){t.currentType=1}}},[e("i",{staticClass:"el-icon-success"}),t.essayType.length<4?e("div",{staticClass:"ac-bg__title"},[t._v("横线纸")]):t._e(),e("div",{staticClass:"ac-bg__wrapper is-line"},[e("div",{staticClass:"ac-bg__content"})])]):t._e(),t.essayType.includes(2)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":2===t.currentType},on:{click:function(e){t.currentType=2}}},[e("i",{staticClass:"el-icon-success"}),t.essayType.length<4?e("div",{staticClass:"ac-bg__title"},[t._v("方格纸")]):t._e(),e("div",{staticClass:"ac-bg__wrapper is-grid"},t._l(Array(4).fill(""),(function(t,n){return e("div",{key:n,staticClass:"ac-bg__content-item"})})),0)]):t._e(),t.essayType.includes(3)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":3===t.currentType},on:{click:function(e){t.currentType=3}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-field"},[e("div",{staticClass:"ac-bg__content"},t._l(Array(12).fill(""),(function(t,n){return e("div",{key:n,staticClass:"ac-bg__content-item"})})),0)])]):t._e(),t.essayType.includes(4)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":4===t.currentType},on:{click:function(e){t.currentType=4}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-block"},[e("div",{staticClass:"ac-bg__content"})])]):t._e(),t.essayType.includes(5)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":5===t.currentType},on:{click:function(e){t.currentType=5}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-write"},[e("div",{staticClass:"ac-bg__content"},t._l(Array(12).fill(""),(function(t,n){return e("li",{key:n,staticClass:"ac-bg__content-item"})})),0)])]):t._e(),t.essayType.includes(6)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":6===t.currentType},on:{click:function(e){t.currentType=6}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-spell-field"},[e("div",{staticClass:"ac-bg__content"},t._l(Array(3).fill(""),(function(n,r){return e("li",{key:r,staticClass:"ac-bg__content-item"},[e("div",{staticClass:"ac-bg__content-item-spell"}),t._l(Array(3).fill(""),(function(t,n){return e("div",{key:n,staticClass:"ac-bg__content-item-field"})}))],2)})),0)])]):t._e(),t.essayType.includes(7)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":7===t.currentType},on:{click:function(e){t.currentType=7}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-write-plain"},[e("div",{staticClass:"ac-bg__content"},t._l(Array(16).fill(""),(function(t,n){return e("li",{key:n,staticClass:"ac-bg__content-item"})})),0)])]):t._e()]),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){t.typeVisible=!1}}},[t._v("取消")]),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.changeType}},[t._v("确定")])],1)])],1)},i=[],a=n("6bdf"),o=n("5dcc"),s={name:"AcEssay",components:{AcEditor:a["default"]},props:{editable:{type:Boolean,default:!0},bgType:{type:Number,default:0},typeEditable:{type:Boolean,default:!0},row:{type:Number,default:4},startRow:{type:Number,default:0},rowCount:{type:Number,default:4},rowEditable:{type:Boolean,default:!0},title:{type:String,default:""},titleEditable:{type:Boolean,default:!0},liEditable:{type:Boolean,default:!1},showPrefix:{type:Boolean,default:!1},rowHeight:{type:[Number,String],default:""},rowGap:{type:[Number,String],default:""},width:{type:[Number,String],default:""},borderType:{type:String,default:"outer"},topLineVisible:{type:Boolean,default:!1},wordCountStep:{type:Number,default:100},paddingInline:{type:Number,default:55},dataKey:{type:String,default:""},hiddenBorderBottom:{type:Boolean,default:!1},hiddenBorderBoth:{type:Boolean,default:!1},pageIndex:{type:Number,default:0},hiddenBorderTop:{type:Boolean,default:!1},column:{type:Number,default:0}},inject:["essayType"],data:function(){return{rowNum:4,editorVisible:!1,editContent:"",typeVisible:!1,currentType:0}},computed:{rowConfig:function(){return this.$store.getters["AC/rowConfig"]},rowType:function(){var t=["empty","line","grid","field","block","write","spell_field","write_plain"];return t[this.bgType||0]},rowClass:function(){return"row-".concat(this.rowType).concat("outer"!==this.borderType&&["empty"].includes(this.rowType)?" is-wrapper":"")},areaStyle:function(){var t=this.rowConfig[this.bgType]||{},e="number"===typeof this.rowHeight?this.rowHeight:t.rowHeight||0,n="number"===typeof this.rowGap?this.rowGap:t.rowGap||0;switch(this.rowType){case"write":case"write_plain":n=e/9*2,e-=n;break;case"spell_field":n=e/9*4,e-=n;break}var r={"--row":this.row,"--row-height":e+"px","--row-gap":n+"px","--column":this.formatColumn};return["empty","line"].includes(this.rowType)&&(this.width||0===this.width)&&(r.width="number"===typeof this.width?this.width+"px":this.width),r},formatColumn:function(){var t=(this.rowConfig[this.bgType]||{}).column;return t?this.column||t:0},itemList:function(){return new Array(this.row*(this.formatColumn||1)).fill("")},rowDebounce:function(){return Object(o["a"])(this.commitRowChange,300)},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},getLiContent:function(){var t=this,e=this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{};return function(t){return((e.liList||[]).find((function(e){return e.liIndex===t}))||{}).content}}},watch:{rowCount:function(t){t!==this.rowNum&&(this.rowNum=t)}},created:function(){this.rowNum=this.rowCount},methods:{getWordCount:function(t){var e=this.startRow*this.formatColumn+t+1;return e%this.wordCountStep?"":"".concat(e,"字")},handleRowChange:function(t,e){(t||0===t||(this.rowNum="",e))&&this.rowDebounce()},commitRowChange:function(){this.$store.dispatch("AC/essay/setEssayRow",{dataKey:this.dataKey,row:this.rowNum}),this.$store.dispatch("AC/paper/resetPanel")},getFullTitle:function(){var t=this;return(this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{}).title||this.title},handleEdit:function(){this.editContent=this.getFullTitle(),this.editorVisible=!0},handleSubmit:function(t){this.$store.dispatch("AC/essay/setEssayTitle",{dataKey:this.dataKey,title:t}),this.$store.dispatch("AC/paper/resetPanel")},handleBlur:function(t,e){this.$store.dispatch("AC/essay/setEssayLi",{dataKey:this.dataKey,liIndex:e+this.startRow,content:t.target.innerHTML})},openType:function(){this.currentType=this.bgType,this.typeVisible=!0},changeType:function(){this.typeVisible=!1,this.$store.dispatch("AC/essay/setEssayBgType",{dataKey:this.dataKey,bgType:this.currentType}),this.$store.dispatch("AC/paper/resetPanel")}}},c=s,u=n("2877"),l=Object(u["a"])(c,r,i,!1,null,null,null),h=l.exports;h.install=function(t){t.component(h.name,h)};e["default"]=h},"4ea1":function(t,e,n){"use strict";var r=n("d429"),i=n("ebb5"),a=n("bcbf"),o=n("5926"),s=n("f495"),c=i.aTypedArray,u=i.getTypedArrayConstructor,l=i.exportTypedArrayMethod,h=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();l("with",{with:function(t,e){var n=c(this),i=o(t),l=a(n)?s(e):+e;return r(n,u(n),i,l)}}["with"],!h)},"50c4":function(t,e,n){var r=n("5926"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"53ca":function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,"a",(function(){return r}))},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(t,e,n){var r=n("d066"),i=n("e330"),a=n("241c"),o=n("7418"),s=n("825a"),c=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=a.f(s(t)),n=o.f;return n?c(e,n(t)):e}},"577e":function(t,e,n){var r=n("f5df"),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},5926:function(t,e,n){var r=n("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},"59ed":function(t,e,n){var r=n("1626"),i=n("0d51"),a=TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not a function")}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5dcc":function(t,e,n){"use strict";n.d(e,"a",(function(){return k})),n.d(e,"d",(function(){return E})),n.d(e,"b",(function(){return S})),n.d(e,"c",(function(){return I}));n("14d9"),n("b7ef"),n("907a"),n("986a"),n("1d02"),n("3c5d"),n("6ce5"),n("2834"),n("4ea1");var r=b(),i=w(),a=C(),o=A(),s={imagePlaceholder:void 0,cacheBust:!1},c={toSvg:u,toPng:h,toJpeg:d,toBlob:f,toPixelData:l,impl:{fontFaces:a,images:o,util:r,inliner:i,options:{}}};function u(t,e){return e=e||{},p(e),Promise.resolve(t).then((function(t){return m(t,e.filter,!0)})).then(y).then(v).then(n).then((function(n){return _(n,e.width||r.width(t),e.height||r.height(t))}));function n(t){return e.bgcolor&&(t.style.backgroundColor=e.bgcolor),e.width&&(t.style.width=e.width+"px"),e.height&&(t.style.height=e.height+"px"),e.style&&Object.keys(e.style).forEach((function(n){t.style[n]=e.style[n]})),t}}function l(t,e){return g(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,r.width(t),r.height(t)).data}))}function h(t,e){return g(t,e||{}).then((function(t){return t.toDataURL()}))}function d(t,e){return e=e||{},g(t,e).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))}function f(t,e){return g(t,e||{}).then(r.canvasToBlob)}function p(t){"undefined"===typeof t.imagePlaceholder?c.impl.options.imagePlaceholder=s.imagePlaceholder:c.impl.options.imagePlaceholder=t.imagePlaceholder,"undefined"===typeof t.cacheBust?c.impl.options.cacheBust=s.cacheBust:c.impl.options.cacheBust=t.cacheBust}function g(t,e){return u(t,e).then(r.makeImage).then(r.delay(100)).then((function(e){var r=n(t);return r.getContext("2d").drawImage(e,0,0),r}));function n(t){var n=document.createElement("canvas"),i=n.getContext("2d");i.mozImageSmoothingEnabled=!1,i.webkitImageSmoothingEnabled=!1,i.msImageSmoothingEnabled=!1,i.imageSmoothingEnabled=!1;var a=e.scale||1,o=e.width||r.width(t),s=e.height||r.height(t);return n.width=o*a,n.height=s*a,e.imageWidth&&(a=e.imageWidth/(o||1),n.width=e.imageWidth,n.height=s*a),e.imageHeight&&(a=e.imageHeight/(s||1),n.width=o*a,n.height=e.imageHeight),i.scale(a,a),e.bgcolor&&(i.fillStyle=e.bgcolor,i.fillRect(0,0,n.width,n.height)),n}}function m(t,e,n){return n||!e||e(t)?Promise.resolve(t).then(i).then((function(n){return a(t,n,e)})).then((function(e){return o(t,e)})):Promise.resolve();function i(t){return t instanceof HTMLCanvasElement?r.makeImage(t.toDataURL()):t.cloneNode(!1)}function a(t,e,n){var i=t.childNodes;return 0===i.length?Promise.resolve(e):a(e,r.asArray(i),n).then((function(){return e}));function a(t,e,n){var r=Promise.resolve();return e.forEach((function(e){r=r.then((function(){return m(e,n)})).then((function(e){e&&t.appendChild(e)}))})),r}}function o(t,e){return e instanceof Element?Promise.resolve().then(n).then(i).then(a).then(o).then((function(){return e})):e;function n(){function n(t,e){function n(t,e){r.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}t.cssText?e.cssText=t.cssText:n(t,e)}n(window.getComputedStyle(t),e.style)}function i(){function n(n){var i=window.getComputedStyle(t,n),a=i.getPropertyValue("content");if(""!==a&&"none"!==a){var o=r.uid();e.className=e.className+" "+o;var s=document.createElement("style");s.appendChild(c(o,n,i)),e.appendChild(s)}function c(t,e,n){var i="."+t+":"+e,a=n.cssText?o(n):s(n);return document.createTextNode(i+"{"+a+"}");function o(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function s(t){return r.asArray(t).map(e).join("; ")+";";function e(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")}}}}[":before",":after"].forEach((function(t){n(t)}))}function a(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function o(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach((function(t){var n=e.getAttribute(t);n&&e.style.setProperty(t,n)})))}}}function y(t){return a.resolveAll().then((function(e){var n=document.createElement("style");return t.appendChild(n),n.appendChild(document.createTextNode(e)),t}))}function v(t){return o.inlineAll(t).then((function(){return t}))}function _(t,e,n){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(r.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+n+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}function b(){return{escape:d,parseExtension:e,mimeType:n,dataAsUrl:h,isDataUrl:r,canvasToBlob:a,resolveUrl:o,getAndEncode:l,uid:s(),delay:f,asArray:p,escapeXhtml:g,makeImage:u,width:m,height:y};function t(){var t="application/font-woff",e="image/jpeg";return{woff:t,woff2:t,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:e,jpeg:e,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function e(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function n(n){var r=e(n).toLowerCase();return t()[r]||""}function r(t){return-1!==t.search(/^(data:)/)}function i(t){return new Promise((function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);e(new Blob([i],{type:"image/png"}))}))}function a(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):i(t)}function o(t,e){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var i=n.createElement("a");return n.body.appendChild(i),r.href=e,i.href=t,i.href}function s(){var t=0;return function(){return"u"+e()+t++;function e(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function u(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src=t}))}function l(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=3e4;return(c.impl.options.cacheBust||n)&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime()),e&&t.startsWith("http")&&!t.startsWith("https")&&(t=t.replace("http","https")),new Promise((function(e){var n,i=new XMLHttpRequest;if(i.onreadystatechange=o,i.ontimeout=s,i.responseType="blob",i.timeout=r,i.open("GET",t,!0),i.send(),c.impl.options.imagePlaceholder){var a=c.impl.options.imagePlaceholder.split(/,/);a&&a[1]&&(n=a[1])}function o(){if(4===i.readyState)if(200===i.status){var r=new FileReader;r.onloadend=function(){var t=r.result.split(/,/)[1];e({content:t,fullUrl:r.result})},r.readAsDataURL(i.response)}else n?e(n):u("cannot fetch resource: "+t+", status: "+i.status)}function s(){n?e(n):u("timeout of "+r+"ms occured while fetching resource: "+t)}function u(t){e("")}}))}function h(t,e){return"data:"+e+";base64,"+t}function d(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function f(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}}function p(t){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}function g(t){return t.replace(/%/g,"%25").replace(/#/g,"%23").replace(/\n/g,"%0A").replace(/\v/g," ")}function m(t){var e=v(t,"border-left-width"),n=v(t,"border-right-width");return t.scrollWidth+e+n}function y(t){var e=v(t,"border-top-width"),n=v(t,"border-bottom-width");return t.scrollHeight+e+n}function v(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}}function w(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:a,shouldProcess:e,impl:{readUrls:n,inline:i}};function e(e){return-1!==e.search(t)}function n(e){var n,i=[];while(null!==(n=t.exec(e)))i.push(n[1]);return i.filter((function(t){return!r.isDataUrl(t)}))}function i(t,e,n,i){return Promise.resolve(e).then((function(t){return n?r.resolveUrl(t,n):t})).then(i||r.getAndEncode).then((function(t){var n=t.content;t.fullUrl;return r.dataAsUrl(n,r.mimeType(e))})).then((function(n){return t.replace(a(e),"$1"+n+"$3")}));function a(t){return new RegExp("(url\\(['\"]?)("+r.escape(t)+")(['\"]?\\))","g")}}function a(t,r,a){return o()?Promise.resolve(t):Promise.resolve(t).then(n).then((function(e){var n=Promise.resolve(t);return e.forEach((function(t){n=n.then((function(e){return"about:blank"===t?Promise.resolve(t):i(e,t,r,a)}))})),n}));function o(){return!e(t)}}}function C(){return{resolveAll:t,impl:{readAll:e}};function t(){return e(document).then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))}function e(){return Promise.resolve(r.asArray(document.styleSheets)).then(e).then(t).then((function(t){return t.map(n)}));function t(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return i.shouldProcess(t.style.getPropertyValue("src"))}))}function e(t){var e=[];return t.forEach((function(t){try{r.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(n){}})),e}function n(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return i.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}function A(){return{inlineAll:e,impl:{newImage:t}};function t(t){return{inline:e};function e(e){return r.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||function(t){return r.getAndEncode(t,!0,!0)}).then((function(t){t.content;var e=t.fullUrl;return e})).then((function(e){return new Promise((function(n,r){t.onload=n,t.onerror=r,t.src=e}))})).catch((function(){return t.src}))}}function e(n){return n instanceof Element?a(n).then((function(){return n instanceof HTMLImageElement?t(n).inline():Promise.all(r.asArray(n.childNodes).map((function(t){return e(t)})))})):Promise.resolve(n);function a(t){var e=t.style.getPropertyValue("background");return e?i.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}}}var x=c,k=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,n=arguments.length>2?arguments[2]:void 0,r=0;return function(){var i=this,a=arguments;r&&clearTimeout(r),n?(r||t.apply(i,a),r=setTimeout((function(){r=0}),e)):r=setTimeout((function(){t.apply(i,a)}),e)}},T=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=0,r=[],i=[],a=function a(){if(n===t.length)return Promise.resolve();var o=t[n++],s=Promise.resolve().then((function(){return o()}));r.push(s);var c=s.then((function(){return i.splice(i.indexOf(c),1)}));i.push(c);var u=i.length>=e?Promise.race(i):Promise.resolve();return u.then((function(){return a()}))};return a().then((function(){return Promise.all(r)}))},E=function(t){var e=[],n=/<img.*?(?:>|\/>)/gi,r=/src=['"]?([^'"]*)['"]?/i,i=function(t){if(t){var i=t.match(n);Array.isArray(i)&&i.forEach((function(t){var n=t.match(r);Array.isArray(n)&&n[1]&&e.push(new Promise((function(t,e){var r=new Image;r.onload=function(){return t()},r.onerror=function(){return e()},r.src=n[1]})))}))}},a=function t(e){e.forEach((function(e){"complex"!==e.code&&e.children||(i(e.title),Array.isArray(e.choices)&&e.choices.forEach((function(t){return i(t.content)}))),e.children&&e.children.length&&t(e.children)}))};return a(t),new Promise((function(t,n){Promise.allSettled(e).then((function(){return t()}))}))},S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2?arguments[2]:void 0;if(!t.length)return Promise.resolve([]);for(var r=[],i=function(){var i=t[a];r.push((function(){return x.toJpeg(i,{quality:.95,scale:e,width:i.offsetWidth,height:i.offsetHeight,imageWidth:n,bgcolor:"#ffffff"})}))},a=0;a<t.length;a++)i();return T(r)},I=function(t){var e=0;try{var n=t.getBoundingClientRect(),r=n.top,i=t.parentNode.getBoundingClientRect(),a=i.top;e=r-a}catch(o){e=t.offsetTop}return e}},"5e77":function(t,e,n){var r=n("83ab"),i=n("1a2d"),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&o(a,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},"605d":function(t,e,n){(function(e){var r=n("c6b6");t.exports="undefined"!=typeof e&&"process"==r(e)}).call(this,n("4362"))},6374:function(t,e,n){var r=n("da84"),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},"639e":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-config__bar"},[e("div",{class:["ac-config__arrow",t.showConfig?"el-icon-caret-right":"el-icon-caret-left"],on:{click:function(e){t.showConfig=!t.showConfig}}}),e("div",{staticClass:"ac-config__wrapper",class:{"is-hidden":!t.showConfig}},[e("div",{staticClass:"container"},[e("div",{staticClass:"config-mainCtrl"},[e("div",{staticClass:"first-row"},[e("el-button",{attrs:{size:"medium",icon:"icon el-icon-download"},on:{click:t.save}},[t._v("保存")]),e("el-button",{attrs:{size:"medium",icon:"icon el-icon-view"},on:{click:function(e){t.previewVisible=!0}}},[t._v(" 预览 ")])],1),e("div",{staticClass:"second-row"},[e("el-button",{staticClass:"ac-card-btn ac-card-btn--main ac-card-btn--large",attrs:{type:"primary"},on:{click:t.download}},[t._v(" 下载并保存 ")])],1)]),t.modeChangeable?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("选择答题卡模式")]),e("div",{staticClass:"ac-config__item answer-mode"},[e("el-radio-group",{model:{value:t.answerSheetMode,callback:function(e){t.answerSheetMode=e},expression:"answerSheetMode"}},[e("el-radio",{attrs:{label:0}},[t._v("扫描")]),e("el-radio",{attrs:{label:1}},[t._v("点阵笔")])],1)],1)]):t._e(),t.layoutChangeable?e("change-layout",{attrs:{mode:t.answerSheetMode}}):t._e(),t.showStudentInfo?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("考生须知")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isShowAttention,callback:function(e){t.isShowAttention=e},expression:"isShowAttention"}})],1)]):t._e(),t.showStudentInfo?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("学生信息")]),e("div",{staticClass:"ac-config__item tags-box answer-mode"},[t._l(t.studentInfoTags,(function(n){return e("el-tag",{key:n,staticClass:"tags",attrs:{closable:t.studentInfoTags.length>1,"disable-transitions":!1,effect:"dark",size:"small"},on:{close:function(e){return t.handleClose(n)}}},[t._v(" "+t._s(n)+" ")])})),t.studentInfoTags.length<6&&t.inputVisible?e("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{maxLength:"4",size:"small"},on:{blur:t.handleInputConfirm},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleInputConfirm.apply(null,arguments)}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}):t._e(),t.studentInfoTags.length<6&&!t.inputVisible?e("el-button",{staticClass:"button-new-tag",attrs:{size:"mini"},on:{click:t.showInput}},[e("i",{staticClass:"el-icon-plus"}),t._v(" 添加 ")]):t._e()],2)]):t._e(),1===t.answerSheetMode&&t.showStudentInfo?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("教育ID")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isShowEducationId,callback:function(e){t.isShowEducationId=e},expression:"isShowEducationId"}})],1)]):t._e(),0===t.answerSheetMode||t.isShowEducationId?[e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("教育ID位数")]),e("div",{staticClass:"ac-config__item"},[e("el-select",{attrs:{placeholder:"请选择"},model:{value:t.educationIdValue,callback:function(e){t.educationIdValue=e},expression:"educationIdValue"}},t._l(Array(13),(function(t,n){return e("el-option",{key:n,attrs:{label:n+6,value:n+6}})})),1)],1)]),e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("选择考号板式")]),e("div",{staticClass:"ac-config__item"},[e("el-radio-group",{model:{value:t.registrationNumberType,callback:function(e){t.registrationNumberType=e},expression:"registrationNumberType"}},[e("el-radio",{attrs:{label:0}},[t._v("条形码")]),e("el-radio",{attrs:{label:1}},[t._v("教育ID")])],1)],1)])]:t._e(),0===t.answerSheetMode?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("客观题排列")]),e("div",{staticClass:"ac-config__item"},[e("el-radio-group",{model:{value:t.objectiveOrder,callback:function(e){t.objectiveOrder=e},expression:"objectiveOrder"}},[e("el-radio",{attrs:{label:"row"}},[t._v("横排")]),e("el-radio",{attrs:{label:"column"}},[t._v("竖排")])],1)],1)]):t._e(),0===t.answerSheetMode?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("判断题样式(TF/✓×)")]),e("div",{staticClass:"ac-config__item"},[e("el-radio-group",{model:{value:t.judgmentMode,callback:function(e){t.judgmentMode=e},expression:"judgmentMode"}},[e("el-radio",{attrs:{label:0}},[t._v("TF")]),e("el-radio",{attrs:{label:1}},[t._v("✓×")])],1)],1)]):t._e(),1===t.answerSheetMode&&t.titleSwitchable?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("显示题目内容")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isShowQuestion,callback:function(e){t.isShowQuestion=e},expression:"isShowQuestion"}})],1)]):t._e(),t.showStudentInfo?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__row--sub"},[e("div",{staticClass:"ac-config__label"},[t._v("手工批阅")]),e("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:"该试卷存在多个得分点题目,不支持线下批阅,请重新选择试卷",placement:"top-end",disabled:!t.graffitiDisable,"open-delay":200}},[e("div",{staticClass:"ac-config__item"},[e("el-switch",{attrs:{disabled:t.graffitiDisable},model:{value:t.handRead,callback:function(e){t.handRead=e},expression:"handRead"}})],1)])],1),t.readType&&1===t.answerSheetMode?e("div",{staticClass:"ac-config__row--sub"},[e("div",{staticClass:"ac-config__label"},[t._v("设置给分框样式")]),e("div",{staticClass:"ac-config__item"},[e("el-radio-group",{model:{value:t.readType,callback:function(e){t.readType=e},expression:"readType"}},[e("el-radio",{attrs:{label:"hand"}},[t._v("手写")]),e("el-radio",{attrs:{label:"graffiti"}},[t._v("涂点")])],1)],1)]):t._e()]):t._e(),0===t.answerSheetMode?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("添加页脚")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isAddFooter,callback:function(e){t.isAddFooter=e},expression:"isAddFooter"}})],1)]):t._e(),0!==t.answerSheetMode&&"graffiti"!==t.readType||1!==t.layout?t._e():e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("答题卡拼凑打印")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isPatchwork,callback:function(e){t.isPatchwork=e},expression:"isPatchwork"}})],1)])],2)]),e("ac-preview",{attrs:{visible:t.previewVisible,selector:".ac-panel .ac-piece__wrapper"},on:{"update:visible":function(e){t.previewVisible=e}}}),t.acMode?t._e():e("el-dialog",{staticClass:"download-dialog",attrs:{title:"下载提示",visible:t.showDownloadModal,width:"520px",center:"","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(e){t.showDownloadModal=e}}},[e("p",{staticClass:"message"},[t._v(" 选择导出以下内容 "),e("span",{staticClass:"redTip"},[t._v("(为了保证下载内容的质量,建议使用chrome进行下载)")])]),e("div",{staticClass:"tip"},[e("el-radio",{attrs:{label:"sweep"},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[t._v("答题卡")]),e("el-select",{attrs:{placeholder:"请选择"},model:{value:t.downloadType,callback:function(e){t.downloadType=e},expression:"downloadType"}},[e("el-option",{attrs:{label:"PDF",value:"PDF"}}),e("el-option",{attrs:{label:"PNG",value:"PNG"}})],1)],1),e("div",{staticClass:"paper-type_selector"},[e("span",{staticClass:"label"},[t._v("请选择纸张大小")]),e("el-select",{attrs:{placeholder:"请选择"},model:{value:t.downloadSize,callback:function(e){t.downloadSize=e},expression:"downloadSize"}},[e("el-option",{attrs:{label:1===t.layout?"A4":"A3",value:1===t.layout?"A4":"A3"}}),e("el-option",{attrs:{label:1===t.layout?"16K":"8K",value:1===t.layout?"16K":"8K"}})],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{size:"small"},on:{click:function(e){t.showDownloadModal=!1}}},[t._v("取 消")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.confirmDownload}},[t._v("确 定")])],1)])],1)},i=[],a=(n("14d9"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("选择答题卡模式")]),e("div",{staticClass:"ac-config__item answer-mode-other"},[e("p",{staticClass:"ac-card-config__sublabel"},[t._v("适用于"+t._s(t.subLabel)+"纸张")]),e("div",{staticClass:"layout-config"},[e("div",{class:["layout-config-item",t.disableOneLayout&&"disable-style"],attrs:{"aria-disabled":t.disableOneLayout},on:{click:function(e){return t.changeAnswerCardLayout(1)}}},[e("div",{class:["layout-image",1===t.layout?"is-selected":null]},[e("img",{attrs:{src:n("d09a"),alt:"一栏"}})]),e("p",{staticClass:"layout-name"},[t._v("一栏")])]),e("div",{staticClass:"layout-config-item",on:{click:function(e){return t.changeAnswerCardLayout(2)}}},[e("div",{class:["layout-image",2===t.layout?"is-selected":null]},[e("img",{attrs:{src:n("eb33"),alt:"两栏"}})]),e("p",{staticClass:"layout-name"},[t._v("两栏")])]),0===t.mode?e("div",{staticClass:"layout-config-item",on:{click:function(e){return t.changeAnswerCardLayout(3)}}},[e("div",{class:["layout-image",3===t.layout?"is-selected":null]},[e("img",{attrs:{src:n("f714"),alt:"三栏"}})]),e("p",{staticClass:"layout-name"},[t._v("三栏")])]):t._e()]),1===t.mode?e("el-radio-group",{model:{value:t.sizeType,callback:function(e){t.sizeType=e},expression:"sizeType"}},[e("el-radio",{attrs:{label:"A"}},[t._v(t._s(1===t.layout?"A4":"A3"))]),e("el-radio",{attrs:{label:"K"}},[t._v(t._s(1===t.layout?"16K":"8K"))])],1):t._e()],1)])}),o=[],s={name:"ChangeLayout",components:{},props:{mode:{type:Number,default:0}},computed:{sizeType:{get:function(){return this.$store.getters["AC/sizeType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setSizeType",t),this.$store.dispatch("AC/paper/resetPanel")}},layout:function(){return this.$store.getters["AC/layout"]},disableOneLayout:function(){return this.$store.getters["AC/disableOneLayout"]},subLabel:function(){return 0===this.mode?1===this.layout?"A4、16K":"A3、8K":"A"===this.sizeType?1===this.layout?"A4":"A3":1===this.layout?"16K":"8K"}},watch:{},mounted:function(){},data:function(){return{}},methods:{changeAnswerCardLayout:function(t){this.$store.dispatch("AC/answerConfig/setAnswerCardLayout",t),t>1&&this.$store.dispatch("AC/answerConfig/setPatchwork",!1),this.$store.dispatch("AC/paper/resetPanel")}}},c=s,u=n("2877"),l=Object(u["a"])(c,a,o,!1,null,null,null),h=l.exports,d=n("2b16"),f={name:"AcAnswerConfig",components:{changeLayout:h,AcPreview:d["default"]},props:{modeChangeable:{type:Boolean,default:!0},layoutChangeable:{type:Boolean,default:!0},titleSwitchable:{type:Boolean,default:!0},graffitiDisable:{type:Boolean,default:!1}},inject:["showStudentInfo"],computed:{answerSheetMode:{get:function(){return this.$store.getters["AC/answerCardMode"]},set:function(t){this.$store.dispatch("AC/answerConfig/setAnswerCardMode",t),0===t&&this.$store.dispatch("AC/answerConfig/setSizeType","A")}},isShowAttention:{get:function(){return this.$store.getters["AC/showAttention"]},set:function(t){this.$store.dispatch("AC/answerConfig/setAttention",t),this.$store.dispatch("AC/paper/resetPanel")}},studentInfoArr:function(){return this.$store.getters["AC/studentInfo"]},isShowEducationId:{get:function(){return this.$store.getters["AC/showEducationId"]},set:function(t){this.$store.dispatch("AC/answerConfig/setShowEducationId",t),this.$store.dispatch("AC/paper/resetPanel")}},educationIdValue:{get:function(){return this.$store.getters["AC/educationIdValue"]},set:function(t){this.$store.dispatch("AC/answerConfig/setEducationId",t),this.$store.dispatch("AC/paper/resetPanel")}},registrationNumberType:{get:function(){return this.$store.getters["AC/registrationNumberType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setRegistrationNumberType",t),this.$store.dispatch("AC/paper/resetPanel")}},objectiveOrder:{get:function(){return this.$store.getters["AC/objectiveOrder"]},set:function(t){this.$store.dispatch("AC/answerConfig/setObjectiveOrder",t),this.$store.dispatch("AC/paper/resetPanel")}},judgmentMode:{get:function(){return this.$store.getters["AC/judgmentMode"]},set:function(t){this.$store.dispatch("AC/answerConfig/setJudgmentMode",t)}},isShowQuestion:{get:function(){return this.$store.getters["AC/showQuestion"]},set:function(t){this.$store.dispatch("AC/answerConfig/setShowQuestion",t),this.$store.dispatch("AC/paper/resetEditTitle")}},handRead:{get:function(){return!!this.readType},set:function(t){this.readType=t?"graffiti":""}},readType:{get:function(){return this.$store.getters["AC/readType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setReadType",t),this.$store.dispatch("AC/paper/resetPanel")}},isAddFooter:{get:function(){return this.$store.getters["AC/addFooter"]},set:function(t){this.$store.dispatch("AC/answerConfig/setAddFooter",t)}},isPatchwork:{get:function(){return this.$store.getters["AC/patchwork"]},set:function(t){this.$store.dispatch("AC/answerConfig/setPatchwork",t),this.$store.dispatch("AC/paper/resetPanel")}},layout:function(){return this.$store.getters["AC/layout"]},downloadType:{get:function(){return this.$store.getters["AC/downloadType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setDownloadType",t)}},downloadSize:{get:function(){return this.$store.getters["AC/downloadSize"]},set:function(t){this.$store.dispatch("AC/answerConfig/setDownloadSize",t)}},acMode:function(){return this.$store.getters["AC/answerCardMode"]}},watch:{studentInfoArr:function(){this.studentInfoTags=this.studentInfoArr}},mounted:function(){this.studentInfoTags=this.studentInfoArr},data:function(){return{studentInfoTags:[],inputVisible:!1,inputValue:"",showConfig:!0,previewVisible:!1,showDownloadModal:!1,radio:"sweep"}},methods:{handleClose:function(t){this.studentInfoTags.splice(this.studentInfoTags.indexOf(t),1),this.$store.dispatch("AC/answerConfig/setStudentInfo",this.studentInfoTags),this.$store.dispatch("AC/paper/resetPanel")},showInput:function(){var t=this;this.inputVisible=!0,this.$nextTick((function(e){t.$refs.saveTagInput.$refs.input.focus()}))},handleInputConfirm:function(){var t=this.inputValue;t&&-1===this.studentInfoTags.indexOf(t)&&this.studentInfoTags.push(t),this.inputVisible=!1,this.inputValue="",this.$store.dispatch("AC/answerConfig/setStudentInfo",this.studentInfoTags),this.$store.dispatch("AC/paper/resetPanel")},download:function(){this.acMode?this.$emit("download"):(this.showDownloadModal=!0,this.$store.dispatch("AC/answerConfig/setDownloadSize",1===this.layout?"A4":"A3"))},confirmDownload:function(){this.showDownloadModal=!1,this.$emit("download")},save:function(){this.$emit("save")}}},p=f,g=Object(u["a"])(p,r,i,!1,null,null,null),m=g.exports;m.install=function(t){t.component(m.name,m)};e["default"]=m},"69f3":function(t,e,n){var r,i,a,o=n("cdce"),s=n("da84"),c=n("861d"),u=n("9112"),l=n("1a2d"),h=n("c6cd"),d=n("f772"),f=n("d012"),p="Object already initialized",g=s.TypeError,m=s.WeakMap,y=function(t){return a(t)?i(t):r(t,{})},v=function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return n}};if(o||h.state){var _=h.state||(h.state=new m);_.get=_.get,_.has=_.has,_.set=_.set,r=function(t,e){if(_.has(t))throw g(p);return e.facade=t,_.set(t,e),e},i=function(t){return _.get(t)||{}},a=function(t){return _.has(t)}}else{var b=d("state");f[b]=!0,r=function(t,e){if(l(t,b))throw g(p);return e.facade=t,u(t,b,e),e},i=function(t){return l(t,b)?t[b]:{}},a=function(t){return l(t,b)}}t.exports={set:r,get:i,has:a,enforce:y,getterFor:v}},"6bdf":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{"custom-class":"ac-editor",visible:t.currentVisible,title:t.title,top:"10vh",width:"868px","close-on-click-modal":!1},on:{"update:visible":function(e){t.currentVisible=e},open:t.handleOpen}},[e("textarea",{attrs:{id:t.editorId}}),e("div",{staticClass:"ac-editor__footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.close}},[t._v("取消")]),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.confirm}},[t._v("确定")])],1)])},i=[],a=n("d4ec"),o=n("bee2"),s={name:"AcEditor",props:{title:{type:String,default:"编辑标题"},content:{type:String,default:""},visible:{type:Boolean,default:!1},editorId:{type:String,default:"ac-editor"},editorConstructor:{type:Function,default:function(){}}},inject:["uploadOss","ClassicEditor"],data:function(){return{editor:null}},computed:{currentVisible:{get:function(){return this.visible},set:function(t){this.$emit("update:visible",t)}},uploadAdapter:function(){var t=this.uploadOss;return function(){function e(t){Object(a["a"])(this,e),this.loader=t}return Object(o["a"])(e,[{key:"upload",value:function(){var e=this;return new Promise((function(n,r){e.loader.file.then((function(e){return t(e,n)}))}))}}]),e}()},createFn:function(){return this.ClassicEditor||this.editorConstructor}},methods:{handleOpen:function(){var t=this;this.$nextTick((function(){return t.initEditor()}))},close:function(){this.currentVisible=!1},confirm:function(){this.close(),this.editor&&this.$emit("submit",this.editor.getData())},initEditor:function(){var t=this;this.editor?(""===this.content||this.content)&&this.editor.setData(this.content):this.createFn.create(document.querySelector("#".concat(this.editorId)),{isReadOnly:!0,placeholder:"请输入~",image:{resizeUnit:"px",toolbar:[{name:"imageStyle:pictures",items:["imageStyle:alignBlockLeft","imageStyle:alignCenter","imageStyle:alignBlockRight"],defaultItem:"imageStyle:alignCenter"},"|","toggleImageCaption","imageStyle:inline"]}}).then((function(e){t.editor=e,t.content&&t.editor.setData(t.content),t.addSpecialCharacters(e),e.plugins.get("FileRepository").createUploadAdapter=function(e){return new t.uploadAdapter(e)},e.on("instanceReady",(function(t){t.editor.execCommand("toolbarCollapse")}))}))},addSpecialCharacters:function(t){t.plugins.get("SpecialCharacters").addItems("编号",[{title:"①",character:"①"},{title:"②",character:"②"},{title:"③",character:"③"},{title:"④",character:"④"},{title:"⑤",character:"⑤"},{title:"⑥",character:"⑥"},{title:"⑦",character:"⑦"},{title:"⑧",character:"⑧"},{title:"⑨",character:"⑨"},{title:"⑩",character:"⑩"},{title:"(1)",character:"(1)"},{title:"(2)",character:"(2)"},{title:"(3)",character:"(3)"},{title:"(4)",character:"(4)"},{title:"(5)",character:"(5)"},{title:"(6)",character:"(6)"},{title:"(7)",character:"(7)"},{title:"(8)",character:"(8)"},{title:"(9)",character:"(9)"},{title:"(10)",character:"(10)"},{title:"1)",character:"1)"},{title:"2)",character:"2)"},{title:"3)",character:"3)"},{title:"4)",character:"4)"},{title:"5)",character:"5)"},{title:"6)",character:"6)"},{title:"7)",character:"7)"},{title:"8)",character:"8)"},{title:"9)",character:"9)"},{title:"10)",character:"10)"},{title:"一",character:"一"},{title:"二",character:"二"},{title:"三",character:"三"},{title:"四",character:"四"},{title:"五",character:"五"},{title:"六",character:"六"},{title:"七",character:"七"},{title:"八",character:"八"},{title:"九",character:"九"},{title:"十",character:"十"},{title:"(一)",character:"(一)"},{title:"(二)",character:"(二)"},{title:"(三)",character:"(三)"},{title:"(四)",character:"(四)"},{title:"(五)",character:"(五)"},{title:"(六)",character:"(六)"},{title:"(七)",character:"(七)"},{title:"(八)",character:"(八)"},{title:"(九)",character:"(九)"},{title:"(十)",character:"(十)"}])}}},c=s,u=n("2877"),l=Object(u["a"])(c,r,i,!1,null,null,null),h=l.exports;h.install=function(t){t.component(h.name,h)};e["default"]=h},"6ce5":function(t,e,n){"use strict";var r=n("df7e"),i=n("ebb5"),a=i.aTypedArray,o=i.exportTypedArrayMethod,s=i.getTypedArrayConstructor;o("toReversed",(function(){return r(a(this),s(this))}))},"6f19":function(t,e,n){var r=n("9112"),i=n("0d26"),a=n("b980"),o=Error.captureStackTrace;t.exports=function(t,e,n,s){a&&(o?o(t,e):r(t,"stack",i(n,s)))}},7156:function(t,e,n){var r=n("1626"),i=n("861d"),a=n("d2bb");t.exports=function(t,e,n){var o,s;return a&&r(o=e.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&a(t,s),t}},7234:function(t,e){t.exports=function(t){return null===t||void 0===t}},7282:function(t,e,n){var r=n("e330"),i=n("59ed");t.exports=function(t,e,n){try{return r(i(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(a){}}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("1d80"),i=Object;t.exports=function(t){return i(r(t))}},"825a":function(t,e,n){var r=n("861d"),i=String,a=TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not an object")}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,e,n){var r=n("1626"),i=n("8ea1"),a=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===a}:function(t){return"object"==typeof t?null!==t:r(t)}},8925:function(t,e,n){var r=n("e330"),i=n("1626"),a=n("c6cd"),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(t){return o(t)}),t.exports=a.inspectSource},"8ea1":function(t,e){var n="object"==typeof document&&document.all,r="undefined"==typeof n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:r}},"8f60":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{class:["ac-graffiti__wrapper",t.hidePadding&&"is-hide-padding"]},[e("div",{class:["ac-graffiti",t.hideBottomBorder&&"is-hide-bottom",t.hideTopBorder&&"is-hide-top"],attrs:{"data-scan-type":"review","data-scan-name":t.scanName,"data-scan-score":t.score}},t._l(Array(21).fill(""),(function(n,r){return e("span",{key:r,staticClass:"ac-graffiti__item"},[t._v(" "+t._s(t.getItem(r))+" ")])})),0)])},i=[],a={name:"AcGraffiti",props:{score:{type:Number,required:!0},scanName:{type:String},hidePadding:{type:Boolean,required:!1},hideBottomBorder:{type:Boolean,required:!1},hideTopBorder:{type:Boolean,required:!1}},methods:{getItem:function(t){if(20===t)return.5;if(this.score>=20)return t>9||10*t<=this.score?t%10:"";var e=20-this.score-1;return t>=e?20-t-1:""}}},o=a,s=n("2877"),c=Object(s["a"])(o,r,i,!1,null,null,null),u=c.exports;u.install=function(t){t.component(u.name,u)};e["default"]=u},"907a":function(t,e,n){"use strict";var r=n("ebb5"),i=n("07fa"),a=n("5926"),o=r.aTypedArray,s=r.exportTypedArrayMethod;s("at",(function(t){var e=o(this),n=i(e),r=a(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}))},"90e3":function(t,e,n){var r=n("e330"),i=0,a=Math.random(),o=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++i+a,36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),a=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,a(1,n))}:function(t,e,n){return t[e]=n,t}},9152:function(t,e){
3
+ _=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(O){c=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var a=e&&e.prototype instanceof d?e:d,o=Object.create(a.prototype),s=new E(i||[]);return r(o,"_invoke",{value:A(t,n,s)}),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(O){return{type:"throw",arg:O}}}t.wrap=u;var h={};function d(){}function f(){}function p(){}var g={};c(g,a,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(S([])));y&&y!==e&&n.call(y,a)&&(g=y);var b=p.prototype=d.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function i(r,a,o,s){var c=l(t[r],t,a);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==Object(v["a"])(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,o,s)}),(function(t){i("throw",t,o,s)})):e.resolve(h).then((function(t){u.value=t,o(u)}),(function(t){return i("throw",t,o,s)}))}s(c.arg)}var a;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function A(t,e,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return I()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=x(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function x(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=l(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function S(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:I}}function I(){return{value:void 0,done:!0}}return f.prototype=p,r(b,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:f,configurable:!0}),f.displayName=c(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(C.prototype),c(C.prototype,o,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise);var o=new C(u(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},w(b),c(b,s,"Generator"),c(b,a,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return o.type="throw",o.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function b(t,e,n,r,i,a,o){try{var s=t[a](o),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,i)}function w(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function o(t){b(a,r,i,o,s,"next",t)}function s(t){b(a,r,i,o,s,"throw",t)}o(void 0)}))}}var C=n("d4ec"),A=n("bee2"),x=n("4e0a"),k=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-question ck-content",attrs:{"data-key":t.dataKey}},[t.formatChoices.length||"hand"===t.readType?e("div",{staticClass:"ac-question__prefix"},[e("ac-answer-box",{attrs:{label:t.formatChoices.length?t.showQuestion?"答案":t.plainTitle:"得分",direction:t.formatChoices.length?"column":"row",width:t.formatChoices.length&&!t.showQuestion?144:128}})],1):t._e(),!t.formatChoices.length||t.showQuestion?e("div",{staticClass:"ac-question__content"},[t.formatTitle||t.formatPrefix?e("div",{staticClass:"ac-question__title",style:t.titleAlign?{"text-align":t.titleAlign}:""},[t.formatPrefix?e("div",{staticClass:"ac-question__title-prefix",class:{"is-float":!!t.formatTitle,"is-bold":t.showQuestion},domProps:{innerHTML:t._s(t.formatPrefix)}}):t._e(),t.formatTitle?e("div",{staticClass:"ac-question__title-inner",domProps:{innerHTML:t._s(t.formatTitle)}}):t._e()]):t._e(),t.formatChoices.length?e("ac-choice",{attrs:{list:t.formatChoices,wrap:t.choiceWrap}}):t._e()],1):t._e()])},T=[],E=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-choice"},[t.wrap?[e("div",{staticClass:"ac-choice__list"},t._l(t.list,(function(t,n){return e("ac-choice-item",{key:n,attrs:{identifier:t.identifier,content:t.content}})})),1),t.list.length%2?t._e():e("div",{staticClass:"ac-choice__list--half"},t._l(Array(t.list.length/2).fill(""),(function(n,r){return e("div",{key:r,staticClass:"row-direction"},t._l(t.list.slice(2*r,2*r+2),(function(t,n){return e("ac-choice-item",{key:n,attrs:{identifier:t.identifier,content:t.content}})})),1)})),0),e("div",{staticClass:"ac-choice__list--all"},[e("div",{staticClass:"row-direction"},t._l(t.list,(function(t,n){return e("ac-choice-item",{key:n,attrs:{identifier:t.identifier,content:t.content}})})),1)])]:e("div",{staticClass:"ac-choice__list--nowrap"},t._l(t.list,(function(t,n){return e("ac-choice-item",{key:n,attrs:{identifier:t.identifier,content:t.content}})})),1)],2)},S=[],I=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-choice__item"},[t.identifier?e("div",{staticClass:"ac-choice__prefix"},[t._v(t._s(t.identifier)+".")]):t._e(),t.content?e("div",{staticClass:"ac-choice__content",domProps:{innerHTML:t._s(t.content)}}):t._e()])},O=[],L={name:"AcChoiceItem",props:{identifier:{type:String,default:""},content:{type:String,default:""}}},B=L,P=n("2877"),R=Object(P["a"])(B,I,O,!1,null,null,null),j=R.exports,M={name:"AcChoice",components:{AcChoiceItem:j},props:{list:{type:Array,default:function(){return[]}},wrap:{type:Boolean,default:!0}}},z=M,N=Object(P["a"])(z,E,S,!1,null,null,null),D=N.exports,U=n("fbd7"),H={name:"AcQuestion",components:{AcChoice:D,AcAnswerBox:U["default"]},props:{title:{type:String,default:""},titleEditable:{type:Boolean,default:!0},titleAlign:{type:String,default:""},prefix:{type:String,default:""},prefixEditable:{type:Boolean,default:!1},choices:{type:Array,default:function(){return[]}},choiceEditable:{type:Boolean,default:!0},choiceWrap:{type:Boolean,default:!0},dataKey:{type:String,default:""},plainTitle:{type:String,default:""}},computed:{editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},formatTitle:function(){var t=this;return(this.editTitleList.find((function(e){return e.dataKey===t.dataKey}))||{}).title||(this.showQuestion?this.title:"")},formatPrefix:function(){return this.showQuestion?this.prefix:this.plainTitle},formatChoices:function(){var t=this;return(this.editTitleList.find((function(e){return e.dataKey===t.dataKey}))||{}).choices||this.choices||[]},readType:function(){return this.$store.getters["AC/readType"]},showQuestion:function(){return this.$store.getters["AC/showQuestion"]}}},F=H,K=Object(P["a"])(F,k,T,!1,null,null,null),W=K.exports;W.install=function(t){t.component(W.name,W)};var V,Y,Z=W,G=n("8f60"),Q=n("e6c4"),X=n("0b83"),q=function(){window.MathJax&&(window.MathJax.Hub.Config({showProcessingMessages:!1,messageStyle:"none",jax:["input/TeX","output/HTML-CSS"],tex2jax:{inlineMath:[["\\(","\\)"],["\\[","\\]"]],displayMath:[],skipTags:["script","noscript","style","textarea","pre"]},"HTML-CSS":{showMathMenu:!1}}),window.isAcMathJaxConfig=!0)},J=function(t){if(window.MathJax)return window.isAcMathJaxConfig||q(),new Promise((function(e){window.MathJax.Hub.Queue(["Typeset",window.MathJax.Hub,document.getElementById(t)]),window.MathJax.Hub.Queue((function(){e()}))}))},tt=n("5dcc"),et={name:"AcVirtual",components:{AcEssay:x["default"],AcQuestion:Z,AcAnswerBox:U["default"],AcGraffiti:G["default"],AcBasicInfo:Q["default"],AcEndMarkBox:X["default"]},data:function(){return{continueObjectiveCount:0}},computed:{editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},showQuestion:function(){return this.$store.getters["AC/showQuestion"]},readType:function(){return this.$store.getters["AC/readType"]},paperTree:function(){return this.$store.getters["AC/paperTree"]}},updated:function(){var t=this;this.handleLatex().then((function(){return t.getDomList()}))},mounted:function(){var t=this;this.handleLatex().then((function(){return t.getDomList()}))},methods:{handleLatex:function(){return J("math-virtual")||Promise.resolve()},getEditedTitle:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).title||""},getEditedKey:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).editKey||""},getEssayTitle:function(t,e){return(this.editEssayList.find((function(e){return e.dataKey===t}))||{}).title||e},splitDom:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="",r=0,i=0,a=[],o=[];if(t){if(t.childNodes.length){var s=t.childNodes[t.childNodes.length-1];t.childNodes.length>1&&(2!==t.childNodes.length||"\n"!==s.textContent)?o=t.childNodes:t.childNodes[0].childNodes.length&&"FIGURE"!==t.childNodes[0].nodeName&&(o=t.childNodes[0].childNodes)}o.length||(o=t.childNodes)}for(var c=0;c<o.length;c++){var u=o[c];if(-1===["P","DIV","IMG","FIGURE"].indexOf(u.nodeName))try{"#text"===u.nodeName?n+=u.textContent:n+=u.outerHTML}catch(g){}else{var l=getComputedStyle(u),h=Number(l.marginTop.replace("px",""))||0,d=Number(l.marginBottom.replace("px",""))||0,f=Object(tt["c"])(u);a.length&&(f-=i),n+=u.outerHTML,r+=f+$(u).outerHeight()+h+d,a.push({type:e,content:n,height:r}),n="",r=0,i=Object(tt["c"])(u)+$(u).outerHeight()+h+d}}if(n){var p=$(t).outerHeight();a.push({type:e,content:n,height:a.length?p-i:p})}return a},getDomList:function(){var t=this,e=function(e,n,i){var a={dataKey:i,children:[],updatePage:e.updatePage,updatePiece:e.updatePiece,editable:e.editable},o=null,s=0;if((e.title||e.prefix)&&(t.showQuestion||!e.choices)){var c=n.find(".ac-question__title")[0],u=n.find(".ac-question__title-inner")[0],l=n.find(".ac-question__title-prefix")[0],h=n.find(".ac-answer-box")[0],d=getComputedStyle(c),f=Number(d.paddingTop.replace("px",""))||0,p=Number(d.paddingBottom.replace("px",""))||0,g=[];if(u?(g=t.splitDom(u,"questionTitleItem"),g.length&&(h&&(s=$(h).outerHeight(),g[0].answerBoxHeight=s,g[0].needAnswerBox=!0,o=g[0]),g[0].prefix=(null===l||void 0===l?void 0:l.outerHTML)||"",g[0].height+=f,g[g.length-1].height+=p,g.forEach((function(t,n){t.hasChoice=e.choices&&e.choices.length,t.titleAlign=e.titleAlign,e.hideMoveUp&&(t.hideMoveUp=e.hideMoveUp),e.hideMoveDown&&(t.hideMoveDown=e.hideMoveDown)})))):l&&(g=[{type:"questionTitleItem",prefix:l.outerHTML,height:Math.max($(l).outerHeight()+f+p,h?$(h).outerHeight():0),content:"",needAnswerBox:!!h}]),g.length){var m={children:g};a.children.push(m)}}if(e.choices)if(t.showQuestion){var y={},v=n.find(".ac-choice")[0];if(!1===e.choiceWrap)Object.assign(y,{type:"choiceItem",height:$(v).outerHeight(),content:v.outerHTML});else{var _=$(v).outerWidth(),b=$(v).find(".ac-choice__list").outerWidth();if(_>=b*e.choices.length)Object.assign(y,{type:"choiceItem",height:$(v).find(".ac-choice__list--all").outerHeight(),content:$(v).find(".ac-choice__list--all")[0].outerHTML});else{y.children=[];var w=$(v).find(".ac-choice__list .ac-choice__item"),C="ac-choice__list";!(e.choices.length%2)&&_>=2*b&&(C="ac-choice__list--half",w=$(v).find(".ac-choice__list--half .row-direction")),Array.from(w).forEach((function(t){y.children.push({type:"choiceItem",height:$(t).outerHeight(),content:t.outerHTML,wrapperClass:C})}))}}a.children.push(y)}else{var A=n.find(".ac-answer-box")[0];a.children.push({type:"plainBox",boxContent:e.plainTitle,height:t.continueObjectiveCount%5===0?$(A).outerHeight():0}),t.continueObjectiveCount++}else t.continueObjectiveCount=0;if(o){var x=0,k=function t(e){e.forEach((function(e){e.children?t(e.children):x+=e.height}))};k(a.children),s-x>0&&(o.height+=s-x)}if(r.push(a),e.essay){var T={type:"essay",essay:Object.assign({rowCount:4},e.essay),dataKey:i};if(e.essay.title){var E=n.find(".ac-essay__title")[0];T.essay.titleChildren=t.splitDom(E)}r.push(T)}e.dimensions&&r.push({type:"dimension",dimensions:e.dimensions,dataKey:i})},n=function n(a){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];a.forEach((function(a,s){var c=[].concat(l(o),[a[a.idProp||"id"]||s]),u=i.find(".ac-virtual__section[data-key=".concat(c.join("_"),"]"));if(Array.isArray(a.children)&&a.children.length){t.continueObjectiveCount=0;var h=u.find(".ac-virtual__title")[0];if(h||"complex"===a.code){var d={};if("complex"===a.code){var f=u.find(".ac-material__title-prefix")[0],p=u.find(".ac-material__title-inner")[0],g=[];p?(g=t.splitDom(p,"materialItem"),g.length&&(g[0].prefix=(null===f||void 0===f?void 0:f.outerHTML)||"",g[0].height+=16)):f&&(g=[{type:"materialItem",prefix:f.outerHTML,height:$(f).outerHeight()+16,content:""}]),d={dataKey:c.join("_"),children:g,editable:a.editable}}else d={dataKey:c.join("_"),height:$(h).outerHeight(),content:h.innerHTML,updatePage:a.updatePage,updatePiece:a.updatePiece,editable:a.editable};r.push(d)}if(a.prefixMarker){var m=u.find(".ac-end-mark-box.mark-prefix")[0];r.push({dataKey:c.join("_"),height:$(m).outerHeight(),content:m.outerHTML,type:"prefixMarker"})}if(n(a.children,c),a.suffixMarker){var y=u.find(".ac-end-mark-box.mark-suffix")[0];r.push({dataKey:c.join("_"),height:$(y).outerHeight(),content:y.outerHTML,type:"suffixMarker"})}}else{if("graffiti"===t.readType){var v=u.find(".ac-graffiti__wrapper")[0];v&&r.push({type:"graffiti",dataKey:c.join("_"),height:$(v).outerHeight(),content:v.innerHTML})}if(e(a,u,c.join("_")),a.prefixMarker){var _=u.find(".ac-end-mark-box.mark-prefix")[0];r.push({dataKey:c.join("_"),height:$(_).outerHeight(),content:_.outerHTML,type:"prefixMarker"})}}}))},r=[],i=$(".ac-virtual"),a=i.find(".ac-basicInfo");if(a){var o=a.find(".ac-basicInfo__title"),s=a.find(".ac-attention"),c=a.find(".ac-basic-info__edu");r.push({type:"basicInfo",headHeight:null===o||void 0===o?void 0:o.outerHeight(),attentionHeight:null===s||void 0===s?void 0:s.outerHeight(),eduHeight:null===c||void 0===c?void 0:c.outerHeight()})}n(this.paperTree),this.$emit("change",r)},getTitle:function(t,e){var n=this.$createElement,r=t.title,i=t.prefix,a=t.plainTitle,o=t.code,s=this.editTitleList.find((function(t){return t.dataKey===e})),c=s||{},u=c.title,l=c.editKey,h=s?u:this.showQuestion||"complex"!==o?r:"",d=this.showQuestion?i:a;return h||d?n("div",{class:"ac-".concat("complex"===o?"material":"virtual","__title")},[d?n("div",{class:"ac-".concat("complex"===o?"material":"virtual","__title-prefix").concat(this.showQuestion?" is-bold":"").concat(h?" is-float":"")},[n("div",{domProps:{innerHTML:d}})]):null,h?n("div",{key:"virtual_title_".concat(l),class:"ac-".concat("complex"===o?"material":"virtual","__title-inner ck-content"),domProps:{innerHTML:h}}):null]):null},getList:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=this.$createElement,i=t.map((function(t,i){var a=[].concat(l(n),[t[t.idProp||"id"]||i]);return r("div",{key:"".concat(i,"_").concat(t[t.idProp||"id"]||""),class:"ac-virtual__section",attrs:{"data-key":a.join("_")}},[Array.isArray(t.children)&&t.children.length?r("div",[e.getTitle(t,a.join("_")),t.prefixMarker?r("ac-end-mark-box",{attrs:{type:"prefix",title:t.prefixMarker.title}}):null,e.getList(t.children,a),t.suffixMarker?r("ac-end-mark-box",{attrs:{type:"suffix",title:t.suffixMarker.title}}):null]):r("div",["graffiti"!==e.readType||t.choices?null:r("ac-graffiti",{attrs:{scanName:t.scanName,score:t.score}}),r("ac-question",{key:"virtual_question_".concat(e.getEditedKey(a.join("_"))),props:y({},Object.assign({dataKey:a.join("_")},t))}),t.prefixMarker?r("ac-end-mark-box",{attrs:{type:"prefix",title:t.prefixMarker.title}}):null,t.essay?r("ac-essay",{props:y({},Object.assign(t.essay,{title:e.getEssayTitle(a.join("_"),t.essay.title)}))}):null])])}));return i}},render:function(){var t=arguments[0];return t("div",{class:"ac-virtual",attrs:{id:"math-virtual"},key:"virtual_"+this.readType},[t("ac-basic-info"),this.getList(this.paperTree)])}},nt=et,rt=Object(P["a"])(nt,V,Y,!1,null,null,null),it=rt.exports;it.install=function(t){t.component(it.name,it)};var at=it,ot=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-panel"},[t._l(t.formatPanelList,(function(n,r){return e("div",{key:r,staticClass:"ac-panel__item"},[e("div",{staticClass:"ac-piece__wrapper",style:{width:1===t.layout?"980px":"1960px"},attrs:{"data-page":r+1}},[t._l(n,(function(n,i){return e("ac-piece",{key:i,attrs:{"data-piece":r*t.layout+i,"data-page":r,list:n},on:{edit:t.handleEdit}})})),t.layout-n.length?e("div",{staticClass:"ac-piece"},[e("ac-restrict")],1):t._e(),"graffiti"===t.readType||t.scanSheet?e("ac-mark-point",{attrs:{"page-index":r}}):t._e(),e("div",{staticClass:"ac-piece__footer"},[t._v(" "+t._s("第".concat(r+1,"页,共").concat(t.formatPanelList.length,"页"))+" ")])],2)])})),e("ac-editor",{attrs:{visible:t.visible,content:t.editing.content||"",title:t.editorTitle},on:{"update:visible":function(e){t.visible=e},submit:t.handleSubmit}})],2)},st=[],ct=(n("13d5"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-dimension",attrs:{"data-key":t.dataKey,"data-dimension-index":t.dimensionIndex}},[e("ul",{staticClass:"ac-dimension__inner"},[e("li",{staticClass:"ac-dimension__item"},[t._v(" "+t._s("body"===t.type?t.dimension:"")+" ")]),e("li",{staticClass:"ac-dimension__item"},["header"===t.type?e("span",[t._v("自我评价")]):e("ul",{staticClass:"dimension-stars"},t._l(5,(function(t){return e("i",{key:t,staticClass:"el-icon-star-off"})})),0)]),e("li",{staticClass:"ac-dimension__item"},["header"===t.type?e("span",[t._v("同伴评价")]):e("ul",{staticClass:"dimension-stars"},t._l(5,(function(t){return e("i",{key:t,staticClass:"el-icon-star-off"})})),0)])])])}),ut=[],lt={name:"AcDimension",props:{dimension:{type:String,default:""},type:{type:String,default:"body"},dataKey:{type:String,default:""},dimensionIndex:{type:Number,default:0}}},ht=lt,dt=Object(P["a"])(ht,ct,ut,!1,null,null,null),ft=dt.exports;ft.install=function(t){t.component(ft.name,ft)};var pt,gt,mt=ft,yt={bind:function(t,e){t._handleMouseEnter=function(){return e.value(!0)},t._handleMouseLeave=function(){return e.value(!1)},t.addEventListener("mouseenter",t._handleMouseEnter),t.addEventListener("mouseleave",t._handleMouseLeave)},unbind:function(t){t.removeEventListener("mouseenter",t._handleMouseEnter),t.removeEventListener("mouseleave",t._handleMouseLeave)}},vt={Hover:yt},_t={name:"AcPiece",components:{AcEssay:x["default"],AcAnswerBox:U["default"],AcBasicInfo:Q["default"],AcDimension:mt},props:{list:{type:Array,default:function(){return[]}}},inject:["contentEditable","paddingBlock","movable","deletable","editType","editCallback","deleteCallback","moveCallback","lineCallback"],directives:{hover:vt.Hover},data:function(){return{rowCountList:{},activePrefixKey:""}},computed:{paperTree:function(){return this.$store.getters["AC/paperTree"]},readType:function(){return this.$store.getters["AC/readType"]},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},sizeType:function(){return this.$store.getters["AC/sizeType"]},pieceHeight:function(){return"K"===this.sizeType?"1357px":"1386px"},piecePadding:function(){return"number"===typeof this.paddingBlock?"".concat(this.paddingBlock,"px 0px"):"".concat(this.paddingBlock[0]||0,"px 0px ").concat(this.paddingBlock[1]||0,"px")},setActivePrefixKey:function(){var t=this;return Object(tt["a"])((function(e){t.activePrefixKey=e}),100)}},methods:{getPlainTitle:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).title||""},isWithSpace:function(t){var e=!1,n=t.split("_"),r=this.paperTree||[];return n.forEach((function(t,i){var a=r.find((function(e,n){return(e[e.idProp||"id"]||n).toString()===t}))||{};r=a.children||[],i===n.length-1&&(e=a.choices&&a.choices.length)})),e},getSourceNode:function(t){var e=null,n=function n(r){for(var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=0;a<r.length;a++){var o=r[a],s=[].concat(l(i),[o[o.idProp||"id"]||a]);if(t===s.join("_")){e=o;break}o.children&&o.children.length&&n(o.children,s)}};return n(this.paperTree||[]),e},handleClick:function(t,e){"text"===this.editType?this.editCallback&&this.editCallback(this.getSourceNode(t)):this.$emit("edit",t,e)},handleMove:function(t,e){this.moveCallback&&this.moveCallback(t,this.getSourceNode(e))},handleDelete:function(t){this.deleteCallback&&this.deleteCallback(this.getSourceNode(t))},handleLine:function(t,e){this.lineCallback&&this.lineCallback(t,this.getSourceNode(e))},handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:e})},handleHover:function(t,e){this.setActivePrefixKey(t?e.charAt(0):"")},getContent:function(t,e){var n=this,r=this.$createElement,i=null;switch(t.type){case"question":this.$set(this.rowCountList,t.dataKey,t.rowCount||void 0),i=r("div",{key:"question_".concat(e),attrs:{"data-key":t.dataKey||""},class:"ac-question ck-content".concat(this.activePrefixKey===t.dataKey[0]?" ac-edit-visible":""),directives:[{name:"hover",value:function(e){return n.handleHover(e,t.dataKey)}}]},[t.answerBoxType?r("div",{class:"ac-question__prefix"},[r("ac-answer-box",{attrs:{label:"answer"===t.answerBoxType?"答案":"得分",direction:"answer"===t.answerBoxType?"column":"row"}})]):null,r("div",{class:"ac-question__content"+("hand"!==this.readType&&!this.isWithSpace(t.dataKey)||t.answerBoxType?"":" with-space")},[(this.movable||this.deletable||this.contentEditable)&&t.editable?r("div",{class:"ac-question__operation ac-edit-handler"},[this.movable&&!t.hideMoveUp?r("i",{class:"el-icon-top",on:{click:function(){return n.handleMove("up",t.dataKey)}}}):null,this.movable&&!t.hideMoveDown?r("i",{class:"el-icon-bottom",on:{click:function(){return n.handleMove("down",t.dataKey)}}}):null,this.deletable?r("i",{class:"el-icon-delete",on:{click:function(){return n.handleDelete(t.dataKey)}}}):null,this.contentEditable&&t.editable?r("i",{class:"el-icon-edit-outline",on:{click:function(){return n.handleClick(t.dataKey)}}}):null]):null,t.isTable?r("div",{class:"ac-question__line"},[r("span",["行数:"]),r("el-input-number",{attrs:{size:"small",value:this.rowCountList[t.dataKey],min:1,max:100,step:1,"step-strictly":!0},on:{change:function(e){return n.handleLine(e,t.dataKey)}}})]):null,r("div",{domProps:{innerHTML:t.content.join("")}})])]);break;case"essay":i=r("ac-essay",{key:"essay_".concat(e),attrs:{"data-key":t.dataKey||""},props:y({},t.content[0]),class:"".concat(this.activePrefixKey===t.dataKey[0]?"ac-edit-visible":""),directives:[{name:"hover",value:function(e){return n.handleHover(e,t.dataKey)}}]});break;case"dimension":i=t.content.map((function(n,i){return r("ac-dimension",{key:"dimension_".concat(e,"_").concat(i),attrs:{"data-key":t.dataKey||""},props:y({},n)})}));break;case"material":i=r("div",{key:"material_".concat(e),attrs:{"data-key":t.dataKey||""},class:"ac-material ck-content",directives:[{name:"hover",value:function(e){return n.handleHover(e,t.dataKey)}}]},[t.editBtn&&this.contentEditable?r("el-button",{class:"ac-material__edit",attrs:{type:"primary",size:"small"},on:{click:function(){return n.handleClick(t.dataKey,t.editBtn)}}},[t.editBtn]):null,r("div",{domProps:{innerHTML:t.content.join("")}})]);break;case"plainBox":i=r("div",{key:"question_".concat(e),attrs:{"data-key":t.dataKey||""},class:"ac-question is-box".concat(t.isFollowBox?" is-follow":"")},[r("div",{class:"ac-question__prefix"},[r("ac-answer-box",{attrs:{label:this.getPlainTitle(t.dataKey)||t.boxContent,width:144,editable:!0,dataKey:t.dataKey}})])]);break;case"graffiti":i=r("div",{key:e,attrs:{"data-key":t.dataKey||""},class:"ac-graffiti__wrapper",domProps:{innerHTML:t.content}});break;case"basicInfo":i=r("ac-basic-info",{props:y({},t)});break;case"prefixMarker":i=r("div",{key:e,attrs:{"data-key":t.dataKey||""},class:"ac-prefix-marker",directives:[{name:"hover",value:function(e){return n.handleHover(e,t.dataKey)}}]},[r("div",{domProps:{innerHTML:t.content}})]);break;case"suffixMarker":i=r("div",{key:e,attrs:{"data-key":t.dataKey||""},class:"ac-suffix-marker",directives:[{name:"hover",value:function(e){return n.handleHover(e,t.dataKey)}}]},[r("div",{domProps:{innerHTML:t.content}})]);break;default:i=r("div",{key:e,attrs:{"data-key":t.dataKey||""},class:"ac-piece__section".concat(this.activePrefixKey===t.dataKey[0]?" ac-edit-visible":""),directives:[{name:"hover",value:function(e){return n.handleHover(e,t.dataKey)}}]},[this.movable||this.deletable||this.contentEditable&&t.editable?r("div",{class:"ac-section__operation ac-edit-handler"},[this.movable&&!t.hideMoveUp?r("i",{class:"el-icon-top",on:{click:function(){return n.handleMove("up",t.dataKey)}}}):null,this.movable&&!t.hideMoveDown?r("i",{class:"el-icon-bottom",on:{click:function(){return n.handleMove("down",t.dataKey)}}}):null,this.deletable?r("i",{class:"el-icon-delete",on:{click:function(){return n.handleDelete(t.dataKey)}}}):null,this.contentEditable&&t.editable?r("i",{class:"el-icon-edit-outline",on:{click:function(){return n.handleClick(t.dataKey)}}}):null]):null,r("div",{domProps:{innerHTML:t.content}})])}return i}},render:function(){var t=this,e=arguments[0];return e("div",{class:"ac-piece",style:{height:this.pieceHeight,padding:this.piecePadding}},[this.list.map((function(e,n){return t.getContent(e,n)}))])}},bt=_t,wt=Object(P["a"])(bt,pt,gt,!1,null,null,null),Ct=wt.exports;Ct.install=function(t){t.component(Ct.name,Ct)};var At=Ct,xt=n("6bdf"),kt=n("13ed"),Tt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-restrict",style:{width:t.$store.getters["AC/layout"]>2?"580px":"868px",height:"number"===typeof t.height?"".concat(t.height,"px"):t.height,marginTop:"".concat(t.marginTop,"px")}})},Et=[],St={name:"AcRestrict",props:{height:{type:[Number,String],default:"100%"},marginTop:{type:Number,default:0}}},It=St,Ot=Object(P["a"])(It,Tt,Et,!1,null,null,null),Lt=Ot.exports;Lt.install=function(t){t.component(Lt.name,Lt)};var Bt=Lt,Pt={name:"AcPanel",components:{AcPiece:At,AcEditor:xt["default"],AcMarkPoint:kt["default"],AcRestrict:Bt},props:{domList:{type:Array,default:function(){return[]}}},inject:["showStudentInfo","paddingBlock","scanSheet"],data:function(){return{panelList:[],visible:!1,editing:{},headHeight:0,attentionHeight:0,eduHeight:0,editorTitle:"编辑题目"}},computed:{formatPanelList:function(){var t=this,e=[];return this.panelList.forEach((function(n,r){r%t.layout===0?e.push([n]):e[e.length-1].push(n)})),e},paperTree:function(){return this.$store.getters["AC/paperTree"]},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},panelFlag:function(){return this.$store.getters["AC/panelFlag"]},showAttention:function(){return this.$store.getters["AC/showAttention"]},patchwork:function(){return this.$store.getters["AC/patchwork"]},showEducationId:function(){return this.$store.getters["AC/showEducationId"]},readType:function(){return this.$store.getters["AC/readType"]},layout:function(){return this.$store.getters["AC/layout"]},latticeAttention:function(){return this.$store.getters["AC/latticeAttention"]},stuInfoLength:function(){return this.$store.getters["AC/studentInfo"].length},eduIdLength:function(){return this.$store.getters["AC/educationIdValue"]},registrationType:function(){return this.$store.getters["AC/registrationNumberType"]},sizeType:function(){return this.$store.getters["AC/sizeType"]},pieceHeight:function(){var t="number"===typeof this.paddingBlock?2*this.paddingBlock:this.paddingBlock.reduce((function(t,e){return t+e}),0);return("K"===this.sizeType?1357:1386)-(t+10)},rowConfig:function(){return this.$store.getters["AC/rowConfig"]}},watch:{domList:function(t){t.length&&this.getPanelList()},panelFlag:function(){this.getPanelList()}},methods:{getRowCount:function(t,e){var n=this.editEssayList.find((function(e){return e.dataKey===t}))||{};return"number"===typeof n.row?n.row:e},getBgType:function(t,e){var n=this.editEssayList.find((function(e){return e.dataKey===t}))||{};return"number"===typeof n.bgType?n.bgType:e},handleEdit:function(t,e){var n={dataKey:t,content:"",hasChoice:!1},r=this.editTitleList.find((function(e){return e.dataKey===t}));if(r){var i=r.title,a=void 0===i?"":i,o=r.choices,s=void 0===o?[]:o;n.content+=a||"",s.length&&(n.hasChoice=!0,n.content+=s.map((function(t){return"<div class='ac-editor__choice'>".concat(t.identifier,".").concat(t.content,"</div>")})).join(""))}else{var c=t.split("_"),u=this.paperTree||[];c.forEach((function(t,e){var r=u.find((function(e,n){return(e[e.idProp||"id"]||n).toString()===t}))||{};u=r.children||[],e===c.length-1&&(n.content+=r.title||"",r.choices&&r.choices.length&&(n.hasChoice=!0,n.content+=r.choices.map((function(t){return"<div class='ac-editor__choice'>".concat(t.identifier,".").concat(t.content,"</div>")})).join("")))}))}this.editing=n,this.editorTitle=e,this.visible=!0},handleSubmit:function(t){var e=this.editing,n=e.dataKey,r=e.hasChoice,i={dataKey:n};if(r){var a=t.match(/<(p.*?\/p|figure.*?\/figure)>/g),o=/>[A-O]{1}[.\s.、]{0,1}/,s="",c=[],u=null;a.forEach((function(t){var e=t.match(o);if(e){var n=t.replace(o,">");u={identifier:e[0][1],content:"<p></p>"===n?"":n},c.push(u)}else u?u.content+=t:s+=t})),Object.assign(i,{title:s,choices:c})}else i.title=t;this.$store.dispatch("AC/paper/setEditTitle",i)},getBasicInfo:function(t){var e=null;return t&&!this.scanSheet||(e={hideStudentInfo:!this.showStudentInfo,hideAttention:!this.showAttention,height:this.headHeight+(this.showAttention?this.attentionHeight:0)+this.eduHeight}),e},getPanelList:function(){var t=this,e=[],n=0;e[n]=[];var r=this.pieceHeight,i=e[n],a=[],o=function(){var e=t.getBasicInfo(n);e&&(r-=e.height,i.push(Object.assign({type:"basicInfo"},e)))},s=function(){n++,e[n]=[],r=t.pieceHeight,i=e[n],o()},c=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3?arguments[3]:void 0,a=["","inner"].includes(i)?0:30,o=r-(n?32:0)-a;return Math.floor((o+e)/(t+e))},u=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.editable,o=!1,s="",c="",u=!1,l=!1,h=!1,d=t.map((function(t){var e="";switch(t.type){case"choice":e="<div class=".concat(t.className,">").concat(t.children.join(""),"</div>");break;case"questionTitle":o=t.isFirst,l=t.hideMoveUp,h=t.hideMoveDown,t.needAnswerBox&&(s="score"),t.hasChoice&&t.needAnswerBox&&(s="answer");var r=t.children.join("");e="<div class='ac-question__title' ".concat(t.titleAlign?'style="text-align: '.concat(t.titleAlign,'"'):"",">").concat(t.prefix||"").concat(r?"<div class='ac-question__title-inner'>".concat(r,"</div>"):"","</div>");break;case"essayArea":e=t.essayConfig;break;case"dimensionItem":e=t.payload;break;case"material":o=t.isFirst,n="material";var i=t.children.join("");e="<div class='ac-material__title'>".concat(t.prefix||"").concat(i?"<div class='ac-material__title-inner'>".concat(i,"</div>"):"","</div>");break;case"plainBox":n="plainBox",c=t.boxContent,u=t.isFollow;break;default:e=t.content}return e}));t.length=0,i.push({type:n,dataKey:e,content:d,editable:o&&a,hideMoveUp:!!o&&l,hideMoveDown:!!o&&h,answerBoxType:s,boxContent:c,isFollowBox:u})},l=function(e,n,i){var a=e.rowHeight,o=e.rowGap,l=e.titleChildren,h=e.borderType,d=t.getRowCount(n,e.rowCount),f=t.getBgType(n,e.bgType),p=t.rowConfig[f]||{};a="number"===typeof a?a:p.rowHeight||0,o="number"===typeof o?o:p.rowGap||0,r<30&&s();var g={type:"essayArea"};if(l){var m="";l.forEach((function(t,a){r>=t.height+(a?0:32)?(m+=t.content,r-=t.height+(a?0:32)):(m&&i.push({type:"essayArea",essayConfig:Object.assign({},e,{row:0,title:m,rowCount:d,bgType:f})}),i.length&&u(i,n,"essay"),s(),m=t.content,r-=t.height+32)})),m?Object.assign(g,{essayConfig:Object.assign({},e,{row:0,title:m,rowCount:d})}):g=null}else g=null;if(!d)return g?i.push(g):(i.push({type:"essayArea",essayConfig:Object.assign({},e,{rowCount:0,row:0,bgType:f})}),r-=30),void u(i,n,"essay");var y=d;while(y){var v=c(a,o,!g,h);if(v<1)g&&(i.push(g),g=null),i.length&&u(i,n,"essay"),s();else if(v<y)i.push({type:"essayArea",essayConfig:Object.assign({},e,{startRow:d-y,row:v,rowCount:d,bgType:f,title:g&&g.essayConfig?g.essayConfig.title:""})}),g&&(g=null),u(i,n,"essay"),s(),y-=v;else{i.push({type:"essayArea",essayConfig:Object.assign({},e,{startRow:d-y,row:y,rowCount:d,bgType:f,title:g&&g.essayConfig?g.essayConfig.title:""})});var _=["","inner"].includes(h)?0:30;r-=y*(a+o)-o+(g?0:32)+_,y=0,g&&(g=null)}}},h=function(t,e,n){var i=t.length+1,a=i;while(a){var o=Math.floor(r/46);if(o<1)n.length&&u(n,e,"dimension"),s();else if(o<a){for(var c=i-a,l=0;l<o;l++){var h=c+l-1;n.push({type:"dimensionItem",payload:{type:c+l===0?"header":"body",dimension:t[h]||"",dimensionIndex:h}})}u(n,e,"dimension"),s(),a-=o}else{for(var d=i-a,f=0;f<a;f++){var p=d+f-1;n.push({type:"dimensionItem",payload:{type:d+f===0?"header":"body",dimension:t[p]||"",dimensionIndex:p}})}r-=46*a,a=0}}},d=function t(e,n,i,a){var o=a.editable;e.forEach((function(e,a){if(e.children)t(e.children,n,i,{editable:o});else{var c=e.height;if(!a&&e.answerBoxHeight&&(c=Math.max(c,e.answerBoxHeight)),r<c&&(i.length&&u(i,n,"question",{editable:o}),s(),["questionTitleItem","materialItem"].includes(e.type)&&a&&(e.height+=16)),r>=e.height){switch(e.type){case"choiceItem":i.length&&"choice"===i[i.length-1].type?i[i.length-1].children.push(e.content):i.push({type:"choice",className:e.wrapperClass,children:[e.content]});break;case"questionTitleItem":i.length&&"questionTitle"===i[i.length-1].type?i[i.length-1].children.push(e.content):i.push({type:"questionTitle",prefix:e.prefix,children:[e.content],hideMoveUp:e.hideMoveUp,hideMoveDown:e.hideMoveDown,isFirst:!a,hasChoice:e.hasChoice,needAnswerBox:e.needAnswerBox,titleAlign:e.titleAlign});break;case"materialItem":i.length&&"material"===i[i.length-1].type?i[i.length-1].children.push(e.content):i.push({type:"material",prefix:e.prefix,children:[e.content],isFirst:!a});break;case"plainBox":i.push({type:"plainBox",isFollow:!e.height,boxContent:e.boxContent});break;default:i.push(e.content)}r-=e.height}}}))},f=JSON.parse(JSON.stringify(this.domList));f.forEach((function(n){if(n){if(n.updatePiece)s();else if(n.updatePage)for(var c=2*t.layout,f=c-(e.length%c||c)+1,p=0;p<f;p++)s();n.children?n.children&&(d(n.children,n.dataKey,a,{editable:n.editable}),a.length&&u(a,n.dataKey,"question",{editable:n.editable})):"essay"===n.type?(l(n.essay,n.dataKey,a),a.length&&u(a,n.dataKey,"essay")):"dimension"===n.type?(h(n.dimensions,n.dataKey,a),a.length&&u(a,n.dataKey,"dimension")):"basicInfo"===n.type?(t.headHeight=n.headHeight||0,t.attentionHeight=t.latticeAttention.height||n.attentionHeight||0,t.showStudentInfo&&(t.showEducationId?t.eduHeight=t.eduIdLength>10&&0!==t.registrationType?48*Math.ceil(t.stuInfoLength/3)+30+310:310:t.eduHeight=48*Math.ceil(t.stuInfoLength/3)),o()):(r<n.height&&s(),r>=n.height&&(i.push({type:n.type||"",dataKey:n.dataKey,content:n.content,editable:n.editable}),r-=n.height))}})),this.panelList=e}}},Rt=Pt,jt=Object(P["a"])(Rt,ot,st,!1,null,null,null),Mt=jt.exports;Mt.install=function(t){t.component(Mt.name,Mt)};var zt=Mt,Nt=n("cf03"),Dt=n.n(Nt),Ut=n("c4e3"),$t=n.n(Ut),Ht=n("21a6"),Ft=n.n(Ht),Kt={name:"AcLattice",components:{AcVirtual:at,AcPanel:zt},inject:["uploadOss","paperTitle","scanSheet"],data:function(){return{domList:[],questionRects:[]}},computed:{educationIdValue:function(){return this.$store.getters["AC/educationIdValue"]},registrationNumberType:function(){return this.$store.getters["AC/registrationNumberType"]},candidateNumColor:function(){return this.$store.getters["AC/candidateNumColor"]},layout:function(){return this.$store.getters["AC/layout"]},sizeType:function(){return this.$store.getters["AC/sizeType"]},paperTree:function(){return this.$store.getters["AC/paperTree"]},readType:function(){return this.$store.getters["AC/readType"]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},UploadAdapter:function(){var t=this.uploadOss;return function(){function e(t){Object(C["a"])(this,e),this.file=t}return Object(A["a"])(e,[{key:"upload",value:function(){var e=this;return new Promise((function(n,r){t(e.file,n)}))}}]),e}()}},methods:{setDomList:function(t){this.domList=t},getPageImage:function(){return new Promise((function(t,e){var n=$(".ac-panel .ac-piece__wrapper");Object(tt["b"])(n).then((function(e){return t(e)})).catch((function(){return t([])}))}))},download:function(){var t=this;return w(_().mark((function e(){var n,r,i,a,o,s;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.scanSheet){e.next=4;break}return e.next=3,t.downloadSweep();case 3:return e.abrupt("return",e.sent);case 4:return e.next=6,t.getPositionData();case 6:return n=e.sent,e.next=9,t.getPdfFile();case 9:return r=e.sent,i=r.file,a=r.urlList,o="".concat(("K"===t.sizeType?195:210)*t.layout,"mm*").concat("K"===t.sizeType?270:297,"mm"),s={file:i,positionList:n,paperSize:o,pageImgs:a},e.abrupt("return",s);case 15:case"end":return e.stop()}}),e)})))()},getPdfFile:function(){var t=this;return w(_().mark((function e(){var n,r,i,a;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getPageImage();case 2:return n=e.sent,r="K"===t.sizeType?1===t.layout?[552.76,765.35]:[765.35,1105.51]:1===t.layout?"a4":"a3",i=new Dt.a(1===t.layout?"p":"l","pt",r),n.forEach((function(e,r){var a=1===t.layout?"K"===t.sizeType?552.76:595.28:"K"===t.sizeType?1105.51:1190.55,o="K"===t.sizeType?765.35:841.89;i.addImage(e,"JPEG",0,0,a,o),r!==n.length-1&&i.addPage()})),a=i.output("blob"),e.abrupt("return",{file:a,urlList:n});case 8:case"end":return e.stop()}}),e)})))()},downloadSweep:function(){var t=this;return w(_().mark((function e(){var n,r,i,a,o,s;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!($(".ac-piece__wrapper").length>16)){e.next=3;break}return t.$message({showClose:!0,message:"扫描答题卡不能超过16页",type:"error"}),e.abrupt("return");case 3:return e.next=5,t.getPdfFile();case 5:return n=e.sent,r=n.file,i=n.urlList,e.next=10,t.getZipContent();case 10:return a=e.sent,o=$(".ac-panel .ac-piece__wrapper")[0],s={questionRects:t.questionRects,intrinsicWidth:$(o).outerWidth(),intrinsicHeight:$(o).outerHeight()},e.abrupt("return",{file:r,pageImgs:i,zipFile:a,rectInfo:s});case 14:case"end":return e.stop()}}),e)})))()},pxToNumber:function(t){return Number((t||"").replace("px",""))},getSweepData:function(){var t=this,e=[],n=function(e,n){var r=n.essayInfo,i=n.isObjective,a=[];return e.forEach((function(e){var n=$(e).parents(".ac-piece__wrapper"),i=$(n).find(".mark-point__top-left")[0],o=$(i).offset(),s=o.left,c=o.top,u=$(e).offset().left-s,l=u+$(e).outerWidth(),h=$(e).offset().top-c,d=h+$(e).outerHeight(),f=Number(n.data("page")),p=a.find((function(t){return t.pageNum===f}));if(p)p.left=Math.min(p.left,u),p.right=Math.max(p.right,l),p.top=Math.min(p.top,h),p.bottom=Math.max(p.bottom,d);else{var g={pageNum:f,left:u,right:l,top:h,bottom:d};if(r&&5===r.bgType){var m=getComputedStyle(e),y=t.pxToNumber(m.getPropertyValue("--row")),v=t.pxToNumber(m.getPropertyValue("--row-height")),_=t.pxToNumber(m.getPropertyValue("--row-gap")),b=t.pxToNumber(m.getPropertyValue("--column"));g.rowInfo={Row:y,RowGap:_,Size:v,Column:b};for(var w=[],C=0;C<y;C++)w.push({Type:"AnswerArea",Page:"第".concat(f,"页"),X:Math.floor(u),Y:Math.floor(h+C*v+(C+1)*_),Width:b*v,Height:v,Index:C});w.length&&(g.children=w)}a.push(g)}})),a.map((function(t){var e=t.pageNum,n=t.left,r=t.right,a=t.top,o=t.bottom,s=t.rowInfo,c=t.children,u={Type:"AnswerArea",Page:"第".concat(e,"页"),X:Math.floor(n),Y:Math.floor(a),Width:Math.ceil(r-n),Height:Math.ceil(o-a)};return i&&(u.QuestionType="Objective"),s&&Object.assign(u,y({},s)),c&&(u.Children=c),u}))},r=function t(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];r.forEach((function(r,a){var o=[].concat(l(i),[r[r.idProp||"id"]||a]);if(r.scanInfo){var s=[],c=$(".ac-panel");if(Array.isArray(r.children)&&r.children.length)r.children.forEach((function(t,e){var n=[].concat(l(o),[t[t.idProp||"id"]||e]),r=c.find("div[data-key=".concat(n.join("_"),"] .ac-essay"));s.push.apply(s,l(r))}));else{var u=o.join("_"),h="div[data-key=".concat(u,"]");r.choices?h="div[data-key=".concat(u,"] .ac-answer-box"):r.essay?h="wrapper"===r.essay.sweepRange?"div[data-key=".concat(u,"] .ac-essay"):"div[data-key=".concat(u,"] .ac-essay__area"):r.table&&(h="div[data-key=".concat(u,"] .ac-table__area-of-piece"));var d=c.find(h);s.push.apply(s,l(d))}var f=n(s,{essayInfo:r.essay,isObjective:Boolean(r.choices)});e.push.apply(e,l(f.map((function(t){return y(y({},t),r.scanInfo)}))))}else Array.isArray(r.children)&&r.children.length&&t(r.children,o)}))};return r(this.paperTree),e},getPositionData:function(){var t=this;return w(_().mark((function e(){var n,r,i,a,o;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=[],r=function(e,n,r){var i=r||$(e).parents(".ac-piece__wrapper"),a=i.offset(),o=a.left,s=a.top,c=$(e).offset(),u=c.left,l=c.top,h=u-o,d=h+$(e).outerWidth(),f=l-s,p=f+$(e).outerHeight(),g={page_left_top:"(".concat(t.pxToAU(h),",").concat(t.pxToAU(f),")"),page_right_bottom:"(".concat(t.pxToAU(d),",").concat(t.pxToAU(p),")"),question_page:i.data("page")};if("hand"===t.readType&&n){var m=$(e).find(".ac-answer-box")[0];if(m){var y=$(m).offset(),v=y.left,_=y.top;Object.assign(g,{mark_left_top:"(".concat(t.pxToAU(v-o),",").concat(t.pxToAU(_-s),")"),mark_right_bottom:"(".concat(t.pxToAU(v-o+$(m).outerWidth()),",").concat(t.pxToAU(_-s+$(m).outerHeight()),")")})}}return g},i=function(e){var n=[];return e.forEach((function(t){var e=$(t).parents(".ac-piece__wrapper"),r=e.data("page"),i=e.offset(),a=i.left,o=i.top,s=$(t).offset(),c=s.left,u=s.top,l=c-a,h=l+$(t).outerWidth(),d=u-o,f=d+$(t).outerHeight(),p=n.find((function(t){return t.question_page===r}));p?(p.leftPosition=Math.min(p.leftPosition,l),p.rightPosition=Math.max(p.rightPosition,h),p.topPosition=Math.min(p.topPosition,d),p.bottomPosition=Math.max(p.bottomPosition,f)):n.push({question_page:r,leftPosition:l,rightPosition:h,topPosition:d,bottomPosition:f})})),n.map((function(e){var n=e.leftPosition,r=e.rightPosition,i=e.topPosition,a=e.bottomPosition,o=e.question_page;return{page_left_top:"(".concat(t.pxToAU(n),",").concat(t.pxToAU(i),")"),page_right_bottom:"(".concat(t.pxToAU(r),",").concat(t.pxToAU(a),")"),question_page:o}}))},a=function(t,e){var a=e.join("_"),o=$(".ac-panel"),s=l(o.find("div[data-key=".concat(a,"]"))),c=[],u={},h={};if(t.prefixMarker){var d=o.find(".ac-prefix-marker[data-key=".concat(a,"]"));Object.assign(u,r(d))}if(t.suffixMarker){var f=o.find(".ac-suffix-marker[data-key=".concat(a,"]"));Object.assign(h,r(f))}var p=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[];return Array.isArray(e)?(e.forEach((function(e,a){var s=[],u=[].concat(l(n),[a]),h=o.find("div[data-key=".concat(u.join("_"),"]"));if(s.push.apply(s,l(h)),e.children&&s.push.apply(s,l(t(e.children,u))),e.positionInfo){var d=i(s);c.push.apply(c,l(d.map((function(t){return y(y({},t),e.positionInfo)}))))}r.push.apply(r,s)})),r):r};s.push.apply(s,l(p(t.children,e)));var g=i(s);n.push.apply(n,l(g.map((function(e){var n=y(y({subQuestionPositions:c},e),t.positionInfo);return t.prefixMarker&&Object.assign(n,{prefixMarkerInfo:u}),t.suffixMarker&&Object.assign(n,{suffixMarkerInfo:h}),n}))))},o=function e(o){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];o.forEach((function(o,c){var u=[].concat(l(s),[o[o.idProp||"id"]||c]);if(o.prefixMarker||o.suffixMarker)a(o,u);else if(Array.isArray(o.children)&&o.children.length)e(o.children,u);else{var h=u.join("_"),d=$(".ac-panel");if(o.choices){var f=d.find(".ac-question[data-key=".concat(h,"] .ac-answer-box"))[0];f&&n.push(Object.assign(r(f),o.positionInfo||{}))}else if(o.essay){var p=t.editEssayList.find((function(t){return t.dataKey===h}))||{},g="number"===typeof p.row?0===p.row:0===o.essay.rowCount,m=p.title||o.essay.title,v=[];if(g){var _=m?".ac-essay__wrapper[data-key=".concat(h,"]"):".ac-question[data-key=".concat(h,"]");v=d.find(_)}else v=d.find("".concat("hand"===t.readType?".ac-question[data-key=".concat(h,"],"):"",".ac-essay__wrapper[data-key=").concat(h,"]").concat("area"===o.essay.range?" .ac-essay__area":""));for(var b=0;b<v.length;b++){var w=r(v[b],!0);n.push(Object.assign(w,o.positionInfo||{}))}}else if(o.dimensions){for(var C=d.find(".ac-dimension[data-key=".concat(h,"]")),A=i(Array.from(C)),x=[],k={count:5,width:t.pxToAU(32),height:t.pxToAU(32),gap:t.pxToAU(4)},T=0;T<C.length;T++){var E=C[T],S=Number($(E).data("dimension-index"));if(-1!==S){var I=$(E).find(".dimension-stars")[0],O=$(E).find(".dimension-stars")[1],L=$(I).find("i")[0],B=$(O).find("i")[0];x.push({dimension:o.dimensions[S],dimensionIndex:S,selfStars:y(y({},r(L)),k),partnerStars:y(y({},r(B)),k)})}}n.push.apply(n,l(A.map((function(t){return y(y({subQuestionPositions:x},t),o.positionInfo)}))))}else for(var P=d.find(".ac-question[data-key=".concat(h,"]")),R=0;R<P.length;R++){var j=r(P[R],!0);n.push(Object.assign(j,o.positionInfo||{}))}}}))},o(t.paperTree),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})))()},pxToAU:function(t){var e="K"===this.sizeType?195:210;return Math.floor(t*e*8/294*100)/100},getZipContent:function(){var t=this;return w(_().mark((function e(){var n,r,i,a,o,s,c,u,l;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.paperTitle.replace(/[_]/g,"-"),r=$(".ac-piece__wrapper"),i=1===t.registrationNumberType,a=new $t.a,o="".concat(n,"模板_").concat(n,"_").concat(2===t.layout?"A3":"A4","_").concat("#000000"===t.candidateNumColor?"黑白":"彩色","_").concat(r.length,"_").concat(i?"涂点":"条码","_").concat(i?"10":"-1","_").concat(i?t.educationIdValue:"-1","_涂点_涂点.xml"),a.file(o,t.getXMLData()),s=[],Array.from(r).forEach((function(t,e){s.push({dom:t,name:"".concat(e+1,".png")}),e%2||(s.push({dom:$(t).find(".mark-point__top-left .mark-point__box")[0],name:"第".concat(e+1,"页_zuoshang.jpg")}),s.push({dom:$(t).find(".mark-point__top-right .mark-point__box")[0],name:"第".concat(e+1,"页_youshang.jpg")}),s.push({dom:$(t).find(".mark-point__bottom-left .mark-point__box")[0],name:"第".concat(e+1,"页_zuoxia.jpg")}),s.push({dom:$(t).find(".mark-point__bottom-right .mark-point__box")[0],name:"第".concat(e+1,"页_youxia.jpg")}))})),e.next=10,Object(tt["b"])(s.map((function(t){return t.dom})),1);case 10:return c=e.sent,c.forEach((function(t,e){var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),o=i.length,c=new Uint8Array(o);while(o--)c[o]=i.charCodeAt(o);a.file(s[e].name,new Blob([c],{type:r}),{base64:!0})})),e.next=14,a.generateAsync({type:"blob"});case 14:return u=e.sent,l="".concat(n,"模板.zip"),Ft()(u,l),e.abrupt("return",new File([u],l,{type:"zip"}));case 18:case"end":return e.stop()}}),e)})))()},getXMLData:function(){var t=this,e=[],n=$(".ac-piece__wrapper"),r=function(n,r){var i=$(n).offset(),a=i.left,o=i.top,s=$(n).find(".mark-point__top-left")[0],c=$(s).offset(),u=c.left,l=c.top,h=$(n).find("[data-export_name]");Array.from(h).forEach((function(n){var i=$(n),s=i.data("export_name");if(s){var c="absolute"===i.data("scan-type"),h={Type:"AnswerArea",Name:s,Page:r,X:Math.floor(i.offset().left-(c?a:u)),Y:Math.floor(i.offset().top-(c?o:l)),Width:Math.ceil(i.outerWidth()),Height:Math.ceil(i.outerHeight())};"考号"===i.data("export_name")&&(h.Rows=10,h.Columns=t.educationIdValue),e.push(h)}}))};Array.from(n).forEach((function(t,e){r(t,"第".concat(e+1,"页"))})),this.questionRects=this.getSweepData(),e.push.apply(e,l(this.questionRects));var i='<?xml version="1.0" encoding="utf-8"?>';return i+='<answerSheet isNew="true" isTFishProject="true" layout="'.concat(this.layout,'">'),i+=this.getXMLStringFromArray(e),i+="</answerSheet>",i},getXMLStringFromArray:function(t){var e=this,n=function(t){return Object.keys(t).map((function(n){return"Type"===n?"":"Children"===n?"<Children>".concat(e.getXMLStringFromArray(t[n]),"</Children>"):"<".concat(n,">").concat(t[n],"</").concat(n,">")})).join("")};return t.map((function(t){return"<".concat(t.Type,">").concat(n(t),"</").concat(t.Type,">")})).join("")}}},Wt=Kt,Vt=Object(P["a"])(Wt,d,f,!1,null,null,null),Yt=Vt.exports,Zt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-sweep"},[e("ac-sweep-virtual",{attrs:{tree:t.sweepPaperTree},on:{change:t.setDomList}}),e("ac-sweep-panel",{attrs:{"dom-list":t.domList}})],1)},Gt=[],Qt=function(){var t=this,e=t._self._c;return e("div",{class:["ac-sweep__choice",t.showBorder&&"is-border",t.isShowBorderBottom&&"is-border-bottom"],attrs:{"data-key":t.dataKey}},[Array.isArray(t.listData)?t._l(t.listData,(function(n,r){return e("div",{key:r,staticClass:"ac-sweep__choice-wrapper"},[e("ul",{class:["ac-sweep__choice-box"],style:{gridTemplateColumns:"row"===t.objectiveOrder?"repeat(".concat(n.questionsWidth.length,", auto)"):"repeat(".concat(Math.ceil(n.questions.length/n.questionsWidth.length),", auto)"),gridTemplateRows:"repeat(".concat(Math.ceil(n.questions.length/n.questionsWidth.length),", auto)"),gridAutoFlow:t.objectiveOrder}},t._l(n.questions,(function(n,i){return e("li",{key:"".concat(r,"_").concat(i),ref:"choiceEach_".concat(r,"_").concat(i),refInFor:!0,staticClass:"ac-sweep__choice-each"},[e("span",{staticClass:"choice-title",style:{width:t.isComplex?"50px":"20px"},attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,"".concat(r,"_").concat(i))}}},[t._v(" "+t._s(t.getBeforeChinese(n.title))+" ")]),e("div",{staticClass:"ac-sweep__choice-item"},t._l(n.choices,(function(n,a){return e("span",{key:"".concat(r,"_").concat(i,"_").concat(a),staticClass:"ac-sweep__choice-option"},[t._v(" "+t._s(n.identifier)+" ")])})),0)])})),0)])})):[e("div",{staticClass:"ac-sweep__choice-wrapper"},[e("ul",{staticClass:"ac-sweep__choice-box"},[e("li",[e("span",{staticClass:"choice-title",attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,"0")}}},[t._v(" "+t._s(t.getBeforeChinese(t.list.title))+" ")]),e("div",{staticClass:"ac-sweep__choice-item"},t._l(t.list.choices,(function(n,r){return e("span",{key:r,staticClass:"ac-sweep__choice-option"},[t._v(" "+t._s(n.identifier)+" ")])})),0)])])])]],2)},Xt=[],qt={name:"AcSweepChoice",components:{},props:{list:{type:[Array,Object]},showBorder:{type:Boolean,default:!0},isShowBorderBottom:{type:Boolean,default:!1},isComplex:{type:Boolean,default:!1},dataKey:{type:[String,Number]}},computed:{layout:function(){return this.$store.getters["AC/layout"]},objectiveOrder:function(){return this.$store.getters["AC/objectiveOrder"]}},watch:{objectiveOrder:function(t){this.convertTree(this.list)}},mounted:function(){this.convertTree(this.list)},data:function(){return{listData:null}},methods:{getBeforeChinese:function(t){var e=/[\u4e00-\u9fa5]/;if(t){var n=t.search(e);return-1===n?t:t.slice(0,n)}},handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:"".concat(this.dataKey,"_").concat(e)})},convertTree:function(t){if(Array.isArray(t)){for(var e=[],n=0;n<t.length;n++){var r=t[n];"single_choice"===r.code?(0!==n&&"single_choice"===t[n-1].code||e.push({questions:[],questionsWidth:[]}),e[e.length-1].questions.push(r)):"multiple_choice"===r.code?(0!==n&&"multiple_choice"===t[n-1].code||e.push({questions:[],questionsWidth:[]}),e[e.length-1].questions.push(r)):"judgment"===r.code&&(0!==n&&"judgment"===t[n-1].code||e.push({questions:[],questionsWidth:[]}),e[e.length-1].questions.push(r))}this.listData=e,this.getChoiceWidth(this.listData)}},getChoiceWidth:function(t){var e=this;t.forEach((function(t){t.questions.forEach((function(n){t.questionsWidth.push(6+(e.isComplex?50:20)+30*n.choices.length-8+28)}))})),this.listData.forEach((function(t){t.questionsWidth=e.designLayout(e.objectiveOrder,t.questionsWidth)}))},designLayout:function(t,e){var n=$(".ac-sweep__choice").innerWidth()-64,r=function(t){return t.reduce((function(t,e){return Math.max(t,e)}),0)},i=function(t){return t.reduce((function(t,e){return Math.min(t,e)}),n)},a=function(t,r){var i=[];return e.forEach((function(n,a){var o="row"===r?a%t:Math.floor(a/(e.length/t));i[o]=Math.max(i[o]||0,n)})),n-i.reduce((function(t,e){return t+e}),0)},o=r(e),s=i(e),c=Math.floor(n/o),u=c,l=!0;while(l){var h=a(u,t);h<s||u>=e.length?l=!1:u+=1}var d=Array(u).fill("").map((function(n,r){return e.filter((function(n,i){if("row"===t)return i%u===r;var a=Math.ceil(e.length/u);return i<(r+1)*a&&i>=r*a}))}));return d}}},Jt=qt,te=Object(P["a"])(Jt,Qt,Xt,!1,null,null,null),ee=te.exports;ee.install=function(t){t.component(ee.name,ee)};var ne=ee,re=function(){var t=this,e=t._self._c;return e("div",{class:["ac-sweep__composite",t.showBorder&&"is-border",t.isShowBorderBottom&&"is-border-bottom",t.isComplex&&"is-padding",t.isHideBorderTop&&"hide-border-top",t.isPaddingTop&&"is-padding-top",t.isHidePaddingTop&&"is-hide-padding-top"],attrs:{"data-key":t.dataKey,type:"composite","page-index":t.pageIndex}},[t.getLiContent?e("div",{ref:"compositeContent",staticClass:"ac-sweep__composite-title",domProps:{innerHTML:t._s(t.getLiContent)}}):e("div",{ref:"compositeContent",staticClass:"ac-sweep__composite-title",domProps:{innerHTML:t._s(t.getTitle)}}),e("el-button",{staticClass:"edit-btn",attrs:{type:"primary",size:"small"},on:{click:t.handleEdit}},[t._v(" 编辑答题区 ")]),e("ac-editor",{attrs:{visible:t.editorVisible,content:t.editContent,title:"编辑答题区","editor-id":"essay-editor_".concat(Date.now().toString(36))},on:{"update:visible":function(e){t.editorVisible=e},submit:t.handleSubmit}})],1)},ie=[],ae={name:"AcSweepComposite",components:{AcEditor:xt["default"]},props:{title:{type:String,default:""},blankNum:{type:Number,default:0},showBorder:{type:Boolean,default:!0},isShowBorderBottom:{type:Boolean,default:!1},isHideBorderTop:{type:Boolean,default:!1},dataKey:{type:String,default:""},isComplex:{type:Boolean,default:!1},isPaddingTop:{type:Boolean,default:!1},isHidePaddingTop:{type:Boolean,default:!1},pageIndex:{type:Number,default:0}},computed:{editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},getTitle:function(){var t=new Array(this.blankNum).fill("").map((function(){return'<span style="display: inline-block; height: 40px; vertical-align: text-top"><u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</u></span>'}));return'<span style="height: 40px;">'.concat(this.title,"</span>").concat(t.join("、"))},getLiContent:function(){var t=this,e=this.editTitleList.find((function(e){return e.dataKey===t.dataKey}))||{};return e.title}},watch:{},mounted:function(){},data:function(){return{editorVisible:!1,editContent:""}},methods:{getFullTitle:function(){var t=this;return(this.editTitleList.find((function(e){return e.dataKey===t.dataKey}))||{}).title||this.$refs.compositeContent.innerHTML},handleEdit:function(){this.editContent=this.getFullTitle(),this.editorVisible=!0},handleSubmit:function(t){this.$store.dispatch("AC/paper/setEditTitle",{dataKey:this.dataKey,title:t}),this.$store.dispatch("AC/paper/resetPanel")}}},oe=ae,se=Object(P["a"])(oe,re,ie,!1,null,null,null),ce=se.exports;ce.install=function(t){t.component(ce.name,ce)};var ue,le,he=ce,de={name:"AcSweepComplex",components:{AcSweepChoice:ne,AcSweepCompletion:he,AcEssay:x["default"],AcEditor:xt["default"]},props:{list:{type:[Array,Object]},isShowBorderBottom:{type:Boolean,default:!1},dataKey:{type:String,default:""}},computed:{editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},getLiContent:function(){var t=this,e=this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{};return e.title}},watch:{},created:function(){this.init()},data:function(){return{listTree:null,editorVisible:!1,editContent:""}},methods:{init:function(){this.listTree=this.convertTree(this.list)},getEditedKey:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).editKey||""},getEssayTitle:function(t,e){return(this.editEssayList.find((function(e){return e.dataKey===t}))||{}).title||e},convertTree:function(t){for(var e=t.children,n=[],r=0;r<e.length;r++){var i=e[r];("single_choice"===i.code||"multiple_choice"===i.code||"judgment"===i.code)&&r<e.length-1&&("single_choice"===e[r+1].code||"multiple_choice"===e[r+1].code||"judgment"===e[r+1].code)?(n.push([i,e[r+1]]),r++):n.push(i)}return t.children=n,t},getFullTitle:function(){var t=this;return(this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{}).title||this.listTree.title},editTitle:function(){this.editContent=this.getFullTitle(),this.editorVisible=!0},handleSubmit:function(t){this.$store.dispatch("AC/essay/setEssayTitle",{dataKey:this.dataKey,title:t}),this.editorVisible=!1},getList:function(t){var e=this,n=this.$createElement;return t.map((function(t,r){return n("div",{key:"".concat(r,"_").concat(t[t.idProp||"id"]||""),class:!t.code&&!Array.isArray(t)&&"ac-sweep__virtual-section",attrs:{"data-key":t.dataKey,"question-code":t.code}},[Array.isArray(t.children)&&t.children.length&&"complex"!==t.code?n("div",{class:"ac-sweep__virtual-box"},[!t.code&&e.getTitle(t,t.dataKey),e.getList(t.children)]):n("div",[Array.isArray(t)||"single_choice"===t.code||"multiple_choice"===t.code||"judgment"===t.code?n("ac-sweep-choice",{props:y({},{list:t,showBorder:!1,dataKey:t.dataKey,isComplex:!0})}):null,"completion"===t.code?n("ac-sweep-completion",{key:"virtual_question_".concat(e.getEditedKey(t.dataKey)),props:y({},Object.assign({dataKey:t.dataKey,isComplex:!0},t))}):null,"subjectivity"===t.code?n("ac-essay",{props:y({},Object.assign(t.essay,{title:e.getEssayTitle(t.dataKey,t.title),hiddenBorderBoth:!1}))}):null,"complex"===t.code?n("ac-sweep-complex",{props:y({},{list:t,dataKey:t.dataKey})}):null])])}))}},render:function(){var t=arguments[0];return t("div",{class:"ac-sweep__complex ".concat(this.isShowBorderBottom&&"is-border-bottom")},[t("p",{class:"ac-sweep__complex-title",on:{click:this.editTitle},domProps:{innerHTML:this.getLiContent?this.getLiContent:this.listTree.title}}),this.getList(this.listTree.children),t("ac-editor",{attrs:{visible:this.editorVisible,content:this.editContent,title:"编辑答题区",editorId:"essay-editor_".concat(Date.now().toString(36))},on:{submit:this.handleSubmit}})])}},fe=de,pe=Object(P["a"])(fe,ue,le,!1,null,null,null),ge=pe.exports;ge.install=function(t){t.component(ge.name,ge)};var me,ye,ve=ge,_e={name:"AcSweepVirtual",components:{AcSweepChoice:ne,AcSweepCompletion:he,AcSweepComplex:ve,AcEssay:x["default"],AcBasicInfo:Q["default"]},props:{tree:{type:Array,default:function(){return[]}}},computed:{sweepPaperTree:function(){return this.$store.getters["AC/sweepPaperTree"]},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},objectiveOrder:function(){return this.$store.getters["AC/objectiveOrder"]},layout:function(){return this.$store.getters["AC/layout"]},panelFlag:function(){return this.$store.getters["AC/panelFlag"]},patchwork:function(){return this.$store.getters["AC/patchwork"]},readType:function(){return this.$store.getters["AC/readType"]}},watch:{panelFlag:function(){var t=this;this.$nextTick((function(){return t.getDomList()}))}},updated:function(){var t=this;this.handleLatex().then((function(){return t.getDomList()}))},mounted:function(){var t=this;this.handleLatex().then((function(){return t.getDomList()}))},data:function(){return{}},methods:{handleLatex:function(){return J("math-virtual")||Promise.resolve()},handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:e})},getEditedKey:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).editKey||""},getEssayTitle:function(t,e){return(this.editEssayList.find((function(e){return e.dataKey===t}))||{}).title||e},getTitle:function(t,e){var n=this,r=this.$createElement,i=t.title;return r("div",{class:"ac-sweep__virtual-head",attrs:{contenteditable:!0,"data-key":e},domProps:{innerHTML:i},on:{blur:function(t){return n.handleBlur(t,e)}}})},getList:function(t){var e=this,n=this.$createElement;return t.map((function(r,i){return n("div",{key:"".concat(i,"_").concat(r[r.idProp||"id"]||""),class:!r.code&&!Array.isArray(r)&&"ac-sweep__virtual-section",attrs:{"data-key":r.dataKey||i,"question-code":r.code}},[Array.isArray(r.children)&&r.children.length&&"complex"!==r.code?n("div",{class:"ac-sweep__virtual-box"},[!r.code&&e.getTitle(r,r.dataKey||i),e.getList(r.children)]):n("div",[(e.layout>1?i%(2*e.layout)===0:e.patchwork?(i+1)%4===1:i%2===0)?n("ac-basic-info"):null,Array.isArray(r)||"single_choice"===r.code||"multiple_choice"===r.code||"judgment"===r.code?n("ac-sweep-choice",{props:y({},{list:r,isShowBorderBottom:i===t.length-1,dataKey:r.dataKey||i})}):null,"completion"===r.code?n("ac-sweep-completion",{key:"virtual_question_".concat(e.getEditedKey(r.dataKey)),props:y({},Object.assign({dataKey:r.dataKey},r,{isShowBorderBottom:i===t.length-1,isPaddingTop:t[i-1]&&"completion"!==t[i-1].code&&"complexTitle"!==t[i-1].code,isHidePaddingTop:t[i-1]&&"completion"===t[i-1].code}))}):null,"subjectivity"===r.code?n("ac-essay",{props:y({},Object.assign(r.essay,{title:e.getEssayTitle(r.dataKey,r.title)}))}):null,"complex"===r.code?n("ac-sweep-complex",{props:y({},{list:r,isShowBorderBottom:i===t.length-1,dataKey:r.dataKey})}):null])])}))},splitDom:function(t){for(var e="",n=0,r=0,i=[],a=t.childNodes||[],o=0;o<a.length;o++){var s=a[o];if(-1===["P","DIV","IMG"].indexOf(s.nodeName))try{"#text"===s.nodeName?e+=s.textContent:e+=s.outerHTML}catch(f){}else{var c=getComputedStyle(s),u=Number(c.marginTop.replace("px",""))||0,l=Number(c.marginBottom.replace("px",""))||0,h=s.offsetTop;i.length&&(h-=r),e+=s.outerHTML,n+=h+$(s).outerHeight()+u+l,i.push({content:e,height:n}),e="",n=0,r=s.offsetTop+$(s).outerHeight()+u+l}}if(e){var d=$(t).outerHeight();i.push({content:e,height:i.length?d-r:d})}return i},getDomList:function(){var t=this,e=function(e){e.forEach((function(e,n){var r=u.find(".ac-sweep__virtual-section[data-key=".concat(n,"]")),i=r.find(".ac-sweep__virtual-head")[0];i&&c.push({type:"sectionHead",height:t.editTitleList.find((function(t){return t.dataKey===n}))?t.editTitleList.find((function(t){return t.dataKey===n})).height:$(i).outerHeight(),content:i.innerHTML,dataKey:$(i).data("key")}),Array.isArray(e.children)&&e.children&&e.children.forEach((function(t,n){var i=t.dataKey,a=r.find("div[data-key=".concat(i,"]"))[0];s(t,a,!1,n===e.children.length-1,i)}))}))},n=function(e,n){var r=t.layout>2?520:808,i=function(t){return t.reduce((function(t,e){return Math.max(t,e.width)}),0)},a=function(t){return t.reduce((function(t,e){return Math.min(t,e.width)}),r)},o=function(t,e){var i=[];return n.forEach((function(r,a){var o="row"===e?a%t:Math.floor(a/(n.length/t));i[o]=Math.max(i[o]||0,r.width)})),r-i.reduce((function(t,e){return t+e}),0)},s=i(n),c=a(n),u=Math.floor(r/s),l=u,h=!0;while(h){var d=o(l,e);d<c||l>=n.length?(h=!1,d<0&&(l-=1)):l+=1}var f=Array(l).fill("").map((function(t,r){return n.filter((function(t,i){if("row"===e)return i%l===r;var a=Math.ceil(n.length/l);return i<(r+1)*a&&i>=r*a}))}));return f.forEach((function(t){var e=i(t);t.forEach((function(t){t.columnWidth=e}))})),f},r=function(e,r){if(Array.isArray(e)){for(var o=[],s=0;s<e.length;s++){var c=e[s];"single_choice"===c.code?(0!==s&&"single_choice"===e[s-1].code||o.push([]),o[o.length-1].push(c)):"multiple_choice"===c.code?(0!==s&&"multiple_choice"===e[s-1].code||o.push([]),o[o.length-1].push(c)):"judgment"===c.code&&(0!==s&&"judgment"===e[s-1].code||o.push([]),o[o.length-1].push(c))}var u=[];return o.forEach((function(e){e.forEach((function(t){t.width=(i(t.title)?a(t.title):23)+6+30*t.choices.length-8+18}));for(var r=n(t.objectiveOrder,e),o=r[0].length,s=function(t){u.push(r.map((function(e){return e.find((function(e,n){return n===t}))})))},c=0;c<o;c++)s(c)})),u}},i=function(t){var e=o(t),n=/[\u4e00-\u9fa5()()]/;return n.test(e)},a=function(t){var e=o(t).length;return e>6?56:6===e?48:e<6?40:void 0},o=function(t){var e=/[\u4e00-\u9fa5]/;if(t){var n=t.search(e);return-1===n?t:t.slice(0,n)}},s=function e(n,i,a,o,s){if(Array.isArray(n)){var u=r(n,a);u.forEach((function(t,e){c.push({height:0===e||u.length-1===e?44:24,type:"objective",isComplex:a,isShowBorderBottom:o,dataKey:s,list:t})}))}else switch(n.code){case"single_choice":case"multiple_choice":case"judgment":c.push(Object.assign({height:44,type:"objective",isComplex:a,isShowBorderBottom:o},n));break;case"completion":var l=$(i).find(".ac-sweep__composite-title")[0],h=t.splitDom(l);h.forEach((function(t){t.type="completionItem",t.isComplex=a})),!h.length||a&&"graffiti"!==t.readType||(h[0].height+=15),"graffiti"===t.readType&&c.push({type:"graffiti",height:30,scanName:n.scanName,score:n.score,isComplex:a,hideBottomBorder:!0,dataKey:n.dataKey,hidePadding:!0}),c.push({type:"completion",isComplex:a,isShowBorderBottom:o,dataKey:n.dataKey,height:$(l).outerHeight(),children:h});break;case"subjectivity":var d=$(i).find(".ac-essay__title")[0];"graffiti"===t.readType&&c.push({type:"graffiti",height:30,scanName:n.scanName,score:n.score,isComplex:a,hideBottomBorder:!0,dataKey:n.dataKey,hidePadding:!0}),c.push({type:"essay",dataKey:s,essay:Object.assign({rowCount:4,dataKey:n.dataKey,isComplex:a,titleChildren:t.splitDom(d)},n.essay)});break;case"complex":var f=$(i).find(".ac-sweep__complex-title")[0],p=t.splitDom(f);p.length&&(p[0].type="complexTitleItem"),c.push({type:n.title?"complexTitle":null,children:p}),n.children&&n.children.forEach((function(t,r){var a=$(i).find("div[data-key=".concat(t.dataKey,"]"));e(t,a,!0,r===n.children.length-1,t.dataKey)}));break}},c=[],u=$(".ac-virtual"),l=u.find(".ac-basicInfo");if(l){var h=l.find(".ac-basicInfo__title"),d=l.find(".ac-attention"),f=l.find(".ac-basic-info__edu");c.push({type:"basicInfo",headHeight:null===h||void 0===h?void 0:h.outerHeight(),attentionHeight:null===d||void 0===d?void 0:d.outerHeight(),eduHeight:null===f||void 0===f?void 0:f.outerHeight()})}e(this.tree),this.$emit("change",c)}},render:function(){var t=arguments[0];return t("div",{class:"ac-virtual",attrs:{id:"math-virtual"},style:{width:this.$store.getters["AC/layout"]>2?"690px":"978px"}},[this.getList(this.tree)])}},be=_e,we=Object(P["a"])(be,me,ye,!1,null,null,null),Ce=we.exports;Ce.install=function(t){t.component(Ce.name,Ce)};var Ae=Ce,xe=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-panel"},[t._l(t.formatPanelList,(function(n,r){return e("div",{key:r,staticClass:"ac-panel__item"},[e("div",{staticClass:"ac-piece__wrapper",attrs:{"data-page-type":n.flat().length?"":"restrict"}},[n.length?t._l(n,(function(n,i){return e("ac-sweep-piece",{key:i,attrs:{"data-piece":r*t.layout+i,"data-page":r,list:n,"page-index":r}})})):e("div",{staticClass:"ac-piece"},[e("ac-restrict",{attrs:{height:1250}})],1),e("ac-mark-point",{attrs:{"page-index":r}}),t.isAddFooter?e("div",{staticClass:"ac-piece__footer"},[t._v(" "+t._s("第".concat(r+1,"页,共").concat(t.formatPanelList.length,"页"))+" ")]):t._e()],2)])})),e("ac-editor",{attrs:{visible:t.visible,content:t.editing.content||""},on:{"update:visible":function(e){t.visible=e},submit:t.handleSubmit}})],2)},ke=[],Te=n("2638"),Ee=n.n(Te),Se=function(){var t=this,e=t._self._c;return e("div",{class:["objective","is-border",t.isShowBorderBottom&&"is-border-bottom",t.isHideBorderTop&&"is-hide_Border-top"]},[Array.isArray(t.list)?t._l(t.list,(function(n,r){return e("div",{key:r,class:["ac-sweep__choice-wrapper"],style:{display:"flex",flexWrap:"wrap"}},t._l(n.list,(function(i,a){return e("div",{key:"".concat(r,"_").concat(a),staticClass:"ac-sweep__choice-each",style:{width:i&&"".concat(i.columnWidth,"px"),height:i&&"".concat(n.height,"px"),lineHeight:i&&"".concat(24,"px"),paddingTop:"".concat(0===r&&n.height-24,"px"),paddingBottom:"".concat(r===t.list.length-1&&n.height&&i-24,"px"),whiteSpace:"nowrap"},attrs:{"data-key":i&&i.dataKey,type:"objective","page-index":t.pageIndex}},[e("span",{staticClass:"choice-title",style:{width:i&&t.isHasBrackets(i.title)?"".concat(t.convertWidth(i.title),"px"):"23px"},attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,i.dataKey)}}},[t._v(" "+t._s(i&&t.getBeforeChinese(i.title))+" ")]),e("div",{staticClass:"ac-sweep__choice-item"},t._l(i&&i.choices,(function(n,o){return e("span",{key:"".concat(r,"_").concat(a,"_").concat(o),staticClass:"ac-sweep__choice-option"},[t._v(" "+t._s("judgment"!==i.code?n.identifier:t.judgmentMode?"T"===n.identifier?"✓":"×":n.identifier)+" ")])})),0)])})),0)})):[t.list.list?e("div",{class:["ac-sweep__choice-wrapper"],style:{display:"flex",flexWrap:"wrap",paddingTop:"10px",paddingBottom:"10px"}},t._l(t.list.list,(function(n,r){return e("div",{key:"".concat(r),staticClass:"ac-sweep__choice-each",style:{width:n&&"".concat(n.columnWidth,"px"),height:n&&"".concat(t.list.height-20,"px"),lineHeight:n&&"".concat(24,"px"),whiteSpace:"nowrap"},attrs:{"data-key":n&&n.dataKey,type:"objective","page-index":t.pageIndex}},[e("span",{staticClass:"choice-title",style:{width:n&&t.isHasBrackets(n.title)?"".concat(t.convertWidth(n.title),"px"):"23px"},attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,n.dataKey)}}},[t._v(" "+t._s(n&&t.getBeforeChinese(n.title))+" ")]),e("div",{staticClass:"ac-sweep__choice-item"},t._l(n&&n.choices,(function(i,a){return e("span",{key:"".concat(r,"_").concat(a),staticClass:"ac-sweep__choice-option"},[t._v(" "+t._s("judgment"!==n.code?i.identifier:t.judgmentMode?"T"===i.identifier?"✓":"×":i.identifier)+" ")])})),0)])})),0):e("div",{class:["ac-sweep__choice-wrapper"],style:{display:"flex",flexWrap:"wrap"}},[e("div",{staticClass:"ac-sweep__choice-each",style:{width:"".concat(t.list.columnWidth,"px"),height:"".concat(t.list.height,"px"),lineHeight:"".concat(t.list.height,"px"),whiteSpace:"nowrap"},attrs:{"data-key":t.list.dataKey,type:"objective","page-index":t.pageIndex}},[e("span",{staticClass:"choice-title",style:{width:t.isHasBrackets(t.list.title)?"".concat(t.convertWidth(t.list.title),"px"):"23px"},attrs:{contenteditable:""},on:{blur:function(e){return t.handleBlur(e,t.list.dataKey)}}},[t._v(" "+t._s(t.getBeforeChinese(t.list.title))+" ")]),e("div",{staticClass:"ac-sweep__choice-item"},t._l(t.list.choices,(function(n,r){return e("span",{key:r,staticClass:"ac-sweep__choice-option"},[t._v(" "+t._s("judgment"!==t.list.code?n.identifier:t.judgmentMode?"T"===n.identifier?"✓":"×":n.identifier)+" ")])})),0)])])]],2)},Ie=[],Oe={name:"AcObjective",components:{},props:{list:{type:[Array,Object]},isHideBorderTop:{type:Boolean,default:!1},isShowBorderBottom:{type:Boolean,default:!1},pageIndex:{type:Number,default:0}},computed:{objectiveOrder:function(){return this.$store.getters["AC/objectiveOrder"]},judgmentMode:function(){return this.$store.getters["AC/judgmentMode"]}},watch:{},mounted:function(){},data:function(){return{}},methods:{getBeforeChinese:function(t){var e=/[\u4e00-\u9fa5]/;if(t){var n=t.search(e);if(-1===n)return t;var r=t.slice(0,n);return r.endsWith(".")?r.slice(0,-1):r}},isHasBrackets:function(t){var e=this.getBeforeChinese(t),n=/[\u4e00-\u9fa5()()]/;return n.test(e)},convertWidth:function(t){var e=this.getBeforeChinese(t).length;return e>6?56:6===e?48:e<6?40:void 0},handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:"".concat(e)})}}},Le=Oe,Be=Object(P["a"])(Le,Se,Ie,!1,null,null,null),Pe=Be.exports;Pe.install=function(t){t.component(Pe.name,Pe)};var Re,je,Me=Pe,ze={name:"AcSweepPiece",components:{AcEssay:x["default"],AcBasicInfo:Q["default"],AcSweepCompletion:he,AcObjective:Me,AcEditor:xt["default"],AcRestrict:Bt,AcGraffiti:G["default"]},props:{list:{type:Array,default:function(){return[]}},pageIndex:{type:Number,default:0}},computed:{pieceHeight:function(){return"1386px"},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},getLiContent:function(){var t=this,e=this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{};return e.title},editTitleList:function(){return this.$store.getters["AC/editTitleList"]||[]},sweepList:function(){return this.transformTree(this.list)},layout:function(){return this.$store.getters["AC/layout"]}},data:function(){return{editorVisible:!1,editContent:""}},methods:{handleBlur:function(t,e){var n;this.$store.dispatch("AC/paper/setEditTitle",{title:null===(n=t.target)||void 0===n?void 0:n.innerHTML,dataKey:e,height:t.target.offsetHeight}),this.$store.dispatch("AC/paper/resetPanel")},editTitle:function(t){var e=this;this.editContent=(this.editEssayList.find((function(t){return t.dataKey===e.dataKey}))||{}).title||t,this.editorVisible=!0},getPlainTitle:function(t){return(this.editTitleList.find((function(e){return e.dataKey===t}))||{}).title||""},handleSubmit:function(t){this.$store.dispatch("AC/essay/setEssayTitle",{dataKey:this.dataKey,title:t}),this.editorVisible=!1},transformTree:function(t){var e=this,n=new Set(["objective"]);return t.reduce((function(r,i,a){i.children&&(i.children=e.transformTree(i.children));var o=r[r.length-1];return o&&n.has(t[a-1].type)&&n.has(i.type)?(Array.isArray(o)?o.push(i):r[r.length-1]=[o,i],r):(r.push(i),r)}),[])},getContent:function(t,e){var n=this,r=this.$createElement,i=null;switch(!0){case"basicInfo"===t.type:i=r("ac-basic-info",{props:y({},t)});break;case"complexTitle"===t.type:i=r("div",{class:"ac-sweep__complex",style:{borderBottom:this.sweepList.length-1===e&&"1px solid #000"}},[r("p",{class:"ac-sweep__complex-title",on:{click:function(){return n.editTitle(t.content[0])}},domProps:{innerHTML:this.getLiContent?this.getLiContent:t.content[0]}})]);break;case"sectionHead"===t.type:i=r("div",{class:"ac-sweep__virtual-head",style:{marginTop:t.isMarginTop&&"30px"},attrs:{contenteditable:!0,dataKey:t.dataKey},domProps:{innerHTML:t.content},on:{blur:function(e){return n.handleBlur(e,t.dataKey)}}});break;case"graffiti"===t.type:i=r("ac-graffiti",{props:y({},Object.assign(t,{hideTopBorder:this.sweepList[e-1]&&"essay"===this.sweepList[e-1].type}))});break;case"completion"===t.type:i=r("ac-sweep-completion",{props:y({},Object.assign(t,{dataKey:t.dataKey,title:this.getPlainTitle(t.dataKey)||t.content[0],isHideBorderTop:0!==e&&this.sweepList[e-1]&&["completion","complexTitle"].includes(this.sweepList[e-1].type),isPaddingTop:0==e||this.sweepList[e-1]&&"completion"!==this.sweepList[e-1].type&&"complexTitle"!==this.sweepList[e-1].type,isHidePaddingTop:this.sweepList[e-1]&&"completion"===this.sweepList[e-1].type,pageIndex:this.pageIndex+1,isShowBorderBottom:e===this.sweepList.length-1||this.sweepList[e+1]&&["sectionHead","restrict"].includes(this.sweepList[e+1].type)}))});break;case"objective"===t.type||Array.isArray(t):i=r("ac-objective",{props:y({},{list:t,isHideBorderTop:0!==e&&this.sweepList[e-1]&&"essay"===this.sweepList[e-1].type,pageIndex:this.pageIndex+1,isShowBorderBottom:e===this.sweepList.length-1||!!this.sweepList[e+1]&&["sectionHead","restrict"].includes(this.sweepList[e+1].type)})});break;case"essay"===t.type:i=r("ac-essay",{key:"essay_".concat(e),attrs:{"data-key":t.essayConfig.dataKey||"","page-index":this.pageIndex+1,"li-editable":!0},props:y({},y(y({},t.essayConfig),{},{hiddenBorderTop:0!==e&&"complexTitle"===this.sweepList[e-1].type,hiddenBorderBottom:e!==this.sweepList.length-1&&this.sweepList[e+1]&&("essay"===this.sweepList[e+1].type||"completion"===this.sweepList[e+1].type||"complexTitle"===this.sweepList[e+1].type),column:3===this.layout?13:20}))});break;case"restrict"===t.type:i=r("ac-restrict",{props:y({},{height:t.height,marginTop:30})});break}return i}},render:function(){var t=this,e=arguments[0];return e("div",{class:"ac-piece",style:{height:this.pieceHeight}},[e("div",{class:this.$store.getters["AC/layout"]>2?"ac-module__ThreeColumn":"ac-module__column",style:{margin:"0 auto"}},[this.sweepList.length?this.sweepList.map((function(e,n){return t.getContent(e,n)})):e("ac-restrict",{props:y({},{height:1250})}),e("ac-editor",Ee()([{attrs:{visible:this.editorVisible}},{on:{"update:visible":function(e){return t.editorVisible=e}}},{attrs:{content:this.editContent,title:"编辑答题区",editorId:"essay-editor_".concat(Date.now().toString(36))},on:{submit:this.handleSubmit}}]))])])}},Ne=ze,De=Object(P["a"])(Ne,Re,je,!1,null,null,null),Ue=De.exports;Ue.install=function(t){t.component(Ue.name,Ue)};var $e=Ue,He={name:"AcSweepPanel",components:{AcSweepPiece:$e,AcEditor:xt["default"],AcMarkPoint:kt["default"],AcRestrict:Bt},props:{domList:{type:Array,default:function(){return[]}}},computed:{formatPanelList:function(){var t=this,e=[];if(this.panelList.length)if(this.panelList.forEach((function(n,r){r%t.layout===0?e.push([n]):e[e.length-1].push(n)})),1===this.layout&&e.length%2)e.push([]);else if(2===this.layout)e[e.length-1].length%2&&e[e.length-1].push([]),(1===e.length||e.length%2)&&e.push(l(Array(2).fill([])));else if(3===this.layout){var n;3!==e[e.length-1].length&&(n=e[e.length-1]).push.apply(n,l(Array(3-e[e.length-1].length).fill([]))),(1===e.length||e.length%2)&&e.push(l(Array(3).fill([])))}return e},pieceHeight:function(){return 1240},panelFlag:function(){return this.$store.getters["AC/panelFlag"]},showAttention:function(){return this.$store.getters["AC/showAttention"]},patchwork:function(){return this.$store.getters["AC/patchwork"]},showEducationId:function(){return this.$store.getters["AC/showEducationId"]},readType:function(){return this.$store.getters["AC/readType"]},scansionAttention:function(){return this.$store.getters["AC/scansionAttention"]},stuInfoLength:function(){return this.$store.getters["AC/studentInfo"].length},eduIdLength:function(){return this.$store.getters["AC/educationIdValue"]},registrationType:function(){return this.$store.getters["AC/registrationNumberType"]},layout:function(){return this.$store.getters["AC/layout"]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},isAddFooter:function(){return this.$store.getters["AC/addFooter"]}},watch:{domList:function(t){t.length&&this.getPanelList()}},mounted:function(){},data:function(){return{panelList:[],visible:!1,editing:{},headHeight:0,attentionHeight:0,eduHeight:0}},methods:{getRowCount:function(t,e){var n=this.editEssayList.find((function(e){return e.dataKey===t}))||{};return"number"===typeof n.row?n.row:e},getBgType:function(t,e){var n=this.editEssayList.find((function(e){return e.dataKey===t}))||{};return"number"===typeof n.bgType?n.bgType:e},handleSubmit:function(t){var e=this.editing,n=e.dataKey,r=e.hasChoice,i={dataKey:n};if(r){var a=t.match(/<(p.*?\/p|figure.*?\/figure)>/g),o=/>[A-O]{1}[.\s.、]{0,1}/,s="",c=[],u=null;a.forEach((function(t){var e=t.match(o);if(e){var n=t.replace(o,">");u={identifier:e[0][1],content:"<p></p>"===n?"":n},c.push(u)}else u?u.content+=t:s+=t})),Object.assign(i,{title:s,choices:c})}else i.title=t;this.$store.dispatch("AC/paper/setEditTitle",i)},getBasicInfo:function(t){var e=null;return(this.layout>1?t%(2*this.layout)===0:this.patchwork?(t+1)%4===1:t%2===0)&&(e={hideAttention:!this.showAttention||0!==t,height:this.headHeight+(this.showAttention&&0===t?this.attentionHeight:0)+this.eduHeight}),e},getPanelList:function(){var t=this,e=[],n=0;e[n]=[];var r=this.pieceHeight,i=e[n],a=[],o=function(){var e=t.getBasicInfo(n);e&&(r-=e.height,i.push(Object.assign({type:"basicInfo"},e)))},s=function(){var a=e[n];if(n++,e[n]=[],r=t.pieceHeight,i=e[n],o(),"graffiti"===a[a.length-1].type){var s=a[a.length-1];a.pop(),i.push(s),r-=30}},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:40,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=r-(n?62:30);return Math.floor((i+e)/(t+e))},u=function(t,e){var n="",r="",a=t.map((function(t){var e="";switch(t.type){case"completion":n="completion",r=t.height+1,e="".concat(t.children.join(""));break;case"complexTitle":n="complexTitle",r=t.height,e="".concat(t.children.join(""));break}return e}));t.length=0,i.push({height:r,type:n,isComplex:e.isComplex,isShowBorderBottom:e.isShowBorderBottom,dataKey:e.dataKey,content:a})},l=function(t,e){t.forEach((function(t,n){if("completionItem"===t.type&&!t.isComplex){var a=i[i.length-1];a&&("completion"===a.type||n)||(t.height+=15)}if("completionItem"===t.type&&t.isComplex){var o=i[i.length-1];o&&("completion"===o.type||"graffiti"===o.type||n)||(t.height+=15)}if(r<t.height&&(e.length&&u(e,t),s()),r>=t.height){switch(t.type){case"completionItem":e.length&&"completion"===e[e.length-1].type?e[e.length-1].children.push(t.content):e.push({type:"completion",height:t.height,children:[t.content]});break;case"complexTitleItem":e.length&&"complexTitle"===e[e.length-1].type?e[e.length-1].children.push(t.content):e.push({type:"complexTitle",height:t.height,children:[t.content]});break}r-=t.height}}))},h=function(e,n){var a=e.rowHeight,o=void 0===a?40:a,u=e.rowGap,l=void 0===u?15:u,h=e.titleChildren,d=t.getRowCount(n,e.rowCount),f=t.getBgType(n,e.bgType);r<30&&s();var p={type:"essay"};if(h){var g="";h.forEach((function(t,n){r>=t.height+(n?0:32)?(g+=t.content,r-=t.height+(n?0:32)):(g&&i.push({type:"essay",essayConfig:Object.assign({},e,{row:0,title:g,rowCount:d,bgType:f})}),s(),g=t.content,r-=t.height+32)})),g?Object.assign(p,{essayConfig:Object.assign({},e,{row:0,title:g,rowCount:d})}):p=null}else p=null;if(d){var m=d;while(m){var y=c(o,l,!p);y<1?(p&&(i.push(p),p=null),s()):y<m?(i.push({type:"essay",essayConfig:Object.assign({},e,{startRow:d-m,row:y,rowCount:d,bgType:f,title:p&&p.essayConfig?p.essayConfig.title:""})}),p&&(p=null),s(),m-=y):(i.push({type:"essay",essayConfig:Object.assign({},e,{startRow:d-m,row:m,rowCount:d,bgType:f,title:p&&p.essayConfig?p.essayConfig.title:""})}),r-=m*(o+l)-l+(p?30:62),m=0,p&&(p=null))}}else p?i.push(p):(i.push({type:"essay",essayConfig:Object.assign({},e,{rowCount:0,row:0,bgType:f})}),r-=30)},d=JSON.parse(JSON.stringify(this.domList));d.forEach((function(e,n){"essay"===e.type?h(e.essay,e.dataKey):"complexTitle"===e.type?(l(e.children,a,e),a.length&&u(a,e)):"completion"===e.type?(r<e.height&&s(),r>=e.height&&(l(e.children,a,e),a.length&&u(a,e))):"basicInfo"===e.type?(t.headHeight=e.headHeight||0,t.attentionHeight=t.scansionAttention.height||e.attentionHeight||0,t.registrationType?t.layout<3?t.eduHeight=t.eduIdLength>10?48*Math.ceil(t.stuInfoLength/3)+30+310:310:t.eduHeight=48*Math.ceil(t.stuInfoLength/3)+14+310:t.eduHeight=t.layout<3?310:48*Math.ceil(t.stuInfoLength/3)+310,o()):(r<e.height&&s(),r>=e.height&&("sectionHead"===e.type&&"basicInfo"!==d[n-1].type&&1240!==r&&(e.height+=30,e.isMarginTop=!0),i.push(e),r-=e.height))})),r>54&&e[e.length-1].push({type:"restrict",height:r-30}),e.length>16&&1===this.layout&&(this.$store.dispatch("AC/answerConfig/setAnswerCardLayout",2),this.$store.dispatch("AC/answerConfig/setDisableOneLayout",!0)),this.panelList=e}}},Fe=He,Ke=Object(P["a"])(Fe,xe,ke,!1,null,null,null),We=Ke.exports;We.install=function(t){t.component(We.name,We)};var Ve=We,Ye={name:"AcSweep",components:{AcSweepVirtual:Ae,AcSweepPanel:Ve},inject:["uploadOss","paperTitle"],data:function(){return{domList:[],sweepPaperTree:[]}},computed:{educationIdValue:function(){return this.$store.getters["AC/educationIdValue"]},registrationNumberType:function(){return this.$store.getters["AC/registrationNumberType"]},candidateNumColor:function(){return this.$store.getters["AC/candidateNumColor"]},layout:function(){return this.$store.getters["AC/layout"]},sizeType:function(){return this.$store.getters["AC/sizeType"]},readType:function(){return this.$store.getters["AC/readType"]},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},UploadAdapter:function(){var t=this.uploadOss;return function(){function e(t){Object(C["a"])(this,e),this.file=t}return Object(A["a"])(e,[{key:"upload",value:function(){var e=this;return new Promise((function(n,r){t(e.file,n)}))}}]),e}()},patchwork:function(){return this.$store.getters["AC/patchwork"]},downloadType:function(){return this.$store.getters["AC/downloadType"]},downloadSize:function(){return this.$store.getters["AC/downloadSize"]}},created:function(){this.init()},methods:{init:function(){this.sweepPaperTree=this.transformTree(this.createDataKey(this.$store.getters["AC/sweepPaperTree"]))},createDataKey:function(t){var e=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e.forEach((function(e,r){var i=n?"".concat(n,"_").concat(r):"".concat(r);e.code&&(e.dataKey=i),e.children&&t(e.children,i)}))};return e(t),t},transformTree:function(t){var e=this,n=new Set(["single_choice","multiple_choice","judgment"]);return t.reduce((function(r,i,a){i.children&&(i.children=e.transformTree(i.children));var o=r[r.length-1];return o&&n.has(t[a-1].code)&&n.has(i.code)?(Array.isArray(o)?o.push(i):r[r.length-1]=[o,i],r):(r.push(i),r)}),[])},setDomList:function(t){this.domList=t},getPageImage:function(){return new Promise((function(t,e){var n=$(".ac-panel .ac-piece__wrapper");Object(tt["b"])(n).then((function(e){return t(e)})).catch((function(){return t([])}))}))},download:function(){var t=this;return w(_().mark((function e(){var n,r,i,a,o,s,c,u,l,h,d;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!($(".ac-piece__wrapper").length>16)){e.next=3;break}return t.$message({showClose:!0,message:"涂点形式答题卡不能超过16页,请更换调整作答区域或更换试卷",type:"error"}),e.abrupt("return");case 3:return e.next=5,t.getZipContent();case 5:if(n=e.sent,r=n||"","PDF"!==t.downloadType){e.next=25;break}return e.next=10,t.getPageImage();case 10:return i=e.sent,a=new Dt.a(1===t.layout?"p":"l","pt",1===t.layout?"a4":"a3"),i.forEach((function(e,n){var r=1===t.layout?595.28:1190.55,o=841.89;a.addImage(e,"JPEG",0,0,r,o),n!==i.length-1&&a.addPage()})),o="".concat(t.paperTitle,".pdf"),a.save(o),s=a.output("blob"),s.name=o,c=new t.UploadAdapter(s),e.next=20,c.upload();case 20:return u=e.sent,l="https://"+u.url,e.abrupt("return",{scanZipUrl:r,scanPdfUrl:l});case 25:if("PNG"!==t.downloadType){e.next=31;break}return e.next=28,t.getPngZip();case 28:return h=e.sent,d=h||"",e.abrupt("return",{scanZipUrl:r,scanPdfUrl:d});case 31:case"end":return e.stop()}}),e)})))()},getZipContent:function(){var t=this;return w(_().mark((function e(){var n,r,i,a,o,s,c,u,l,h,d,f;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.paperTitle.replace(/[_]/g,"-"),r=$(".ac-piece__wrapper"),i=1===t.registrationNumberType,a=new $t.a,o="".concat(n,"模板_").concat(n,"_").concat(t.downloadSize,"_").concat("#000000"===t.candidateNumColor?"黑白":"彩色","_").concat(r.length,"_").concat(i?"涂点":"条码","_").concat(i?"10":"-1","_").concat(i?t.educationIdValue:"-1","_涂点_涂点.xml"),a.file(o,t.getXMLData()),s=[],Array.from(r).forEach((function(t,e){s.push({dom:t,name:"".concat(e+1,".png")}),e%2||(s.push({dom:$(t).find(".mark-point__top-left .mark-point__box")[0],name:"第".concat(e+1,"页_zuoshang.jpg")}),s.push({dom:$(t).find(".mark-point__top-right .mark-point__box")[0],name:"第".concat(e+1,"页_youshang.jpg")}),s.push({dom:$(t).find(".mark-point__bottom-left .mark-point__box")[0],name:"第".concat(e+1,"页_zuoxia.jpg")}),s.push({dom:$(t).find(".mark-point__bottom-right .mark-point__box")[0],name:"第".concat(e+1,"页_youxia.jpg")}))})),e.next=10,Object(tt["b"])(s.map((function(t){return t.dom})),1);case 10:return c=e.sent,c.forEach((function(t,e){var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),o=i.length,c=new Uint8Array(o);while(o--)c[o]=i.charCodeAt(o);a.file(s[e].name,new Blob([c],{type:r}),{base64:!0})})),e.next=14,a.generateAsync({type:"blob"});case 14:return u=e.sent,l="".concat(n,"模板.zip"),h=new File([u],l,{type:"zip"}),Ft()(u,l),d=new t.UploadAdapter(h),e.next=21,d.upload();case 21:return f=e.sent,e.abrupt("return","https://"+f.url);case 23:case"end":return e.stop()}}),e)})))()},getPngZip:function(){var t=this;return w(_().mark((function e(){var n,r,i,a,o,s,c,u,l,h;return _().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.paperTitle.replace(/[_]/g,"-"),r=$(".ac-piece__wrapper"),i=new $t.a,a=[],Array.from(r).forEach((function(t,e){a.push({dom:t,name:"".concat(e+1,".png")})})),e.next=7,Object(tt["b"])(a.map((function(t){return t.dom})));case 7:return o=e.sent,o.forEach((function(t,e){var n=t.split(","),r=n[0].match(/:(.*?);/)[1],o=atob(n[1]),s=o.length,c=new Uint8Array(s);while(s--)c[s]=o.charCodeAt(s);i.file(a[e].name,new Blob([c],{type:r}),{base64:!0})})),e.next=11,i.generateAsync({type:"blob"});case 11:return s=e.sent,c="".concat(n,".zip"),u=new File([s],c,{type:"zip"}),Ft()(s,c),l=new t.UploadAdapter(u),e.next=18,l.upload();case 18:return h=e.sent,e.abrupt("return","https://"+h.url);case 20:case"end":return e.stop()}}),e)})))()},getXMLData:function(){var t=this,e=[],n=$(".ac-piece__wrapper"),r=function(n,r){var i=$(n).offset(),a=i.left,o=i.top,s=$(n).find(".mark-point__top-left")[0],c=$(s).offset(),u=c.left,l=c.top,h=$(n).find("[data-export_name]");Array.from(h).forEach((function(n){var i=$(n),s="absolute"===i.data("scan-type"),c={Type:"AnswerArea",Name:i.data("export_name"),Page:r,X:Math.floor(i.offset().left-(s?a:u)),Y:Math.floor(i.offset().top-(s?o:l)),Width:i.outerWidth(),Height:i.outerHeight()};String(c.X).indexOf(".")>-1&&(c.X=Math.floor(c.X),c.Width+=1),String(c.Y).indexOf(".")>-1&&(c.Y=Math.floor(c.Y),c.Height+=1),c.Width=Math.ceil(c.Width),c.Height=Math.ceil(c.Height),"考号"===i.data("export_name")&&(c.Rows=10,c.Columns=t.educationIdValue),e.push(c)}))},i=function(t,n){var r=$(t).find(".mark-point__top-left")[0],i=$(r).offset(),a=i.left,o=i.top,s=$(t).find("[data-scan-type=review]");Array.from(s).forEach((function(t){var r=$(t),i={Type:"ReviewArea",Name:r.data("scan-name"),Page:n,X:r.offset().left-a,Y:r.offset().top-o,Width:r.outerWidth(),Height:r.outerHeight(),MaxScore:r.data("scan-score")};String(i.X).indexOf(".")>-1&&(i.X=Math.floor(i.X),i.Width+=1),String(i.Y).indexOf(".")>-1&&(i.Y=Math.floor(i.Y),i.Height+=1),i.Width=Math.ceil(i.Width),i.Height=Math.ceil(i.Height),e.push(i)}))},a=[],o=function(t,e){var r=n.find(".ac-sweep__choice-each[data-key=".concat(t.dataKey,"]"))[0],i=($(r).find(".choice-title")[0],$(r).find(".ac-sweep__choice-item")[0]),o=r.getAttribute("page-index"),s=$(e[o-1]).find(".mark-point__top-left")[0],c=$(s).offset(),u=c.left,l=c.top,h={Type:"AnswerArea",Name:t.scanName,Page:"第".concat(o,"页"),X:$(i).offset().left-u+5,Y:$(i).offset().top-l-1,Width:$(i).outerWidth()-3,Height:$(i).outerHeight()+3,Rows:1,Columns:t.choices.length,Horizon:0};String(h.X).indexOf(".")>-1&&(h.X=Math.floor(h.X),h.Width+=1),String(h.Y).indexOf(".")>-1&&(h.Y=Math.floor(h.Y),h.Height+=1),h.Width=Math.ceil(h.Width),h.Height=Math.ceil(h.Height),a.push(h)},s=function t(e){var r=$(".ac-piece__wrapper");e.forEach((function(e){if(e.children)t(e.children);else if("completion"===e.code)for(var i=n.find(".ac-sweep__composite[data-key=".concat(e.dataKey,"]")),s=0;s<i.length;s++){var c=i[s].getAttribute("page-index"),u=$(r[c-1]).find(".mark-point__top-left")[0],l=$(u).offset(),h=l.left,d=l.top,f={Type:"AnswerArea",Name:"".concat(e.scanName).concat(s>0?"_"+s:""),Page:"第".concat(c,"页"),X:Math.floor($(i[s]).offset().left-h),Y:Math.floor($(i[s]).offset().top-d),Width:Math.ceil($(i[s]).outerWidth()),Height:Math.ceil($(i[s]).outerHeight())};a.push(f)}else if(Array.isArray(e)||"single_choice"===e.code||"multiple_choice"===e.code||"judgment"===e.code)Array.isArray(e)?e.forEach((function(t){o(t,r)})):o(e,r);else if("subjectivity"===e.code)for(var p=n.find(".ac-essay__wrapper[data-key=".concat(e.dataKey,"]")),g=0;g<p.length;g++){var m=p[g].getAttribute("page-index"),y=$(r[m-1]).find(".mark-point__top-left")[0],v=$(y).offset(),_=v.left,b=v.top,w={Type:"AnswerArea",Name:"".concat(e.scanName).concat(g>0?"_"+g:""),Page:"第".concat(m,"页"),X:Math.floor($(p[g]).offset().left-_),Y:Math.floor($(p[g]).offset().top-b),Width:Math.ceil($(p[g]).outerWidth()),Height:Math.ceil($(p[g]).outerHeight())};a.push(w)}}))};s(this.sweepPaperTree);var c=function(t){var e={};return t.forEach((function(t){var n=t.Page;e[n]||(e[n]=[]),e[n].push(t)})),Object.values(e)},u=c(a);Array.from(n).forEach((function(t,n){"restrict"!==$(t).data("piece-type")&&(r(t,"第".concat(n+1,"页")),i(t,"第".concat(n+1,"页")),Array.isArray(u[n])?e.push.apply(e,l(u[n])):e.push(u[n]))}));var h='<?xml version="1.0" encoding="utf-8"?>';return h+='<answerSheet isNew="true" isYcProject="true" layout="'.concat(this.layout,'" isScrabbled="').concat(this.patchwork,'">'),h+=this.getXMLStringFromArray(e),h+="</answerSheet>",h},getXMLStringFromArray:function(t){var e=function(t){return Object.keys(t).map((function(e){return"Type"!==e?"<".concat(e,">").concat(t[e],"</").concat(e,">"):""})).join("")};return t.map((function(t){return t?"<".concat(t.Type,">").concat(e(t),"</").concat(t.Type,">"):""})).join("")}}},Ze=Ye,Ge=Object(P["a"])(Ze,Zt,Gt,!1,null,null,null),Qe=Ge.exports,Xe={name:"AcCard",components:{AcAnswerConfig:h["default"],AcLattice:Yt,AcSweep:Qe},props:{title:{type:String,default:""},paperTitle:{type:String,default:""},tree:{type:Array,default:function(){return[]}},baseInfoList:{type:Array,default:function(){return[]}},mode:{type:Number,default:0},config:{type:Object,default:function(){return null}},uploadOss:{type:Function,default:function(){}},ClassicEditor:{type:Function,default:function(){}},contentEditable:{type:Boolean,default:!0},showConfig:{type:Boolean,default:!0},showStudentInfo:{type:Boolean,default:!0},saveInfo:{type:Object,default:null},paddingBlock:{type:[Number,Array],default:68},movable:{type:Boolean,default:!1},deletable:{type:Boolean,default:!1},editType:{type:String,default:"editor"},essayType:{type:Array,default:function(){return[0,1,2]}},essaySize:{type:Object,default:null},scanSheet:{type:Boolean,default:!1}},provide:function(){return{uploadOss:this.uploadOss,ClassicEditor:this.ClassicEditor,contentEditable:this.contentEditable,showStudentInfo:this.showStudentInfo,paperTitle:this.title||this.paperTitle,paddingBlock:this.paddingBlock,movable:this.movable,deletable:this.deletable,editType:this.editType,editCallback:this.editCallback,deleteCallback:this.deleteCallback,lineCallback:this.lineCallback,moveCallback:this.moveCallback,essayType:this.essayType,scanSheet:this.scanSheet}},data:function(){return{paperTree:[]}},computed:{layout:function(){return this.$store.getters["AC/layout"]},acMode:function(){return this.$store.getters["AC/answerCardMode"]}},watch:{tree:function(){this.initTree()},saveInfo:function(){this.handleSaveInfo()},title:function(){this.$store.dispatch("AC/paper/setTitle",this.title)}},beforeCreate:function(){if(!Promise.allSettled){var t=function(t){return{status:"rejected",reason:t}},e=function(t){return{status:"fulfilled",value:t}};Promise.allSettled=function(n){return Promise.all(n.map((function(n){return Promise.resolve(n).then(e,t)})))}}},created:function(){this.init(),this.baseInfoList&&(this.$store.dispatch("AC/answerConfig/setStudentInfo",[]),this.$store.dispatch("AC/answerConfig/setStudentInfo",this.baseInfoList))},methods:{init:function(){this.essaySize&&this.$store.dispatch("AC/essay/setRowSize",this.essaySize),this.$store.dispatch("AC/essay/resetEssay"),this.$store.dispatch("AC/paper/setTitle",this.title),this.$store.dispatch("AC/answerConfig/setAnswerCardMode",this.mode),this.handleSaveInfo(),this.initTree()},handleSaveInfo:function(){var t=this;if(this.saveInfo){var e={},n={},r={};Object.keys(this.saveInfo).forEach((function(i){switch(i){case"title":case"editTitleList":case"candidateNumColor":case"scansionAttention":case"latticeAttention":e[i]=t.saveInfo[i];break;case"editEssayList":r[i]=t.saveInfo[i];break;case"answerCardMode":case"layout":case"showAttention":case"studentInfo":case"educationIdValue":case"registrationNumberType":case"readType":case"patchwork":case"showQuestion":case"sizeType":case"showEducationId":case"objectiveOrder":case"judgmentMode":case"addFooter":n[i]=t.saveInfo[i];break}})),this.$store.dispatch("AC/paper/setSaveState",e),this.$store.dispatch("AC/essay/setSaveState",r),this.$store.dispatch("AC/answerConfig/setSaveState",n)}},initTree:function(){var t=this,e=this.$store.getters["AC/editTitleList"],n=this.$store.getters["AC/editEssayList"].filter((function(t){return!!t.title}));Object(tt["d"])(this.tree.concat([].concat(l(e),l(n)))).then((function(){t.paperTree=t.tree,t.$store.dispatch(0===t.mode?"AC/paper/setSweepPaperTree":"AC/paper/setPaperTree",t.paperTree)}))},download:function(){var t=this;this.$emit("before-download"),this.save(),1===this.acMode?this.$refs.latticeCard&&this.$refs.latticeCard.download().then((function(e){t.$emit("download",e)})):0===this.acMode&&this.$refs.sweepCard&&this.$refs.sweepCard.download().then((function(e){t.$emit("download",e)}))},save:function(){var t=this,e=["title","editTitleList","candidateNumColor","editEssayList","answerCardMode","layout","showAttention","studentInfo","educationIdValue","registrationNumberType","readType","patchwork"],n=["latticeAttention","showQuestion","sizeType","showEducationId"],r=["scansionAttention","objectiveOrder","judgmentMode","addFooter"],i={},a=this.$store.getters["AC/answerCardMode"];e.concat(0===a?r:n).forEach((function(e){i[e]=t.$store.getters["AC/".concat(e)]})),this.$emit("save",i)},editCallback:function(t){this.$emit("edit-title",t)},deleteCallback:function(t){this.$emit("delete",t)},lineCallback:function(t,e){this.$emit("lineChanged",t,e)},moveCallback:function(t,e){this.$emit("move",t,e)}}},qe=Xe,Je=Object(P["a"])(qe,r,i,!1,null,null,null),tn=Je.exports;tn.install=function(t){t.component(tn.name,tn)};e["default"]=tn},"40d5":function(t,e,n){var r=n("d039");t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,r="/";e.cwd=function(){return r},e.chdir=function(e){t||(t=n("df7c")),r=t.resolve(e,r)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"44ad":function(t,e,n){var r=n("e330"),i=n("d039"),a=n("c6b6"),o=Object,s=r("".split);t.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?s(t,""):o(t)}:o},4625:function(t,e,n){var r=n("c6b6"),i=n("e330");t.exports=function(t){if("Function"===r(t))return i(t)}},"485a":function(t,e,n){var r=n("c65b"),i=n("1626"),a=n("861d"),o=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!a(s=r(n,t)))return s;if(i(n=t.valueOf)&&!a(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!a(s=r(n,t)))return s;throw o("Can't convert object to primitive value")}},"4b11":function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"4d64":function(t,e,n){var r=n("fc6a"),i=n("23cb"),a=n("07fa"),o=function(t){return function(e,n,o){var s,c=r(e),u=a(c),l=i(o,u);if(t&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},"4e0a":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-essay__wrapper",style:{"--padding-inline":t.paddingInline+"px"},attrs:{"data-key":t.dataKey,type:"essay","page-index":t.pageIndex}},[e("div",{staticClass:"ac-essay",class:{"is-wrapper":"outer"===t.borderType,"is-editable":t.editable,"is-hidden__border-both":t.hiddenBorderBoth||!(t.row||t.title),"is-hidden__border-bottom":t.hiddenBorderBottom||!(t.row||t.title),"is-hidden__border-top":t.hiddenBorderTop||!(t.row||t.title)}},[t.title?e("div",{staticClass:"ac-essay__title ck-content",domProps:{innerHTML:t._s(t.title)}}):t._e(),t.row?e("div",{staticClass:"ac-essay__container"},[e("div",{staticClass:"ac-essay__area",class:t.rowClass,style:t.areaStyle},[["empty","block","spell_field"].includes(t.rowType)?t._e():[t._l(t.itemList,(function(n,r){return[t.getLiContent(r)?e("li",{key:"li_".concat(r),staticClass:"ac-essay__area-item",class:{"with-top":t.topLineVisible&&!r,"is-editable":"line"===t.rowType&&t.liEditable},domProps:{innerHTML:t._s(t.getLiContent(r))},on:{blur:function(e){return t.handleBlur(e,r)}}}):e("li",{key:r,staticClass:"ac-essay__area-item",class:{"with-top":t.topLineVisible&&!r,"is-editable":"line"===t.rowType&&t.liEditable,"is-first-column":!(r%t.formatColumn)},on:{blur:function(e){return t.handleBlur(e,r)}}},[t.showPrefix&&"line"===t.rowType?e("span",{staticClass:"ac-essay__area-prefix"},[t._v(" 【"+t._s(r+t.startRow+1)+"】 ")]):t._e(),t.wordCountStep&&["write","grid","write_plain"].includes(t.rowType)?e("span",[t._v(" "+t._s(t.getWordCount(r))+" ")]):t._e()])]}))],"spell_field"===t.rowType?t._l(Array(t.row).fill(""),(function(n,r){return e("li",{key:r,staticClass:"ac-essay__area-item"},[e("div",{staticClass:"ac-essay__area-spell"}),t._l(Array(t.formatColumn).fill(""),(function(t,n){return e("div",{key:n,staticClass:"ac-essay__area-field"})}))],2)})):t._e()],2),t.editable?e("div",{staticClass:"ac-essay__tool ac-edit-handler"},[t.rowEditable?[e("span",[t._v("行数:")]),e("el-input-number",{attrs:{size:"small",min:1,max:100},on:{change:t.handleRowChange},model:{value:t.rowNum,callback:function(e){t.rowNum=e},expression:"rowNum"}})]:t._e(),t.typeEditable?e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.openType}},[t._v(" 背景风格 ")]):t._e(),t.titleEditable?e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.handleEdit}},[t._v(" 编辑答题区 ")]):t._e()],2):t._e()]):t._e()]),e("ac-editor",{attrs:{visible:t.editorVisible,content:t.editContent,title:"编辑答题区","editor-id":"essay-editor_".concat(Date.now().toString(36))},on:{"update:visible":function(e){t.editorVisible=e},submit:t.handleSubmit}}),e("el-dialog",{attrs:{"custom-class":"ac-essay__dialog",visible:t.typeVisible,title:"设置背景风格",width:"770px"},on:{"update:visible":function(e){t.typeVisible=e}}},[e("div",{staticClass:"ac-bg"},[t.essayType.includes(0)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":0===t.currentType},on:{click:function(e){t.currentType=0}}},[e("i",{staticClass:"el-icon-success"}),t.essayType.length<4?e("div",{staticClass:"ac-bg__title"},[t._v("空白纸")]):t._e(),e("div",{staticClass:"ac-bg__wrapper"})]):t._e(),t.essayType.includes(1)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":1===t.currentType},on:{click:function(e){t.currentType=1}}},[e("i",{staticClass:"el-icon-success"}),t.essayType.length<4?e("div",{staticClass:"ac-bg__title"},[t._v("横线纸")]):t._e(),e("div",{staticClass:"ac-bg__wrapper is-line"},[e("div",{staticClass:"ac-bg__content"})])]):t._e(),t.essayType.includes(2)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":2===t.currentType},on:{click:function(e){t.currentType=2}}},[e("i",{staticClass:"el-icon-success"}),t.essayType.length<4?e("div",{staticClass:"ac-bg__title"},[t._v("方格纸")]):t._e(),e("div",{staticClass:"ac-bg__wrapper is-grid"},t._l(Array(4).fill(""),(function(t,n){return e("div",{key:n,staticClass:"ac-bg__content-item"})})),0)]):t._e(),t.essayType.includes(3)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":3===t.currentType},on:{click:function(e){t.currentType=3}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-field"},[e("div",{staticClass:"ac-bg__content"},t._l(Array(12).fill(""),(function(t,n){return e("div",{key:n,staticClass:"ac-bg__content-item"})})),0)])]):t._e(),t.essayType.includes(4)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":4===t.currentType},on:{click:function(e){t.currentType=4}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-block"},[e("div",{staticClass:"ac-bg__content"})])]):t._e(),t.essayType.includes(5)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":5===t.currentType},on:{click:function(e){t.currentType=5}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-write"},[e("div",{staticClass:"ac-bg__content"},t._l(Array(12).fill(""),(function(t,n){return e("li",{key:n,staticClass:"ac-bg__content-item"})})),0)])]):t._e(),t.essayType.includes(6)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":6===t.currentType},on:{click:function(e){t.currentType=6}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-spell-field"},[e("div",{staticClass:"ac-bg__content"},t._l(Array(3).fill(""),(function(n,r){return e("li",{key:r,staticClass:"ac-bg__content-item"},[e("div",{staticClass:"ac-bg__content-item-spell"}),t._l(Array(3).fill(""),(function(t,n){return e("div",{key:n,staticClass:"ac-bg__content-item-field"})}))],2)})),0)])]):t._e(),t.essayType.includes(7)?e("div",{staticClass:"ac-bg__item",class:{"is-checked":7===t.currentType},on:{click:function(e){t.currentType=7}}},[e("i",{staticClass:"el-icon-success"}),e("div",{staticClass:"ac-bg__wrapper is-write-plain"},[e("div",{staticClass:"ac-bg__content"},t._l(Array(16).fill(""),(function(t,n){return e("li",{key:n,staticClass:"ac-bg__content-item"})})),0)])]):t._e()]),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){t.typeVisible=!1}}},[t._v("取消")]),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.changeType}},[t._v("确定")])],1)])],1)},i=[],a=n("6bdf"),o=n("5dcc"),s={name:"AcEssay",components:{AcEditor:a["default"]},props:{editable:{type:Boolean,default:!0},bgType:{type:Number,default:0},typeEditable:{type:Boolean,default:!0},row:{type:Number,default:4},startRow:{type:Number,default:0},rowCount:{type:Number,default:4},rowEditable:{type:Boolean,default:!0},title:{type:String,default:""},titleEditable:{type:Boolean,default:!0},liEditable:{type:Boolean,default:!1},showPrefix:{type:Boolean,default:!1},rowHeight:{type:[Number,String],default:""},rowGap:{type:[Number,String],default:""},width:{type:[Number,String],default:""},borderType:{type:String,default:"outer"},topLineVisible:{type:Boolean,default:!1},wordCountStep:{type:Number,default:100},paddingInline:{type:Number,default:55},dataKey:{type:String,default:""},hiddenBorderBottom:{type:Boolean,default:!1},hiddenBorderBoth:{type:Boolean,default:!1},pageIndex:{type:Number,default:0},hiddenBorderTop:{type:Boolean,default:!1},column:{type:Number,default:0}},inject:["essayType"],data:function(){return{rowNum:4,editorVisible:!1,editContent:"",typeVisible:!1,currentType:0}},computed:{rowConfig:function(){return this.$store.getters["AC/rowConfig"]},rowType:function(){var t=["empty","line","grid","field","block","write","spell_field","write_plain"];return t[this.bgType||0]},rowClass:function(){return"row-".concat(this.rowType).concat("outer"!==this.borderType&&["empty"].includes(this.rowType)?" is-wrapper":"")},areaStyle:function(){var t=this.rowConfig[this.bgType]||{},e="number"===typeof this.rowHeight?this.rowHeight:t.rowHeight||0,n="number"===typeof this.rowGap?this.rowGap:t.rowGap||0;switch(this.rowType){case"write":case"write_plain":n=e/9*2,e-=n;break;case"spell_field":n=e/9*4,e-=n;break}var r={"--row":this.row,"--row-height":e+"px","--row-gap":n+"px","--column":this.formatColumn};return["empty","line"].includes(this.rowType)&&(this.width||0===this.width)&&(r.width="number"===typeof this.width?this.width+"px":this.width),r},formatColumn:function(){var t=(this.rowConfig[this.bgType]||{}).column;return t?this.column||t:0},itemList:function(){return new Array(this.row*(this.formatColumn||1)).fill("")},rowDebounce:function(){return Object(o["a"])(this.commitRowChange,300)},editEssayList:function(){return this.$store.getters["AC/editEssayList"]||[]},getLiContent:function(){var t=this,e=this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{};return function(t){return((e.liList||[]).find((function(e){return e.liIndex===t}))||{}).content}}},watch:{rowCount:function(t){t!==this.rowNum&&(this.rowNum=t)}},created:function(){this.rowNum=this.rowCount},methods:{getWordCount:function(t){var e=this.startRow*this.formatColumn+t+1;return e%this.wordCountStep?"":"".concat(e,"字")},handleRowChange:function(t,e){(t||0===t||(this.rowNum="",e))&&this.rowDebounce()},commitRowChange:function(){this.$store.dispatch("AC/essay/setEssayRow",{dataKey:this.dataKey,row:this.rowNum}),this.$store.dispatch("AC/paper/resetPanel")},getFullTitle:function(){var t=this;return(this.editEssayList.find((function(e){return e.dataKey===t.dataKey}))||{}).title||this.title},handleEdit:function(){this.editContent=this.getFullTitle(),this.editorVisible=!0},handleSubmit:function(t){this.$store.dispatch("AC/essay/setEssayTitle",{dataKey:this.dataKey,title:t}),this.$store.dispatch("AC/paper/resetPanel")},handleBlur:function(t,e){this.$store.dispatch("AC/essay/setEssayLi",{dataKey:this.dataKey,liIndex:e+this.startRow,content:t.target.innerHTML})},openType:function(){this.currentType=this.bgType,this.typeVisible=!0},changeType:function(){this.typeVisible=!1,this.$store.dispatch("AC/essay/setEssayBgType",{dataKey:this.dataKey,bgType:this.currentType}),this.$store.dispatch("AC/paper/resetPanel")}}},c=s,u=n("2877"),l=Object(u["a"])(c,r,i,!1,null,null,null),h=l.exports;h.install=function(t){t.component(h.name,h)};e["default"]=h},"4ea1":function(t,e,n){"use strict";var r=n("d429"),i=n("ebb5"),a=n("bcbf"),o=n("5926"),s=n("f495"),c=i.aTypedArray,u=i.getTypedArrayConstructor,l=i.exportTypedArrayMethod,h=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();l("with",{with:function(t,e){var n=c(this),i=o(t),l=a(n)?s(e):+e;return r(n,u(n),i,l)}}["with"],!h)},"50c4":function(t,e,n){var r=n("5926"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"53ca":function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n.d(e,"a",(function(){return r}))},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(t,e,n){var r=n("d066"),i=n("e330"),a=n("241c"),o=n("7418"),s=n("825a"),c=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=a.f(s(t)),n=o.f;return n?c(e,n(t)):e}},"577e":function(t,e,n){var r=n("f5df"),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},5926:function(t,e,n){var r=n("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},"59ed":function(t,e,n){var r=n("1626"),i=n("0d51"),a=TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not a function")}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5dcc":function(t,e,n){"use strict";n.d(e,"a",(function(){return k})),n.d(e,"d",(function(){return E})),n.d(e,"b",(function(){return S})),n.d(e,"c",(function(){return I}));n("14d9"),n("b7ef"),n("907a"),n("986a"),n("1d02"),n("3c5d"),n("6ce5"),n("2834"),n("4ea1");var r=b(),i=w(),a=C(),o=A(),s={imagePlaceholder:void 0,cacheBust:!1},c={toSvg:u,toPng:h,toJpeg:d,toBlob:f,toPixelData:l,impl:{fontFaces:a,images:o,util:r,inliner:i,options:{}}};function u(t,e){return e=e||{},p(e),Promise.resolve(t).then((function(t){return m(t,e.filter,!0)})).then(y).then(v).then(n).then((function(n){return _(n,e.width||r.width(t),e.height||r.height(t))}));function n(t){return e.bgcolor&&(t.style.backgroundColor=e.bgcolor),e.width&&(t.style.width=e.width+"px"),e.height&&(t.style.height=e.height+"px"),e.style&&Object.keys(e.style).forEach((function(n){t.style[n]=e.style[n]})),t}}function l(t,e){return g(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,r.width(t),r.height(t)).data}))}function h(t,e){return g(t,e||{}).then((function(t){return t.toDataURL()}))}function d(t,e){return e=e||{},g(t,e).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))}function f(t,e){return g(t,e||{}).then(r.canvasToBlob)}function p(t){"undefined"===typeof t.imagePlaceholder?c.impl.options.imagePlaceholder=s.imagePlaceholder:c.impl.options.imagePlaceholder=t.imagePlaceholder,"undefined"===typeof t.cacheBust?c.impl.options.cacheBust=s.cacheBust:c.impl.options.cacheBust=t.cacheBust}function g(t,e){return u(t,e).then(r.makeImage).then(r.delay(100)).then((function(e){var r=n(t);return r.getContext("2d").drawImage(e,0,0),r}));function n(t){var n=document.createElement("canvas"),i=n.getContext("2d");i.mozImageSmoothingEnabled=!1,i.webkitImageSmoothingEnabled=!1,i.msImageSmoothingEnabled=!1,i.imageSmoothingEnabled=!1;var a=e.scale||1,o=e.width||r.width(t),s=e.height||r.height(t);return n.width=o*a,n.height=s*a,e.imageWidth&&(a=e.imageWidth/(o||1),n.width=e.imageWidth,n.height=s*a),e.imageHeight&&(a=e.imageHeight/(s||1),n.width=o*a,n.height=e.imageHeight),i.scale(a,a),e.bgcolor&&(i.fillStyle=e.bgcolor,i.fillRect(0,0,n.width,n.height)),n}}function m(t,e,n){return n||!e||e(t)?Promise.resolve(t).then(i).then((function(n){return a(t,n,e)})).then((function(e){return o(t,e)})):Promise.resolve();function i(t){return t instanceof HTMLCanvasElement?r.makeImage(t.toDataURL()):t.cloneNode(!1)}function a(t,e,n){var i=t.childNodes;return 0===i.length?Promise.resolve(e):a(e,r.asArray(i),n).then((function(){return e}));function a(t,e,n){var r=Promise.resolve();return e.forEach((function(e){r=r.then((function(){return m(e,n)})).then((function(e){e&&t.appendChild(e)}))})),r}}function o(t,e){return e instanceof Element?Promise.resolve().then(n).then(i).then(a).then(o).then((function(){return e})):e;function n(){function n(t,e){function n(t,e){r.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}t.cssText?e.cssText=t.cssText:n(t,e)}n(window.getComputedStyle(t),e.style)}function i(){function n(n){var i=window.getComputedStyle(t,n),a=i.getPropertyValue("content");if(""!==a&&"none"!==a){var o=r.uid();e.className=e.className+" "+o;var s=document.createElement("style");s.appendChild(c(o,n,i)),e.appendChild(s)}function c(t,e,n){var i="."+t+":"+e,a=n.cssText?o(n):s(n);return document.createTextNode(i+"{"+a+"}");function o(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function s(t){return r.asArray(t).map(e).join("; ")+";";function e(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")}}}}[":before",":after"].forEach((function(t){n(t)}))}function a(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function o(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach((function(t){var n=e.getAttribute(t);n&&e.style.setProperty(t,n)})))}}}function y(t){return a.resolveAll().then((function(e){var n=document.createElement("style");return t.appendChild(n),n.appendChild(document.createTextNode(e)),t}))}function v(t){return o.inlineAll(t).then((function(){return t}))}function _(t,e,n){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(r.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+n+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}function b(){return{escape:d,parseExtension:e,mimeType:n,dataAsUrl:h,isDataUrl:r,canvasToBlob:a,resolveUrl:o,getAndEncode:l,uid:s(),delay:f,asArray:p,escapeXhtml:g,makeImage:u,width:m,height:y};function t(){var t="application/font-woff",e="image/jpeg";return{woff:t,woff2:t,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:e,jpeg:e,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function e(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function n(n){var r=e(n).toLowerCase();return t()[r]||""}function r(t){return-1!==t.search(/^(data:)/)}function i(t){return new Promise((function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);e(new Blob([i],{type:"image/png"}))}))}function a(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):i(t)}function o(t,e){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var i=n.createElement("a");return n.body.appendChild(i),r.href=e,i.href=t,i.href}function s(){var t=0;return function(){return"u"+e()+t++;function e(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function u(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src=t}))}function l(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=3e4;return(c.impl.options.cacheBust||n)&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime()),e&&t.startsWith("http")&&!t.startsWith("https")&&(t=t.replace("http","https")),new Promise((function(e){var n,i=new XMLHttpRequest;if(i.onreadystatechange=o,i.ontimeout=s,i.responseType="blob",i.timeout=r,i.open("GET",t,!0),i.send(),c.impl.options.imagePlaceholder){var a=c.impl.options.imagePlaceholder.split(/,/);a&&a[1]&&(n=a[1])}function o(){if(4===i.readyState)if(200===i.status){var r=new FileReader;r.onloadend=function(){var t=r.result.split(/,/)[1];e({content:t,fullUrl:r.result})},r.readAsDataURL(i.response)}else n?e(n):u("cannot fetch resource: "+t+", status: "+i.status)}function s(){n?e(n):u("timeout of "+r+"ms occured while fetching resource: "+t)}function u(t){e("")}}))}function h(t,e){return"data:"+e+";base64,"+t}function d(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function f(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}}function p(t){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}function g(t){return t.replace(/%/g,"%25").replace(/#/g,"%23").replace(/\n/g,"%0A").replace(/\v/g," ")}function m(t){var e=v(t,"border-left-width"),n=v(t,"border-right-width");return t.scrollWidth+e+n}function y(t){var e=v(t,"border-top-width"),n=v(t,"border-bottom-width");return t.scrollHeight+e+n}function v(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}}function w(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:a,shouldProcess:e,impl:{readUrls:n,inline:i}};function e(e){return-1!==e.search(t)}function n(e){var n,i=[];while(null!==(n=t.exec(e)))i.push(n[1]);return i.filter((function(t){return!r.isDataUrl(t)}))}function i(t,e,n,i){return Promise.resolve(e).then((function(t){return n?r.resolveUrl(t,n):t})).then(i||r.getAndEncode).then((function(t){var n=t.content;t.fullUrl;return r.dataAsUrl(n,r.mimeType(e))})).then((function(n){return t.replace(a(e),"$1"+n+"$3")}));function a(t){return new RegExp("(url\\(['\"]?)("+r.escape(t)+")(['\"]?\\))","g")}}function a(t,r,a){return o()?Promise.resolve(t):Promise.resolve(t).then(n).then((function(e){var n=Promise.resolve(t);return e.forEach((function(t){n=n.then((function(e){return"about:blank"===t?Promise.resolve(t):i(e,t,r,a)}))})),n}));function o(){return!e(t)}}}function C(){return{resolveAll:t,impl:{readAll:e}};function t(){return e(document).then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))}function e(){return Promise.resolve(r.asArray(document.styleSheets)).then(e).then(t).then((function(t){return t.map(n)}));function t(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return i.shouldProcess(t.style.getPropertyValue("src"))}))}function e(t){var e=[];return t.forEach((function(t){try{r.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(n){}})),e}function n(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return i.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}function A(){return{inlineAll:e,impl:{newImage:t}};function t(t){return{inline:e};function e(e){return r.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||function(t){return r.getAndEncode(t,!0,!0)}).then((function(t){t.content;var e=t.fullUrl;return e})).then((function(e){return new Promise((function(n,r){t.onload=n,t.onerror=r,t.src=e}))})).catch((function(){return t.src}))}}function e(n){return n instanceof Element?a(n).then((function(){return n instanceof HTMLImageElement?t(n).inline():Promise.all(r.asArray(n.childNodes).map((function(t){return e(t)})))})):Promise.resolve(n);function a(t){var e=t.style.getPropertyValue("background");return e?i.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}}}var x=c,k=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,n=arguments.length>2?arguments[2]:void 0,r=0;return function(){var i=this,a=arguments;r&&clearTimeout(r),n?(r||t.apply(i,a),r=setTimeout((function(){r=0}),e)):r=setTimeout((function(){t.apply(i,a)}),e)}},T=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=0,r=[],i=[],a=function a(){if(n===t.length)return Promise.resolve();var o=t[n++],s=Promise.resolve().then((function(){return o()}));r.push(s);var c=s.then((function(){return i.splice(i.indexOf(c),1)}));i.push(c);var u=i.length>=e?Promise.race(i):Promise.resolve();return u.then((function(){return a()}))};return a().then((function(){return Promise.all(r)}))},E=function(t){var e=[],n=/<img.*?(?:>|\/>)/gi,r=/src=['"]?([^'"]*)['"]?/i,i=function(t){if(t){var i=t.match(n);Array.isArray(i)&&i.forEach((function(t){var n=t.match(r);Array.isArray(n)&&n[1]&&e.push(new Promise((function(t,e){var r=new Image;r.onload=function(){return t()},r.onerror=function(){return e()},r.src=n[1]})))}))}},a=function t(e){e.forEach((function(e){"complex"!==e.code&&e.children||(i(e.title),Array.isArray(e.choices)&&e.choices.forEach((function(t){return i(t.content)}))),e.children&&e.children.length&&t(e.children)}))};return a(t),new Promise((function(t,n){Promise.allSettled(e).then((function(){return t()}))}))},S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2?arguments[2]:void 0;if(!t.length)return Promise.resolve([]);for(var r=[],i=function(){var i=t[a];r.push((function(){return x.toJpeg(i,{quality:.95,scale:e,width:i.offsetWidth,height:i.offsetHeight,imageWidth:n,bgcolor:"#ffffff"})}))},a=0;a<t.length;a++)i();return T(r)},I=function(t){var e=0;try{var n=t.getBoundingClientRect(),r=n.top,i=t.parentNode.getBoundingClientRect(),a=i.top;e=r-a}catch(o){e=t.offsetTop}return e}},"5e77":function(t,e,n){var r=n("83ab"),i=n("1a2d"),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&o(a,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},"605d":function(t,e,n){(function(e){var r=n("c6b6");t.exports="undefined"!=typeof e&&"process"==r(e)}).call(this,n("4362"))},6374:function(t,e,n){var r=n("da84"),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},"639e":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-config__bar"},[e("div",{class:["ac-config__arrow",t.showConfig?"el-icon-caret-right":"el-icon-caret-left"],on:{click:function(e){t.showConfig=!t.showConfig}}}),e("div",{staticClass:"ac-config__wrapper",class:{"is-hidden":!t.showConfig}},[e("div",{staticClass:"container"},[e("div",{staticClass:"config-mainCtrl"},[e("div",{staticClass:"first-row"},[e("el-button",{attrs:{size:"medium",icon:"icon el-icon-download"},on:{click:t.save}},[t._v("保存")]),e("el-button",{attrs:{size:"medium",icon:"icon el-icon-view"},on:{click:function(e){t.previewVisible=!0}}},[t._v(" 预览 ")])],1),e("div",{staticClass:"second-row"},[e("el-button",{staticClass:"ac-card-btn ac-card-btn--main ac-card-btn--large",attrs:{type:"primary"},on:{click:t.download}},[t._v(" 下载并保存 ")])],1)]),t.modeChangeable?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("选择答题卡模式")]),e("div",{staticClass:"ac-config__item answer-mode"},[e("el-radio-group",{model:{value:t.answerSheetMode,callback:function(e){t.answerSheetMode=e},expression:"answerSheetMode"}},[e("el-radio",{attrs:{label:0}},[t._v("扫描")]),e("el-radio",{attrs:{label:1}},[t._v("点阵笔")])],1)],1)]):t._e(),t.layoutChangeable?e("change-layout",{attrs:{mode:t.answerSheetMode}}):t._e(),t.showStudentInfo?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("考生须知")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isShowAttention,callback:function(e){t.isShowAttention=e},expression:"isShowAttention"}})],1)]):t._e(),t.showStudentInfo?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("学生信息")]),e("div",{staticClass:"ac-config__item tags-box answer-mode"},[t._l(t.studentInfoTags,(function(n){return e("el-tag",{key:n,staticClass:"tags",attrs:{closable:t.studentInfoTags.length>1,"disable-transitions":!1,effect:"dark",size:"small"},on:{close:function(e){return t.handleClose(n)}}},[t._v(" "+t._s(n)+" ")])})),t.studentInfoTags.length<6&&t.inputVisible?e("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{maxLength:"4",size:"small"},on:{blur:t.handleInputConfirm},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleInputConfirm.apply(null,arguments)}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}):t._e(),t.studentInfoTags.length<6&&!t.inputVisible?e("el-button",{staticClass:"button-new-tag",attrs:{size:"mini"},on:{click:t.showInput}},[e("i",{staticClass:"el-icon-plus"}),t._v(" 添加 ")]):t._e()],2)]):t._e(),1===t.answerSheetMode&&t.showStudentInfo?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("教育ID")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isShowEducationId,callback:function(e){t.isShowEducationId=e},expression:"isShowEducationId"}})],1)]):t._e(),0===t.answerSheetMode||t.isShowEducationId?[e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("教育ID位数")]),e("div",{staticClass:"ac-config__item"},[e("el-select",{attrs:{placeholder:"请选择"},model:{value:t.educationIdValue,callback:function(e){t.educationIdValue=e},expression:"educationIdValue"}},t._l(Array(13),(function(t,n){return e("el-option",{key:n,attrs:{label:n+6,value:n+6}})})),1)],1)]),e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("选择考号板式")]),e("div",{staticClass:"ac-config__item"},[e("el-radio-group",{model:{value:t.registrationNumberType,callback:function(e){t.registrationNumberType=e},expression:"registrationNumberType"}},[e("el-radio",{attrs:{label:0}},[t._v("条形码")]),e("el-radio",{attrs:{label:1}},[t._v("教育ID")])],1)],1)])]:t._e(),0===t.answerSheetMode?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("客观题排列")]),e("div",{staticClass:"ac-config__item"},[e("el-radio-group",{model:{value:t.objectiveOrder,callback:function(e){t.objectiveOrder=e},expression:"objectiveOrder"}},[e("el-radio",{attrs:{label:"row"}},[t._v("横排")]),e("el-radio",{attrs:{label:"column"}},[t._v("竖排")])],1)],1)]):t._e(),0===t.answerSheetMode?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("判断题样式(TF/✓×)")]),e("div",{staticClass:"ac-config__item"},[e("el-radio-group",{model:{value:t.judgmentMode,callback:function(e){t.judgmentMode=e},expression:"judgmentMode"}},[e("el-radio",{attrs:{label:0}},[t._v("TF")]),e("el-radio",{attrs:{label:1}},[t._v("✓×")])],1)],1)]):t._e(),1===t.answerSheetMode&&t.titleSwitchable?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("显示题目内容")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isShowQuestion,callback:function(e){t.isShowQuestion=e},expression:"isShowQuestion"}})],1)]):t._e(),t.showStudentInfo?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__row--sub"},[e("div",{staticClass:"ac-config__label"},[t._v("手工批阅")]),e("el-tooltip",{staticClass:"item",attrs:{effect:"light",content:"该试卷存在多个得分点题目,不支持线下批阅,请重新选择试卷",placement:"top-end",disabled:!t.graffitiDisable,"open-delay":200}},[e("div",{staticClass:"ac-config__item"},[e("el-switch",{attrs:{disabled:t.graffitiDisable},model:{value:t.handRead,callback:function(e){t.handRead=e},expression:"handRead"}})],1)])],1),t.readType&&1===t.answerSheetMode?e("div",{staticClass:"ac-config__row--sub"},[e("div",{staticClass:"ac-config__label"},[t._v("设置给分框样式")]),e("div",{staticClass:"ac-config__item"},[e("el-radio-group",{model:{value:t.readType,callback:function(e){t.readType=e},expression:"readType"}},[e("el-radio",{attrs:{label:"hand"}},[t._v("手写")]),e("el-radio",{attrs:{label:"graffiti"}},[t._v("涂点")])],1)],1)]):t._e()]):t._e(),0===t.answerSheetMode?e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("添加页脚")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isAddFooter,callback:function(e){t.isAddFooter=e},expression:"isAddFooter"}})],1)]):t._e(),0!==t.answerSheetMode&&"graffiti"!==t.readType||1!==t.layout?t._e():e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("答题卡拼凑打印")]),e("div",{staticClass:"ac-config__item"},[e("el-switch",{model:{value:t.isPatchwork,callback:function(e){t.isPatchwork=e},expression:"isPatchwork"}})],1)])],2)]),e("ac-preview",{attrs:{visible:t.previewVisible,selector:".ac-panel .ac-piece__wrapper"},on:{"update:visible":function(e){t.previewVisible=e}}}),t.acMode?t._e():e("el-dialog",{staticClass:"download-dialog",attrs:{title:"下载提示",visible:t.showDownloadModal,width:"520px",center:"","close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(e){t.showDownloadModal=e}}},[e("p",{staticClass:"message"},[t._v(" 选择导出以下内容 "),e("span",{staticClass:"redTip"},[t._v("(为了保证下载内容的质量,建议使用chrome进行下载)")])]),e("div",{staticClass:"tip"},[e("el-radio",{attrs:{label:"sweep"},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[t._v("答题卡")]),e("el-select",{attrs:{placeholder:"请选择"},model:{value:t.downloadType,callback:function(e){t.downloadType=e},expression:"downloadType"}},[e("el-option",{attrs:{label:"PDF",value:"PDF"}}),e("el-option",{attrs:{label:"PNG",value:"PNG"}})],1)],1),e("div",{staticClass:"paper-type_selector"},[e("span",{staticClass:"label"},[t._v("请选择纸张大小")]),e("el-select",{attrs:{placeholder:"请选择"},model:{value:t.downloadSize,callback:function(e){t.downloadSize=e},expression:"downloadSize"}},[e("el-option",{attrs:{label:1===t.layout?"A4":"A3",value:1===t.layout?"A4":"A3"}}),e("el-option",{attrs:{label:1===t.layout?"16K":"8K",value:1===t.layout?"16K":"8K"}})],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{size:"small"},on:{click:function(e){t.showDownloadModal=!1}}},[t._v("取 消")]),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.confirmDownload}},[t._v("确 定")])],1)])],1)},i=[],a=(n("14d9"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-config__row"},[e("div",{staticClass:"ac-config__label"},[t._v("选择答题卡模式")]),e("div",{staticClass:"ac-config__item answer-mode-other"},[e("p",{staticClass:"ac-card-config__sublabel"},[t._v("适用于"+t._s(t.subLabel)+"纸张")]),e("div",{staticClass:"layout-config"},[e("div",{class:["layout-config-item",t.disableOneLayout&&"disable-style"],attrs:{"aria-disabled":t.disableOneLayout},on:{click:function(e){return t.changeAnswerCardLayout(1)}}},[e("div",{class:["layout-image",1===t.layout?"is-selected":null]},[e("img",{attrs:{src:n("d09a"),alt:"一栏"}})]),e("p",{staticClass:"layout-name"},[t._v("一栏")])]),e("div",{staticClass:"layout-config-item",on:{click:function(e){return t.changeAnswerCardLayout(2)}}},[e("div",{class:["layout-image",2===t.layout?"is-selected":null]},[e("img",{attrs:{src:n("eb33"),alt:"两栏"}})]),e("p",{staticClass:"layout-name"},[t._v("两栏")])]),0===t.mode?e("div",{staticClass:"layout-config-item",on:{click:function(e){return t.changeAnswerCardLayout(3)}}},[e("div",{class:["layout-image",3===t.layout?"is-selected":null]},[e("img",{attrs:{src:n("f714"),alt:"三栏"}})]),e("p",{staticClass:"layout-name"},[t._v("三栏")])]):t._e()]),1===t.mode?e("el-radio-group",{model:{value:t.sizeType,callback:function(e){t.sizeType=e},expression:"sizeType"}},[e("el-radio",{attrs:{label:"A"}},[t._v(t._s(1===t.layout?"A4":"A3"))]),e("el-radio",{attrs:{label:"K"}},[t._v(t._s(1===t.layout?"16K":"8K"))])],1):t._e()],1)])}),o=[],s={name:"ChangeLayout",components:{},props:{mode:{type:Number,default:0}},computed:{sizeType:{get:function(){return this.$store.getters["AC/sizeType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setSizeType",t),this.$store.dispatch("AC/paper/resetPanel")}},layout:function(){return this.$store.getters["AC/layout"]},disableOneLayout:function(){return this.$store.getters["AC/disableOneLayout"]},subLabel:function(){return 0===this.mode?1===this.layout?"A4、16K":"A3、8K":"A"===this.sizeType?1===this.layout?"A4":"A3":1===this.layout?"16K":"8K"}},watch:{},mounted:function(){},data:function(){return{}},methods:{changeAnswerCardLayout:function(t){this.$store.dispatch("AC/answerConfig/setAnswerCardLayout",t),t>1&&this.$store.dispatch("AC/answerConfig/setPatchwork",!1),this.$store.dispatch("AC/paper/resetPanel")}}},c=s,u=n("2877"),l=Object(u["a"])(c,a,o,!1,null,null,null),h=l.exports,d=n("2b16"),f={name:"AcAnswerConfig",components:{changeLayout:h,AcPreview:d["default"]},props:{modeChangeable:{type:Boolean,default:!0},layoutChangeable:{type:Boolean,default:!0},titleSwitchable:{type:Boolean,default:!0},graffitiDisable:{type:Boolean,default:!1}},inject:["showStudentInfo"],computed:{answerSheetMode:{get:function(){return this.$store.getters["AC/answerCardMode"]},set:function(t){this.$store.dispatch("AC/answerConfig/setAnswerCardMode",t),0===t&&this.$store.dispatch("AC/answerConfig/setSizeType","A")}},isShowAttention:{get:function(){return this.$store.getters["AC/showAttention"]},set:function(t){this.$store.dispatch("AC/answerConfig/setAttention",t),this.$store.dispatch("AC/paper/resetPanel")}},studentInfoArr:function(){return this.$store.getters["AC/studentInfo"]},isShowEducationId:{get:function(){return this.$store.getters["AC/showEducationId"]},set:function(t){this.$store.dispatch("AC/answerConfig/setShowEducationId",t),this.$store.dispatch("AC/paper/resetPanel")}},educationIdValue:{get:function(){return this.$store.getters["AC/educationIdValue"]},set:function(t){this.$store.dispatch("AC/answerConfig/setEducationId",t),this.$store.dispatch("AC/paper/resetPanel")}},registrationNumberType:{get:function(){return this.$store.getters["AC/registrationNumberType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setRegistrationNumberType",t),this.$store.dispatch("AC/paper/resetPanel")}},objectiveOrder:{get:function(){return this.$store.getters["AC/objectiveOrder"]},set:function(t){this.$store.dispatch("AC/answerConfig/setObjectiveOrder",t),this.$store.dispatch("AC/paper/resetPanel")}},judgmentMode:{get:function(){return this.$store.getters["AC/judgmentMode"]},set:function(t){this.$store.dispatch("AC/answerConfig/setJudgmentMode",t)}},isShowQuestion:{get:function(){return this.$store.getters["AC/showQuestion"]},set:function(t){this.$store.dispatch("AC/answerConfig/setShowQuestion",t),this.$store.dispatch("AC/paper/resetEditTitle")}},handRead:{get:function(){return!!this.readType},set:function(t){this.readType=t?"graffiti":""}},readType:{get:function(){return this.$store.getters["AC/readType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setReadType",t),this.$store.dispatch("AC/paper/resetPanel")}},isAddFooter:{get:function(){return this.$store.getters["AC/addFooter"]},set:function(t){this.$store.dispatch("AC/answerConfig/setAddFooter",t)}},isPatchwork:{get:function(){return this.$store.getters["AC/patchwork"]},set:function(t){this.$store.dispatch("AC/answerConfig/setPatchwork",t),this.$store.dispatch("AC/paper/resetPanel")}},layout:function(){return this.$store.getters["AC/layout"]},downloadType:{get:function(){return this.$store.getters["AC/downloadType"]},set:function(t){this.$store.dispatch("AC/answerConfig/setDownloadType",t)}},downloadSize:{get:function(){return this.$store.getters["AC/downloadSize"]},set:function(t){this.$store.dispatch("AC/answerConfig/setDownloadSize",t)}},acMode:function(){return this.$store.getters["AC/answerCardMode"]}},watch:{studentInfoArr:function(){this.studentInfoTags=this.studentInfoArr}},mounted:function(){this.studentInfoTags=this.studentInfoArr},data:function(){return{studentInfoTags:[],inputVisible:!1,inputValue:"",showConfig:!0,previewVisible:!1,showDownloadModal:!1,radio:"sweep"}},methods:{handleClose:function(t){this.studentInfoTags.splice(this.studentInfoTags.indexOf(t),1),this.$store.dispatch("AC/answerConfig/setStudentInfo",this.studentInfoTags),this.$store.dispatch("AC/paper/resetPanel")},showInput:function(){var t=this;this.inputVisible=!0,this.$nextTick((function(e){t.$refs.saveTagInput.$refs.input.focus()}))},handleInputConfirm:function(){var t=this.inputValue;t&&-1===this.studentInfoTags.indexOf(t)&&this.studentInfoTags.push(t),this.inputVisible=!1,this.inputValue="",this.$store.dispatch("AC/answerConfig/setStudentInfo",this.studentInfoTags),this.$store.dispatch("AC/paper/resetPanel")},download:function(){this.acMode?this.$emit("download"):(this.showDownloadModal=!0,this.$store.dispatch("AC/answerConfig/setDownloadSize",1===this.layout?"A4":"A3"))},confirmDownload:function(){this.showDownloadModal=!1,this.$emit("download")},save:function(){this.$emit("save")}}},p=f,g=Object(u["a"])(p,r,i,!1,null,null,null),m=g.exports;m.install=function(t){t.component(m.name,m)};e["default"]=m},"69f3":function(t,e,n){var r,i,a,o=n("cdce"),s=n("da84"),c=n("861d"),u=n("9112"),l=n("1a2d"),h=n("c6cd"),d=n("f772"),f=n("d012"),p="Object already initialized",g=s.TypeError,m=s.WeakMap,y=function(t){return a(t)?i(t):r(t,{})},v=function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return n}};if(o||h.state){var _=h.state||(h.state=new m);_.get=_.get,_.has=_.has,_.set=_.set,r=function(t,e){if(_.has(t))throw g(p);return e.facade=t,_.set(t,e),e},i=function(t){return _.get(t)||{}},a=function(t){return _.has(t)}}else{var b=d("state");f[b]=!0,r=function(t,e){if(l(t,b))throw g(p);return e.facade=t,u(t,b,e),e},i=function(t){return l(t,b)?t[b]:{}},a=function(t){return l(t,b)}}t.exports={set:r,get:i,has:a,enforce:y,getterFor:v}},"6bdf":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("el-dialog",{attrs:{"custom-class":"ac-editor",visible:t.currentVisible,title:t.title,top:"10vh",width:"868px","close-on-click-modal":!1},on:{"update:visible":function(e){t.currentVisible=e},open:t.handleOpen}},[e("textarea",{attrs:{id:t.editorId}}),e("div",{staticClass:"ac-editor__footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.close}},[t._v("取消")]),e("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.confirm}},[t._v("确定")])],1)])},i=[],a=n("d4ec"),o=n("bee2"),s={name:"AcEditor",props:{title:{type:String,default:"编辑标题"},content:{type:String,default:""},visible:{type:Boolean,default:!1},editorId:{type:String,default:"ac-editor"},editorConstructor:{type:Function,default:function(){}}},inject:["uploadOss","ClassicEditor"],data:function(){return{editor:null}},computed:{currentVisible:{get:function(){return this.visible},set:function(t){this.$emit("update:visible",t)}},uploadAdapter:function(){var t=this.uploadOss;return function(){function e(t){Object(a["a"])(this,e),this.loader=t}return Object(o["a"])(e,[{key:"upload",value:function(){var e=this;return new Promise((function(n,r){e.loader.file.then((function(e){return t(e,n)}))}))}}]),e}()},createFn:function(){return this.ClassicEditor||this.editorConstructor}},methods:{handleOpen:function(){var t=this;this.$nextTick((function(){return t.initEditor()}))},close:function(){this.currentVisible=!1},confirm:function(){this.close(),this.editor&&this.$emit("submit",this.editor.getData())},initEditor:function(){var t=this;this.editor?(""===this.content||this.content)&&this.editor.setData(this.content):this.createFn.create(document.querySelector("#".concat(this.editorId)),{isReadOnly:!0,placeholder:"请输入~",image:{resizeUnit:"px",toolbar:[{name:"imageStyle:pictures",items:["imageStyle:alignBlockLeft","imageStyle:alignCenter","imageStyle:alignBlockRight"],defaultItem:"imageStyle:alignCenter"},"|","toggleImageCaption","imageStyle:inline"]}}).then((function(e){t.editor=e,t.content&&t.editor.setData(t.content),t.addSpecialCharacters(e),e.plugins.get("FileRepository").createUploadAdapter=function(e){return new t.uploadAdapter(e)},e.on("instanceReady",(function(t){t.editor.execCommand("toolbarCollapse")}))}))},addSpecialCharacters:function(t){t.plugins.get("SpecialCharacters").addItems("编号",[{title:"①",character:"①"},{title:"②",character:"②"},{title:"③",character:"③"},{title:"④",character:"④"},{title:"⑤",character:"⑤"},{title:"⑥",character:"⑥"},{title:"⑦",character:"⑦"},{title:"⑧",character:"⑧"},{title:"⑨",character:"⑨"},{title:"⑩",character:"⑩"},{title:"(1)",character:"(1)"},{title:"(2)",character:"(2)"},{title:"(3)",character:"(3)"},{title:"(4)",character:"(4)"},{title:"(5)",character:"(5)"},{title:"(6)",character:"(6)"},{title:"(7)",character:"(7)"},{title:"(8)",character:"(8)"},{title:"(9)",character:"(9)"},{title:"(10)",character:"(10)"},{title:"1)",character:"1)"},{title:"2)",character:"2)"},{title:"3)",character:"3)"},{title:"4)",character:"4)"},{title:"5)",character:"5)"},{title:"6)",character:"6)"},{title:"7)",character:"7)"},{title:"8)",character:"8)"},{title:"9)",character:"9)"},{title:"10)",character:"10)"},{title:"一",character:"一"},{title:"二",character:"二"},{title:"三",character:"三"},{title:"四",character:"四"},{title:"五",character:"五"},{title:"六",character:"六"},{title:"七",character:"七"},{title:"八",character:"八"},{title:"九",character:"九"},{title:"十",character:"十"},{title:"(一)",character:"(一)"},{title:"(二)",character:"(二)"},{title:"(三)",character:"(三)"},{title:"(四)",character:"(四)"},{title:"(五)",character:"(五)"},{title:"(六)",character:"(六)"},{title:"(七)",character:"(七)"},{title:"(八)",character:"(八)"},{title:"(九)",character:"(九)"},{title:"(十)",character:"(十)"}])}}},c=s,u=n("2877"),l=Object(u["a"])(c,r,i,!1,null,null,null),h=l.exports;h.install=function(t){t.component(h.name,h)};e["default"]=h},"6ce5":function(t,e,n){"use strict";var r=n("df7e"),i=n("ebb5"),a=i.aTypedArray,o=i.exportTypedArrayMethod,s=i.getTypedArrayConstructor;o("toReversed",(function(){return r(a(this),s(this))}))},"6f19":function(t,e,n){var r=n("9112"),i=n("0d26"),a=n("b980"),o=Error.captureStackTrace;t.exports=function(t,e,n,s){a&&(o?o(t,e):r(t,"stack",i(n,s)))}},7156:function(t,e,n){var r=n("1626"),i=n("861d"),a=n("d2bb");t.exports=function(t,e,n){var o,s;return a&&r(o=e.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&a(t,s),t}},7234:function(t,e){t.exports=function(t){return null===t||void 0===t}},7282:function(t,e,n){var r=n("e330"),i=n("59ed");t.exports=function(t,e,n){try{return r(i(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(a){}}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("1d80"),i=Object;t.exports=function(t){return i(r(t))}},"825a":function(t,e,n){var r=n("861d"),i=String,a=TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not an object")}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,e,n){var r=n("1626"),i=n("8ea1"),a=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===a}:function(t){return"object"==typeof t?null!==t:r(t)}},8925:function(t,e,n){var r=n("e330"),i=n("1626"),a=n("c6cd"),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(t){return o(t)}),t.exports=a.inspectSource},"8ea1":function(t,e){var n="object"==typeof document&&document.all,r="undefined"==typeof n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:r}},"8f60":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{class:["ac-graffiti__wrapper",t.hidePadding&&"is-hide-padding"]},[e("div",{class:["ac-graffiti",t.hideBottomBorder&&"is-hide-bottom",t.hideTopBorder&&"is-hide-top"],attrs:{"data-scan-type":"review","data-scan-name":t.scanName,"data-scan-score":t.score}},t._l(Array(21).fill(""),(function(n,r){return e("span",{key:r,staticClass:"ac-graffiti__item"},[t._v(" "+t._s(t.getItem(r))+" ")])})),0)])},i=[],a={name:"AcGraffiti",props:{score:{type:Number,required:!0},scanName:{type:String},hidePadding:{type:Boolean,required:!1},hideBottomBorder:{type:Boolean,required:!1},hideTopBorder:{type:Boolean,required:!1}},methods:{getItem:function(t){if(20===t)return.5;if(this.score>=20)return t>9||10*t<=this.score?t%10:"";var e=20-this.score-1;return t>=e?20-t-1:""}}},o=a,s=n("2877"),c=Object(s["a"])(o,r,i,!1,null,null,null),u=c.exports;u.install=function(t){t.component(u.name,u)};e["default"]=u},"907a":function(t,e,n){"use strict";var r=n("ebb5"),i=n("07fa"),a=n("5926"),o=r.aTypedArray,s=r.exportTypedArrayMethod;s("at",(function(t){var e=o(this),n=i(e),r=a(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}))},"90e3":function(t,e,n){var r=n("e330"),i=0,a=Math.random(),o=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++i+a,36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),a=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,a(1,n))}:function(t,e,n){return t[e]=n,t}},9152:function(t,e){
4
4
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
5
5
  e.read=function(t,e,n,r,i){var a,o,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,a=f&(1<<-l)-1,f>>=-l,l+=s;l>0;a=256*a+t[e+h],h+=d,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=r;l>0;o=256*o+t[e+h],h+=d,l-=8);if(0===a)a=1-u;else{if(a===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),a-=u}return(f?-1:1)*o*Math.pow(2,a-r)},e.write=function(t,e,n,r,i,a){var o,s,c,u=8*a-i-1,l=(1<<u)-1,h=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:a-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=l):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),e+=o+h>=1?d/c:d*Math.pow(2,1-h),e*c>=2&&(o++,c/=2),o+h>=l?(s=0,o=l):o+h>=1?(s=(e*c-1)*Math.pow(2,i),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[n+f]=255&s,f+=p,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;t[n+f]=255&o,f+=p,o/=256,u-=8);t[n+f-p]|=128*g}},"94ca":function(t,e,n){var r=n("d039"),i=n("1626"),a=/#|\.prototype\./,o=function(t,e){var n=c[s(t)];return n==l||n!=u&&(i(e)?r(e):!!e)},s=o.normalize=function(t){return String(t).replace(a,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},"986a":function(t,e,n){"use strict";var r=n("ebb5"),i=n("a258").findLast,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("findLast",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),a=n("aed9"),o=n("825a"),s=n("a04b"),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",f="writable";e.f=r?a?function(t,e,n){if(o(t),e=s(e),o(n),"function"===typeof t&&"prototype"===e&&"value"in n&&f in n&&!n[f]){var r=l(t,e);r&&r[f]&&(t[e]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:h in n?n[h]:r[h],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(o(t),e=s(e),o(n),i)try{return u(t,e,n)}catch(r){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},a04b:function(t,e,n){var r=n("c04e"),i=n("d9b5");t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},a258:function(t,e,n){var r=n("0366"),i=n("44ad"),a=n("7b0b"),o=n("07fa"),s=function(t){var e=1==t;return function(n,s,c){var u,l,h=a(n),d=i(h),f=r(s,c),p=o(d);while(p-- >0)if(u=d[p],l=f(u,p,h),l)switch(t){case 0:return u;case 1:return p}return e?-1:void 0}};t.exports={findLast:s(0),findLastIndex:s(1)}},a38e:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("53ca");n("d9e2");function i(t,e){if("object"!==Object(r["a"])(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==Object(r["a"])(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function a(t){var e=i(t,"string");return"symbol"===Object(r["a"])(e)?e:String(e)}},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},ab36:function(t,e,n){var r=n("861d"),i=n("9112");t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},aeb0:function(t,e,n){var r=n("9bf2").f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},aed9:function(t,e,n){var r=n("83ab"),i=n("d039");t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b42e:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:n)(e)}},b622:function(t,e,n){var r=n("da84"),i=n("5692"),a=n("1a2d"),o=n("90e3"),s=n("04f8"),c=n("fdbf"),u=r.Symbol,l=i("wks"),h=c?u["for"]||u:u&&u.withoutSetter||o;t.exports=function(t){return a(l,t)||(l[t]=s&&a(u,t)?u[t]:h("Symbol."+t)),l[t]}},b639:function(t,e,n){"use strict";(function(t){
6
6
  /*!
@@ -9,4 +9,4 @@ e.read=function(t,e,n,r,i){var a,o,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,h=n?i-1:0,d=
9
9
  * @author Feross Aboukhadijeh <http://feross.org>
10
10
  * @license MIT
11
11
  */
12
- var r=n("1fb5"),i=n("9152"),a=n("e3db");function o(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?m(t,e,n,r):"string"===typeof e?p(t,e,n):y(t,e)}function h(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e,n,r){return h(e),e<=0?c(t,e):void 0!==n?"string"===typeof r?c(t,e).fill(n,r):c(t,e).fill(n):c(t,e)}function f(t,e){if(h(e),t=c(t,e<0?0:0|v(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function p(t,e,n){if("string"===typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|b(e,n);t=c(t,r);var i=t.write(e,n);return i!==r&&(t=t.slice(0,i)),t}function g(t,e){var n=e.length<0?0:0|v(e.length);t=c(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function m(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=g(t,e),t}function y(t,e){if(u.isBuffer(e)){var n=0|v(e.length);return t=c(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?c(t,0):g(t,e);if("Buffer"===e.type&&a(e.data))return g(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function _(t){return+t!=t&&(t=0),u.alloc(+t)}function b(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(r)return Q(t).length;e=(""+e).toLowerCase(),r=!0}}function w(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return z(this,e,n);case"utf8":case"utf-8":return L(this,e,n);case"ascii":return j(this,e,n);case"latin1":case"binary":return M(this,e,n);case"base64":return B(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function C(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function A(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:x(t,e,n,r,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):x(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function x(t,e,n,r,i){var a,o=1,s=t.length,c=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;o=2,s/=2,c/=2,n/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var l=-1;for(a=n;a<s;a++)if(u(t,a)===u(e,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===c)return l*o}else-1!==l&&(a-=a-l),l=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){for(var h=!0,d=0;d<c;d++)if(u(t,a+d)!==u(e,d)){h=!1;break}if(h)return a}return-1}function k(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var a=e.length;if(a%2!==0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[n+o]=s}return o}function T(t,e,n,r){return tt(Q(e,t.length-n),t,n,r)}function E(t,e,n,r){return tt(X(e),t,n,r)}function S(t,e,n,r){return E(t,e,n,r)}function I(t,e,n,r){return tt(J(e),t,n,r)}function O(t,e,n,r){return tt(q(e,t.length-n),t,n,r)}function B(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function L(t,e,n){n=Math.min(t.length,n);var r=[],i=e;while(i<n){var a,o,s,c,u=t[i],l=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(l=u);break;case 2:a=t[i+1],128===(192&a)&&(c=(31&u)<<6|63&a,c>127&&(l=c));break;case 3:a=t[i+1],o=t[i+2],128===(192&a)&&128===(192&o)&&(c=(15&u)<<12|(63&a)<<6|63&o,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(c=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s,c>65535&&c<1114112&&(l=c))}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return R(r)}e.Buffer=u,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:o(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return l(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return d(null,t,e,n)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,a=Math.min(n,r);i<a;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!a(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var o=t[n];if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},u.byteLength=b,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)C(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)C(this,e,e+3),C(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)C(this,e,e+7),C(this,e+1,e+6),C(this,e+2,e+5),C(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?L(this,0,t):w.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var a=i-r,o=n-e,s=Math.min(a,o),c=this.slice(r,i),l=t.slice(e,n),h=0;h<s;++h)if(c[h]!==l[h]){a=c[h],o=l[h];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return A(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return A(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return k(this,t,e,n);case"utf8":case"utf-8":return T(this,t,e,n);case"ascii":return E(this,t,e,n);case"latin1":case"binary":return S(this,t,e,n);case"base64":return I(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,e,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function R(t){var e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);var n="",r=0;while(r<e)n+=String.fromCharCode.apply(String,t.slice(r,r+=P));return n}function j(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function M(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function z(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=e;a<n;++a)i+=G(t[a]);return i}function N(t,e,n){for(var r=t.slice(e,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function D(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function U(t,e,n,r,i,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function $(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,a=Math.min(t.length-n,2);i<a;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function H(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,a=Math.min(t.length-n,4);i<a;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function F(t,e,n,r,i,a){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function K(t,e,n,r,a){return a||F(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function W(t,e,n,r,a){return a||F(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=u.prototype;else{var i=e-t;n=new u(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);var r=this[t],i=1,a=0;while(++a<e&&(i*=256))r+=this[t+a]*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);var r=this[t+--e],i=1;while(e>0&&(i*=256))r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||D(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||D(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||D(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);var r=this[t],i=1,a=0;while(++a<e&&(i*=256))r+=this[t+a]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);var r=e,i=1,a=this[t+--r];while(r>0&&(i*=256))a+=this[t+--r]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||D(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||D(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||D(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||D(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||D(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||D(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;U(this,t,e,n,i,0)}var a=1,o=0;this[e]=255&t;while(++o<n&&(a*=256))this[e+o]=t/a&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;U(this,t,e,n,i,0)}var a=n-1,o=1;this[e+a]=255&t;while(--a>=0&&(o*=256))this[e+a]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):$(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):$(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);U(this,t,e,n,i-1,-i)}var a=0,o=1,s=0;this[e]=255&t;while(++a<n&&(o*=256))t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);U(this,t,e,n,i-1,-i)}var a=n-1,o=1,s=0;this[e+a]=255&t;while(--a>=0&&(o*=256))t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):$(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):$(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return K(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return K(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return W(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return W(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,a=r-n;if(this===t&&n<e&&e<r)for(i=a-1;i>=0;--i)t[i+e]=this[i+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},u.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var a;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(a=e;a<n;++a)this[a]=t;else{var o=u.isBuffer(t)?t:Q(new u(t,r).toString()),s=o.length;for(a=0;a<n-e;++a)this[a+e]=o[a%s]}return this};var V=/[^+\/0-9A-Za-z-_]/g;function Y(t){if(t=Z(t).replace(V,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function Z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function G(t){return t<16?"0"+t.toString(16):t.toString(16)}function Q(t,e){var n;e=e||1/0;for(var r=t.length,i=null,a=[],o=0;o<r;++o){if(n=t.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(e-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function X(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function q(t,e){for(var n,r,i,a=[],o=0;o<t.length;++o){if((e-=2)<0)break;n=t.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r)}return a}function J(t){return r.toByteArray(Y(t))}function tt(t,e,n,r){for(var i=0;i<r;++i){if(i+n>=e.length||i>=t.length)break;e[i+n]=t[i]}return i}function et(t){return t!==t}}).call(this,n("c8ba"))},b7ef:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("d066"),o=n("5c6c"),s=n("9bf2").f,c=n("1a2d"),u=n("19aa"),l=n("7156"),h=n("e391"),d=n("cf98"),f=n("0d26"),p=n("83ab"),g=n("c430"),m="DOMException",y=a("Error"),v=a(m),_=function(){u(this,b);var t=arguments.length,e=h(t<1?void 0:arguments[0]),n=h(t<2?void 0:arguments[1],"Error"),r=new v(e,n),i=y(e);return i.name=m,s(r,"stack",o(1,f(i.stack,1))),l(r,this,_),r},b=_.prototype=v.prototype,w="stack"in y(m),C="stack"in new v(1,2),A=v&&p&&Object.getOwnPropertyDescriptor(i,m),x=!!A&&!(A.writable&&A.configurable),k=w&&!x&&!C;r({global:!0,constructor:!0,forced:g||k},{DOMException:k?_:v});var T=a(m),E=T.prototype;if(E.constructor!==T)for(var S in g||s(E,"constructor",o(1,T)),d)if(c(d,S)){var I=d[S],O=I.s;c(T,O)||s(T,O,o(6,I.c))}},b980:function(t,e,n){var r=n("d039"),i=n("5c6c");t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},bcbf:function(t,e,n){var r=n("f5df");t.exports=function(t){var e=r(t);return"BigInt64Array"==e||"BigUint64Array"==e}},bee2:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("a38e");function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Object(r["a"])(i.key),i)}}function a(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}},c04e:function(t,e,n){var r=n("c65b"),i=n("861d"),a=n("d9b5"),o=n("dc4a"),s=n("485a"),c=n("b622"),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!i(t)||a(t))return t;var n,c=o(t,l);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!i(n)||a(n))return n;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},c430:function(t,e){t.exports=!1},c4e3:function(t,e,n){(function(e,n,r){var i;!function(e){t.exports=e()}((function(){return function t(e,n,r){function a(s,c){if(!n[s]){if(!e[s]){var u="function"==typeof i&&i;if(!c&&u)return i(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var h=n[s]={exports:{}};e[s][0].call(h.exports,(function(t){var n=e[s][1][t];return a(n||t)}),h,h.exports,t,e,n,r)}return n[s].exports}for(var o="function"==typeof i&&i,s=0;s<r.length;s++)a(r[s]);return a}({1:[function(t,e,n){"use strict";var r=t("./utils"),i=t("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var e,n,i,o,s,c,u,l=[],h=0,d=t.length,f=d,p="string"!==r.getTypeOf(t);h<t.length;)f=d-h,i=p?(e=t[h++],n=h<d?t[h++]:0,h<d?t[h++]:0):(e=t.charCodeAt(h++),n=h<d?t.charCodeAt(h++):0,h<d?t.charCodeAt(h++):0),o=e>>2,s=(3&e)<<4|n>>4,c=1<f?(15&n)<<2|i>>6:64,u=2<f?63&i:64,l.push(a.charAt(o)+a.charAt(s)+a.charAt(c)+a.charAt(u));return l.join("")},n.decode=function(t){var e,n,r,o,s,c,u=0,l=0,h="data:";if(t.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var d,f=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===a.charAt(64)&&f--,t.charAt(t.length-2)===a.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=i.uint8array?new Uint8Array(0|f):new Array(0|f);u<t.length;)e=a.indexOf(t.charAt(u++))<<2|(o=a.indexOf(t.charAt(u++)))>>4,n=(15&o)<<4|(s=a.indexOf(t.charAt(u++)))>>2,r=(3&s)<<6|(c=a.indexOf(t.charAt(u++))),d[l++]=e,64!==s&&(d[l++]=n),64!==c&&(d[l++]=r);return d}},{"./support":30,"./utils":32}],2:[function(t,e,n){"use strict";var r=t("./external"),i=t("./stream/DataWorker"),a=t("./stream/Crc32Probe"),o=t("./stream/DataLengthProbe");function s(t,e,n,r,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var t=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,n){return t.pipe(new a).pipe(new o("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){"use strict";var r=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){"use strict";var r=t("./utils"),i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==r.getTypeOf(t)?function(t,e,n,r){var a=i,o=r+n;t^=-1;for(var s=r;s<o;s++)t=t>>>8^a[255&(t^e[s])];return-1^t}(0|e,t,t.length,0):function(t,e,n,r){var a=i,o=r+n;t^=-1;for(var s=r;s<o;s++)t=t>>>8^a[255&(t^e.charCodeAt(s))];return-1^t}(0|e,t,t.length,0):0}},{"./utils":32}],5:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:r}},{lie:37}],7:[function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=t("pako"),a=t("./utils"),o=t("./stream/GenericWorker"),s=r?"uint8array":"array";function c(t,e){o.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",a.inherits(c,o),c.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,t.data),!1)},c.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new c("Deflate",t)},n.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){"use strict";function r(t,e){var n,r="";for(n=0;n<e;n++)r+=String.fromCharCode(255&t),t>>>=8;return r}function i(t,e,n,i,o,l){var h,d,f=t.file,p=t.compression,g=l!==s.utf8encode,m=a.transformTo("string",l(f.name)),y=a.transformTo("string",s.utf8encode(f.name)),v=f.comment,_=a.transformTo("string",l(v)),b=a.transformTo("string",s.utf8encode(v)),w=y.length!==f.name.length,C=b.length!==v.length,A="",x="",k="",T=f.dir,E=f.date,S={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(S.crc32=t.crc32,S.compressedSize=t.compressedSize,S.uncompressedSize=t.uncompressedSize);var I=0;e&&(I|=8),g||!w&&!C||(I|=2048);var O=0,B=0;T&&(O|=16),"UNIX"===o?(B=798,O|=function(t,e){var n=t;return t||(n=e?16893:33204),(65535&n)<<16}(f.unixPermissions,T)):(B=20,O|=function(t){return 63&(t||0)}(f.dosPermissions)),h=E.getUTCHours(),h<<=6,h|=E.getUTCMinutes(),h<<=5,h|=E.getUTCSeconds()/2,d=E.getUTCFullYear()-1980,d<<=4,d|=E.getUTCMonth()+1,d<<=5,d|=E.getUTCDate(),w&&(x=r(1,1)+r(c(m),4)+y,A+="up"+r(x.length,2)+x),C&&(k=r(1,1)+r(c(_),4)+b,A+="uc"+r(k.length,2)+k);var L="";return L+="\n\0",L+=r(I,2),L+=p.magic,L+=r(h,2),L+=r(d,2),L+=r(S.crc32,4),L+=r(S.compressedSize,4),L+=r(S.uncompressedSize,4),L+=r(m.length,2),L+=r(A.length,2),{fileRecord:u.LOCAL_FILE_HEADER+L+m+A,dirRecord:u.CENTRAL_FILE_HEADER+r(B,2)+L+r(_.length,2)+"\0\0\0\0"+r(O,4)+r(i,4)+m+A+_}}var a=t("../utils"),o=t("../stream/GenericWorker"),s=t("../utf8"),c=t("../crc32"),u=t("../signature");function l(t,e,n,r){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(l,o),l.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,o.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-r-1))/n:100}}))},l.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=i(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=i(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:function(t){return u.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var n=this.bytesWritten-t,i=function(t,e,n,i,o){var s=a.transformTo("string",o(i));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(t,2)+r(t,2)+r(e,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,t,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},l.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},l.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},l.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},l.prototype.error=function(t){var e=this._sources;if(!o.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch(t){}return!0},l.prototype.lock=function(){o.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=l},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,n){"use strict";var r=t("../compressions"),i=t("./ZipFileWorker");n.generateWorker=function(t,e,n){var a=new i(e.streamFiles,n,e.platform,e.encodeFileName),o=0;try{t.forEach((function(t,n){o++;var i=function(t,e){var n=t||e,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,e.compression),s=n.options.compressionOptions||e.compressionOptions||{},c=n.dir,u=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:t,dir:c,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)})),a.entriesCount=o}catch(t){a.error(t)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new r;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(r.prototype=t("./object")).loadAsync=t("./load"),r.support=t("./support"),r.defaults=t("./defaults"),r.version="3.10.1",r.loadAsync=function(t,e){return(new r).loadAsync(t,e)},r.external=t("./external"),e.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,n){"use strict";var r=t("./utils"),i=t("./external"),a=t("./utf8"),o=t("./zipEntries"),s=t("./stream/Crc32Probe"),c=t("./nodejsUtils");function u(t){return new i.Promise((function(e,n){var r=t.decompressed.getContentWorker().pipe(new s);r.on("error",(function(t){n(t)})).on("end",(function(){r.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var n=this;return e=r.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(t)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var n=new o(e);return n.load(t),n})).then((function(t){var n=[i.Promise.resolve(t)],r=t.files;if(e.checkCRC32)for(var a=0;a<r.length;a++)n.push(u(r[a]));return i.Promise.all(n)})).then((function(t){for(var i=t.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],c=s.fileNameStr,u=r.resolve(s.fileNameStr);n.file(u,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:e.createFolders}),s.dir||(n.file(u).unsafeOriginalName=c)}return i.zipComment.length&&(n.comment=i.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,n){"use strict";var r=t("../utils"),i=t("../stream/GenericWorker");function a(t,e){i.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}r.inherits(a,i),a.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,n){"use strict";var r=t("readable-stream").Readable;function i(t,e,n){r.call(this,e),this._helper=t;var i=this;t.on("data",(function(t,e){i.push(t)||i._helper.pause(),n&&n(e)})).on("error",(function(t){i.emit("error",t)})).on("end",(function(){i.push(null)}))}t("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},e.exports=i},{"../utils":32,"readable-stream":16}],14:[function(t,n,r){"use strict";n.exports={isNode:"undefined"!=typeof e,newBufferFrom:function(t,n){if(e.from&&e.from!==Uint8Array.from)return e.from(t,n);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new e(t,n)},allocBuffer:function(t){if(e.alloc)return e.alloc(t);var n=new e(t);return n.fill(0),n},isBuffer:function(t){return e.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,n){"use strict";function r(t,e,n){var r,i=a.getTypeOf(e),s=a.extend(n||{},c);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(t=g(t)),s.createFolders&&(r=p(t))&&m.call(this,r,!0);var h="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!h),(e instanceof u&&0===e.uncompressedSize||s.dir||!e||0===e.length)&&(s.base64=!1,s.binary=!0,e="",s.compression="STORE",i="string");var y=null;y=e instanceof u||e instanceof o?e:d.isNode&&d.isStream(e)?new f(t,e):a.prepareContent(t,e,s.binary,s.optimizedBinaryString,s.base64);var v=new l(t,y,s);this.files[t]=v}var i=t("./utf8"),a=t("./utils"),o=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),c=t("./defaults"),u=t("./compressedObject"),l=t("./zipObject"),h=t("./generate"),d=t("./nodejsUtils"),f=t("./nodejs/NodejsStreamInputAdapter"),p=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},m=function(t,e){return e=void 0!==e?e:c.createFolders,t=g(t),this.files[t]||r.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function y(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,r;for(e in this.files)r=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,r)},filter:function(t){var e=[];return this.forEach((function(n,r){t(n,r)&&e.push(r)})),e},file:function(t,e,n){if(1!==arguments.length)return t=this.root+t,r.call(this,t,e,n),this;if(y(t)){var i=t;return this.filter((function(t,e){return!e.dir&&i.test(t)}))}var a=this.files[this.root+t];return a&&!a.dir?a:null},folder:function(t){if(!t)return this;if(y(t))return this.filter((function(e,n){return n.dir&&t.test(e)}));var e=this.root+t,n=m.call(this,e),r=this.clone();return r.root=n.name,r},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter((function(e,n){return n.name.slice(0,t.length)===t})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=a.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");a.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";e=h.generateWorker(this,n,r)}catch(t){(e=new o("error")).error(t)}return new s(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=v},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,n){"use strict";e.exports=t("stream")},{stream:void 0}],17:[function(t,e,n){"use strict";var r=t("./DataReader");function i(t){r.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(i,r),i.prototype.byteAt=function(t){return this.data[this.zero+t]},i.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),r=t.charCodeAt(2),i=t.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===e&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),r=t.charCodeAt(2),i=t.charCodeAt(3),a=this.readData(4);return e===a[0]&&n===a[1]&&r===a[2]&&i===a[3]},i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],18:[function(t,e,n){"use strict";var r=t("../utils");function i(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return r.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=i},{"../utils":32}],19:[function(t,e,n){"use strict";var r=t("./Uint8ArrayReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){"use strict";var r=t("./DataReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},i.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},i.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){"use strict";var r=t("./ArrayReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){"use strict";var r=t("../utils"),i=t("../support"),a=t("./ArrayReader"),o=t("./StringReader"),s=t("./NodeBufferReader"),c=t("./Uint8ArrayReader");e.exports=function(t){var e=r.getTypeOf(t);return r.checkSupport(e),"string"!==e||i.uint8array?"nodebuffer"===e?new s(t):i.uint8array?new c(r.transformTo("uint8array",t)):new a(r.transformTo("array",t)):new o(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,n){"use strict";var r=t("./GenericWorker"),i=t("../utils");function a(t){r.call(this,"ConvertWorker to "+t),this.destType=t}i.inherits(a,r),a.prototype.processChunk=function(t){this.push({data:i.transformTo(this.destType,t.data),meta:t.meta})},e.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){"use strict";var r=t("./GenericWorker"),i=t("../crc32");function a(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(a,r),a.prototype.processChunk=function(t){this.streamInfo.crc32=i(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){"use strict";var r=t("../utils"),i=t("./GenericWorker");function a(t){i.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}r.inherits(a,i),a.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}i.prototype.processChunk.call(this,t)},e.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){"use strict";var r=t("../utils"),i=t("./GenericWorker");function a(t){i.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=r.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){"use strict";function r(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=r},{}],29:[function(t,n,r){"use strict";var i=t("../utils"),a=t("./ConvertWorker"),o=t("./GenericWorker"),s=t("../base64"),c=t("../support"),u=t("../external"),l=null;if(c.nodestream)try{l=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function h(t,n){return new u.Promise((function(r,a){var o=[],c=t._internalType,u=t._outputType,l=t._mimeType;t.on("data",(function(t,e){o.push(t),n&&n(e)})).on("error",(function(t){o=[],a(t)})).on("end",(function(){try{var t=function(t,e,n){switch(t){case"blob":return i.newBlob(i.transformTo("arraybuffer",e),n);case"base64":return s.encode(e);default:return i.transformTo(t,e)}}(u,function(t,n){var r,i=0,a=null,o=0;for(r=0;r<n.length;r++)o+=n[r].length;switch(t){case"string":return n.join("");case"array":return Array.prototype.concat.apply([],n);case"uint8array":for(a=new Uint8Array(o),r=0;r<n.length;r++)a.set(n[r],i),i+=n[r].length;return a;case"nodebuffer":return e.concat(n);default:throw new Error("concat : unsupported type '"+t+"'")}}(c,o),l);r(t)}catch(t){a(t)}o=[]})).resume()}))}function d(t,e,n){var r=e;switch(e){case"blob":case"arraybuffer":r="uint8array";break;case"base64":r="string"}try{this._internalType=r,this._outputType=e,this._mimeType=n,i.checkSupport(r),this._worker=t.pipe(new a(r)),t.lock()}catch(t){this._worker=new o("error"),this._worker.error(t)}}d.prototype={accumulate:function(t){return h(this,t)},on:function(t,e){var n=this;return"data"===t?this._worker.on(t,(function(t){e.call(n,t.data,t.meta)})):this._worker.on(t,(function(){i.delay(e,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:"nodebuffer"!==this._outputType},t)}},n.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,n,r){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof e,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var i=new ArrayBuffer(0);try{r.blob=0===new Blob([i],{type:"application/zip"}).size}catch(t){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(i),r.blob=0===a.getBlob("application/zip").size}catch(t){r.blob=!1}}}try{r.nodestream=!!t("readable-stream").Readable}catch(t){r.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,n){"use strict";for(var r=t("./utils"),i=t("./support"),a=t("./nodejsUtils"),o=t("./stream/GenericWorker"),s=new Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(){o.call(this,"utf-8 decode"),this.leftOver=null}function l(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(t){return i.nodebuffer?a.newBufferFrom(t,"utf-8"):function(t){var e,n,r,a,o,s=t.length,c=0;for(a=0;a<s;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(e=i.uint8array?new Uint8Array(c):new Array(c),a=o=0;o<c;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?e[o++]=n:(n<2048?e[o++]=192|n>>>6:(n<65536?e[o++]=224|n>>>12:(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63),e[o++]=128|n>>>6&63),e[o++]=128|63&n);return e}(t)},n.utf8decode=function(t){return i.nodebuffer?r.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,i,a,o=t.length,c=new Array(2*o);for(e=n=0;e<o;)if((i=t[e++])<128)c[n++]=i;else if(4<(a=s[i]))c[n++]=65533,e+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&e<o;)i=i<<6|63&t[e++],a--;1<a?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(t=r.transformTo(i.uint8array?"uint8array":"array",t))},r.inherits(u,o),u.prototype.processChunk=function(t){var e=r.transformTo(i.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=e;(e=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),e.set(a,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var o=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+s[t[n]]>e?n:e}(e),c=e;o!==e.length&&(i.uint8array?(c=e.subarray(0,o),this.leftOver=e.subarray(o,e.length)):(c=e.slice(0,o),this.leftOver=e.slice(o,e.length))),this.push({data:n.utf8decode(c),meta:t.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,r.inherits(l,o),l.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){"use strict";var r=t("./support"),i=t("./base64"),a=t("./nodejsUtils"),o=t("./external");function s(t){return t}function c(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}t("setimmediate"),n.newBlob=function(e,r){n.checkSupport("blob");try{return new Blob([e],{type:r})}catch(t){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(e),i.getBlob(r)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(t,e,n){var r=[],i=0,a=t.length;if(a<=n)return String.fromCharCode.apply(null,t);for(;i<a;)"array"===e||"nodebuffer"===e?r.push(String.fromCharCode.apply(null,t.slice(i,Math.min(i+n,a)))):r.push(String.fromCharCode.apply(null,t.subarray(i,Math.min(i+n,a)))),i+=n;return r.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(t){return!1}}()}};function l(t){var e=65536,r=n.getTypeOf(t),i=!0;if("uint8array"===r?i=u.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=u.applyCanBeUsed.nodebuffer),i)for(;1<e;)try{return u.stringifyByChunk(t,r,e)}catch(t){e=Math.floor(e/2)}return u.stringifyByChar(t)}function h(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}n.applyFromCharCode=l;var d={};d.string={string:s,array:function(t){return c(t,new Array(t.length))},arraybuffer:function(t){return d.string.uint8array(t).buffer},uint8array:function(t){return c(t,new Uint8Array(t.length))},nodebuffer:function(t){return c(t,a.allocBuffer(t.length))}},d.array={string:l,array:s,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return a.newBufferFrom(t)}},d.arraybuffer={string:function(t){return l(new Uint8Array(t))},array:function(t){return h(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:s,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return a.newBufferFrom(new Uint8Array(t))}},d.uint8array={string:l,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:s,nodebuffer:function(t){return a.newBufferFrom(t)}},d.nodebuffer={string:l,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return d.nodebuffer.uint8array(t).buffer},uint8array:function(t){return h(t,new Uint8Array(t.length))},nodebuffer:s},n.transformTo=function(t,e){if(e=e||"",!t)return e;n.checkSupport(t);var r=n.getTypeOf(e);return d[r][t](e)},n.resolve=function(t){for(var e=t.split("/"),n=[],r=0;r<e.length;r++){var i=e[r];"."===i||""===i&&0!==r&&r!==e.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":r.nodebuffer&&a.isBuffer(t)?"nodebuffer":r.uint8array&&t instanceof Uint8Array?"uint8array":r.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!r[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var e,n,r="";for(n=0;n<(t||"").length;n++)r+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return r},n.delay=function(t,e,n){setImmediate((function(){t.apply(n||null,e||[])}))},n.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},n.prepareContent=function(t,e,a,s,u){return o.Promise.resolve(e).then((function(t){return r.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new o.Promise((function(e,n){var r=new FileReader;r.onload=function(t){e(t.target.result)},r.onerror=function(t){n(t.target.error)},r.readAsArrayBuffer(t)})):t})).then((function(e){var l=n.getTypeOf(e);return l?("arraybuffer"===l?e=n.transformTo("uint8array",e):"string"===l&&(u?e=i.decode(e):a&&!0!==s&&(e=function(t){return c(t,r.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):o.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,n){"use strict";var r=t("./reader/readerFor"),i=t("./utils"),a=t("./signature"),o=t("./zipEntry"),s=t("./support");function c(t){this.files=[],this.loadOptions=t}c.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(e)+", expected "+i.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var r=this.reader.readString(4)===e;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=s.uint8array?"uint8array":"array",n=i.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,r=this.zip64EndOfCentralSize-44;0<r;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(t=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=e-n;if(0<r)this.isSignature(e,a.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(t){this.reader=r(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,n){"use strict";var r=t("./reader/readerFor"),i=t("./utils"),a=t("./compressedObject"),o=t("./crc32"),s=t("./utf8"),c=t("./compressions"),u=t("./support");function l(t,e){this.options=t,this.loadOptions=e}l.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in c)if(Object.prototype.hasOwnProperty.call(c,e)&&c[e].magic===t)return c[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,n,r,i=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<i;)e=t.readInt(2),n=t.readInt(2),r=t.readData(n),this.extraFields[e]={id:e,length:n,value:r};t.setIndex(i)},handleUTF8:function(){var t=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var n=i.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var a=i.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=r(t.value);return 1!==e.readInt(1)||o(this.fileName)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=r(t.value);return 1!==e.readInt(1)||o(this.fileComment)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null}},e.exports=l},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,n){"use strict";function r(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=t("./stream/StreamHelper"),a=t("./stream/DataWorker"),o=t("./utf8"),s=t("./compressedObject"),c=t("./stream/GenericWorker");r.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw new Error("No output type specified.");var r="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),e=this._decompressWorker();var a=!this._dataBinary;a&&!r&&(e=e.pipe(new o.Utf8EncodeWorker)),!a&&r&&(e=e.pipe(new o.Utf8DecodeWorker))}catch(t){(e=new c("error")).error(t)}return new i(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],l=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<u.length;h++)r.prototype[u[h]]=l;e.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,r){(function(t){"use strict";var n,r,i=t.MutationObserver||t.WebKitMutationObserver;if(i){var a=0,o=new i(l),s=t.document.createTextNode("");o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){l(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(l,0)};else{var c=new t.MessageChannel;c.port1.onmessage=l,n=function(){c.port2.postMessage(0)}}var u=[];function l(){var t,e;r=!0;for(var n=u.length;n;){for(e=u,u=[],t=-1;++t<n;)e[t]();n=u.length}r=!1}e.exports=function(t){1!==u.push(t)||r||n()}}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,n){"use strict";var r=t("immediate");function i(){}var a={},o=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function u(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,t!==i&&f(this,t)}function l(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(t,e,n){r((function(){var r;try{r=e(n)}catch(r){return a.reject(t,r)}r===t?a.reject(t,new TypeError("Cannot resolve promise with itself")):a.resolve(t,r)}))}function d(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function f(t,e){var n=!1;function r(e){n||(n=!0,a.reject(t,e))}function i(e){n||(n=!0,a.resolve(t,e))}var o=p((function(){e(i,r)}));"error"===o.status&&r(o.value)}function p(t,e){var n={};try{n.value=t(e),n.status="success"}catch(t){n.status="error",n.value=t}return n}(e.exports=u).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},u.prototype.catch=function(t){return this.then(null,t)},u.prototype.then=function(t,e){if("function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===o)return this;var n=new this.constructor(i);return this.state!==c?h(n,this.state===s?t:e,this.outcome):this.queue.push(new l(n,t,e)),n},l.prototype.callFulfilled=function(t){a.resolve(this.promise,t)},l.prototype.otherCallFulfilled=function(t){h(this.promise,this.onFulfilled,t)},l.prototype.callRejected=function(t){a.reject(this.promise,t)},l.prototype.otherCallRejected=function(t){h(this.promise,this.onRejected,t)},a.resolve=function(t,e){var n=p(d,e);if("error"===n.status)return a.reject(t,n.value);var r=n.value;if(r)f(t,r);else{t.state=s,t.outcome=e;for(var i=-1,o=t.queue.length;++i<o;)t.queue[i].callFulfilled(e)}return t},a.reject=function(t,e){t.state=o,t.outcome=e;for(var n=-1,r=t.queue.length;++n<r;)t.queue[n].callRejected(e);return t},u.resolve=function(t){return t instanceof this?t:a.resolve(new this(i),t)},u.reject=function(t){var e=new this(i);return a.reject(e,t)},u.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,r=!1;if(!n)return this.resolve([]);for(var o=new Array(n),s=0,c=-1,u=new this(i);++c<n;)l(t[c],c);return u;function l(t,i){e.resolve(t).then((function(t){o[i]=t,++s!==n||r||(r=!0,a.resolve(u,o))}),(function(t){r||(r=!0,a.reject(u,t))}))}},u.race=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,r=!1;if(!n)return this.resolve([]);for(var o,s=-1,c=new this(i);++s<n;)o=t[s],e.resolve(o).then((function(t){r||(r=!0,a.resolve(c,t))}),(function(t){r||(r=!0,a.reject(c,t))}));return c}},{immediate:36}],38:[function(t,e,n){"use strict";var r={};(0,t("./lib/utils/common").assign)(r,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,n){"use strict";var r=t("./zlib/deflate"),i=t("./utils/common"),a=t("./utils/strings"),o=t("./zlib/messages"),s=t("./zlib/zstream"),c=Object.prototype.toString,u=0,l=-1,h=0,d=8;function f(t){if(!(this instanceof f))return new f(t);this.options=i.assign({level:l,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==u)throw new Error(o[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var p;if(p="string"==typeof e.dictionary?a.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==u)throw new Error(o[n]);this._dict_set=!0}}function p(t,e){var n=new f(e);if(n.push(t,!0),n.err)throw n.msg||o[n.err];return n.result}f.prototype.push=function(t,e){var n,o,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;o=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=a.string2buf(t):"[object ArrayBuffer]"===c.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(l),s.next_out=0,s.avail_out=l),1!==(n=r.deflate(s,o))&&n!==u)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===o?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===u):2!==o||(this.onEnd(u),!(s.avail_out=0))},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=f,n.deflate=p,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,p(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,p(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,n){"use strict";var r=t("./zlib/inflate"),i=t("./utils/common"),a=t("./utils/strings"),o=t("./zlib/constants"),s=t("./zlib/messages"),c=t("./zlib/zstream"),u=t("./zlib/gzheader"),l=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function d(t,e){var n=new h(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}h.prototype.push=function(t,e){var n,s,c,u,h,d,f=this.strm,p=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof t?f.input=a.binstring2buf(t):"[object ArrayBuffer]"===l.call(t)?f.input=new Uint8Array(t):f.input=t,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(p),f.next_out=0,f.avail_out=p),(n=r.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&g&&(d="string"==typeof g?a.string2buf(g):"[object ArrayBuffer]"===l.call(g)?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,d)),n===o.Z_BUF_ERROR&&!0===m&&(n=o.Z_OK,m=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&n!==o.Z_STREAM_END&&(0!==f.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(c=a.utf8border(f.output,f.next_out),u=f.next_out-c,h=a.buf2string(f.output,c),f.next_out=u,f.avail_out=p-u,u&&i.arraySet(f.output,f.output,c,u,0),this.onData(h)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(m=!0)}while((0<f.avail_in||0===f.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(f.avail_out=0))},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=h,n.inflate=d,n.inflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},n.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var a=0;a<r;a++)t[i+a]=e[n+a]},flattenChunks:function(t){var e,n,r,i,a,o;for(e=r=0,n=t.length;e<n;e++)r+=t[e].length;for(o=new Uint8Array(r),e=i=0,n=t.length;e<n;e++)a=t[e],o.set(a,i),i+=a.length;return o}},a={arraySet:function(t,e,n,r,i){for(var a=0;a<r;a++)t[i+a]=e[n+a]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],42:[function(t,e,n){"use strict";var r=t("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(t,e){if(e<65537&&(t.subarray&&a||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",o=0;o<e;o++)n+=String.fromCharCode(t[o]);return n}o[254]=o[254]=1,n.string2buf=function(t){var e,n,i,a,o,s=t.length,c=0;for(a=0;a<s;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(e=new r.Buf8(c),a=o=0;o<c;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?e[o++]=n:(n<2048?e[o++]=192|n>>>6:(n<65536?e[o++]=224|n>>>12:(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63),e[o++]=128|n>>>6&63),e[o++]=128|63&n);return e},n.buf2binstring=function(t){return c(t,t.length)},n.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n<i;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,r,i,a,s=e||t.length,u=new Array(2*s);for(n=r=0;n<s;)if((i=t[n++])<128)u[r++]=i;else if(4<(a=o[i]))u[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&n<s;)i=i<<6|63&t[n++],a--;1<a?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return c(u,r)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+o[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){"use strict";e.exports=function(t,e,n,r){for(var i=65535&t|0,a=t>>>16&65535|0,o=0;0!==n;){for(n-=o=2e3<n?2e3:n;a=a+(i=i+e[r++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16|0}},{}],44:[function(t,e,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,i){var a=r,o=i+n;t^=-1;for(var s=i;s<o;s++)t=t>>>8^a[255&(t^e[s])];return-1^t}},{}],46:[function(t,e,n){"use strict";var r,i=t("../utils/common"),a=t("./trees"),o=t("./adler32"),s=t("./crc32"),c=t("./messages"),u=0,l=4,h=0,d=-2,f=-1,p=4,g=2,m=8,y=9,v=286,_=30,b=19,w=2*v+1,C=15,A=3,x=258,k=x+A+1,T=42,E=113,S=1,I=2,O=3,B=4;function L(t,e){return t.msg=c[e],e}function P(t){return(t<<1)-(4<t?9:0)}function R(t){for(var e=t.length;0<=--e;)t[e]=0}function j(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function M(t,e){a._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,j(t.strm)}function z(t,e){t.pending_buf[t.pending++]=e}function N(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function D(t,e){var n,r,i=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,c=t.strstart>t.w_size-k?t.strstart-(t.w_size-k):0,u=t.window,l=t.w_mask,h=t.prev,d=t.strstart+x,f=u[a+o-1],p=u[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(u[(n=e)+o]===p&&u[n+o-1]===f&&u[n]===u[a]&&u[++n]===u[a+1]){a+=2,n++;do{}while(u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&a<d);if(r=x-(d-a),a=d-x,o<r){if(t.match_start=e,s<=(o=r))break;f=u[a+o-1],p=u[a+o]}}}while((e=h[e&l])>c&&0!=--i);return o<=t.lookahead?o:t.lookahead}function U(t){var e,n,r,a,c,u,l,h,d,f,p=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-k)){for(i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=n=t.hash_size;r=t.head[--e],t.head[e]=p<=r?r-p:0,--n;);for(e=n=p;r=t.prev[--e],t.prev[e]=p<=r?r-p:0,--n;);a+=p}if(0===t.strm.avail_in)break;if(u=t.strm,l=t.window,h=t.strstart+t.lookahead,d=a,f=void 0,f=u.avail_in,d<f&&(f=d),n=0===f?0:(u.avail_in-=f,i.arraySet(l,u.input,u.next_in,f,h),1===u.state.wrap?u.adler=o(u.adler,l,f,h):2===u.state.wrap&&(u.adler=s(u.adler,l,f,h)),u.next_in+=f,u.total_in+=f,f),t.lookahead+=n,t.lookahead+t.insert>=A)for(c=t.strstart-t.insert,t.ins_h=t.window[c],t.ins_h=(t.ins_h<<t.hash_shift^t.window[c+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[c+A-1])&t.hash_mask,t.prev[c&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=c,c++,t.insert--,!(t.lookahead+t.insert<A)););}while(t.lookahead<k&&0!==t.strm.avail_in)}function $(t,e){for(var n,r;;){if(t.lookahead<k){if(U(t),t.lookahead<k&&e===u)return S;if(0===t.lookahead)break}if(n=0,t.lookahead>=A&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-k&&(t.match_length=D(t,n)),t.match_length>=A)if(r=a._tr_tally(t,t.strstart-t.match_start,t.match_length-A),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=A){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(M(t,!1),0===t.strm.avail_out))return S}return t.insert=t.strstart<A-1?t.strstart:A-1,e===l?(M(t,!0),0===t.strm.avail_out?O:B):t.last_lit&&(M(t,!1),0===t.strm.avail_out)?S:I}function H(t,e){for(var n,r,i;;){if(t.lookahead<k){if(U(t),t.lookahead<k&&e===u)return S;if(0===t.lookahead)break}if(n=0,t.lookahead>=A&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=A-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-k&&(t.match_length=D(t,n),t.match_length<=5&&(1===t.strategy||t.match_length===A&&4096<t.strstart-t.match_start)&&(t.match_length=A-1)),t.prev_length>=A&&t.match_length<=t.prev_length){for(i=t.strstart+t.lookahead-A,r=a._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-A),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=A-1,t.strstart++,r&&(M(t,!1),0===t.strm.avail_out))return S}else if(t.match_available){if((r=a._tr_tally(t,0,t.window[t.strstart-1]))&&M(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return S}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=a._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<A-1?t.strstart:A-1,e===l?(M(t,!0),0===t.strm.avail_out?O:B):t.last_lit&&(M(t,!1),0===t.strm.avail_out)?S:I}function F(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function K(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*w),this.dyn_dtree=new i.Buf16(2*(2*_+1)),this.bl_tree=new i.Buf16(2*(2*b+1)),R(this.dyn_ltree),R(this.dyn_dtree),R(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(C+1),this.heap=new i.Buf16(2*v+1),R(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*v+1),R(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function W(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=g,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?T:E,t.adler=2===e.wrap?0:1,e.last_flush=u,a._tr_init(e),h):L(t,d)}function V(t){var e=W(t);return e===h&&function(t){t.window_size=2*t.w_size,R(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=A-1,t.match_available=0,t.ins_h=0}(t.state),e}function Y(t,e,n,r,a,o){if(!t)return d;var s=1;if(e===f&&(e=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),a<1||y<a||n!==m||r<8||15<r||e<0||9<e||o<0||p<o)return L(t,d);8===r&&(r=9);var c=new K;return(t.state=c).strm=t,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+A-1)/A),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=e,c.strategy=o,c.method=n,V(t)}r=[new F(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(U(t),0===t.lookahead&&e===u)return S;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,M(t,!1),0===t.strm.avail_out))return S;if(t.strstart-t.block_start>=t.w_size-k&&(M(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===l?(M(t,!0),0===t.strm.avail_out?O:B):(t.strstart>t.block_start&&(M(t,!1),t.strm.avail_out),S)})),new F(4,4,8,4,$),new F(4,5,16,8,$),new F(4,6,32,32,$),new F(4,4,16,16,H),new F(8,16,32,32,H),new F(8,16,128,128,H),new F(8,32,128,256,H),new F(32,128,258,1024,H),new F(32,258,258,4096,H)],n.deflateInit=function(t,e){return Y(t,e,m,15,8,0)},n.deflateInit2=Y,n.deflateReset=V,n.deflateResetKeep=W,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?d:(t.state.gzhead=e,h):d},n.deflate=function(t,e){var n,i,o,c;if(!t||!t.state||5<e||e<0)return t?L(t,d):d;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&e!==l)return L(t,0===t.avail_out?-5:d);if(i.strm=t,n=i.last_flush,i.last_flush=e,i.status===T)if(2===i.wrap)t.adler=0,z(i,31),z(i,139),z(i,8),i.gzhead?(z(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),z(i,255&i.gzhead.time),z(i,i.gzhead.time>>8&255),z(i,i.gzhead.time>>16&255),z(i,i.gzhead.time>>24&255),z(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),z(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(z(i,255&i.gzhead.extra.length),z(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(z(i,0),z(i,0),z(i,0),z(i,0),z(i,0),z(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),z(i,3),i.status=E);else{var f=m+(i.w_bits-8<<4)<<8;f|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=E,N(i,f),0!==i.strstart&&(N(i,t.adler>>>16),N(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),j(t),o=i.pending,i.pending!==i.pending_buf_size));)z(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),j(t),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,z(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),j(t),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,z(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&j(t),i.pending+2<=i.pending_buf_size&&(z(i,255&t.adler),z(i,t.adler>>8&255),t.adler=0,i.status=E)):i.status=E),0!==i.pending){if(j(t),0===t.avail_out)return i.last_flush=-1,h}else if(0===t.avail_in&&P(e)<=P(n)&&e!==l)return L(t,-5);if(666===i.status&&0!==t.avail_in)return L(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==u&&666!==i.status){var p=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(U(t),0===t.lookahead)){if(e===u)return S;break}if(t.match_length=0,n=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(M(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===l?(M(t,!0),0===t.strm.avail_out?O:B):t.last_lit&&(M(t,!1),0===t.strm.avail_out)?S:I}(i,e):3===i.strategy?function(t,e){for(var n,r,i,o,s=t.window;;){if(t.lookahead<=x){if(U(t),t.lookahead<=x&&e===u)return S;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=A&&0<t.strstart&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=t.strstart+x;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);t.match_length=x-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=A?(n=a._tr_tally(t,1,t.match_length-A),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(M(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===l?(M(t,!0),0===t.strm.avail_out?O:B):t.last_lit&&(M(t,!1),0===t.strm.avail_out)?S:I}(i,e):r[i.level].func(i,e);if(p!==O&&p!==B||(i.status=666),p===S||p===O)return 0===t.avail_out&&(i.last_flush=-1),h;if(p===I&&(1===e?a._tr_align(i):5!==e&&(a._tr_stored_block(i,0,0,!1),3===e&&(R(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),j(t),0===t.avail_out))return i.last_flush=-1,h}return e!==l?h:i.wrap<=0?1:(2===i.wrap?(z(i,255&t.adler),z(i,t.adler>>8&255),z(i,t.adler>>16&255),z(i,t.adler>>24&255),z(i,255&t.total_in),z(i,t.total_in>>8&255),z(i,t.total_in>>16&255),z(i,t.total_in>>24&255)):(N(i,t.adler>>>16),N(i,65535&t.adler)),j(t),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?h:1)},n.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==T&&69!==e&&73!==e&&91!==e&&103!==e&&e!==E&&666!==e?L(t,d):(t.state=null,e===E?L(t,-3):h):d},n.deflateSetDictionary=function(t,e){var n,r,a,s,c,u,l,f,p=e.length;if(!t||!t.state)return d;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==T||n.lookahead)return d;for(1===s&&(t.adler=o(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(R(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,e,p-n.w_size,n.w_size,0),e=f,p=n.w_size),c=t.avail_in,u=t.next_in,l=t.input,t.avail_in=p,t.next_in=0,t.input=e,U(n);n.lookahead>=A;){for(r=n.strstart,a=n.lookahead-(A-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+A-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--a;);n.strstart=r,n.lookahead=A-1,U(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=A-1,n.match_available=0,t.next_in=u,t.input=l,t.avail_in=c,n.wrap=s,h},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,n){"use strict";e.exports=function(t,e){var n,r,i,a,o,s,c,u,l,h,d,f,p,g,m,y,v,_,b,w,C,A,x,k,T;n=t.state,r=t.next_in,k=t.input,i=r+(t.avail_in-5),a=t.next_out,T=t.output,o=a-(e-t.avail_out),s=a+(t.avail_out-257),c=n.dmax,u=n.wsize,l=n.whave,h=n.wnext,d=n.window,f=n.hold,p=n.bits,g=n.lencode,m=n.distcode,y=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;t:do{p<15&&(f+=k[r++]<<p,p+=8,f+=k[r++]<<p,p+=8),_=g[f&y];e:for(;;){if(f>>>=b=_>>>24,p-=b,0===(b=_>>>16&255))T[a++]=65535&_;else{if(!(16&b)){if(0==(64&b)){_=g[(65535&_)+(f&(1<<b)-1)];continue e}if(32&b){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&_,(b&=15)&&(p<b&&(f+=k[r++]<<p,p+=8),w+=f&(1<<b)-1,f>>>=b,p-=b),p<15&&(f+=k[r++]<<p,p+=8,f+=k[r++]<<p,p+=8),_=m[f&v];n:for(;;){if(f>>>=b=_>>>24,p-=b,!(16&(b=_>>>16&255))){if(0==(64&b)){_=m[(65535&_)+(f&(1<<b)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(C=65535&_,p<(b&=15)&&(f+=k[r++]<<p,(p+=8)<b&&(f+=k[r++]<<p,p+=8)),c<(C+=f&(1<<b)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(f>>>=b,p-=b,(b=a-o)<C){if(l<(b=C-b)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(x=d,(A=0)===h){if(A+=u-b,b<w){for(w-=b;T[a++]=d[A++],--b;);A=a-C,x=T}}else if(h<b){if(A+=u+h-b,(b-=h)<w){for(w-=b;T[a++]=d[A++],--b;);if(A=0,h<w){for(w-=b=h;T[a++]=d[A++],--b;);A=a-C,x=T}}}else if(A+=h-b,b<w){for(w-=b;T[a++]=d[A++],--b;);A=a-C,x=T}for(;2<w;)T[a++]=x[A++],T[a++]=x[A++],T[a++]=x[A++],w-=3;w&&(T[a++]=x[A++],1<w&&(T[a++]=x[A++]))}else{for(A=a-C;T[a++]=T[A++],T[a++]=T[A++],T[a++]=T[A++],2<(w-=3););w&&(T[a++]=T[A++],1<w&&(T[a++]=T[A++]))}break}}break}}while(r<i&&a<s);r-=w=p>>3,f&=(1<<(p-=w<<3))-1,t.next_in=r,t.next_out=a,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=a<s?s-a+257:257-(a-s),n.hold=f,n.bits=p}},{}],49:[function(t,e,n){"use strict";var r=t("../utils/common"),i=t("./adler32"),a=t("./crc32"),o=t("./inffast"),s=t("./inftrees"),c=1,u=2,l=0,h=-2,d=1,f=852,p=592;function g(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function y(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=d,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(f),e.distcode=e.distdyn=new r.Buf32(p),e.sane=1,e.back=-1,l):h}function v(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,y(t)):h}function _(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?h:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,v(t))):h}function b(t,e){var n,r;return t?(r=new m,(t.state=r).window=null,(n=_(t,e))!==l&&(t.state=null),n):h}var w,C,A=!0;function x(t){if(A){var e;for(w=new r.Buf32(512),C=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(c,t.lens,0,288,w,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(u,t.lens,0,32,C,0,t.work,{bits:5}),A=!1}t.lencode=w,t.lenbits=9,t.distcode=C,t.distbits=5}function k(t,e,n,i){var a,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,e,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,e,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=v,n.inflateReset2=_,n.inflateResetKeep=y,n.inflateInit=function(t){return b(t,15)},n.inflateInit2=b,n.inflate=function(t,e){var n,f,p,m,y,v,_,b,w,C,A,T,E,S,I,O,B,L,P,R,j,M,z,N,D=0,U=new r.Buf8(4),$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;12===(n=t.state).mode&&(n.mode=13),y=t.next_out,p=t.output,_=t.avail_out,m=t.next_in,f=t.input,v=t.avail_in,b=n.hold,w=n.bits,C=v,A=_,M=l;t:for(;;)switch(n.mode){case d:if(0===n.wrap){n.mode=13;break}for(;w<16;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if(2&n.wrap&&35615===b){U[n.check=0]=255&b,U[1]=b>>>8&255,n.check=a(n.check,U,2,0),w=b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&b)){t.msg="unknown compression method",n.mode=30;break}if(w-=4,j=8+(15&(b>>>=4)),0===n.wbits)n.wbits=j;else if(j>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<j,t.adler=n.check=1,n.mode=512&b?10:12,w=b=0;break;case 2:for(;w<16;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if(n.flags=b,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(U[0]=255&b,U[1]=b>>>8&255,n.check=a(n.check,U,2,0)),w=b=0,n.mode=3;case 3:for(;w<32;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}n.head&&(n.head.time=b),512&n.flags&&(U[0]=255&b,U[1]=b>>>8&255,U[2]=b>>>16&255,U[3]=b>>>24&255,n.check=a(n.check,U,4,0)),w=b=0,n.mode=4;case 4:for(;w<16;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(U[0]=255&b,U[1]=b>>>8&255,n.check=a(n.check,U,2,0)),w=b=0,n.mode=5;case 5:if(1024&n.flags){for(;w<16;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(U[0]=255&b,U[1]=b>>>8&255,n.check=a(n.check,U,2,0)),w=b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(v<(T=n.length)&&(T=v),T&&(n.head&&(j=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,f,m,T,j)),512&n.flags&&(n.check=a(n.check,f,T,m)),v-=T,m+=T,n.length-=T),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===v)break t;for(T=0;j=f[m+T++],n.head&&j&&n.length<65536&&(n.head.name+=String.fromCharCode(j)),j&&T<v;);if(512&n.flags&&(n.check=a(n.check,f,T,m)),v-=T,m+=T,j)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===v)break t;for(T=0;j=f[m+T++],n.head&&j&&n.length<65536&&(n.head.comment+=String.fromCharCode(j)),j&&T<v;);if(512&n.flags&&(n.check=a(n.check,f,T,m)),v-=T,m+=T,j)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;w<16;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if(b!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}w=b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;w<32;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}t.adler=n.check=g(b),w=b=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=y,t.avail_out=_,t.next_in=m,t.avail_in=v,n.hold=b,n.bits=w,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){b>>>=7&w,w-=7&w,n.mode=27;break}for(;w<3;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}switch(n.last=1&b,w-=1,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(x(n),n.mode=20,6!==e)break;b>>>=2,w-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}b>>>=2,w-=2;break;case 14:for(b>>>=7&w,w-=7&w;w<32;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if((65535&b)!=(b>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,w=b=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(T=n.length){if(v<T&&(T=v),_<T&&(T=_),0===T)break t;r.arraySet(p,f,m,T,y),v-=T,m+=T,_-=T,y+=T,n.length-=T;break}n.mode=12;break;case 17:for(;w<14;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if(n.nlen=257+(31&b),b>>>=5,w-=5,n.ndist=1+(31&b),b>>>=5,w-=5,n.ncode=4+(15&b),b>>>=4,w-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;w<3;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}n.lens[$[n.have++]]=7&b,b>>>=3,w-=3}for(;n.have<19;)n.lens[$[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,z={bits:n.lenbits},M=s(0,n.lens,0,19,n.lencode,0,n.work,z),n.lenbits=z.bits,M){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;O=(D=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,B=65535&D,!((I=D>>>24)<=w);){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if(B<16)b>>>=I,w-=I,n.lens[n.have++]=B;else{if(16===B){for(N=I+2;w<N;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if(b>>>=I,w-=I,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}j=n.lens[n.have-1],T=3+(3&b),b>>>=2,w-=2}else if(17===B){for(N=I+3;w<N;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}w-=I,j=0,T=3+(7&(b>>>=I)),b>>>=3,w-=3}else{for(N=I+7;w<N;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}w-=I,j=0,T=11+(127&(b>>>=I)),b>>>=7,w-=7}if(n.have+T>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;T--;)n.lens[n.have++]=j}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,z={bits:n.lenbits},M=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,z),n.lenbits=z.bits,M){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,z={bits:n.distbits},M=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,z),n.distbits=z.bits,M){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=v&&258<=_){t.next_out=y,t.avail_out=_,t.next_in=m,t.avail_in=v,n.hold=b,n.bits=w,o(t,A),y=t.next_out,p=t.output,_=t.avail_out,m=t.next_in,f=t.input,v=t.avail_in,b=n.hold,w=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;O=(D=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,B=65535&D,!((I=D>>>24)<=w);){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if(O&&0==(240&O)){for(L=I,P=O,R=B;O=(D=n.lencode[R+((b&(1<<L+P)-1)>>L)])>>>16&255,B=65535&D,!(L+(I=D>>>24)<=w);){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}b>>>=L,w-=L,n.back+=L}if(b>>>=I,w-=I,n.back+=I,n.length=B,0===O){n.mode=26;break}if(32&O){n.back=-1,n.mode=12;break}if(64&O){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&O,n.mode=22;case 22:if(n.extra){for(N=n.extra;w<N;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,w-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;O=(D=n.distcode[b&(1<<n.distbits)-1])>>>16&255,B=65535&D,!((I=D>>>24)<=w);){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if(0==(240&O)){for(L=I,P=O,R=B;O=(D=n.distcode[R+((b&(1<<L+P)-1)>>L)])>>>16&255,B=65535&D,!(L+(I=D>>>24)<=w);){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}b>>>=L,w-=L,n.back+=L}if(b>>>=I,w-=I,n.back+=I,64&O){t.msg="invalid distance code",n.mode=30;break}n.offset=B,n.extra=15&O,n.mode=24;case 24:if(n.extra){for(N=n.extra;w<N;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,w-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===_)break t;if(T=A-_,n.offset>T){if((T=n.offset-T)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}E=T>n.wnext?(T-=n.wnext,n.wsize-T):n.wnext-T,T>n.length&&(T=n.length),S=n.window}else S=p,E=y-n.offset,T=n.length;for(_<T&&(T=_),_-=T,n.length-=T;p[y++]=S[E++],--T;);0===n.length&&(n.mode=21);break;case 26:if(0===_)break t;p[y++]=n.length,_--,n.mode=21;break;case 27:if(n.wrap){for(;w<32;){if(0===v)break t;v--,b|=f[m++]<<w,w+=8}if(A-=_,t.total_out+=A,n.total+=A,A&&(t.adler=n.check=n.flags?a(n.check,p,A,y-A):i(n.check,p,A,y-A)),A=_,(n.flags?b:g(b))!==n.check){t.msg="incorrect data check",n.mode=30;break}w=b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;w<32;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if(b!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}w=b=0}n.mode=29;case 29:M=1;break t;case 30:M=-3;break t;case 31:return-4;case 32:default:return h}return t.next_out=y,t.avail_out=_,t.next_in=m,t.avail_in=v,n.hold=b,n.bits=w,(n.wsize||A!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&k(t,t.output,t.next_out,A-t.avail_out)?(n.mode=31,-4):(C-=t.avail_in,A-=t.avail_out,t.total_in+=C,t.total_out+=A,n.total+=A,n.wrap&&A&&(t.adler=n.check=n.flags?a(n.check,p,A,t.next_out-A):i(n.check,p,A,t.next_out-A)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==C&&0===A||4===e)&&M===l&&(M=-5),M)},n.inflateEnd=function(t){if(!t||!t.state)return h;var e=t.state;return e.window&&(e.window=null),t.state=null,l},n.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?h:((n.head=e).done=!1,l):h},n.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?h:11===n.mode&&i(1,e,r,0)!==n.check?-3:k(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,l):h},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,n){"use strict";var r=t("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,n,c,u,l,h,d){var f,p,g,m,y,v,_,b,w,C=d.bits,A=0,x=0,k=0,T=0,E=0,S=0,I=0,O=0,B=0,L=0,P=null,R=0,j=new r.Buf16(16),M=new r.Buf16(16),z=null,N=0;for(A=0;A<=15;A++)j[A]=0;for(x=0;x<c;x++)j[e[n+x]]++;for(E=C,T=15;1<=T&&0===j[T];T--);if(T<E&&(E=T),0===T)return u[l++]=20971520,u[l++]=20971520,d.bits=1,0;for(k=1;k<T&&0===j[k];k++);for(E<k&&(E=k),A=O=1;A<=15;A++)if(O<<=1,(O-=j[A])<0)return-1;if(0<O&&(0===t||1!==T))return-1;for(M[1]=0,A=1;A<15;A++)M[A+1]=M[A]+j[A];for(x=0;x<c;x++)0!==e[n+x]&&(h[M[e[n+x]]++]=x);if(v=0===t?(P=z=h,19):1===t?(P=i,R-=257,z=a,N-=257,256):(P=o,z=s,-1),A=k,y=l,I=x=L=0,g=-1,m=(B=1<<(S=E))-1,1===t&&852<B||2===t&&592<B)return 1;for(;;){for(_=A-I,w=h[x]<v?(b=0,h[x]):h[x]>v?(b=z[N+h[x]],P[R+h[x]]):(b=96,0),f=1<<A-I,k=p=1<<S;u[y+(L>>I)+(p-=f)]=_<<24|b<<16|w|0,0!==p;);for(f=1<<A-1;L&f;)f>>=1;if(0!==f?(L&=f-1,L+=f):L=0,x++,0==--j[A]){if(A===T)break;A=e[n+h[x]]}if(E<A&&(L&m)!==g){for(0===I&&(I=E),y+=k,O=1<<(S=A-I);S+I<T&&!((O-=j[S+I])<=0);)S++,O<<=1;if(B+=1<<S,1===t&&852<B||2===t&&592<B)return 1;u[g=L&m]=E<<24|S<<16|y-l|0}}return 0!==L&&(u[y+L]=A-I<<24|64<<16|0),d.bits=E,0}},{"../utils/common":41}],51:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,n){"use strict";var r=t("../utils/common"),i=0,a=1;function o(t){for(var e=t.length;0<=--e;)t[e]=0}var s=0,c=29,u=256,l=u+1+c,h=30,d=19,f=2*l+1,p=15,g=16,m=7,y=256,v=16,_=17,b=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(l+2));o(k);var T=new Array(2*h);o(T);var E=new Array(512);o(E);var S=new Array(256);o(S);var I=new Array(c);o(I);var O,B,L,P=new Array(h);function R(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function j(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function M(t){return t<256?E[t]:E[256+(t>>>7)]}function z(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function N(t,e,n){t.bi_valid>g-n?(t.bi_buf|=e<<t.bi_valid&65535,z(t,t.bi_buf),t.bi_buf=e>>g-t.bi_valid,t.bi_valid+=n-g):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function D(t,e,n){N(t,n[2*e],n[2*e+1])}function U(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}function $(t,e,n){var r,i,a=new Array(p+1),o=0;for(r=1;r<=p;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=U(a[s]++,s))}}function H(t){var e;for(e=0;e<l;e++)t.dyn_ltree[2*e]=0;for(e=0;e<h;e++)t.dyn_dtree[2*e]=0;for(e=0;e<d;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*y]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function F(t){8<t.bi_valid?z(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function K(t,e,n,r){var i=2*e,a=2*n;return t[i]<t[a]||t[i]===t[a]&&r[e]<=r[n]}function W(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&K(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!K(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function V(t,e,n){var r,i,a,o,s=0;if(0!==t.last_lit)for(;r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===r?D(t,i,e):(D(t,(a=S[i])+u+1,e),0!==(o=w[a])&&N(t,i-=I[a],o),D(t,a=M(--r),n),0!==(o=C[a])&&N(t,r-=P[a],o)),s<t.last_lit;);D(t,y,e)}function Y(t,e){var n,r,i,a=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,c=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=f,n=0;n<c;n++)0!==a[2*n]?(t.heap[++t.heap_len]=u=n,t.depth[n]=0):a[2*n+1]=0;for(;t.heap_len<2;)a[2*(i=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=o[2*i+1]);for(e.max_code=u,n=t.heap_len>>1;1<=n;n--)W(t,a,n);for(i=c;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],W(t,a,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,a[2*i]=a[2*n]+a[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,a[2*n+1]=a[2*r+1]=i,t.heap[1]=i++,W(t,a,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,a,o,s,c=e.dyn_tree,u=e.max_code,l=e.stat_desc.static_tree,h=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,g=e.stat_desc.extra_base,m=e.stat_desc.max_length,y=0;for(a=0;a<=p;a++)t.bl_count[a]=0;for(c[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<f;n++)m<(a=c[2*c[2*(r=t.heap[n])+1]+1]+1)&&(a=m,y++),c[2*r+1]=a,u<r||(t.bl_count[a]++,o=0,g<=r&&(o=d[r-g]),s=c[2*r],t.opt_len+=s*(a+o),h&&(t.static_len+=s*(l[2*r+1]+o)));if(0!==y){do{for(a=m-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[m]--,y-=2}while(0<y);for(a=m;0!==a;a--)for(r=t.bl_count[a];0!==r;)u<(i=t.heap[--n])||(c[2*i+1]!==a&&(t.opt_len+=(a-c[2*i+1])*c[2*i],c[2*i+1]=a),r--)}}(t,e),$(a,u,t.bl_count)}function Z(t,e,n){var r,i,a=-1,o=e[1],s=0,c=7,u=4;for(0===o&&(c=138,u=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=e[2*(r+1)+1],++s<c&&i===o||(s<u?t.bl_tree[2*i]+=s:0!==i?(i!==a&&t.bl_tree[2*i]++,t.bl_tree[2*v]++):s<=10?t.bl_tree[2*_]++:t.bl_tree[2*b]++,a=i,u=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4))}function G(t,e,n){var r,i,a=-1,o=e[1],s=0,c=7,u=4;for(0===o&&(c=138,u=3),r=0;r<=n;r++)if(i=o,o=e[2*(r+1)+1],!(++s<c&&i===o)){if(s<u)for(;D(t,i,t.bl_tree),0!=--s;);else 0!==i?(i!==a&&(D(t,i,t.bl_tree),s--),D(t,v,t.bl_tree),N(t,s-3,2)):s<=10?(D(t,_,t.bl_tree),N(t,s-3,3)):(D(t,b,t.bl_tree),N(t,s-11,7));a=i,u=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4)}}o(P);var Q=!1;function X(t,e,n,i){N(t,(s<<1)+(i?1:0),3),function(t,e,n,i){F(t),i&&(z(t,n),z(t,~n)),r.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}n._tr_init=function(t){Q||(function(){var t,e,n,r,i,a=new Array(p+1);for(r=n=0;r<c-1;r++)for(I[r]=n,t=0;t<1<<w[r];t++)S[n++]=r;for(S[n-1]=r,r=i=0;r<16;r++)for(P[r]=i,t=0;t<1<<C[r];t++)E[i++]=r;for(i>>=7;r<h;r++)for(P[r]=i<<7,t=0;t<1<<C[r]-7;t++)E[256+i++]=r;for(e=0;e<=p;e++)a[e]=0;for(t=0;t<=143;)k[2*t+1]=8,t++,a[8]++;for(;t<=255;)k[2*t+1]=9,t++,a[9]++;for(;t<=279;)k[2*t+1]=7,t++,a[7]++;for(;t<=287;)k[2*t+1]=8,t++,a[8]++;for($(k,l+1,a),t=0;t<h;t++)T[2*t+1]=5,T[2*t]=U(t,5);O=new R(k,w,u+1,l,p),B=new R(T,C,0,h,p),L=new R(new Array(0),A,0,d,m)}(),Q=!0),t.l_desc=new j(t.dyn_ltree,O),t.d_desc=new j(t.dyn_dtree,B),t.bl_desc=new j(t.bl_tree,L),t.bi_buf=0,t.bi_valid=0,H(t)},n._tr_stored_block=X,n._tr_flush_block=function(t,e,n,r){var o,s,c=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return i;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return a;for(e=32;e<u;e++)if(0!==t.dyn_ltree[2*e])return a;return i}(t)),Y(t,t.l_desc),Y(t,t.d_desc),c=function(t){var e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=d-1;3<=e&&0===t.bl_tree[2*x[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),o=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=o&&(o=s)):o=s=n+5,n+4<=o&&-1!==e?X(t,e,n,r):4===t.strategy||s===o?(N(t,2+(r?1:0),3),V(t,k,T)):(N(t,4+(r?1:0),3),function(t,e,n,r){var i;for(N(t,e-257,5),N(t,n-1,5),N(t,r-4,4),i=0;i<r;i++)N(t,t.bl_tree[2*x[i]+1],3);G(t,t.dyn_ltree,e-1),G(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,c+1),V(t,t.dyn_ltree,t.dyn_dtree)),H(t),r&&F(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(S[n]+u+1)]++,t.dyn_dtree[2*M(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){N(t,2,3),D(t,y,k),function(t){16===t.bi_valid?(z(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,i){(function(t){!function(t,e){"use strict";if(!t.setImmediate){var n,i,a,o,s=1,c={},u=!1,l=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,n="[object process]"==={}.toString.call(t.process)?function(t){r.nextTick((function(){f(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(o="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",p,!1):t.attachEvent("onmessage",p),function(e){t.postMessage(o+e,"*")}):t.MessageChannel?((a=new MessageChannel).port1.onmessage=function(t){f(t.data)},function(t){a.port2.postMessage(t)}):l&&"onreadystatechange"in l.createElement("script")?(i=l.documentElement,function(t){var e=l.createElement("script");e.onreadystatechange=function(){f(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):function(t){setTimeout(f,0,t)},h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var i={callback:t,args:e};return c[s]=i,n(s),s++},h.clearImmediate=d}function d(t){delete c[t]}function f(t){if(u)setTimeout(f,0,t);else{var n=c[t];if(n){u=!0;try{!function(t){var n=t.callback,r=t.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(e,r)}}(n)}finally{d(t),u=!1}}}}function p(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&f(+e.data.slice(o.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))}).call(this,n("b639").Buffer,n("c8ba"),n("4362"))},c65b:function(t,e,n){var r=n("40d5"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},c6b6:function(t,e,n){var r=n("e330"),i=r({}.toString),a=r("".slice);t.exports=function(t){return a(i(t),8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("6374"),a="__core-js_shared__",o=r[a]||i(a,{});t.exports=o},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("e330"),i=n("1a2d"),a=n("fc6a"),o=n("4d64").indexOf,s=n("d012"),c=r([].push);t.exports=function(t,e){var n,r=a(t),u=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&c(l,n);while(e.length>u)i(r,n=e[u++])&&(~o(l,n)||c(l,n));return l}},cb2d:function(t,e,n){var r=n("1626"),i=n("9bf2"),a=n("13d2"),o=n("6374");t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:e;if(r(n)&&a(n,u,s),s.global)c?t[e]=n:o(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(l){}c?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),a=r.document,o=i(a)&&i(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},cdce:function(t,e,n){var r=n("da84"),i=n("1626"),a=r.WeakMap;t.exports=i(a)&&/native code/.test(String(a))},cf03:function(t,e){t.exports=require("jspdf")},cf98:function(t,e){t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("da84"),i=n("1626"),a=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(r[t]):r[t]&&r[t][e]}},d09a:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAA7CAYAAAD4t5PVAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMxMjY3MzVCQjg5NDExRThCQjk3QzA4MjU5MzUzOTlGIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMxMjY3MzVDQjg5NDExRThCQjk3QzA4MjU5MzUzOTlGIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzEyNjczNTlCODk0MTFFOEJCOTdDMDgyNTkzNTM5OUYiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzEyNjczNUFCODk0MTFFOEJCOTdDMDgyNTkzNTM5OUYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5Q419BAAAAtElEQVR42uzYsQ1CIRRG4XfNa2ydwSWsHcDCJSwcw8YRXmvtMM5ghQMQChL0zWBBTsi5Cf0X7s8NECml7wStzQQuceLEiRMnTpw4Rs2ttSMVF7VW7s7lnLm4UgoXFxFPLG5dZ0eJuM6Zu2KH8Prit63/tvVGbqsfOeJ6H4i7c27Eth7IuAcZtzdzIx6IFxl3IuPeZNyWjLt42XTOdc5cIeMWL5sjZm5Hxn3IuNnMietYPwEGAG5/KFS7aqTUAAAAAElFTkSuQmCC"},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);e.f=a?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d2bb:function(t,e,n){var r=n("7282"),i=n("825a"),a=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(o){}return function(n,r){return i(n),a(r),e?t(n,r):n.__proto__=r,n}}():void 0)},d429:function(t,e,n){var r=n("07fa"),i=n("5926"),a=RangeError;t.exports=function(t,e,n,o){var s=r(t),c=i(n),u=c<0?s+c:c;if(u>=s||u<0)throw a("Incorrect index");for(var l=new e(s),h=0;h<s;h++)l[h]=h===u?o:t[h];return l}},d4ec:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("d9e2");function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},d58f:function(t,e,n){var r=n("59ed"),i=n("7b0b"),a=n("44ad"),o=n("07fa"),s=TypeError,c=function(t){return function(e,n,c,u){r(n);var l=i(e),h=a(l),d=o(l),f=t?d-1:0,p=t?-1:1;if(c<2)while(1){if(f in h){u=h[f],f+=p;break}if(f+=p,t?f<0:d<=f)throw s("Reduce of empty array with no initial value")}for(;t?f>=0:d>f;f+=p)f in h&&(u=n(u,h[f],f,l));return u}};t.exports={left:c(!1),right:c(!0)}},d9b5:function(t,e,n){var r=n("d066"),i=n("1626"),a=n("3a9b"),o=n("fdbf"),s=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&a(e.prototype,s(t))}},d9e2:function(t,e,n){var r=n("23e7"),i=n("da84"),a=n("2ba4"),o=n("e5cb"),s="WebAssembly",c=i[s],u=7!==Error("e",{cause:7}).cause,l=function(t,e){var n={};n[t]=o(t,e,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},h=function(t,e){if(c&&c[t]){var n={};n[t]=o(s+"."+t,e,u),r({target:s,stat:!0,constructor:!0,arity:1,forced:u},n)}};l("Error",(function(t){return function(e){return a(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return a(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return a(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return a(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return a(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return a(t,this,arguments)}})),l("URIError",(function(t){return function(e){return a(t,this,arguments)}})),h("CompileError",(function(t){return function(e){return a(t,this,arguments)}})),h("LinkError",(function(t){return function(e){return a(t,this,arguments)}})),h("RuntimeError",(function(t){return function(e){return a(t,this,arguments)}}))},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this,n("c8ba"))},dc4a:function(t,e,n){var r=n("59ed"),i=n("7234");t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}function i(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}e.resolve=function(){for(var e="",r=!1,a=arguments.length-1;a>=-1&&!r;a--){var o=a>=0?arguments[a]:t.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,r="/"===o.charAt(0))}return e=n(i(e.split("/"),(function(t){return!!t})),!r).join("/"),(r?"/":"")+e||"."},e.normalize=function(t){var r=e.isAbsolute(t),o="/"===a(t,-1);return t=n(i(t.split("/"),(function(t){return!!t})),!r).join("/"),t||r||(t="."),t&&o&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),s=o,c=0;c<o;c++)if(i[c]!==a[c]){s=c;break}var u=[];for(c=s;c<i.length;c++)u.push("..");return u=u.concat(a.slice(s)),u.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,r=-1,i=!0,a=t.length-1;a>=1;--a)if(e=t.charCodeAt(a),47===e){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=r(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,a=0,o=t.length-1;o>=0;--o){var s=t.charCodeAt(o);if(47!==s)-1===r&&(i=!1,r=o+1),46===s?-1===e?e=o:1!==a&&(a=1):-1!==e&&(a=-1);else if(!i){n=o+1;break}}return-1===e||-1===r||0===a||1===a&&e===r-1&&e===n+1?"":t.slice(e,r)};var a="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},df7e:function(t,e,n){var r=n("07fa");t.exports=function(t,e){for(var n=r(t),i=new e(n),a=0;a<n;a++)i[a]=t[n-a-1];return i}},dfb9:function(t,e,n){var r=n("07fa");t.exports=function(t,e){var n=0,i=r(e),a=new t(i);while(i>n)a[n]=e[n++];return a}},e163:function(t,e,n){var r=n("1a2d"),i=n("1626"),a=n("7b0b"),o=n("f772"),s=n("e177"),c=o("IE_PROTO"),u=Object,l=u.prototype;t.exports=s?u.getPrototypeOf:function(t){var e=a(t);if(r(e,c))return e[c];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof u?l:null}},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e330:function(t,e,n){var r=n("40d5"),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);t.exports=r?o:function(t){return function(){return a.apply(t,arguments)}}},e391:function(t,e,n){var r=n("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e5cb:function(t,e,n){"use strict";var r=n("d066"),i=n("1a2d"),a=n("9112"),o=n("3a9b"),s=n("d2bb"),c=n("e893"),u=n("aeb0"),l=n("7156"),h=n("e391"),d=n("ab36"),f=n("6f19"),p=n("83ab"),g=n("c430");t.exports=function(t,e,n,m){var y="stackTraceLimit",v=m?2:1,_=t.split("."),b=_[_.length-1],w=r.apply(null,_);if(w){var C=w.prototype;if(!g&&i(C,"cause")&&delete C.cause,!n)return w;var A=r("Error"),x=e((function(t,e){var n=h(m?e:t,void 0),r=m?new w(t):new w;return void 0!==n&&a(r,"message",n),f(r,x,r.stack,2),this&&o(C,this)&&l(r,this,x),arguments.length>v&&d(r,arguments[v]),r}));if(x.prototype=C,"Error"!==b?s?s(x,A):c(x,A,{name:!0}):p&&y in w&&(u(x,w,y),u(x,w,"prepareStackTrace")),c(x,w),!g)try{C.name!==b&&a(C,"name",b),C.constructor=x}catch(k){}return x}}},e6c4:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{class:["ac-basicInfo",t.layout>2?"ac-module__ThreeColumn":"ac-module__column"]},[t.hideTitle?t._e():e("div",{staticClass:"ac-basicInfo__title"},[e("div",{staticClass:"ac-basicInfo__title-inner",attrs:{id:"paper-title__ele",contentEditable:""},domProps:{innerHTML:t._s(t.$store.getters["AC/title"])},on:{blur:t.titleBlurEvent}})]),t.hideStudentInfo?t._e():[e("div",{staticClass:"ac-info__vertical--layout ac-basic-info__edu is-lattice__no-padding"},[e("div",{staticClass:"ac-info__area"},[e("ul",{staticClass:"info-area__three--column",style:{"--columns":3}},t._l(t.$store.getters["AC/studentInfo"],(function(n,r){return e("li",{key:r,attrs:{"data-export_name":n.scanName||""}},[e("span",[t._v(t._s(n.label||n))]),e("div",{staticClass:"line"})])})),0)])])]],2)},i=[],a={name:"AcBasicInfo",components:{},props:{hideTitle:{type:Boolean,default:!1},hideStudentInfo:{type:Boolean,default:!1}},computed:{answerMode:function(){return this.$store.getters["AC/answerCardMode"]},layout:function(){return this.$store.getters["AC/layout"]}},methods:{titleBlurEvent:function(t){var e=Number(getComputedStyle(t.target).lineHeight.replace("px",""))||0;t.target.scrollHeight>=3*e?(this.$message.error("内容不得超过两行,请进行删减!"),document.getElementById("paper-title__ele").focus()):(t.currentTarget.innerText||(t.currentTarget.innerText="请输入试卷名称",this.$message.error("试卷标题不能为空!"),document.getElementById("paper-title__ele").focus()),this.$store.dispatch("AC/paper/setTitle",t.currentTarget.innerHTML))}}},o=a,s=n("2877"),c=Object(s["a"])(o,r,i,!1,null,null,null),u=c.exports;u.install=function(t){t.component(u.name,u)};e["default"]=u},e893:function(t,e,n){var r=n("1a2d"),i=n("56ef"),a=n("06cf"),o=n("9bf2");t.exports=function(t,e,n){for(var s=i(e),c=o.f,u=a.f,l=0;l<s.length;l++){var h=s[l];r(t,h)||n&&r(n,h)||c(t,h,u(e,h))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},eb33:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFwAAAA7CAYAAAD2Hu26AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjE2REY5RTJGQjg5NDExRThBM0RBODA4NjVDNEYwRDBFIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjE2REY5RTMwQjg5NDExRThBM0RBODA4NjVDNEYwRDBFIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MTZERjlFMkRCODk0MTFFOEEzREE4MDg2NUM0RjBEMEUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MTZERjlFMkVCODk0MTFFOEEzREE4MDg2NUM0RjBEMEUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7FbkwxAAABJklEQVR42uya0QnCMBRFG+kO+W9HaFfRFTqTHaFdRUew38kUUUHwVx5qbh/ngPhjIPfwuI2kbUqpNNqEGOPHP845P79kMx0aQDjCAeEIB4QjHBCOcIQDwhEOCEc4ILwC7eMTHOaSzRRKKYzdPyf8dUMijeHGhw6Hd4fL32ka1nCnCQhHOMLhJw/N0WGuUVn41aFw2UxUSoUJP4vvcTKskc0UeJmTSuFYCAjf9UNzdZhrVRZ+cihcNhOVUmHCO/E9boY1nbLwm/o53LBGNhOVgnCEA8L3fUrpHebqlYVvDoXLZqJSKkz44vBv+qIs/OhwkGQzUSkIRzh8ucNnh7lmZeGTQ+GymaiUChM+iO/R8traoCz8Ii7ccgEhm4lKQTjCAeH75S7AADezLGDii6+LAAAAAElFTkSuQmCC"},ebb5:function(t,e,n){"use strict";var r,i,a,o=n("4b11"),s=n("83ab"),c=n("da84"),u=n("1626"),l=n("861d"),h=n("1a2d"),d=n("f5df"),f=n("0d51"),p=n("9112"),g=n("cb2d"),m=n("edd0"),y=n("3a9b"),v=n("e163"),_=n("d2bb"),b=n("b622"),w=n("90e3"),C=n("69f3"),A=C.enforce,x=C.get,k=c.Int8Array,T=k&&k.prototype,E=c.Uint8ClampedArray,S=E&&E.prototype,I=k&&v(k),O=T&&v(T),B=Object.prototype,L=c.TypeError,P=b("toStringTag"),R=w("TYPED_ARRAY_TAG"),j="TypedArrayConstructor",M=o&&!!_&&"Opera"!==d(c.opera),z=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},D={BigInt64Array:8,BigUint64Array:8},U=function(t){if(!l(t))return!1;var e=d(t);return"DataView"===e||h(N,e)||h(D,e)},$=function(t){var e=v(t);if(l(e)){var n=x(e);return n&&h(n,j)?n[j]:$(e)}},H=function(t){if(!l(t))return!1;var e=d(t);return h(N,e)||h(D,e)},F=function(t){if(H(t))return t;throw L("Target is not a typed array")},K=function(t){if(u(t)&&(!_||y(I,t)))return t;throw L(f(t)+" is not a typed array constructor")},W=function(t,e,n,r){if(s){if(n)for(var i in N){var a=c[i];if(a&&h(a.prototype,t))try{delete a.prototype[t]}catch(o){try{a.prototype[t]=e}catch(u){}}}O[t]&&!n||g(O,t,n?e:M&&T[t]||e,r)}},V=function(t,e,n){var r,i;if(s){if(_){if(n)for(r in N)if(i=c[r],i&&h(i,t))try{delete i[t]}catch(a){}if(I[t]&&!n)return;try{return g(I,t,n?e:M&&I[t]||e)}catch(a){}}for(r in N)i=c[r],!i||i[t]&&!n||g(i,t,e)}};for(r in N)i=c[r],a=i&&i.prototype,a?A(a)[j]=i:M=!1;for(r in D)i=c[r],a=i&&i.prototype,a&&(A(a)[j]=i);if((!M||!u(I)||I===Function.prototype)&&(I=function(){throw L("Incorrect invocation")},M))for(r in N)c[r]&&_(c[r],I);if((!M||!O||O===B)&&(O=I.prototype,M))for(r in N)c[r]&&_(c[r].prototype,O);if(M&&v(S)!==O&&_(S,O),s&&!h(O,P))for(r in z=!0,m(O,P,{configurable:!0,get:function(){return l(this)?this[R]:void 0}}),N)c[r]&&p(c[r],R,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:z&&R,aTypedArray:F,aTypedArrayConstructor:K,exportTypedArrayMethod:W,exportTypedArrayStaticMethod:V,getTypedArrayConstructor:$,isView:U,isTypedArray:H,TypedArray:I,TypedArrayPrototype:O}},edd0:function(t,e,n){var r=n("13d2"),i=n("9bf2");t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),i.f(t,e,n)}},f495:function(t,e,n){var r=n("c04e"),i=TypeError;t.exports=function(t){var e=r(t,"number");if("number"==typeof e)throw i("Can't convert number to bigint");return BigInt(e)}},f5df:function(t,e,n){var r=n("00ee"),i=n("1626"),a=n("c6b6"),o=n("b622"),s=o("toStringTag"),c=Object,u="Arguments"==a(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(n){}};t.exports=r?a:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=l(e=c(t),s))?n:u?a(e):"Object"==(r=a(e))&&i(e.callee)?"Arguments":r}},f714:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA7CAYAAACE0Y8MAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjFERUNDNEYwQjg5NDExRTg4RDAzODcxREI1QjM3Njc2IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjFERUNDNEYxQjg5NDExRTg4RDAzODcxREI1QjM3Njc2Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MURFQ0M0RUVCODk0MTFFODhEMDM4NzFEQjVCMzc2NzYiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MURFQ0M0RUZCODk0MTFFODhEMDM4NzFEQjVCMzc2NzYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4efK6pAAABVElEQVR42uyawQnCQBREs2IPuWsJsQVL0BZSk5YQW7AELUHPmyqiOQgBhfU0O/DfgCDuYZ+8MPlhk3LOU6NLatv268dxHD9fXVhkHKuGVA0CEIAAggAEEAQggCAAAQQBCCAIQABBQIys359kxJOicaRpmrgMF1kcDmkE5JylGxZOxKqz1KggUvFimAVIz2EL6y4snAkzhhIEIIBIbsI7Ix4Xlr1SwN1IgAvLlQoKVEEn4X59Yd2FRcaReDn3JwsPYoyhBAFRbsIXI55LNI5ZwNFIwDEaBxVkUEEb4X7PwroLy0Yp4KGcvQvrLiwyDiqIMRQBBAGxp6CtEc82Gsf6j9FQmWc0DirIoIIGo0d8F5ZBKeBgdEEconFQQYyhCCCVb8JnI55zNI5ZQG8koI/GQQUZVFAn3K/06qELS6cUcBP+6dKBjAuLjIMKYgxFAEFA3LwEGACCa0UZSvm0awAAAABJRU5ErkJggg=="},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),a=r("keys");t.exports=function(t){return a[t]||(a[t]=i(t))}},f8cd:function(t,e,n){var r=n("5926"),i=RangeError;t.exports=function(t){var e=r(t);if(e<0)throw i("The argument can't be less than 0");return e}},fbd7:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-answer-box"},[e("div",{staticClass:"ac-answer-box__wrapper",class:{"is-row-direction":"row"===t.direction},style:{"--width":t.width+"px"}},[e("div",{staticClass:"ac-answer-box__top",on:{click:t.showInput}},[t.inputVisible?e("el-input",{ref:"editInput",attrs:{maxlength:t.maxlength},on:{change:t.handleChange,blur:function(e){t.inputVisible=!1}},model:{value:t.inputVal,callback:function(e){t.inputVal=e},expression:"inputVal"}}):e("span",[t._v(t._s(t.label))])],1),e("div",{staticClass:"ac-answer-box__bottom"})])])},i=[],a={name:"AcAnswerBox",props:{direction:{type:String,default:"column"},label:{type:[String,Number],default:"答案"},width:{type:Number,default:128},editable:{type:Boolean,default:!1},maxlength:{type:Number,default:12},dataKey:{type:String,default:""}},data:function(){return{inputVisible:!1,inputVal:""}},methods:{handleChange:function(){this.inputVisible=!1,this.$store.dispatch("AC/paper/setEditTitle",{dataKey:this.dataKey,title:this.inputVal})},showInput:function(){var t=this;this.editable&&(this.inputVisible=!0,this.inputVal=this.label,this.$nextTick((function(){return t.$refs.editInput&&t.$refs.editInput.focus()})))}}},o=a,s=n("2877"),c=Object(s["a"])(o,r,i,!1,null,null,null),u=c.exports;u.install=function(t){t.component(u.name,u)};e["default"]=u},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fdbf:function(t,e,n){var r=n("04f8");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}});
12
+ var r=n("1fb5"),i=n("9152"),a=n("e3db");function o(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?m(t,e,n,r):"string"===typeof e?p(t,e,n):y(t,e)}function h(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e,n,r){return h(e),e<=0?c(t,e):void 0!==n?"string"===typeof r?c(t,e).fill(n,r):c(t,e).fill(n):c(t,e)}function f(t,e){if(h(e),t=c(t,e<0?0:0|v(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function p(t,e,n){if("string"===typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|b(e,n);t=c(t,r);var i=t.write(e,n);return i!==r&&(t=t.slice(0,i)),t}function g(t,e){var n=e.length<0?0:0|v(e.length);t=c(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function m(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=g(t,e),t}function y(t,e){if(u.isBuffer(e)){var n=0|v(e.length);return t=c(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?c(t,0):g(t,e);if("Buffer"===e.type&&a(e.data))return g(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function _(t){return+t!=t&&(t=0),u.alloc(+t)}function b(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(r)return Q(t).length;e=(""+e).toLowerCase(),r=!0}}function w(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return z(this,e,n);case"utf8":case"utf-8":return B(this,e,n);case"ascii":return j(this,e,n);case"latin1":case"binary":return M(this,e,n);case"base64":return L(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function C(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function A(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:x(t,e,n,r,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):x(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function x(t,e,n,r,i){var a,o=1,s=t.length,c=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;o=2,s/=2,c/=2,n/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var l=-1;for(a=n;a<s;a++)if(u(t,a)===u(e,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===c)return l*o}else-1!==l&&(a-=a-l),l=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){for(var h=!0,d=0;d<c;d++)if(u(t,a+d)!==u(e,d)){h=!1;break}if(h)return a}return-1}function k(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var a=e.length;if(a%2!==0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[n+o]=s}return o}function T(t,e,n,r){return tt(Q(e,t.length-n),t,n,r)}function E(t,e,n,r){return tt(X(e),t,n,r)}function S(t,e,n,r){return E(t,e,n,r)}function I(t,e,n,r){return tt(J(e),t,n,r)}function O(t,e,n,r){return tt(q(e,t.length-n),t,n,r)}function L(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function B(t,e,n){n=Math.min(t.length,n);var r=[],i=e;while(i<n){var a,o,s,c,u=t[i],l=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(l=u);break;case 2:a=t[i+1],128===(192&a)&&(c=(31&u)<<6|63&a,c>127&&(l=c));break;case 3:a=t[i+1],o=t[i+2],128===(192&a)&&128===(192&o)&&(c=(15&u)<<12|(63&a)<<6|63&o,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(c=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s,c>65535&&c<1114112&&(l=c))}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return R(r)}e.Buffer=u,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:o(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return l(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return d(null,t,e,n)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,a=Math.min(n,r);i<a;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!a(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var o=t[n];if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},u.byteLength=b,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)C(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)C(this,e,e+3),C(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)C(this,e,e+7),C(this,e+1,e+6),C(this,e+2,e+5),C(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?B(this,0,t):w.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var a=i-r,o=n-e,s=Math.min(a,o),c=this.slice(r,i),l=t.slice(e,n),h=0;h<s;++h)if(c[h]!==l[h]){a=c[h],o=l[h];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return A(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return A(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return k(this,t,e,n);case"utf8":case"utf-8":return T(this,t,e,n);case"ascii":return E(this,t,e,n);case"latin1":case"binary":return S(this,t,e,n);case"base64":return I(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,e,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function R(t){var e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);var n="",r=0;while(r<e)n+=String.fromCharCode.apply(String,t.slice(r,r+=P));return n}function j(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function M(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function z(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=e;a<n;++a)i+=G(t[a]);return i}function N(t,e,n){for(var r=t.slice(e,n),i="",a=0;a<r.length;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function D(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function U(t,e,n,r,i,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function $(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,a=Math.min(t.length-n,2);i<a;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function H(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,a=Math.min(t.length-n,4);i<a;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function F(t,e,n,r,i,a){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function K(t,e,n,r,a){return a||F(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function W(t,e,n,r,a){return a||F(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=u.prototype;else{var i=e-t;n=new u(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);var r=this[t],i=1,a=0;while(++a<e&&(i*=256))r+=this[t+a]*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);var r=this[t+--e],i=1;while(e>0&&(i*=256))r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||D(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||D(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||D(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);var r=this[t],i=1,a=0;while(++a<e&&(i*=256))r+=this[t+a]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);var r=e,i=1,a=this[t+--r];while(r>0&&(i*=256))a+=this[t+--r]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||D(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||D(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||D(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||D(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||D(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||D(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;U(this,t,e,n,i,0)}var a=1,o=0;this[e]=255&t;while(++o<n&&(a*=256))this[e+o]=t/a&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;U(this,t,e,n,i,0)}var a=n-1,o=1;this[e+a]=255&t;while(--a>=0&&(o*=256))this[e+a]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):$(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):$(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);U(this,t,e,n,i-1,-i)}var a=0,o=1,s=0;this[e]=255&t;while(++a<n&&(o*=256))t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);U(this,t,e,n,i-1,-i)}var a=n-1,o=1,s=0;this[e+a]=255&t;while(--a>=0&&(o*=256))t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):$(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):$(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||U(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return K(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return K(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return W(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return W(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,a=r-n;if(this===t&&n<e&&e<r)for(i=a-1;i>=0;--i)t[i+e]=this[i+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},u.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var a;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(a=e;a<n;++a)this[a]=t;else{var o=u.isBuffer(t)?t:Q(new u(t,r).toString()),s=o.length;for(a=0;a<n-e;++a)this[a+e]=o[a%s]}return this};var V=/[^+\/0-9A-Za-z-_]/g;function Y(t){if(t=Z(t).replace(V,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function Z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function G(t){return t<16?"0"+t.toString(16):t.toString(16)}function Q(t,e){var n;e=e||1/0;for(var r=t.length,i=null,a=[],o=0;o<r;++o){if(n=t.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(e-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function X(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function q(t,e){for(var n,r,i,a=[],o=0;o<t.length;++o){if((e-=2)<0)break;n=t.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r)}return a}function J(t){return r.toByteArray(Y(t))}function tt(t,e,n,r){for(var i=0;i<r;++i){if(i+n>=e.length||i>=t.length)break;e[i+n]=t[i]}return i}function et(t){return t!==t}}).call(this,n("c8ba"))},b7ef:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),a=n("d066"),o=n("5c6c"),s=n("9bf2").f,c=n("1a2d"),u=n("19aa"),l=n("7156"),h=n("e391"),d=n("cf98"),f=n("0d26"),p=n("83ab"),g=n("c430"),m="DOMException",y=a("Error"),v=a(m),_=function(){u(this,b);var t=arguments.length,e=h(t<1?void 0:arguments[0]),n=h(t<2?void 0:arguments[1],"Error"),r=new v(e,n),i=y(e);return i.name=m,s(r,"stack",o(1,f(i.stack,1))),l(r,this,_),r},b=_.prototype=v.prototype,w="stack"in y(m),C="stack"in new v(1,2),A=v&&p&&Object.getOwnPropertyDescriptor(i,m),x=!!A&&!(A.writable&&A.configurable),k=w&&!x&&!C;r({global:!0,constructor:!0,forced:g||k},{DOMException:k?_:v});var T=a(m),E=T.prototype;if(E.constructor!==T)for(var S in g||s(E,"constructor",o(1,T)),d)if(c(d,S)){var I=d[S],O=I.s;c(T,O)||s(T,O,o(6,I.c))}},b980:function(t,e,n){var r=n("d039"),i=n("5c6c");t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},bcbf:function(t,e,n){var r=n("f5df");t.exports=function(t){var e=r(t);return"BigInt64Array"==e||"BigUint64Array"==e}},bee2:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("a38e");function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Object(r["a"])(i.key),i)}}function a(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}},c04e:function(t,e,n){var r=n("c65b"),i=n("861d"),a=n("d9b5"),o=n("dc4a"),s=n("485a"),c=n("b622"),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!i(t)||a(t))return t;var n,c=o(t,l);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!i(n)||a(n))return n;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},c430:function(t,e){t.exports=!1},c4e3:function(t,e,n){(function(e,n,r){var i;!function(e){t.exports=e()}((function(){return function t(e,n,r){function a(s,c){if(!n[s]){if(!e[s]){var u="function"==typeof i&&i;if(!c&&u)return i(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var h=n[s]={exports:{}};e[s][0].call(h.exports,(function(t){var n=e[s][1][t];return a(n||t)}),h,h.exports,t,e,n,r)}return n[s].exports}for(var o="function"==typeof i&&i,s=0;s<r.length;s++)a(r[s]);return a}({1:[function(t,e,n){"use strict";var r=t("./utils"),i=t("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var e,n,i,o,s,c,u,l=[],h=0,d=t.length,f=d,p="string"!==r.getTypeOf(t);h<t.length;)f=d-h,i=p?(e=t[h++],n=h<d?t[h++]:0,h<d?t[h++]:0):(e=t.charCodeAt(h++),n=h<d?t.charCodeAt(h++):0,h<d?t.charCodeAt(h++):0),o=e>>2,s=(3&e)<<4|n>>4,c=1<f?(15&n)<<2|i>>6:64,u=2<f?63&i:64,l.push(a.charAt(o)+a.charAt(s)+a.charAt(c)+a.charAt(u));return l.join("")},n.decode=function(t){var e,n,r,o,s,c,u=0,l=0,h="data:";if(t.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var d,f=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===a.charAt(64)&&f--,t.charAt(t.length-2)===a.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=i.uint8array?new Uint8Array(0|f):new Array(0|f);u<t.length;)e=a.indexOf(t.charAt(u++))<<2|(o=a.indexOf(t.charAt(u++)))>>4,n=(15&o)<<4|(s=a.indexOf(t.charAt(u++)))>>2,r=(3&s)<<6|(c=a.indexOf(t.charAt(u++))),d[l++]=e,64!==s&&(d[l++]=n),64!==c&&(d[l++]=r);return d}},{"./support":30,"./utils":32}],2:[function(t,e,n){"use strict";var r=t("./external"),i=t("./stream/DataWorker"),a=t("./stream/Crc32Probe"),o=t("./stream/DataLengthProbe");function s(t,e,n,r,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var t=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,n){return t.pipe(new a).pipe(new o("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){"use strict";var r=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){"use strict";var r=t("./utils"),i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==r.getTypeOf(t)?function(t,e,n,r){var a=i,o=r+n;t^=-1;for(var s=r;s<o;s++)t=t>>>8^a[255&(t^e[s])];return-1^t}(0|e,t,t.length,0):function(t,e,n,r){var a=i,o=r+n;t^=-1;for(var s=r;s<o;s++)t=t>>>8^a[255&(t^e.charCodeAt(s))];return-1^t}(0|e,t,t.length,0):0}},{"./utils":32}],5:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:r}},{lie:37}],7:[function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=t("pako"),a=t("./utils"),o=t("./stream/GenericWorker"),s=r?"uint8array":"array";function c(t,e){o.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",a.inherits(c,o),c.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,t.data),!1)},c.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new c("Deflate",t)},n.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){"use strict";function r(t,e){var n,r="";for(n=0;n<e;n++)r+=String.fromCharCode(255&t),t>>>=8;return r}function i(t,e,n,i,o,l){var h,d,f=t.file,p=t.compression,g=l!==s.utf8encode,m=a.transformTo("string",l(f.name)),y=a.transformTo("string",s.utf8encode(f.name)),v=f.comment,_=a.transformTo("string",l(v)),b=a.transformTo("string",s.utf8encode(v)),w=y.length!==f.name.length,C=b.length!==v.length,A="",x="",k="",T=f.dir,E=f.date,S={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(S.crc32=t.crc32,S.compressedSize=t.compressedSize,S.uncompressedSize=t.uncompressedSize);var I=0;e&&(I|=8),g||!w&&!C||(I|=2048);var O=0,L=0;T&&(O|=16),"UNIX"===o?(L=798,O|=function(t,e){var n=t;return t||(n=e?16893:33204),(65535&n)<<16}(f.unixPermissions,T)):(L=20,O|=function(t){return 63&(t||0)}(f.dosPermissions)),h=E.getUTCHours(),h<<=6,h|=E.getUTCMinutes(),h<<=5,h|=E.getUTCSeconds()/2,d=E.getUTCFullYear()-1980,d<<=4,d|=E.getUTCMonth()+1,d<<=5,d|=E.getUTCDate(),w&&(x=r(1,1)+r(c(m),4)+y,A+="up"+r(x.length,2)+x),C&&(k=r(1,1)+r(c(_),4)+b,A+="uc"+r(k.length,2)+k);var B="";return B+="\n\0",B+=r(I,2),B+=p.magic,B+=r(h,2),B+=r(d,2),B+=r(S.crc32,4),B+=r(S.compressedSize,4),B+=r(S.uncompressedSize,4),B+=r(m.length,2),B+=r(A.length,2),{fileRecord:u.LOCAL_FILE_HEADER+B+m+A,dirRecord:u.CENTRAL_FILE_HEADER+r(L,2)+B+r(_.length,2)+"\0\0\0\0"+r(O,4)+r(i,4)+m+A+_}}var a=t("../utils"),o=t("../stream/GenericWorker"),s=t("../utf8"),c=t("../crc32"),u=t("../signature");function l(t,e,n,r){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(l,o),l.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,o.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-r-1))/n:100}}))},l.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=i(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=i(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:function(t){return u.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var n=this.bytesWritten-t,i=function(t,e,n,i,o){var s=a.transformTo("string",o(i));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(t,2)+r(t,2)+r(e,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,t,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},l.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},l.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},l.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},l.prototype.error=function(t){var e=this._sources;if(!o.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch(t){}return!0},l.prototype.lock=function(){o.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=l},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,n){"use strict";var r=t("../compressions"),i=t("./ZipFileWorker");n.generateWorker=function(t,e,n){var a=new i(e.streamFiles,n,e.platform,e.encodeFileName),o=0;try{t.forEach((function(t,n){o++;var i=function(t,e){var n=t||e,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,e.compression),s=n.options.compressionOptions||e.compressionOptions||{},c=n.dir,u=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:t,dir:c,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)})),a.entriesCount=o}catch(t){a.error(t)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new r;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(r.prototype=t("./object")).loadAsync=t("./load"),r.support=t("./support"),r.defaults=t("./defaults"),r.version="3.10.1",r.loadAsync=function(t,e){return(new r).loadAsync(t,e)},r.external=t("./external"),e.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,n){"use strict";var r=t("./utils"),i=t("./external"),a=t("./utf8"),o=t("./zipEntries"),s=t("./stream/Crc32Probe"),c=t("./nodejsUtils");function u(t){return new i.Promise((function(e,n){var r=t.decompressed.getContentWorker().pipe(new s);r.on("error",(function(t){n(t)})).on("end",(function(){r.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var n=this;return e=r.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(t)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var n=new o(e);return n.load(t),n})).then((function(t){var n=[i.Promise.resolve(t)],r=t.files;if(e.checkCRC32)for(var a=0;a<r.length;a++)n.push(u(r[a]));return i.Promise.all(n)})).then((function(t){for(var i=t.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],c=s.fileNameStr,u=r.resolve(s.fileNameStr);n.file(u,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:e.createFolders}),s.dir||(n.file(u).unsafeOriginalName=c)}return i.zipComment.length&&(n.comment=i.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,n){"use strict";var r=t("../utils"),i=t("../stream/GenericWorker");function a(t,e){i.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}r.inherits(a,i),a.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,n){"use strict";var r=t("readable-stream").Readable;function i(t,e,n){r.call(this,e),this._helper=t;var i=this;t.on("data",(function(t,e){i.push(t)||i._helper.pause(),n&&n(e)})).on("error",(function(t){i.emit("error",t)})).on("end",(function(){i.push(null)}))}t("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},e.exports=i},{"../utils":32,"readable-stream":16}],14:[function(t,n,r){"use strict";n.exports={isNode:"undefined"!=typeof e,newBufferFrom:function(t,n){if(e.from&&e.from!==Uint8Array.from)return e.from(t,n);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new e(t,n)},allocBuffer:function(t){if(e.alloc)return e.alloc(t);var n=new e(t);return n.fill(0),n},isBuffer:function(t){return e.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,n){"use strict";function r(t,e,n){var r,i=a.getTypeOf(e),s=a.extend(n||{},c);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(t=g(t)),s.createFolders&&(r=p(t))&&m.call(this,r,!0);var h="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!h),(e instanceof u&&0===e.uncompressedSize||s.dir||!e||0===e.length)&&(s.base64=!1,s.binary=!0,e="",s.compression="STORE",i="string");var y=null;y=e instanceof u||e instanceof o?e:d.isNode&&d.isStream(e)?new f(t,e):a.prepareContent(t,e,s.binary,s.optimizedBinaryString,s.base64);var v=new l(t,y,s);this.files[t]=v}var i=t("./utf8"),a=t("./utils"),o=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),c=t("./defaults"),u=t("./compressedObject"),l=t("./zipObject"),h=t("./generate"),d=t("./nodejsUtils"),f=t("./nodejs/NodejsStreamInputAdapter"),p=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},m=function(t,e){return e=void 0!==e?e:c.createFolders,t=g(t),this.files[t]||r.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function y(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,r;for(e in this.files)r=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,r)},filter:function(t){var e=[];return this.forEach((function(n,r){t(n,r)&&e.push(r)})),e},file:function(t,e,n){if(1!==arguments.length)return t=this.root+t,r.call(this,t,e,n),this;if(y(t)){var i=t;return this.filter((function(t,e){return!e.dir&&i.test(t)}))}var a=this.files[this.root+t];return a&&!a.dir?a:null},folder:function(t){if(!t)return this;if(y(t))return this.filter((function(e,n){return n.dir&&t.test(e)}));var e=this.root+t,n=m.call(this,e),r=this.clone();return r.root=n.name,r},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter((function(e,n){return n.name.slice(0,t.length)===t})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=a.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");a.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";e=h.generateWorker(this,n,r)}catch(t){(e=new o("error")).error(t)}return new s(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=v},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,n){"use strict";e.exports=t("stream")},{stream:void 0}],17:[function(t,e,n){"use strict";var r=t("./DataReader");function i(t){r.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(i,r),i.prototype.byteAt=function(t){return this.data[this.zero+t]},i.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),r=t.charCodeAt(2),i=t.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===e&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),r=t.charCodeAt(2),i=t.charCodeAt(3),a=this.readData(4);return e===a[0]&&n===a[1]&&r===a[2]&&i===a[3]},i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],18:[function(t,e,n){"use strict";var r=t("../utils");function i(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return r.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=i},{"../utils":32}],19:[function(t,e,n){"use strict";var r=t("./Uint8ArrayReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){"use strict";var r=t("./DataReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},i.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},i.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){"use strict";var r=t("./ArrayReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){"use strict";var r=t("../utils"),i=t("../support"),a=t("./ArrayReader"),o=t("./StringReader"),s=t("./NodeBufferReader"),c=t("./Uint8ArrayReader");e.exports=function(t){var e=r.getTypeOf(t);return r.checkSupport(e),"string"!==e||i.uint8array?"nodebuffer"===e?new s(t):i.uint8array?new c(r.transformTo("uint8array",t)):new a(r.transformTo("array",t)):new o(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,n){"use strict";var r=t("./GenericWorker"),i=t("../utils");function a(t){r.call(this,"ConvertWorker to "+t),this.destType=t}i.inherits(a,r),a.prototype.processChunk=function(t){this.push({data:i.transformTo(this.destType,t.data),meta:t.meta})},e.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){"use strict";var r=t("./GenericWorker"),i=t("../crc32");function a(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(a,r),a.prototype.processChunk=function(t){this.streamInfo.crc32=i(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){"use strict";var r=t("../utils"),i=t("./GenericWorker");function a(t){i.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}r.inherits(a,i),a.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}i.prototype.processChunk.call(this,t)},e.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){"use strict";var r=t("../utils"),i=t("./GenericWorker");function a(t){i.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=r.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){"use strict";function r(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=r},{}],29:[function(t,n,r){"use strict";var i=t("../utils"),a=t("./ConvertWorker"),o=t("./GenericWorker"),s=t("../base64"),c=t("../support"),u=t("../external"),l=null;if(c.nodestream)try{l=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function h(t,n){return new u.Promise((function(r,a){var o=[],c=t._internalType,u=t._outputType,l=t._mimeType;t.on("data",(function(t,e){o.push(t),n&&n(e)})).on("error",(function(t){o=[],a(t)})).on("end",(function(){try{var t=function(t,e,n){switch(t){case"blob":return i.newBlob(i.transformTo("arraybuffer",e),n);case"base64":return s.encode(e);default:return i.transformTo(t,e)}}(u,function(t,n){var r,i=0,a=null,o=0;for(r=0;r<n.length;r++)o+=n[r].length;switch(t){case"string":return n.join("");case"array":return Array.prototype.concat.apply([],n);case"uint8array":for(a=new Uint8Array(o),r=0;r<n.length;r++)a.set(n[r],i),i+=n[r].length;return a;case"nodebuffer":return e.concat(n);default:throw new Error("concat : unsupported type '"+t+"'")}}(c,o),l);r(t)}catch(t){a(t)}o=[]})).resume()}))}function d(t,e,n){var r=e;switch(e){case"blob":case"arraybuffer":r="uint8array";break;case"base64":r="string"}try{this._internalType=r,this._outputType=e,this._mimeType=n,i.checkSupport(r),this._worker=t.pipe(new a(r)),t.lock()}catch(t){this._worker=new o("error"),this._worker.error(t)}}d.prototype={accumulate:function(t){return h(this,t)},on:function(t,e){var n=this;return"data"===t?this._worker.on(t,(function(t){e.call(n,t.data,t.meta)})):this._worker.on(t,(function(){i.delay(e,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:"nodebuffer"!==this._outputType},t)}},n.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,n,r){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof e,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var i=new ArrayBuffer(0);try{r.blob=0===new Blob([i],{type:"application/zip"}).size}catch(t){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(i),r.blob=0===a.getBlob("application/zip").size}catch(t){r.blob=!1}}}try{r.nodestream=!!t("readable-stream").Readable}catch(t){r.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,n){"use strict";for(var r=t("./utils"),i=t("./support"),a=t("./nodejsUtils"),o=t("./stream/GenericWorker"),s=new Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(){o.call(this,"utf-8 decode"),this.leftOver=null}function l(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(t){return i.nodebuffer?a.newBufferFrom(t,"utf-8"):function(t){var e,n,r,a,o,s=t.length,c=0;for(a=0;a<s;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(e=i.uint8array?new Uint8Array(c):new Array(c),a=o=0;o<c;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(r=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?e[o++]=n:(n<2048?e[o++]=192|n>>>6:(n<65536?e[o++]=224|n>>>12:(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63),e[o++]=128|n>>>6&63),e[o++]=128|63&n);return e}(t)},n.utf8decode=function(t){return i.nodebuffer?r.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,i,a,o=t.length,c=new Array(2*o);for(e=n=0;e<o;)if((i=t[e++])<128)c[n++]=i;else if(4<(a=s[i]))c[n++]=65533,e+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&e<o;)i=i<<6|63&t[e++],a--;1<a?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(t=r.transformTo(i.uint8array?"uint8array":"array",t))},r.inherits(u,o),u.prototype.processChunk=function(t){var e=r.transformTo(i.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=e;(e=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),e.set(a,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var o=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+s[t[n]]>e?n:e}(e),c=e;o!==e.length&&(i.uint8array?(c=e.subarray(0,o),this.leftOver=e.subarray(o,e.length)):(c=e.slice(0,o),this.leftOver=e.slice(o,e.length))),this.push({data:n.utf8decode(c),meta:t.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,r.inherits(l,o),l.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){"use strict";var r=t("./support"),i=t("./base64"),a=t("./nodejsUtils"),o=t("./external");function s(t){return t}function c(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}t("setimmediate"),n.newBlob=function(e,r){n.checkSupport("blob");try{return new Blob([e],{type:r})}catch(t){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(e),i.getBlob(r)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(t,e,n){var r=[],i=0,a=t.length;if(a<=n)return String.fromCharCode.apply(null,t);for(;i<a;)"array"===e||"nodebuffer"===e?r.push(String.fromCharCode.apply(null,t.slice(i,Math.min(i+n,a)))):r.push(String.fromCharCode.apply(null,t.subarray(i,Math.min(i+n,a)))),i+=n;return r.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(t){return!1}}()}};function l(t){var e=65536,r=n.getTypeOf(t),i=!0;if("uint8array"===r?i=u.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=u.applyCanBeUsed.nodebuffer),i)for(;1<e;)try{return u.stringifyByChunk(t,r,e)}catch(t){e=Math.floor(e/2)}return u.stringifyByChar(t)}function h(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}n.applyFromCharCode=l;var d={};d.string={string:s,array:function(t){return c(t,new Array(t.length))},arraybuffer:function(t){return d.string.uint8array(t).buffer},uint8array:function(t){return c(t,new Uint8Array(t.length))},nodebuffer:function(t){return c(t,a.allocBuffer(t.length))}},d.array={string:l,array:s,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return a.newBufferFrom(t)}},d.arraybuffer={string:function(t){return l(new Uint8Array(t))},array:function(t){return h(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:s,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return a.newBufferFrom(new Uint8Array(t))}},d.uint8array={string:l,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:s,nodebuffer:function(t){return a.newBufferFrom(t)}},d.nodebuffer={string:l,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return d.nodebuffer.uint8array(t).buffer},uint8array:function(t){return h(t,new Uint8Array(t.length))},nodebuffer:s},n.transformTo=function(t,e){if(e=e||"",!t)return e;n.checkSupport(t);var r=n.getTypeOf(e);return d[r][t](e)},n.resolve=function(t){for(var e=t.split("/"),n=[],r=0;r<e.length;r++){var i=e[r];"."===i||""===i&&0!==r&&r!==e.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":r.nodebuffer&&a.isBuffer(t)?"nodebuffer":r.uint8array&&t instanceof Uint8Array?"uint8array":r.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!r[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var e,n,r="";for(n=0;n<(t||"").length;n++)r+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return r},n.delay=function(t,e,n){setImmediate((function(){t.apply(n||null,e||[])}))},n.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},n.prepareContent=function(t,e,a,s,u){return o.Promise.resolve(e).then((function(t){return r.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new o.Promise((function(e,n){var r=new FileReader;r.onload=function(t){e(t.target.result)},r.onerror=function(t){n(t.target.error)},r.readAsArrayBuffer(t)})):t})).then((function(e){var l=n.getTypeOf(e);return l?("arraybuffer"===l?e=n.transformTo("uint8array",e):"string"===l&&(u?e=i.decode(e):a&&!0!==s&&(e=function(t){return c(t,r.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):o.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,n){"use strict";var r=t("./reader/readerFor"),i=t("./utils"),a=t("./signature"),o=t("./zipEntry"),s=t("./support");function c(t){this.files=[],this.loadOptions=t}c.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(e)+", expected "+i.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var r=this.reader.readString(4)===e;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=s.uint8array?"uint8array":"array",n=i.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,r=this.zip64EndOfCentralSize-44;0<r;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(t=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=e-n;if(0<r)this.isSignature(e,a.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(t){this.reader=r(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,n){"use strict";var r=t("./reader/readerFor"),i=t("./utils"),a=t("./compressedObject"),o=t("./crc32"),s=t("./utf8"),c=t("./compressions"),u=t("./support");function l(t,e){this.options=t,this.loadOptions=e}l.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in c)if(Object.prototype.hasOwnProperty.call(c,e)&&c[e].magic===t)return c[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,n,r,i=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<i;)e=t.readInt(2),n=t.readInt(2),r=t.readData(n),this.extraFields[e]={id:e,length:n,value:r};t.setIndex(i)},handleUTF8:function(){var t=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var n=i.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var a=i.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=r(t.value);return 1!==e.readInt(1)||o(this.fileName)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=r(t.value);return 1!==e.readInt(1)||o(this.fileComment)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null}},e.exports=l},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,n){"use strict";function r(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=t("./stream/StreamHelper"),a=t("./stream/DataWorker"),o=t("./utf8"),s=t("./compressedObject"),c=t("./stream/GenericWorker");r.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw new Error("No output type specified.");var r="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),e=this._decompressWorker();var a=!this._dataBinary;a&&!r&&(e=e.pipe(new o.Utf8EncodeWorker)),!a&&r&&(e=e.pipe(new o.Utf8DecodeWorker))}catch(t){(e=new c("error")).error(t)}return new i(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],l=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<u.length;h++)r.prototype[u[h]]=l;e.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,r){(function(t){"use strict";var n,r,i=t.MutationObserver||t.WebKitMutationObserver;if(i){var a=0,o=new i(l),s=t.document.createTextNode("");o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){l(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(l,0)};else{var c=new t.MessageChannel;c.port1.onmessage=l,n=function(){c.port2.postMessage(0)}}var u=[];function l(){var t,e;r=!0;for(var n=u.length;n;){for(e=u,u=[],t=-1;++t<n;)e[t]();n=u.length}r=!1}e.exports=function(t){1!==u.push(t)||r||n()}}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,n){"use strict";var r=t("immediate");function i(){}var a={},o=["REJECTED"],s=["FULFILLED"],c=["PENDING"];function u(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,t!==i&&f(this,t)}function l(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(t,e,n){r((function(){var r;try{r=e(n)}catch(r){return a.reject(t,r)}r===t?a.reject(t,new TypeError("Cannot resolve promise with itself")):a.resolve(t,r)}))}function d(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function f(t,e){var n=!1;function r(e){n||(n=!0,a.reject(t,e))}function i(e){n||(n=!0,a.resolve(t,e))}var o=p((function(){e(i,r)}));"error"===o.status&&r(o.value)}function p(t,e){var n={};try{n.value=t(e),n.status="success"}catch(t){n.status="error",n.value=t}return n}(e.exports=u).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},u.prototype.catch=function(t){return this.then(null,t)},u.prototype.then=function(t,e){if("function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===o)return this;var n=new this.constructor(i);return this.state!==c?h(n,this.state===s?t:e,this.outcome):this.queue.push(new l(n,t,e)),n},l.prototype.callFulfilled=function(t){a.resolve(this.promise,t)},l.prototype.otherCallFulfilled=function(t){h(this.promise,this.onFulfilled,t)},l.prototype.callRejected=function(t){a.reject(this.promise,t)},l.prototype.otherCallRejected=function(t){h(this.promise,this.onRejected,t)},a.resolve=function(t,e){var n=p(d,e);if("error"===n.status)return a.reject(t,n.value);var r=n.value;if(r)f(t,r);else{t.state=s,t.outcome=e;for(var i=-1,o=t.queue.length;++i<o;)t.queue[i].callFulfilled(e)}return t},a.reject=function(t,e){t.state=o,t.outcome=e;for(var n=-1,r=t.queue.length;++n<r;)t.queue[n].callRejected(e);return t},u.resolve=function(t){return t instanceof this?t:a.resolve(new this(i),t)},u.reject=function(t){var e=new this(i);return a.reject(e,t)},u.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,r=!1;if(!n)return this.resolve([]);for(var o=new Array(n),s=0,c=-1,u=new this(i);++c<n;)l(t[c],c);return u;function l(t,i){e.resolve(t).then((function(t){o[i]=t,++s!==n||r||(r=!0,a.resolve(u,o))}),(function(t){r||(r=!0,a.reject(u,t))}))}},u.race=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,r=!1;if(!n)return this.resolve([]);for(var o,s=-1,c=new this(i);++s<n;)o=t[s],e.resolve(o).then((function(t){r||(r=!0,a.resolve(c,t))}),(function(t){r||(r=!0,a.reject(c,t))}));return c}},{immediate:36}],38:[function(t,e,n){"use strict";var r={};(0,t("./lib/utils/common").assign)(r,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,n){"use strict";var r=t("./zlib/deflate"),i=t("./utils/common"),a=t("./utils/strings"),o=t("./zlib/messages"),s=t("./zlib/zstream"),c=Object.prototype.toString,u=0,l=-1,h=0,d=8;function f(t){if(!(this instanceof f))return new f(t);this.options=i.assign({level:l,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==u)throw new Error(o[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var p;if(p="string"==typeof e.dictionary?a.string2buf(e.dictionary):"[object ArrayBuffer]"===c.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==u)throw new Error(o[n]);this._dict_set=!0}}function p(t,e){var n=new f(e);if(n.push(t,!0),n.err)throw n.msg||o[n.err];return n.result}f.prototype.push=function(t,e){var n,o,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;o=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=a.string2buf(t):"[object ArrayBuffer]"===c.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(l),s.next_out=0,s.avail_out=l),1!==(n=r.deflate(s,o))&&n!==u)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===o?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===u):2!==o||(this.onEnd(u),!(s.avail_out=0))},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=f,n.deflate=p,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,p(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,p(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,n){"use strict";var r=t("./zlib/inflate"),i=t("./utils/common"),a=t("./utils/strings"),o=t("./zlib/constants"),s=t("./zlib/messages"),c=t("./zlib/zstream"),u=t("./zlib/gzheader"),l=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function d(t,e){var n=new h(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}h.prototype.push=function(t,e){var n,s,c,u,h,d,f=this.strm,p=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof t?f.input=a.binstring2buf(t):"[object ArrayBuffer]"===l.call(t)?f.input=new Uint8Array(t):f.input=t,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(p),f.next_out=0,f.avail_out=p),(n=r.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&g&&(d="string"==typeof g?a.string2buf(g):"[object ArrayBuffer]"===l.call(g)?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,d)),n===o.Z_BUF_ERROR&&!0===m&&(n=o.Z_OK,m=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&n!==o.Z_STREAM_END&&(0!==f.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(c=a.utf8border(f.output,f.next_out),u=f.next_out-c,h=a.buf2string(f.output,c),f.next_out=u,f.avail_out=p-u,u&&i.arraySet(f.output,f.output,c,u,0),this.onData(h)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(m=!0)}while((0<f.avail_in||0===f.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(f.avail_out=0))},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=h,n.inflate=d,n.inflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},n.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var a=0;a<r;a++)t[i+a]=e[n+a]},flattenChunks:function(t){var e,n,r,i,a,o;for(e=r=0,n=t.length;e<n;e++)r+=t[e].length;for(o=new Uint8Array(r),e=i=0,n=t.length;e<n;e++)a=t[e],o.set(a,i),i+=a.length;return o}},a={arraySet:function(t,e,n,r,i){for(var a=0;a<r;a++)t[i+a]=e[n+a]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],42:[function(t,e,n){"use strict";var r=t("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(t,e){if(e<65537&&(t.subarray&&a||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",o=0;o<e;o++)n+=String.fromCharCode(t[o]);return n}o[254]=o[254]=1,n.string2buf=function(t){var e,n,i,a,o,s=t.length,c=0;for(a=0;a<s;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(e=new r.Buf8(c),a=o=0;o<c;a++)55296==(64512&(n=t.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=t.charCodeAt(a+1)))&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?e[o++]=n:(n<2048?e[o++]=192|n>>>6:(n<65536?e[o++]=224|n>>>12:(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63),e[o++]=128|n>>>6&63),e[o++]=128|63&n);return e},n.buf2binstring=function(t){return c(t,t.length)},n.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n<i;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,r,i,a,s=e||t.length,u=new Array(2*s);for(n=r=0;n<s;)if((i=t[n++])<128)u[r++]=i;else if(4<(a=o[i]))u[r++]=65533,n+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&n<s;)i=i<<6|63&t[n++],a--;1<a?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return c(u,r)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+o[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){"use strict";e.exports=function(t,e,n,r){for(var i=65535&t|0,a=t>>>16&65535|0,o=0;0!==n;){for(n-=o=2e3<n?2e3:n;a=a+(i=i+e[r++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16|0}},{}],44:[function(t,e,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,i){var a=r,o=i+n;t^=-1;for(var s=i;s<o;s++)t=t>>>8^a[255&(t^e[s])];return-1^t}},{}],46:[function(t,e,n){"use strict";var r,i=t("../utils/common"),a=t("./trees"),o=t("./adler32"),s=t("./crc32"),c=t("./messages"),u=0,l=4,h=0,d=-2,f=-1,p=4,g=2,m=8,y=9,v=286,_=30,b=19,w=2*v+1,C=15,A=3,x=258,k=x+A+1,T=42,E=113,S=1,I=2,O=3,L=4;function B(t,e){return t.msg=c[e],e}function P(t){return(t<<1)-(4<t?9:0)}function R(t){for(var e=t.length;0<=--e;)t[e]=0}function j(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function M(t,e){a._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,j(t.strm)}function z(t,e){t.pending_buf[t.pending++]=e}function N(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function D(t,e){var n,r,i=t.max_chain_length,a=t.strstart,o=t.prev_length,s=t.nice_match,c=t.strstart>t.w_size-k?t.strstart-(t.w_size-k):0,u=t.window,l=t.w_mask,h=t.prev,d=t.strstart+x,f=u[a+o-1],p=u[a+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(u[(n=e)+o]===p&&u[n+o-1]===f&&u[n]===u[a]&&u[++n]===u[a+1]){a+=2,n++;do{}while(u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&a<d);if(r=x-(d-a),a=d-x,o<r){if(t.match_start=e,s<=(o=r))break;f=u[a+o-1],p=u[a+o]}}}while((e=h[e&l])>c&&0!=--i);return o<=t.lookahead?o:t.lookahead}function U(t){var e,n,r,a,c,u,l,h,d,f,p=t.w_size;do{if(a=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-k)){for(i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=n=t.hash_size;r=t.head[--e],t.head[e]=p<=r?r-p:0,--n;);for(e=n=p;r=t.prev[--e],t.prev[e]=p<=r?r-p:0,--n;);a+=p}if(0===t.strm.avail_in)break;if(u=t.strm,l=t.window,h=t.strstart+t.lookahead,d=a,f=void 0,f=u.avail_in,d<f&&(f=d),n=0===f?0:(u.avail_in-=f,i.arraySet(l,u.input,u.next_in,f,h),1===u.state.wrap?u.adler=o(u.adler,l,f,h):2===u.state.wrap&&(u.adler=s(u.adler,l,f,h)),u.next_in+=f,u.total_in+=f,f),t.lookahead+=n,t.lookahead+t.insert>=A)for(c=t.strstart-t.insert,t.ins_h=t.window[c],t.ins_h=(t.ins_h<<t.hash_shift^t.window[c+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[c+A-1])&t.hash_mask,t.prev[c&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=c,c++,t.insert--,!(t.lookahead+t.insert<A)););}while(t.lookahead<k&&0!==t.strm.avail_in)}function $(t,e){for(var n,r;;){if(t.lookahead<k){if(U(t),t.lookahead<k&&e===u)return S;if(0===t.lookahead)break}if(n=0,t.lookahead>=A&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-k&&(t.match_length=D(t,n)),t.match_length>=A)if(r=a._tr_tally(t,t.strstart-t.match_start,t.match_length-A),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=A){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(M(t,!1),0===t.strm.avail_out))return S}return t.insert=t.strstart<A-1?t.strstart:A-1,e===l?(M(t,!0),0===t.strm.avail_out?O:L):t.last_lit&&(M(t,!1),0===t.strm.avail_out)?S:I}function H(t,e){for(var n,r,i;;){if(t.lookahead<k){if(U(t),t.lookahead<k&&e===u)return S;if(0===t.lookahead)break}if(n=0,t.lookahead>=A&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=A-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-k&&(t.match_length=D(t,n),t.match_length<=5&&(1===t.strategy||t.match_length===A&&4096<t.strstart-t.match_start)&&(t.match_length=A-1)),t.prev_length>=A&&t.match_length<=t.prev_length){for(i=t.strstart+t.lookahead-A,r=a._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-A),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+A-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=A-1,t.strstart++,r&&(M(t,!1),0===t.strm.avail_out))return S}else if(t.match_available){if((r=a._tr_tally(t,0,t.window[t.strstart-1]))&&M(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return S}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=a._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<A-1?t.strstart:A-1,e===l?(M(t,!0),0===t.strm.avail_out?O:L):t.last_lit&&(M(t,!1),0===t.strm.avail_out)?S:I}function F(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function K(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*w),this.dyn_dtree=new i.Buf16(2*(2*_+1)),this.bl_tree=new i.Buf16(2*(2*b+1)),R(this.dyn_ltree),R(this.dyn_dtree),R(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(C+1),this.heap=new i.Buf16(2*v+1),R(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*v+1),R(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function W(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=g,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?T:E,t.adler=2===e.wrap?0:1,e.last_flush=u,a._tr_init(e),h):B(t,d)}function V(t){var e=W(t);return e===h&&function(t){t.window_size=2*t.w_size,R(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=A-1,t.match_available=0,t.ins_h=0}(t.state),e}function Y(t,e,n,r,a,o){if(!t)return d;var s=1;if(e===f&&(e=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),a<1||y<a||n!==m||r<8||15<r||e<0||9<e||o<0||p<o)return B(t,d);8===r&&(r=9);var c=new K;return(t.state=c).strm=t,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+A-1)/A),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=e,c.strategy=o,c.method=n,V(t)}r=[new F(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(U(t),0===t.lookahead&&e===u)return S;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,M(t,!1),0===t.strm.avail_out))return S;if(t.strstart-t.block_start>=t.w_size-k&&(M(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===l?(M(t,!0),0===t.strm.avail_out?O:L):(t.strstart>t.block_start&&(M(t,!1),t.strm.avail_out),S)})),new F(4,4,8,4,$),new F(4,5,16,8,$),new F(4,6,32,32,$),new F(4,4,16,16,H),new F(8,16,32,32,H),new F(8,16,128,128,H),new F(8,32,128,256,H),new F(32,128,258,1024,H),new F(32,258,258,4096,H)],n.deflateInit=function(t,e){return Y(t,e,m,15,8,0)},n.deflateInit2=Y,n.deflateReset=V,n.deflateResetKeep=W,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?d:(t.state.gzhead=e,h):d},n.deflate=function(t,e){var n,i,o,c;if(!t||!t.state||5<e||e<0)return t?B(t,d):d;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&e!==l)return B(t,0===t.avail_out?-5:d);if(i.strm=t,n=i.last_flush,i.last_flush=e,i.status===T)if(2===i.wrap)t.adler=0,z(i,31),z(i,139),z(i,8),i.gzhead?(z(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),z(i,255&i.gzhead.time),z(i,i.gzhead.time>>8&255),z(i,i.gzhead.time>>16&255),z(i,i.gzhead.time>>24&255),z(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),z(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(z(i,255&i.gzhead.extra.length),z(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(z(i,0),z(i,0),z(i,0),z(i,0),z(i,0),z(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),z(i,3),i.status=E);else{var f=m+(i.w_bits-8<<4)<<8;f|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=E,N(i,f),0!==i.strstart&&(N(i,t.adler>>>16),N(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),j(t),o=i.pending,i.pending!==i.pending_buf_size));)z(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),j(t),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,z(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),j(t),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,z(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&j(t),i.pending+2<=i.pending_buf_size&&(z(i,255&t.adler),z(i,t.adler>>8&255),t.adler=0,i.status=E)):i.status=E),0!==i.pending){if(j(t),0===t.avail_out)return i.last_flush=-1,h}else if(0===t.avail_in&&P(e)<=P(n)&&e!==l)return B(t,-5);if(666===i.status&&0!==t.avail_in)return B(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==u&&666!==i.status){var p=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(U(t),0===t.lookahead)){if(e===u)return S;break}if(t.match_length=0,n=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(M(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===l?(M(t,!0),0===t.strm.avail_out?O:L):t.last_lit&&(M(t,!1),0===t.strm.avail_out)?S:I}(i,e):3===i.strategy?function(t,e){for(var n,r,i,o,s=t.window;;){if(t.lookahead<=x){if(U(t),t.lookahead<=x&&e===u)return S;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=A&&0<t.strstart&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=t.strstart+x;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);t.match_length=x-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=A?(n=a._tr_tally(t,1,t.match_length-A),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=a._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(M(t,!1),0===t.strm.avail_out))return S}return t.insert=0,e===l?(M(t,!0),0===t.strm.avail_out?O:L):t.last_lit&&(M(t,!1),0===t.strm.avail_out)?S:I}(i,e):r[i.level].func(i,e);if(p!==O&&p!==L||(i.status=666),p===S||p===O)return 0===t.avail_out&&(i.last_flush=-1),h;if(p===I&&(1===e?a._tr_align(i):5!==e&&(a._tr_stored_block(i,0,0,!1),3===e&&(R(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),j(t),0===t.avail_out))return i.last_flush=-1,h}return e!==l?h:i.wrap<=0?1:(2===i.wrap?(z(i,255&t.adler),z(i,t.adler>>8&255),z(i,t.adler>>16&255),z(i,t.adler>>24&255),z(i,255&t.total_in),z(i,t.total_in>>8&255),z(i,t.total_in>>16&255),z(i,t.total_in>>24&255)):(N(i,t.adler>>>16),N(i,65535&t.adler)),j(t),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?h:1)},n.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==T&&69!==e&&73!==e&&91!==e&&103!==e&&e!==E&&666!==e?B(t,d):(t.state=null,e===E?B(t,-3):h):d},n.deflateSetDictionary=function(t,e){var n,r,a,s,c,u,l,f,p=e.length;if(!t||!t.state)return d;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==T||n.lookahead)return d;for(1===s&&(t.adler=o(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(R(n.head),n.strstart=0,n.block_start=0,n.insert=0),f=new i.Buf8(n.w_size),i.arraySet(f,e,p-n.w_size,n.w_size,0),e=f,p=n.w_size),c=t.avail_in,u=t.next_in,l=t.input,t.avail_in=p,t.next_in=0,t.input=e,U(n);n.lookahead>=A;){for(r=n.strstart,a=n.lookahead-(A-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+A-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--a;);n.strstart=r,n.lookahead=A-1,U(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=A-1,n.match_available=0,t.next_in=u,t.input=l,t.avail_in=c,n.wrap=s,h},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,n){"use strict";e.exports=function(t,e){var n,r,i,a,o,s,c,u,l,h,d,f,p,g,m,y,v,_,b,w,C,A,x,k,T;n=t.state,r=t.next_in,k=t.input,i=r+(t.avail_in-5),a=t.next_out,T=t.output,o=a-(e-t.avail_out),s=a+(t.avail_out-257),c=n.dmax,u=n.wsize,l=n.whave,h=n.wnext,d=n.window,f=n.hold,p=n.bits,g=n.lencode,m=n.distcode,y=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;t:do{p<15&&(f+=k[r++]<<p,p+=8,f+=k[r++]<<p,p+=8),_=g[f&y];e:for(;;){if(f>>>=b=_>>>24,p-=b,0===(b=_>>>16&255))T[a++]=65535&_;else{if(!(16&b)){if(0==(64&b)){_=g[(65535&_)+(f&(1<<b)-1)];continue e}if(32&b){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&_,(b&=15)&&(p<b&&(f+=k[r++]<<p,p+=8),w+=f&(1<<b)-1,f>>>=b,p-=b),p<15&&(f+=k[r++]<<p,p+=8,f+=k[r++]<<p,p+=8),_=m[f&v];n:for(;;){if(f>>>=b=_>>>24,p-=b,!(16&(b=_>>>16&255))){if(0==(64&b)){_=m[(65535&_)+(f&(1<<b)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(C=65535&_,p<(b&=15)&&(f+=k[r++]<<p,(p+=8)<b&&(f+=k[r++]<<p,p+=8)),c<(C+=f&(1<<b)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(f>>>=b,p-=b,(b=a-o)<C){if(l<(b=C-b)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(x=d,(A=0)===h){if(A+=u-b,b<w){for(w-=b;T[a++]=d[A++],--b;);A=a-C,x=T}}else if(h<b){if(A+=u+h-b,(b-=h)<w){for(w-=b;T[a++]=d[A++],--b;);if(A=0,h<w){for(w-=b=h;T[a++]=d[A++],--b;);A=a-C,x=T}}}else if(A+=h-b,b<w){for(w-=b;T[a++]=d[A++],--b;);A=a-C,x=T}for(;2<w;)T[a++]=x[A++],T[a++]=x[A++],T[a++]=x[A++],w-=3;w&&(T[a++]=x[A++],1<w&&(T[a++]=x[A++]))}else{for(A=a-C;T[a++]=T[A++],T[a++]=T[A++],T[a++]=T[A++],2<(w-=3););w&&(T[a++]=T[A++],1<w&&(T[a++]=T[A++]))}break}}break}}while(r<i&&a<s);r-=w=p>>3,f&=(1<<(p-=w<<3))-1,t.next_in=r,t.next_out=a,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=a<s?s-a+257:257-(a-s),n.hold=f,n.bits=p}},{}],49:[function(t,e,n){"use strict";var r=t("../utils/common"),i=t("./adler32"),a=t("./crc32"),o=t("./inffast"),s=t("./inftrees"),c=1,u=2,l=0,h=-2,d=1,f=852,p=592;function g(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function y(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=d,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(f),e.distcode=e.distdyn=new r.Buf32(p),e.sane=1,e.back=-1,l):h}function v(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,y(t)):h}function _(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?h:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,v(t))):h}function b(t,e){var n,r;return t?(r=new m,(t.state=r).window=null,(n=_(t,e))!==l&&(t.state=null),n):h}var w,C,A=!0;function x(t){if(A){var e;for(w=new r.Buf32(512),C=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(c,t.lens,0,288,w,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(u,t.lens,0,32,C,0,t.work,{bits:5}),A=!1}t.lencode=w,t.lenbits=9,t.distcode=C,t.distbits=5}function k(t,e,n,i){var a,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,e,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,e,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=v,n.inflateReset2=_,n.inflateResetKeep=y,n.inflateInit=function(t){return b(t,15)},n.inflateInit2=b,n.inflate=function(t,e){var n,f,p,m,y,v,_,b,w,C,A,T,E,S,I,O,L,B,P,R,j,M,z,N,D=0,U=new r.Buf8(4),$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;12===(n=t.state).mode&&(n.mode=13),y=t.next_out,p=t.output,_=t.avail_out,m=t.next_in,f=t.input,v=t.avail_in,b=n.hold,w=n.bits,C=v,A=_,M=l;t:for(;;)switch(n.mode){case d:if(0===n.wrap){n.mode=13;break}for(;w<16;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if(2&n.wrap&&35615===b){U[n.check=0]=255&b,U[1]=b>>>8&255,n.check=a(n.check,U,2,0),w=b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&b)){t.msg="unknown compression method",n.mode=30;break}if(w-=4,j=8+(15&(b>>>=4)),0===n.wbits)n.wbits=j;else if(j>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<j,t.adler=n.check=1,n.mode=512&b?10:12,w=b=0;break;case 2:for(;w<16;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if(n.flags=b,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(U[0]=255&b,U[1]=b>>>8&255,n.check=a(n.check,U,2,0)),w=b=0,n.mode=3;case 3:for(;w<32;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}n.head&&(n.head.time=b),512&n.flags&&(U[0]=255&b,U[1]=b>>>8&255,U[2]=b>>>16&255,U[3]=b>>>24&255,n.check=a(n.check,U,4,0)),w=b=0,n.mode=4;case 4:for(;w<16;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(U[0]=255&b,U[1]=b>>>8&255,n.check=a(n.check,U,2,0)),w=b=0,n.mode=5;case 5:if(1024&n.flags){for(;w<16;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(U[0]=255&b,U[1]=b>>>8&255,n.check=a(n.check,U,2,0)),w=b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(v<(T=n.length)&&(T=v),T&&(n.head&&(j=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,f,m,T,j)),512&n.flags&&(n.check=a(n.check,f,T,m)),v-=T,m+=T,n.length-=T),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===v)break t;for(T=0;j=f[m+T++],n.head&&j&&n.length<65536&&(n.head.name+=String.fromCharCode(j)),j&&T<v;);if(512&n.flags&&(n.check=a(n.check,f,T,m)),v-=T,m+=T,j)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===v)break t;for(T=0;j=f[m+T++],n.head&&j&&n.length<65536&&(n.head.comment+=String.fromCharCode(j)),j&&T<v;);if(512&n.flags&&(n.check=a(n.check,f,T,m)),v-=T,m+=T,j)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;w<16;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if(b!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}w=b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;w<32;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}t.adler=n.check=g(b),w=b=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=y,t.avail_out=_,t.next_in=m,t.avail_in=v,n.hold=b,n.bits=w,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){b>>>=7&w,w-=7&w,n.mode=27;break}for(;w<3;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}switch(n.last=1&b,w-=1,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(x(n),n.mode=20,6!==e)break;b>>>=2,w-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}b>>>=2,w-=2;break;case 14:for(b>>>=7&w,w-=7&w;w<32;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if((65535&b)!=(b>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&b,w=b=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(T=n.length){if(v<T&&(T=v),_<T&&(T=_),0===T)break t;r.arraySet(p,f,m,T,y),v-=T,m+=T,_-=T,y+=T,n.length-=T;break}n.mode=12;break;case 17:for(;w<14;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if(n.nlen=257+(31&b),b>>>=5,w-=5,n.ndist=1+(31&b),b>>>=5,w-=5,n.ncode=4+(15&b),b>>>=4,w-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;w<3;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}n.lens[$[n.have++]]=7&b,b>>>=3,w-=3}for(;n.have<19;)n.lens[$[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,z={bits:n.lenbits},M=s(0,n.lens,0,19,n.lencode,0,n.work,z),n.lenbits=z.bits,M){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;O=(D=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,L=65535&D,!((I=D>>>24)<=w);){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if(L<16)b>>>=I,w-=I,n.lens[n.have++]=L;else{if(16===L){for(N=I+2;w<N;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if(b>>>=I,w-=I,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}j=n.lens[n.have-1],T=3+(3&b),b>>>=2,w-=2}else if(17===L){for(N=I+3;w<N;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}w-=I,j=0,T=3+(7&(b>>>=I)),b>>>=3,w-=3}else{for(N=I+7;w<N;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}w-=I,j=0,T=11+(127&(b>>>=I)),b>>>=7,w-=7}if(n.have+T>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;T--;)n.lens[n.have++]=j}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,z={bits:n.lenbits},M=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,z),n.lenbits=z.bits,M){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,z={bits:n.distbits},M=s(u,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,z),n.distbits=z.bits,M){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=v&&258<=_){t.next_out=y,t.avail_out=_,t.next_in=m,t.avail_in=v,n.hold=b,n.bits=w,o(t,A),y=t.next_out,p=t.output,_=t.avail_out,m=t.next_in,f=t.input,v=t.avail_in,b=n.hold,w=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;O=(D=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,L=65535&D,!((I=D>>>24)<=w);){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if(O&&0==(240&O)){for(B=I,P=O,R=L;O=(D=n.lencode[R+((b&(1<<B+P)-1)>>B)])>>>16&255,L=65535&D,!(B+(I=D>>>24)<=w);){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}b>>>=B,w-=B,n.back+=B}if(b>>>=I,w-=I,n.back+=I,n.length=L,0===O){n.mode=26;break}if(32&O){n.back=-1,n.mode=12;break}if(64&O){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&O,n.mode=22;case 22:if(n.extra){for(N=n.extra;w<N;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,w-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;O=(D=n.distcode[b&(1<<n.distbits)-1])>>>16&255,L=65535&D,!((I=D>>>24)<=w);){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if(0==(240&O)){for(B=I,P=O,R=L;O=(D=n.distcode[R+((b&(1<<B+P)-1)>>B)])>>>16&255,L=65535&D,!(B+(I=D>>>24)<=w);){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}b>>>=B,w-=B,n.back+=B}if(b>>>=I,w-=I,n.back+=I,64&O){t.msg="invalid distance code",n.mode=30;break}n.offset=L,n.extra=15&O,n.mode=24;case 24:if(n.extra){for(N=n.extra;w<N;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,w-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===_)break t;if(T=A-_,n.offset>T){if((T=n.offset-T)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}E=T>n.wnext?(T-=n.wnext,n.wsize-T):n.wnext-T,T>n.length&&(T=n.length),S=n.window}else S=p,E=y-n.offset,T=n.length;for(_<T&&(T=_),_-=T,n.length-=T;p[y++]=S[E++],--T;);0===n.length&&(n.mode=21);break;case 26:if(0===_)break t;p[y++]=n.length,_--,n.mode=21;break;case 27:if(n.wrap){for(;w<32;){if(0===v)break t;v--,b|=f[m++]<<w,w+=8}if(A-=_,t.total_out+=A,n.total+=A,A&&(t.adler=n.check=n.flags?a(n.check,p,A,y-A):i(n.check,p,A,y-A)),A=_,(n.flags?b:g(b))!==n.check){t.msg="incorrect data check",n.mode=30;break}w=b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;w<32;){if(0===v)break t;v--,b+=f[m++]<<w,w+=8}if(b!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}w=b=0}n.mode=29;case 29:M=1;break t;case 30:M=-3;break t;case 31:return-4;case 32:default:return h}return t.next_out=y,t.avail_out=_,t.next_in=m,t.avail_in=v,n.hold=b,n.bits=w,(n.wsize||A!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&k(t,t.output,t.next_out,A-t.avail_out)?(n.mode=31,-4):(C-=t.avail_in,A-=t.avail_out,t.total_in+=C,t.total_out+=A,n.total+=A,n.wrap&&A&&(t.adler=n.check=n.flags?a(n.check,p,A,t.next_out-A):i(n.check,p,A,t.next_out-A)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==C&&0===A||4===e)&&M===l&&(M=-5),M)},n.inflateEnd=function(t){if(!t||!t.state)return h;var e=t.state;return e.window&&(e.window=null),t.state=null,l},n.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?h:((n.head=e).done=!1,l):h},n.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?h:11===n.mode&&i(1,e,r,0)!==n.check?-3:k(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,l):h},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,n){"use strict";var r=t("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,n,c,u,l,h,d){var f,p,g,m,y,v,_,b,w,C=d.bits,A=0,x=0,k=0,T=0,E=0,S=0,I=0,O=0,L=0,B=0,P=null,R=0,j=new r.Buf16(16),M=new r.Buf16(16),z=null,N=0;for(A=0;A<=15;A++)j[A]=0;for(x=0;x<c;x++)j[e[n+x]]++;for(E=C,T=15;1<=T&&0===j[T];T--);if(T<E&&(E=T),0===T)return u[l++]=20971520,u[l++]=20971520,d.bits=1,0;for(k=1;k<T&&0===j[k];k++);for(E<k&&(E=k),A=O=1;A<=15;A++)if(O<<=1,(O-=j[A])<0)return-1;if(0<O&&(0===t||1!==T))return-1;for(M[1]=0,A=1;A<15;A++)M[A+1]=M[A]+j[A];for(x=0;x<c;x++)0!==e[n+x]&&(h[M[e[n+x]]++]=x);if(v=0===t?(P=z=h,19):1===t?(P=i,R-=257,z=a,N-=257,256):(P=o,z=s,-1),A=k,y=l,I=x=B=0,g=-1,m=(L=1<<(S=E))-1,1===t&&852<L||2===t&&592<L)return 1;for(;;){for(_=A-I,w=h[x]<v?(b=0,h[x]):h[x]>v?(b=z[N+h[x]],P[R+h[x]]):(b=96,0),f=1<<A-I,k=p=1<<S;u[y+(B>>I)+(p-=f)]=_<<24|b<<16|w|0,0!==p;);for(f=1<<A-1;B&f;)f>>=1;if(0!==f?(B&=f-1,B+=f):B=0,x++,0==--j[A]){if(A===T)break;A=e[n+h[x]]}if(E<A&&(B&m)!==g){for(0===I&&(I=E),y+=k,O=1<<(S=A-I);S+I<T&&!((O-=j[S+I])<=0);)S++,O<<=1;if(L+=1<<S,1===t&&852<L||2===t&&592<L)return 1;u[g=B&m]=E<<24|S<<16|y-l|0}}return 0!==B&&(u[y+B]=A-I<<24|64<<16|0),d.bits=E,0}},{"../utils/common":41}],51:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,n){"use strict";var r=t("../utils/common"),i=0,a=1;function o(t){for(var e=t.length;0<=--e;)t[e]=0}var s=0,c=29,u=256,l=u+1+c,h=30,d=19,f=2*l+1,p=15,g=16,m=7,y=256,v=16,_=17,b=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(l+2));o(k);var T=new Array(2*h);o(T);var E=new Array(512);o(E);var S=new Array(256);o(S);var I=new Array(c);o(I);var O,L,B,P=new Array(h);function R(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function j(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function M(t){return t<256?E[t]:E[256+(t>>>7)]}function z(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function N(t,e,n){t.bi_valid>g-n?(t.bi_buf|=e<<t.bi_valid&65535,z(t,t.bi_buf),t.bi_buf=e>>g-t.bi_valid,t.bi_valid+=n-g):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function D(t,e,n){N(t,n[2*e],n[2*e+1])}function U(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}function $(t,e,n){var r,i,a=new Array(p+1),o=0;for(r=1;r<=p;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=U(a[s]++,s))}}function H(t){var e;for(e=0;e<l;e++)t.dyn_ltree[2*e]=0;for(e=0;e<h;e++)t.dyn_dtree[2*e]=0;for(e=0;e<d;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*y]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function F(t){8<t.bi_valid?z(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function K(t,e,n,r){var i=2*e,a=2*n;return t[i]<t[a]||t[i]===t[a]&&r[e]<=r[n]}function W(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&K(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!K(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function V(t,e,n){var r,i,a,o,s=0;if(0!==t.last_lit)for(;r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===r?D(t,i,e):(D(t,(a=S[i])+u+1,e),0!==(o=w[a])&&N(t,i-=I[a],o),D(t,a=M(--r),n),0!==(o=C[a])&&N(t,r-=P[a],o)),s<t.last_lit;);D(t,y,e)}function Y(t,e){var n,r,i,a=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,c=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=f,n=0;n<c;n++)0!==a[2*n]?(t.heap[++t.heap_len]=u=n,t.depth[n]=0):a[2*n+1]=0;for(;t.heap_len<2;)a[2*(i=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=o[2*i+1]);for(e.max_code=u,n=t.heap_len>>1;1<=n;n--)W(t,a,n);for(i=c;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],W(t,a,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,a[2*i]=a[2*n]+a[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,a[2*n+1]=a[2*r+1]=i,t.heap[1]=i++,W(t,a,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,a,o,s,c=e.dyn_tree,u=e.max_code,l=e.stat_desc.static_tree,h=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,g=e.stat_desc.extra_base,m=e.stat_desc.max_length,y=0;for(a=0;a<=p;a++)t.bl_count[a]=0;for(c[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<f;n++)m<(a=c[2*c[2*(r=t.heap[n])+1]+1]+1)&&(a=m,y++),c[2*r+1]=a,u<r||(t.bl_count[a]++,o=0,g<=r&&(o=d[r-g]),s=c[2*r],t.opt_len+=s*(a+o),h&&(t.static_len+=s*(l[2*r+1]+o)));if(0!==y){do{for(a=m-1;0===t.bl_count[a];)a--;t.bl_count[a]--,t.bl_count[a+1]+=2,t.bl_count[m]--,y-=2}while(0<y);for(a=m;0!==a;a--)for(r=t.bl_count[a];0!==r;)u<(i=t.heap[--n])||(c[2*i+1]!==a&&(t.opt_len+=(a-c[2*i+1])*c[2*i],c[2*i+1]=a),r--)}}(t,e),$(a,u,t.bl_count)}function Z(t,e,n){var r,i,a=-1,o=e[1],s=0,c=7,u=4;for(0===o&&(c=138,u=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=e[2*(r+1)+1],++s<c&&i===o||(s<u?t.bl_tree[2*i]+=s:0!==i?(i!==a&&t.bl_tree[2*i]++,t.bl_tree[2*v]++):s<=10?t.bl_tree[2*_]++:t.bl_tree[2*b]++,a=i,u=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4))}function G(t,e,n){var r,i,a=-1,o=e[1],s=0,c=7,u=4;for(0===o&&(c=138,u=3),r=0;r<=n;r++)if(i=o,o=e[2*(r+1)+1],!(++s<c&&i===o)){if(s<u)for(;D(t,i,t.bl_tree),0!=--s;);else 0!==i?(i!==a&&(D(t,i,t.bl_tree),s--),D(t,v,t.bl_tree),N(t,s-3,2)):s<=10?(D(t,_,t.bl_tree),N(t,s-3,3)):(D(t,b,t.bl_tree),N(t,s-11,7));a=i,u=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4)}}o(P);var Q=!1;function X(t,e,n,i){N(t,(s<<1)+(i?1:0),3),function(t,e,n,i){F(t),i&&(z(t,n),z(t,~n)),r.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}n._tr_init=function(t){Q||(function(){var t,e,n,r,i,a=new Array(p+1);for(r=n=0;r<c-1;r++)for(I[r]=n,t=0;t<1<<w[r];t++)S[n++]=r;for(S[n-1]=r,r=i=0;r<16;r++)for(P[r]=i,t=0;t<1<<C[r];t++)E[i++]=r;for(i>>=7;r<h;r++)for(P[r]=i<<7,t=0;t<1<<C[r]-7;t++)E[256+i++]=r;for(e=0;e<=p;e++)a[e]=0;for(t=0;t<=143;)k[2*t+1]=8,t++,a[8]++;for(;t<=255;)k[2*t+1]=9,t++,a[9]++;for(;t<=279;)k[2*t+1]=7,t++,a[7]++;for(;t<=287;)k[2*t+1]=8,t++,a[8]++;for($(k,l+1,a),t=0;t<h;t++)T[2*t+1]=5,T[2*t]=U(t,5);O=new R(k,w,u+1,l,p),L=new R(T,C,0,h,p),B=new R(new Array(0),A,0,d,m)}(),Q=!0),t.l_desc=new j(t.dyn_ltree,O),t.d_desc=new j(t.dyn_dtree,L),t.bl_desc=new j(t.bl_tree,B),t.bi_buf=0,t.bi_valid=0,H(t)},n._tr_stored_block=X,n._tr_flush_block=function(t,e,n,r){var o,s,c=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return i;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return a;for(e=32;e<u;e++)if(0!==t.dyn_ltree[2*e])return a;return i}(t)),Y(t,t.l_desc),Y(t,t.d_desc),c=function(t){var e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=d-1;3<=e&&0===t.bl_tree[2*x[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),o=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=o&&(o=s)):o=s=n+5,n+4<=o&&-1!==e?X(t,e,n,r):4===t.strategy||s===o?(N(t,2+(r?1:0),3),V(t,k,T)):(N(t,4+(r?1:0),3),function(t,e,n,r){var i;for(N(t,e-257,5),N(t,n-1,5),N(t,r-4,4),i=0;i<r;i++)N(t,t.bl_tree[2*x[i]+1],3);G(t,t.dyn_ltree,e-1),G(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,c+1),V(t,t.dyn_ltree,t.dyn_dtree)),H(t),r&&F(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(S[n]+u+1)]++,t.dyn_dtree[2*M(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){N(t,2,3),D(t,y,k),function(t){16===t.bi_valid?(z(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,i){(function(t){!function(t,e){"use strict";if(!t.setImmediate){var n,i,a,o,s=1,c={},u=!1,l=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,n="[object process]"==={}.toString.call(t.process)?function(t){r.nextTick((function(){f(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(o="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",p,!1):t.attachEvent("onmessage",p),function(e){t.postMessage(o+e,"*")}):t.MessageChannel?((a=new MessageChannel).port1.onmessage=function(t){f(t.data)},function(t){a.port2.postMessage(t)}):l&&"onreadystatechange"in l.createElement("script")?(i=l.documentElement,function(t){var e=l.createElement("script");e.onreadystatechange=function(){f(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):function(t){setTimeout(f,0,t)},h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var i={callback:t,args:e};return c[s]=i,n(s),s++},h.clearImmediate=d}function d(t){delete c[t]}function f(t){if(u)setTimeout(f,0,t);else{var n=c[t];if(n){u=!0;try{!function(t){var n=t.callback,r=t.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(e,r)}}(n)}finally{d(t),u=!1}}}}function p(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&f(+e.data.slice(o.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))}).call(this,n("b639").Buffer,n("c8ba"),n("4362"))},c65b:function(t,e,n){var r=n("40d5"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},c6b6:function(t,e,n){var r=n("e330"),i=r({}.toString),a=r("".slice);t.exports=function(t){return a(i(t),8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("6374"),a="__core-js_shared__",o=r[a]||i(a,{});t.exports=o},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("e330"),i=n("1a2d"),a=n("fc6a"),o=n("4d64").indexOf,s=n("d012"),c=r([].push);t.exports=function(t,e){var n,r=a(t),u=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&c(l,n);while(e.length>u)i(r,n=e[u++])&&(~o(l,n)||c(l,n));return l}},cb2d:function(t,e,n){var r=n("1626"),i=n("9bf2"),a=n("13d2"),o=n("6374");t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:e;if(r(n)&&a(n,u,s),s.global)c?t[e]=n:o(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(l){}c?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),a=r.document,o=i(a)&&i(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},cdce:function(t,e,n){var r=n("da84"),i=n("1626"),a=r.WeakMap;t.exports=i(a)&&/native code/.test(String(a))},cf03:function(t,e){t.exports=require("jspdf")},cf98:function(t,e){t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("da84"),i=n("1626"),a=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(r[t]):r[t]&&r[t][e]}},d09a:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAA7CAYAAAD4t5PVAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMxMjY3MzVCQjg5NDExRThCQjk3QzA4MjU5MzUzOTlGIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMxMjY3MzVDQjg5NDExRThCQjk3QzA4MjU5MzUzOTlGIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzEyNjczNTlCODk0MTFFOEJCOTdDMDgyNTkzNTM5OUYiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzEyNjczNUFCODk0MTFFOEJCOTdDMDgyNTkzNTM5OUYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5Q419BAAAAtElEQVR42uzYsQ1CIRRG4XfNa2ydwSWsHcDCJSwcw8YRXmvtMM5ghQMQChL0zWBBTsi5Cf0X7s8NECml7wStzQQuceLEiRMnTpw4Rs2ttSMVF7VW7s7lnLm4UgoXFxFPLG5dZ0eJuM6Zu2KH8Prit63/tvVGbqsfOeJ6H4i7c27Eth7IuAcZtzdzIx6IFxl3IuPeZNyWjLt42XTOdc5cIeMWL5sjZm5Hxn3IuNnMietYPwEGAG5/KFS7aqTUAAAAAElFTkSuQmCC"},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);e.f=a?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d2bb:function(t,e,n){var r=n("7282"),i=n("825a"),a=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(o){}return function(n,r){return i(n),a(r),e?t(n,r):n.__proto__=r,n}}():void 0)},d429:function(t,e,n){var r=n("07fa"),i=n("5926"),a=RangeError;t.exports=function(t,e,n,o){var s=r(t),c=i(n),u=c<0?s+c:c;if(u>=s||u<0)throw a("Incorrect index");for(var l=new e(s),h=0;h<s;h++)l[h]=h===u?o:t[h];return l}},d4ec:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("d9e2");function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},d58f:function(t,e,n){var r=n("59ed"),i=n("7b0b"),a=n("44ad"),o=n("07fa"),s=TypeError,c=function(t){return function(e,n,c,u){r(n);var l=i(e),h=a(l),d=o(l),f=t?d-1:0,p=t?-1:1;if(c<2)while(1){if(f in h){u=h[f],f+=p;break}if(f+=p,t?f<0:d<=f)throw s("Reduce of empty array with no initial value")}for(;t?f>=0:d>f;f+=p)f in h&&(u=n(u,h[f],f,l));return u}};t.exports={left:c(!1),right:c(!0)}},d9b5:function(t,e,n){var r=n("d066"),i=n("1626"),a=n("3a9b"),o=n("fdbf"),s=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&a(e.prototype,s(t))}},d9e2:function(t,e,n){var r=n("23e7"),i=n("da84"),a=n("2ba4"),o=n("e5cb"),s="WebAssembly",c=i[s],u=7!==Error("e",{cause:7}).cause,l=function(t,e){var n={};n[t]=o(t,e,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},h=function(t,e){if(c&&c[t]){var n={};n[t]=o(s+"."+t,e,u),r({target:s,stat:!0,constructor:!0,arity:1,forced:u},n)}};l("Error",(function(t){return function(e){return a(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return a(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return a(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return a(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return a(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return a(t,this,arguments)}})),l("URIError",(function(t){return function(e){return a(t,this,arguments)}})),h("CompileError",(function(t){return function(e){return a(t,this,arguments)}})),h("LinkError",(function(t){return function(e){return a(t,this,arguments)}})),h("RuntimeError",(function(t){return function(e){return a(t,this,arguments)}}))},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this,n("c8ba"))},dc4a:function(t,e,n){var r=n("59ed"),i=n("7234");t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}function i(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}e.resolve=function(){for(var e="",r=!1,a=arguments.length-1;a>=-1&&!r;a--){var o=a>=0?arguments[a]:t.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,r="/"===o.charAt(0))}return e=n(i(e.split("/"),(function(t){return!!t})),!r).join("/"),(r?"/":"")+e||"."},e.normalize=function(t){var r=e.isAbsolute(t),o="/"===a(t,-1);return t=n(i(t.split("/"),(function(t){return!!t})),!r).join("/"),t||r||(t="."),t&&o&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),s=o,c=0;c<o;c++)if(i[c]!==a[c]){s=c;break}var u=[];for(c=s;c<i.length;c++)u.push("..");return u=u.concat(a.slice(s)),u.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,r=-1,i=!0,a=t.length-1;a>=1;--a)if(e=t.charCodeAt(a),47===e){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=r(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,a=0,o=t.length-1;o>=0;--o){var s=t.charCodeAt(o);if(47!==s)-1===r&&(i=!1,r=o+1),46===s?-1===e?e=o:1!==a&&(a=1):-1!==e&&(a=-1);else if(!i){n=o+1;break}}return-1===e||-1===r||0===a||1===a&&e===r-1&&e===n+1?"":t.slice(e,r)};var a="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},df7e:function(t,e,n){var r=n("07fa");t.exports=function(t,e){for(var n=r(t),i=new e(n),a=0;a<n;a++)i[a]=t[n-a-1];return i}},dfb9:function(t,e,n){var r=n("07fa");t.exports=function(t,e){var n=0,i=r(e),a=new t(i);while(i>n)a[n]=e[n++];return a}},e163:function(t,e,n){var r=n("1a2d"),i=n("1626"),a=n("7b0b"),o=n("f772"),s=n("e177"),c=o("IE_PROTO"),u=Object,l=u.prototype;t.exports=s?u.getPrototypeOf:function(t){var e=a(t);if(r(e,c))return e[c];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof u?l:null}},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e330:function(t,e,n){var r=n("40d5"),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);t.exports=r?o:function(t){return function(){return a.apply(t,arguments)}}},e391:function(t,e,n){var r=n("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e5cb:function(t,e,n){"use strict";var r=n("d066"),i=n("1a2d"),a=n("9112"),o=n("3a9b"),s=n("d2bb"),c=n("e893"),u=n("aeb0"),l=n("7156"),h=n("e391"),d=n("ab36"),f=n("6f19"),p=n("83ab"),g=n("c430");t.exports=function(t,e,n,m){var y="stackTraceLimit",v=m?2:1,_=t.split("."),b=_[_.length-1],w=r.apply(null,_);if(w){var C=w.prototype;if(!g&&i(C,"cause")&&delete C.cause,!n)return w;var A=r("Error"),x=e((function(t,e){var n=h(m?e:t,void 0),r=m?new w(t):new w;return void 0!==n&&a(r,"message",n),f(r,x,r.stack,2),this&&o(C,this)&&l(r,this,x),arguments.length>v&&d(r,arguments[v]),r}));if(x.prototype=C,"Error"!==b?s?s(x,A):c(x,A,{name:!0}):p&&y in w&&(u(x,w,y),u(x,w,"prepareStackTrace")),c(x,w),!g)try{C.name!==b&&a(C,"name",b),C.constructor=x}catch(k){}return x}}},e6c4:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{class:["ac-basicInfo",t.layout>2?"ac-module__ThreeColumn":"ac-module__column"]},[t.hideTitle?t._e():e("div",{staticClass:"ac-basicInfo__title"},[e("div",{staticClass:"ac-basicInfo__title-inner",attrs:{id:"paper-title__ele",contentEditable:""},domProps:{innerHTML:t._s(t.$store.getters["AC/title"])},on:{blur:t.titleBlurEvent}})]),t.hideStudentInfo?t._e():[e("div",{staticClass:"ac-info__vertical--layout ac-basic-info__edu is-lattice__no-padding"},[e("div",{staticClass:"ac-info__area"},[e("ul",{staticClass:"info-area__three--column",style:{"--columns":3}},t._l(t.$store.getters["AC/studentInfo"],(function(n,r){return e("li",{key:r,attrs:{"data-export_name":n.scanName||""}},[e("span",[t._v(t._s(n.label||n))]),e("div",{staticClass:"line"})])})),0)])])]],2)},i=[],a={name:"AcBasicInfo",components:{},props:{hideTitle:{type:Boolean,default:!1},hideStudentInfo:{type:Boolean,default:!1}},computed:{answerMode:function(){return this.$store.getters["AC/answerCardMode"]},layout:function(){return this.$store.getters["AC/layout"]}},methods:{titleBlurEvent:function(t){var e=Number(getComputedStyle(t.target).lineHeight.replace("px",""))||0;t.target.scrollHeight>=3*e?(this.$message.error("内容不得超过两行,请进行删减!"),document.getElementById("paper-title__ele").focus()):(t.currentTarget.innerText||(t.currentTarget.innerText="请输入试卷名称",this.$message.error("试卷标题不能为空!"),document.getElementById("paper-title__ele").focus()),this.$store.dispatch("AC/paper/setTitle",t.currentTarget.innerHTML))}}},o=a,s=n("2877"),c=Object(s["a"])(o,r,i,!1,null,null,null),u=c.exports;u.install=function(t){t.component(u.name,u)};e["default"]=u},e893:function(t,e,n){var r=n("1a2d"),i=n("56ef"),a=n("06cf"),o=n("9bf2");t.exports=function(t,e,n){for(var s=i(e),c=o.f,u=a.f,l=0;l<s.length;l++){var h=s[l];r(t,h)||n&&r(n,h)||c(t,h,u(e,h))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},eb33:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFwAAAA7CAYAAAD2Hu26AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjE2REY5RTJGQjg5NDExRThBM0RBODA4NjVDNEYwRDBFIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjE2REY5RTMwQjg5NDExRThBM0RBODA4NjVDNEYwRDBFIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MTZERjlFMkRCODk0MTFFOEEzREE4MDg2NUM0RjBEMEUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MTZERjlFMkVCODk0MTFFOEEzREE4MDg2NUM0RjBEMEUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7FbkwxAAABJklEQVR42uya0QnCMBRFG+kO+W9HaFfRFTqTHaFdRUew38kUUUHwVx5qbh/ngPhjIPfwuI2kbUqpNNqEGOPHP845P79kMx0aQDjCAeEIB4QjHBCOcIQDwhEOCEc4ILwC7eMTHOaSzRRKKYzdPyf8dUMijeHGhw6Hd4fL32ka1nCnCQhHOMLhJw/N0WGuUVn41aFw2UxUSoUJP4vvcTKskc0UeJmTSuFYCAjf9UNzdZhrVRZ+cihcNhOVUmHCO/E9boY1nbLwm/o53LBGNhOVgnCEA8L3fUrpHebqlYVvDoXLZqJSKkz44vBv+qIs/OhwkGQzUSkIRzh8ucNnh7lmZeGTQ+GymaiUChM+iO/R8traoCz8Ii7ccgEhm4lKQTjCAeH75S7AADezLGDii6+LAAAAAElFTkSuQmCC"},ebb5:function(t,e,n){"use strict";var r,i,a,o=n("4b11"),s=n("83ab"),c=n("da84"),u=n("1626"),l=n("861d"),h=n("1a2d"),d=n("f5df"),f=n("0d51"),p=n("9112"),g=n("cb2d"),m=n("edd0"),y=n("3a9b"),v=n("e163"),_=n("d2bb"),b=n("b622"),w=n("90e3"),C=n("69f3"),A=C.enforce,x=C.get,k=c.Int8Array,T=k&&k.prototype,E=c.Uint8ClampedArray,S=E&&E.prototype,I=k&&v(k),O=T&&v(T),L=Object.prototype,B=c.TypeError,P=b("toStringTag"),R=w("TYPED_ARRAY_TAG"),j="TypedArrayConstructor",M=o&&!!_&&"Opera"!==d(c.opera),z=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},D={BigInt64Array:8,BigUint64Array:8},U=function(t){if(!l(t))return!1;var e=d(t);return"DataView"===e||h(N,e)||h(D,e)},$=function(t){var e=v(t);if(l(e)){var n=x(e);return n&&h(n,j)?n[j]:$(e)}},H=function(t){if(!l(t))return!1;var e=d(t);return h(N,e)||h(D,e)},F=function(t){if(H(t))return t;throw B("Target is not a typed array")},K=function(t){if(u(t)&&(!_||y(I,t)))return t;throw B(f(t)+" is not a typed array constructor")},W=function(t,e,n,r){if(s){if(n)for(var i in N){var a=c[i];if(a&&h(a.prototype,t))try{delete a.prototype[t]}catch(o){try{a.prototype[t]=e}catch(u){}}}O[t]&&!n||g(O,t,n?e:M&&T[t]||e,r)}},V=function(t,e,n){var r,i;if(s){if(_){if(n)for(r in N)if(i=c[r],i&&h(i,t))try{delete i[t]}catch(a){}if(I[t]&&!n)return;try{return g(I,t,n?e:M&&I[t]||e)}catch(a){}}for(r in N)i=c[r],!i||i[t]&&!n||g(i,t,e)}};for(r in N)i=c[r],a=i&&i.prototype,a?A(a)[j]=i:M=!1;for(r in D)i=c[r],a=i&&i.prototype,a&&(A(a)[j]=i);if((!M||!u(I)||I===Function.prototype)&&(I=function(){throw B("Incorrect invocation")},M))for(r in N)c[r]&&_(c[r],I);if((!M||!O||O===L)&&(O=I.prototype,M))for(r in N)c[r]&&_(c[r].prototype,O);if(M&&v(S)!==O&&_(S,O),s&&!h(O,P))for(r in z=!0,m(O,P,{configurable:!0,get:function(){return l(this)?this[R]:void 0}}),N)c[r]&&p(c[r],R,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:z&&R,aTypedArray:F,aTypedArrayConstructor:K,exportTypedArrayMethod:W,exportTypedArrayStaticMethod:V,getTypedArrayConstructor:$,isView:U,isTypedArray:H,TypedArray:I,TypedArrayPrototype:O}},edd0:function(t,e,n){var r=n("13d2"),i=n("9bf2");t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),i.f(t,e,n)}},f495:function(t,e,n){var r=n("c04e"),i=TypeError;t.exports=function(t){var e=r(t,"number");if("number"==typeof e)throw i("Can't convert number to bigint");return BigInt(e)}},f5df:function(t,e,n){var r=n("00ee"),i=n("1626"),a=n("c6b6"),o=n("b622"),s=o("toStringTag"),c=Object,u="Arguments"==a(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(n){}};t.exports=r?a:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=l(e=c(t),s))?n:u?a(e):"Object"==(r=a(e))&&i(e.callee)?"Arguments":r}},f714:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA7CAYAAACE0Y8MAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjFERUNDNEYwQjg5NDExRTg4RDAzODcxREI1QjM3Njc2IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjFERUNDNEYxQjg5NDExRTg4RDAzODcxREI1QjM3Njc2Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MURFQ0M0RUVCODk0MTFFODhEMDM4NzFEQjVCMzc2NzYiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MURFQ0M0RUZCODk0MTFFODhEMDM4NzFEQjVCMzc2NzYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4efK6pAAABVElEQVR42uyawQnCQBREs2IPuWsJsQVL0BZSk5YQW7AELUHPmyqiOQgBhfU0O/DfgCDuYZ+8MPlhk3LOU6NLatv268dxHD9fXVhkHKuGVA0CEIAAggAEEAQggCAAAQQBCCAIQABBQIys359kxJOicaRpmrgMF1kcDmkE5JylGxZOxKqz1KggUvFimAVIz2EL6y4snAkzhhIEIIBIbsI7Ix4Xlr1SwN1IgAvLlQoKVEEn4X59Yd2FRcaReDn3JwsPYoyhBAFRbsIXI55LNI5ZwNFIwDEaBxVkUEEb4X7PwroLy0Yp4KGcvQvrLiwyDiqIMRQBBAGxp6CtEc82Gsf6j9FQmWc0DirIoIIGo0d8F5ZBKeBgdEEconFQQYyhCCCVb8JnI55zNI5ZQG8koI/GQQUZVFAn3K/06qELS6cUcBP+6dKBjAuLjIMKYgxFAEFA3LwEGACCa0UZSvm0awAAAABJRU5ErkJggg=="},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),a=r("keys");t.exports=function(t){return a[t]||(a[t]=i(t))}},f8cd:function(t,e,n){var r=n("5926"),i=RangeError;t.exports=function(t){var e=r(t);if(e<0)throw i("The argument can't be less than 0");return e}},fbd7:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ac-answer-box"},[e("div",{staticClass:"ac-answer-box__wrapper",class:{"is-row-direction":"row"===t.direction},style:{"--width":t.width+"px"}},[e("div",{staticClass:"ac-answer-box__top",on:{click:t.showInput}},[t.inputVisible?e("el-input",{ref:"editInput",attrs:{maxlength:t.maxlength},on:{change:t.handleChange,blur:function(e){t.inputVisible=!1}},model:{value:t.inputVal,callback:function(e){t.inputVal=e},expression:"inputVal"}}):e("span",[t._v(t._s(t.label))])],1),e("div",{staticClass:"ac-answer-box__bottom"})])])},i=[],a={name:"AcAnswerBox",props:{direction:{type:String,default:"column"},label:{type:[String,Number],default:"答案"},width:{type:Number,default:128},editable:{type:Boolean,default:!1},maxlength:{type:Number,default:12},dataKey:{type:String,default:""}},data:function(){return{inputVisible:!1,inputVal:""}},methods:{handleChange:function(){this.inputVisible=!1,this.$store.dispatch("AC/paper/setEditTitle",{dataKey:this.dataKey,title:this.inputVal})},showInput:function(){var t=this;this.editable&&(this.inputVisible=!0,this.inputVal=this.label,this.$nextTick((function(){return t.$refs.editInput&&t.$refs.editInput.focus()})))}}},o=a,s=n("2877"),c=Object(s["a"])(o,r,i,!1,null,null,null),u=c.exports;u.install=function(t){t.component(u.name,u)};e["default"]=u},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fdbf:function(t,e,n){var r=n("04f8");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}});